Page 1 of 1

Letting AI know where oil resources are

Posted: 17 Jan 2010, 15:22
by Per
An issue that always seems to arise when writing AIs for Warzone is how to let the AI know where to look for oil. The default AI used to do this by mere guesswork, sending scouts all over the place looking for interesting things. This is a huge disadvantage compared to human players, who is usually familiar with the map and can race toward and secure valuable oil resources much quicker.

Aivolution had a database where it plotted in oil resources it found for each map, essentially "learning" where oil was. It made the AI non-deterministic, so I find this approach rather mistaken.

For the next 2.3 release, I have added a new way to call the initGetFeature(), with the player parameter set to -1. This means find features irrespective of whether the player sees them or not. This allows you to iterate over all features, find the oil resources and send the AI racing for them. Since this makes the AI act just like a human, I do not consider this cheating.

Re: Letting AI know where oil resources are

Posted: 18 Jan 2010, 14:57
by Tenoh
And if i dont play same map over and over again and got no idea where oil is? i get smacked for that?...thx >_>

Re: Letting AI know where oil resources are

Posted: 18 Jan 2010, 16:48
by Saberuneko
Then, just have to make that optional so you can disable the option of letting the AI to know where they are...

Re: Letting AI know where oil resources are

Posted: 18 Jan 2010, 18:51
by guciomir
It is definately something DydoAI needs to become vialable of putting into trunk :)

Great work Per!

Re: Letting AI know where oil resources are

Posted: 19 Jan 2010, 16:35
by DylanDog
This is a good thing Per. I`ll implement it in DyDo!

Re: Letting AI know where oil resources are

Posted: 20 Jan 2010, 04:13
by DarkCheetah
Aivolution gets confused on high oil maps and then just do nothing XD

this happened on a map called "8c AiAssualt" start with no base = aivolution wont move

Re: Letting AI know where oil resources are

Posted: 20 Jan 2010, 10:23
by Mysteryem
DarkCheetah wrote:Aivolution gets confused on high oil maps and then just do nothing XD

this happened on a map called "8c AiAssualt" start with no base = aivolution wont move
That's strange, every time I've played with aiv on that map I've had no problems. Aiv wiped the floor with us.

Re: Letting AI know where oil resources are

Posted: 20 Jan 2010, 14:25
by DarkCheetah
Mysteryem wrote:
DarkCheetah wrote:Aivolution gets confused on high oil maps and then just do nothing XD

this happened on a map called "8c AiAssualt" start with no base = aivolution wont move
That's strange, every time I've played with aiv on that map I've had no problems. Aiv wiped the floor with us.

on Beta 6 and 7 on aiAssualt starting with no bases T1
they dont move =/ i find it weird D:

Re: Letting AI know where oil resources are

Posted: 20 Jan 2010, 16:03
by DylanDog
DarkCheetah wrote:Aivolution gets confused on high oil maps and then just do nothing XD

this happened on a map called "8c AiAssualt" start with no base = aivolution wont move
Do you know who is managing issues with AIvolution? I am not sure this is the right place for your post, maybe you should open a trouble ticket.

Re: Letting AI know where oil resources are

Posted: 20 Jan 2010, 16:33
by Per
Nobody is fixing Aivolution anymore. There is no point in opening any tickets about it. Sorry :(

Re: Letting AI know where oil resources are

Posted: 21 Jan 2010, 16:02
by DylanDog
Per wrote:Nobody is fixing Aivolution anymore. There is no point in opening any tickets about it. Sorry :(
I though you and Zarel were doing it every now and then...ok.

Re: Letting AI know where oil resources are

Posted: 21 Jan 2010, 22:08
by Zarel
Why me? I don't know anything about WZScript, except the bare minimum to fix really simple bugs.

Re: Letting AI know where oil resources are

Posted: 22 Jan 2010, 00:20
by DarkCheetah
well i guess you'r working with the original ai huh? you should do something with the dificulty sliders ^^

there's no big difference in those =O