Like finding bugs? (KAI source here)

Like finding bugs? (KAI source here)

Here is where ideas can be collected for the skirmish AI in development

Moderators: hoijui, Moderators

Post Reply
User avatar
krogothe
AI Developer
Posts: 1050
Joined: 14 Nov 2005, 17:07

Like finding bugs? (KAI source here)

Post by krogothe »

well then have a look at the UnitTable class (The uploaded version gives no credit to sub, I fixed that now) and work out why the hell it creates a table and cannot load it afterwards!

It was fine then suddenly it screwed up after i added the GetEnergyScore and GetEnergyMaker functions!

I must have changed something by mistake since the table file size suddenly jumped from 24 to 28kb and those functions werent supposed to make any difference to it!

anyways thats the source of my AI, its totally incomplete and although i have a few functions not shown in the RAR file, i cba fidind them all in other projects...



Good luckhttp://www.fileuniverse.com/?p=showitem&ID=1891
User avatar
Triaxx2
Posts: 422
Joined: 29 Aug 2004, 22:24

Post by Triaxx2 »

I am terribly impressed. Everything is written cleanly, and smoothly, and even as bad of a coder as i am, I can understand most of it. And it's well noted. The little //'s. I'll probably want to borrow your definition coding when I go to do that.
User avatar
krogothe
AI Developer
Posts: 1050
Joined: 14 Nov 2005, 17:07

Post by krogothe »

Please, credit submarine for that, its his function! i made some changes to it, yes but 90% of the //s and structure is his!
(from the beginning i said his AI was gonna be awesome, since its gonna be similar to mine :P )
submarine
AI Developer
Posts: 834
Joined: 31 Jan 2005, 20:04

Post by submarine »

lol it looks very familiar to me :)
User avatar
krogothe
AI Developer
Posts: 1050
Joined: 14 Nov 2005, 17:07

Post by krogothe »

:/ lol guess ill have to find this elusive load bug myself :P
User avatar
krogothe
AI Developer
Posts: 1050
Joined: 14 Nov 2005, 17:07

Post by krogothe »

.... which i just did, while halving the size of the data file and also halving the save and load times!
arent I great! (still gotta cut it down to 300 lines and make it work with other mods)
User avatar
Triaxx2
Posts: 422
Joined: 29 Aug 2004, 22:24

Post by Triaxx2 »

Can I have a copy of the new source? See if I can see where you changed it? I'm still learning this so...
User avatar
krogothe
AI Developer
Posts: 1050
Joined: 14 Nov 2005, 17:07

Post by krogothe »

I changed EXACTLY 14 characters in 2 lines to achieve that...
Im grateful i can spot these things quick!
Ill post another source when ive done some meaningful work, which probably wont be till the weekend!
Post Reply

Return to “AI”