Fast Mode, Keep the result ?

Fast Mode, Keep the result ?

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

Moderators: hoijui, Moderators

Post Reply
picmee
Posts: 15
Joined: 15 Dec 2008, 01:02

Fast Mode, Keep the result ?

Post by picmee »

I use Balanced Annihilation 7.19 and my AI that build form NullOOJaviAI template.
Can any one suggest me?

1. how to collect the game data like
how many units does the enemy has?

the first way that I think is use some class in the library to collect the game data but I don't know which class to pick.
the second way is search them in the replay file but I don't know how to access it.

2. how to use run Fast Mode for skip the game animation and keep only the data?

Thank you
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Fast Mode, Keep the result ?

Post by knorke »

2) + and - to adjust game speed or type /skipf bla to skip to frame bla and /skipf +bla to skip forward bla frames without graphics.
Possibly it might be just /skip not sure. I think /skip is the same as /skipf just with the arguement as seconds.
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: Fast Mode, Keep the result ?

Post by hoijui »

non Lua AIs are only run when the game is running, not in a replay.
to run faster, do as knorke explained.

to get data about the enemy, use the AI callback. use the jar in your IDE to see what units are there.. search through them.

hope i got you right.
Post Reply

Return to “AI”