Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

What an AI file is for

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [Current Games From Matrix.] >> [World War II] >> Norm Koger's The Operational Art Of War III >> What an AI file is for Page: [1]
Login
Message << Older Topic   Newer Topic >>
What an AI file is for - 1/12/2011 4:24:25 AM   
ralphtricky


Posts: 6685
Joined: 7/27/2003
From: Colorado Springs
Status: offline
One thing that hasn't been talked about much is 'AI' files in 3.4. They're created by hitting the X key.

What are they? Basically, I've externalized part of the AI in a scenario. Earlier scenarios have a poor AI programmed because the designers had to go out of their way to try to make the AI play even a little bit good. These same practices can hinder the AI with 3.4, in particular, spacing the objectives too close can make him look in circles to determine what percent of the enemy forces are present instead of looking in a semi-circle. This would effect how he knows whether he is in danger of being flanked.

One example would be the Red Thunder 1988.ai file. It modifies the scenario so that the bottom formation of the Soviets will properly ford the river instead of just waiting there for something to happen. Since the objectives were spaced closely together, the AI couldn't figure out that it needed to put a fording unit on the river.

By making the AI file separate, people should feel free to experiment with different AI tracks and post changes to their favorite scenarios without entering the editor, needing to get permission to post an updated scenario, etc.

I'm hoping that these will become somewhat popular, and we'll see alternate AIs for some scenarios.

One use for them would be to play one side (or both) using Elmer Assist. Once you've modified the tracks, you can press X to export the AI file. If you put it in the graphics or altgraphics directory, it should be used the next time you load the scenario and override what was in the scenario. This means that if you want to play a scenario multiple times, you won't have to create the AI paths each time for your troops. You could also play one side, then play the other side against the strategy you just used. I'm sure that there are lots of other uses that I haven't thought of.

You do need to be careful since I think the editor also looks for AI files, and you can accidentally change the AI tracks if you have an AI file in the search path.

I don't think that PBEM files will use or look at AI files. This is being overcautious to prevent a possible cheat during PBEM play, although I can't see any obvious issues. I'm thinking about providing a PBEM mode in a future patch that would allow 'Elmer Assist' to be used. It depends on what people think about this feature.

Enjoy,
Ralph


_____________________________

Ralph Trickey
TOAW IV Programmer
Blog: http://operationalwarfare.com
---
My comments are my own, and do not represent the views of any other person or entity. Nothing that I say should be construed in any way as a promise of anything.
Post #: 1
RE: What an AI file is for - 1/12/2011 7:32:32 AM   
Oberst_Klink

 

Posts: 4778
Joined: 2/10/2008
From: Germany
Status: offline
Brilliant!

Btw, Happy new year and all the best! The AI script is good news. :D I remember the 1st CoSim that had an editable AI file was a freeware/shareware game called "Crisis", mid-90s... Never made it onto the shelves though and the programmer seems to be nicked by Aliens...

WHILE we're talking about all those .AI, .GAM... Any chance to get a short index/reference about the different formating/definition /lines/tabs? I found one bloke who also seems to be keen to use an XML editor to create scenarios or an OOB database. And even Larry is using Notepad++ for scenario creation (or at least editing?!).

kLiNk, Oberst

_____________________________

My Blog & on Twitter.
Visit CS Legion on Twitter & Facebook for updates.

(in reply to ralphtricky)
Post #: 2
RE: What an AI file is for - 1/12/2011 8:47:59 AM   
larryfulkerson


Posts: 39932
Joined: 4/17/2005
From: Tucson, AZ
Status: offline
quote:

ORIGINAL: Oberst_Klink
The AI script is good news.

I agree.....and I'm already thinking of ways I can modify AI play. Thanks Ralph dude.

quote:

ORIGINAL: Oberst_Klink
Any chance to get a short index/reference about the different formating/definition /lines/tabs?

I concur that this could really be helpful.

quote:

ORIGINAL: Oberst_Klink
.... And even Larry is using Notepad++ for scenario creation (or at least editing?!).

