Shroud/Fog Aware AI

Brainstorm ideas of possible additions to the game. Read this before posting!

Moderator: Forum Moderators

Forum rules
Before posting a new idea, you must read the following:
Post Reply
Sangel
Moderator Emeritus
Posts: 2232
Joined: March 26th, 2004, 10:58 pm
Location: New York, New York

Shroud/Fog Aware AI

Post by Sangel »

I understand that this is a major feature request, and very difficult to implement. However, in my opinion, it's a critical one, as it gives the AI an edge it should not have.

Could we make the AI affected by Shroud and Fog? Perhaps as a scenario-by-scenario tag (so that you can have scarily omniscient AIs in some scenarios).
"Pure logic is the ruin of the spirit." - Antoine de Saint-Exupéry
Dave
Founding Developer
Posts: 7071
Joined: August 17th, 2003, 5:07 am
Location: Seattle
Contact:

Re: Shroud/Fog Aware AI

Post by Dave »

Sangel wrote:I understand that this is a major feature request, and very difficult to implement. However, in my opinion, it's a critical one, as it gives the AI an edge it should not have.

Could we make the AI affected by Shroud and Fog? Perhaps as a scenario-by-scenario tag (so that you can have scarily omniscient AIs in some scenarios).
We already have an AI that's affected by shroud and fog of war. It's called 'idle_ai'. :-p

Seriously, this is a 'quality of implementation' issue. We can make an AI that's affected by fog/shroud, but exactly how intelligent do you want it to be?

The AI could be made to 'kinda' understand how to play under fog conditions. Basically this would entail making it not know about units that are under the fog at all. It'd play as if they didn't exist. To actually make intelligent estimates about where enemy units are under the fog would be much, much more difficult.

Making it play with shroud would also be very difficult. Programming an AI that can see everything already feels like stumbling around in the dark. To make it have to work with shroud would be really, truly hard.

It'd make a good Master's Thesis or something though :)

David
“At Gambling, the deadly sin is to mistake bad play for bad luck.” -- Ian Fleming
Sangel
Moderator Emeritus
Posts: 2232
Joined: March 26th, 2004, 10:58 pm
Location: New York, New York

Post by Sangel »

Well, a very simple (and effective) first step would be to make the AI unaware of troops under fog/shroud for the purposes of recruitment. That way the AI won't have tailor-designed its force to beat yours before you even meet it.
"Pure logic is the ruin of the spirit." - Antoine de Saint-Exupéry
Dave
Founding Developer
Posts: 7071
Joined: August 17th, 2003, 5:07 am
Location: Seattle
Contact:

Post by Dave »

Sangel wrote:Well, a very simple (and effective) first step would be to make the AI unaware of troops under fog/shroud for the purposes of recruitment. That way the AI won't have tailor-designed its force to beat yours before you even meet it.
If you want to do this, just turn off the AI recruitment flag.

Code: Select all

[ai]
recruitment_ignore_bad_combat=yes
[/ai]
David
“At Gambling, the deadly sin is to mistake bad play for bad luck.” -- Ian Fleming
AT
Posts: 476
Joined: May 6th, 2004, 9:44 pm

a start

Post by AT »

Could you make it so it does recruit intellegently, but only against units that is has seen?
Gandalf-"I am a servant of the Secret Fire, wielder of the Flame of Anor. You cannot pass. The dark fire will not avail you, flame of Udun. Go back to the Shadow. You cannot pass!"
AT- "That sounds like more trouble than it's worth."
Dave
Founding Developer
Posts: 7071
Joined: August 17th, 2003, 5:07 am
Location: Seattle
Contact:

Re: a start

Post by Dave »

AT wrote:Could you make it so it does recruit intellegently, but only against units that is has seen?
This would be fairly difficult, and would likely barely change its behavior anyway.

David
“At Gambling, the deadly sin is to mistake bad play for bad luck.” -- Ian Fleming
Dacyn
Posts: 1855
Joined: May 1st, 2004, 9:34 am
Location: Texas

Re: a start

Post by Dacyn »

AT wrote:Could you make it so it does recruit intellegently, but only against units that is has seen?
There would be a way to approximate this, if the AI settings were modifiable eventwise in WML.
but I don't think we should make settings that are specifically for shroud/FoW unless we are just going to do it straight. Of course the prototype could be allowed to cheat in some circumstances...
Sangel
Moderator Emeritus
Posts: 2232
Joined: March 26th, 2004, 10:58 pm
Location: New York, New York

Post by Sangel »

Actually, I've thought of where Fog/Shroud awareness might be critical: Targets. If there's a level where you're meant to, say, sneak Konrad through without being spotted, and he has a target value assigned to him, then you need to be able to tell the AI to ignore him while he's under fog or shroud.
"Pure logic is the ruin of the spirit." - Antoine de Saint-Exupéry
miyo
Posts: 2201
Joined: August 19th, 2003, 4:28 pm
Location: Finland

Post by miyo »

Shroud -> AI needs to understand how to scout (and reveal terrain)
FoW -> AI needs to understand to use scouts to see further, also to leave some units in strategical places to prevent sneak attacks.

- Miyo
Post Reply