Genetic AI Project

Arlborn said:
I told oyu, the last one you just release.

And now it is not even worknig anymore, after all the loading and such, I appears in that screen of the begining of game and when I click "play the game" my monitor goes off and i need to restart the pc -.-, I will try to reinstall..
I also got this eror where my pc restarted.
 
When my pc restarted it was with .31, but I just tried it twice with .32 and I got a runtime eror before finishing the first game each time. I'll set it so that it creates a log now so if it happens again i'll upload it.
 
Thanks. That runtime error is bad news. I'm yet to get it on my machine.

How much memory do you have? How much is Civ using? I've seen it swallow quite a bit, but usually only after having run for a while. It may be that I've inadvertently started a memory leak, although I can't see one in the changes I've made.

EDIT: Ok, I might have just found a vast gaping one. I'm not too experienced with memory leaks - I'll run some tests...
 
HA!

It is done! :D

A marathon session, but here are the results for dataset 81.

I used no technology trading
Raging barbarians
Aggressive AI
Tilted axis world (standard only) with random land masses
Some games had one less or one more civ than standard (Vanilla can sometimes get boaring!)
Marathon, epic and normal game speeds used too.

I seem to remember the highest game was about 5000, but I'm not sure if this is a great score.

:goodjob:

Conlan

UPDATE:

Highest game score: 6442 Epic, standard world size
2nd: 5541 Epic, standard world size
3rd: 5398 ?, ?
4th: 5184, normal speed, standard world size

Best AI scores:

1st: 3011
2nd: 2912
3rd: 2883

Team Firaxis : 2002
 

Attachments

I started cranking some results out last night with the latest data set and I very soon encoutered the runtime error problem.

I however have discovered some of the cause. It only happens on an autosave turn and when I turned autosave off it managed to run over night without crashing after crashing several times yesterday evening with autosave on. If I'm reading correctly and it's only happening with this latest version I'd say it was to do with the save game compatibility.

Edit: Also if you try to load the autosave it crashed on, Civ gives: Load Error
Failed to uncompress game data
 
So it's some autosaves, but not all of them?

I'll release a patch as soon as I've fixed out that memory leak, which I've confirmed. For now I suggest just disabling autosave, or, if you really need to have it enabled then loading from the autosave before the corrupt one.
 
The Great Apple said:
So it's some autosaves, but not all of them?

I'll release a patch as soon as I've fixed out that memory leak, which I've confirmed. For now I suggest just disabling autosave, or, if you really need to have it enabled then loading from the autosave before the corrupt one.

How to disable autosave??

It mkight be a memory leak cuz the pc wich is running most of the genetic AI stuff has only 256 mb ram..But vanilla and your mod is older versions worked fine..
 
Apparently control-shift-a will do it. If it doesn't, you can go into Civilization4.ini and change one of the options there (can't remember which one - it's pretty obvious).

It was a fairly big leak. I'm fixing it at the moment.
 
The Great Apple said:
Apparently control-shift-a will do it. If it doesn't, you can go into Civilization4.ini and change one of the options there (can't remember which one - it's pretty obvious).

It was a fairly big leak. I'm fixing it at the moment.

Couldent do ctrl+shift+a cuz the game wouldent even start :P

Now guess what? It worked with 0.3...(its running)
 
Hi TGA.

Was just wondering if you had seen post #387.

I noticed quite a few AI's building a unit and disbanding it a turn later because of insufficient funds.

I thought that changing the production to science or commerce would have been a better option for this, especially as there was no technology trading on in my games.

Brilliant project by the way.

I will help where I can.
 
The disband "due to insufficient funds" message occurs whenever an AI disbands a unit for any reason - it may not be because of insufficient funds. It may be the case, however, that they are building then disbanding. It's behaviour that has been seen before.

EDIT: I think I've fixed the memory thing. Got to do a few tests. The save glitch is reproducable with autosaves, although not with normal saves. I'll see if I can work out what's causing it.
 
The Great Apple said:
The disband "due to insufficient funds" message occurs whenever an AI disbands a unit for any reason - it may not be because of insufficient funds. It may be the case, however, that they are building then disbanding. It's behaviour that has been seen before.

Why would be they doing that?? Not better then put it in science or wealth? 0.o
 
The Great Apple said:
Thanks. That runtime error is bad news. I'm yet to get it on my machine.

How much memory do you have? How much is Civ using? I've seen it swallow quite a bit, but usually only after having run for a while. It may be that I've inadvertently started a memory leak, although I can't see one in the changes I've made.

EDIT: Ok, I might have just found a vast gaping one. I'm not too experienced with memory leaks - I'll run some tests...
I have 2.5GB of memory. I'm not sure how much Civ is using but it crashes very early, usually in less than 20 minutes.
 
Here it is a dataset I tihnk from generation 3(dataset number is 45)...

Just remembering you that version .32 didnt work in my pc..

Later I take other dataset :P
 

Attachments

Well I'm still tracking down the root of the problem. It definately has something to do with autosaves, although it doesn't occur on my machine very often (mabye about 1 in 10 autosaves). I've never had it on a normal save, which is odd - I can only imagine somehow autosaves are treated differently in the core.
 
After enabling logs and getting another crash, their are a bunch of files I found in my logs folder. Here is the Genetic AI Dbg, and one I found called TGA AI Dbg, tell me if you want anymore.

Edit: For some reason the first time i posted this the files didnt get uploaded.

Edit 2: It seems they are in log format. I'm going to try changing them to txt and uploading them.

Edit 3: Ok, the website views these as logs even though I changed them to txt, if theirs some way to upload them can you let me know?
 
Samuelson said:
After enabling logs and getting another crash, their are a bunch of files I found in my logs folder. Here is the Genetic AI Dbg, and one I found called TGA AI Dbg, tell me if you want anymore.

Edit: For some reason the first time i posted this the files didnt get uploaded.

Edit 2: It seems they are in log format. I'm going to try changing them to txt and uploading them.

Edit 3: Ok, the website views these as logs even though I changed them to txt, if theirs some way to upload them can you let me know?

add them to a zip file then upload them
 
Ta.

I've managed to fix the autosave issue by scrapping future backward save game compatability. I'm not sure quite why it wasn't working, but it wasn't, and no matter what I did I couldn't get it to.

v0.33
*Fixed slow memory leak (about 100k over 12 hours)
*Fixed autosave crash.

Next generation should be in a few days. I've been trying to ensure that all the AIs get tested by keeping them on the front page until I recieve one back.
 
Back
Top Bottom