And if I can do it anybody can. I love Notepad++. But there's just one tiny flaw. It's not immediately obvious how one does an edit called "replace" where you replace one word in your text with another. I haven't found it yet and have needed it. Anybody got a clue they want to share?

quote:

ORIGINAL: ralphtrick
One thing that hasn't been talked about much is 'AI' files in 3.4. They're created by hitting the X key.

Hey Ralph......did you mean that it would be created by hitting the X key while you were in the editor mode? I hit the X key just now and couldn't find the output file anywhere.
EDIT: never mind.........I figured out that AI files aren't created while you're in a PBEM game.

< Message edited by larryfulkerson -- 1/12/2011 9:13:29 AM >


_____________________________

If we're all created in the image of god then why aren't we all invisible?

(in reply to Oberst_Klink)
Post #: 3
RE: What an AI file is for - 2/18/2011 11:59:51 PM   
gianluca74_ai

 

Posts: 9
Joined: 2/14/2011
Status: offline
Hi,
in the AI file the information's regarding Formation Order and Emphasis are not recorded ?

< Message edited by gianluca74_ai -- 2/19/2011 9:48:30 AM >

(in reply to larryfulkerson)
Post #: 4
RE: What an AI file is for - 2/21/2011 4:18:29 PM   
Oberst_Klink

 

Posts: 4778
Joined: 2/10/2008
From: Germany
Status: offline
Ciao Gianluca,

any idea what the Banzai/Early Thresholds refer to?

<AI EarlyThreshold="30" MidThreshold="20" LateThreshold="10"/>
<AIBanzai EarlyThreshold="20" MidThreshold="10" LateThreshold="5"/>

Grazie,

kLiNk, Oberst



_____________________________

My Blog & on Twitter.
Visit CS Legion on Twitter & Facebook for updates.

(in reply to gianluca74_ai)
Post #: 5
RE: What an AI file is for - 2/21/2011 4:26:50 PM   
ralphtricky


Posts: 6685
Joined: 7/27/2003
From: Colorado Springs
Status: offline

quote:

ORIGINAL: Oberst_Klink

Ciao Gianluca,

any idea what the Banzai/Early Thresholds refer to?

<AI EarlyThreshold="30" MidThreshold="20" LateThreshold="10"/>
<AIBanzai EarlyThreshold="20" MidThreshold="10" LateThreshold="5"/>

Grazie,

kLiNk, Oberst



Early mid and late are the part of the turn, I hink they are 7 rounds and 5 rounds left. 10 20 and 30 are the odds 1.0 2.0 3.0 required for an attack. Banzai is the most aggressive ai setting.

This can be tuned by the designer to make the ai more aggressive in pursuing attacks when an initial breakthrough is needed.

Ralph


_____________________________

Ralph Trickey
TOAW IV Programmer
Blog: http://operationalwarfare.com
---
My comments are my own, and do not represent the views of any other person or entity. Nothing that I say should be construed in any way as a promise of anything.

(in reply to Oberst_Klink)
Post #: 6
RE: What an AI file is for - 2/21/2011 4:38:18 PM   
Curtis Lemay


Posts: 12969
Joined: 9/17/2004
From: Houston, TX
Status: offline

quote:

ORIGINAL: ralphtrick

Banzai is the most aggressive ai setting.


AKA "Berserk".

(in reply to ralphtricky)
Post #: 7
RE: What an AI file is for - 2/21/2011 5:18:38 PM   
Oberst_Klink

 

Posts: 4778
Joined: 2/10/2008
From: Germany
Status: offline
I
quote:

ORIGINAL: Curtis Lemay


quote:

ORIGINAL: ralphtrick

Banzai is the most aggressive ai setting.


AKA "Berserk".

Tenno, banzai! Hai! The term itself and that it means VERY aggressive was clear ;) The values weren't. Thanks for the reply though lads!

_____________________________

My Blog & on Twitter.
Visit CS Legion on Twitter & Facebook for updates.

(in reply to Curtis Lemay)
Post #: 8
Page:   [1]
All Forums >> [Current Games From Matrix.] >> [World War II] >> Norm Koger's The Operational Art Of War III >> What an AI file is for Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

4.360