Page 1 of 1

Like finding bugs? (KAI source here)

Posted: 28 Nov 2005, 23:42
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

Posted: 29 Nov 2005, 13:01
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.

Posted: 29 Nov 2005, 14:25
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 )

Posted: 29 Nov 2005, 16:48
by submarine
lol it looks very familiar to me :)

Posted: 30 Nov 2005, 23:12
by krogothe
:/ lol guess ill have to find this elusive load bug myself :P

Posted: 30 Nov 2005, 23:39
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)

Posted: 01 Dec 2005, 12:01
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...

Posted: 01 Dec 2005, 17:32
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!