Game Development Community

Genetic Algorithms

by Dustin Stevens-Baier · in Technical Issues · 08/08/2008 (7:01 am) · 1 replies

I have been creating a genetic algorithm for my masters thesis. I have been using the AIGuard enemy that can be seen in the forums and I adapted the player to use the same path finding etc... However, I am having a problem getting consistent results. If I setup the eact same agent I don't necessarily get the same results, the first agent might perform very well but the second agent performs slightly worse or better even though they are the exact same.

Does anybody know if the path finding in AIGuard makes any decisions randomly?

Also could it be the scheduling system in the engine does this guarantee that if we schedule something in 1 sec that it will happen in exactly one second or does it mean at least one second?

I am trying to determine if this is controllable on my side or if it is inherhent to the Torque engine.

Any help is greatly appreciated.

Dustin

#1
08/08/2008 (8:54 am)
Just search the script files for getRandom. This is the function that creates random results by choosing a random number between two numbers the user specifies. If you see that function in the pathfinding code, see if it seems like it would make a noticable difference in behavior