Copying AI scripts

Please post here for questions and discussion about scenario design, art and sound modding and the game editor for WITP Admiral's Edition.

Moderators: wdolson, MOD_War-in-the-Pacific-Admirals-Edition

Post Reply
User avatar
vettim89
Posts: 3669
Joined: Fri Jul 13, 2007 11:38 pm
Location: Toledo, Ohio

Copying AI scripts

Post by vettim89 »

JWE mentioned that when loading DBB mod you will need to copy, paste, and renumber the AI files. Is there a faster way to do this beyond doing each script one by one?
"We have met the enemy and they are ours" - Commodore O.H. Perry
User avatar
oldman45
Posts: 2325
Joined: Sun May 01, 2005 4:15 am
Location: Jacksonville Fl

RE: Copying AI scripts

Post by oldman45 »

Not that I am aware of, I just do it one at a time. I copy them, put them in a folder then renumber them. Then I copy them back to the scen folder.
User avatar
JWE
Posts: 5039
Joined: Tue Jul 19, 2005 5:02 pm

RE: Copying AI scripts

Post by JWE »

There is a slightly easier way - if you are ok with DOS commands. The AI files for scen 1 are the same as for scen 6 (Dec.8 start), and the quiet China AI files for scen 7 are the same as for scen 8 (Dec.8 start). And so ...

Scen 1 and Scen 7 (QC) AI files will work for all Babes versions, if renumbered to match (your) Babes Scen numbers. I make two folders, just under the C: directory (so they are easy to get to). One is C:\Work001 the other is C:\Work007. Copy the aei001-xx files into Work001, copy the aei007-xx files into Work007. That organizes everything into a nice space, so it can be worked on, without the danger of screwing up the game scenario files. Then you are ready to boogie.

Open Command Prompt. Type cd\ <hit enter>
Type cd\Work001 <hit enter>
Type dir <hit enter> - just to see if you are in the right place - should show all the aei001-xx.dat files

Type ren aei001*.dat aei026*.dat <hit enter>

They will all renumber to 26. Don't forget to include the zero; the file numerics are 3 digits. Then just copy/paste the 026 files to wherever you want them. And it doesn't have to be 026, it can be whatever number you are using for the scenario.

After you copy/paste, don't forget to renumber them back. i.e., Type ren aei026*.dat aei001*.dat <hit enter>. Type dir <hit enter> to make sure all is copacetic.

Then repeat the process with Work007 and the aei007-xx.dat files if you want a quiet china AI file set. All this can be set up with just a few .bat files, if you are up to it.

User avatar
eloso
Posts: 347
Joined: Sun May 28, 2006 1:57 am
Location: The Greater Chicagoland Area, USA

RE: Copying AI scripts

Post by eloso »

ORIGINAL: JWE



Open Command Prompt. Type cd\ <hit enter>
Type cd\Work001 <hit enter>
Type dir <hit enter> - just to see if you are in the right place - should show all the aei001-xx.dat files

Type ren aei001*.dat aei026*.dat <hit enter>


I don't know if it matters but shouldn't you stick a hyphen before the asterisk in order to rename the files correctly?

In other words:

Type ren aei001-*.dat aei026-*.dat <hit enter>
User avatar
JWE
Posts: 5039
Joined: Tue Jul 19, 2005 5:02 pm

RE: Copying AI scripts

Post by JWE »

ORIGINAL: OSO
I don't know if it matters but shouldn't you stick a hyphen before the asterisk in order to rename the files correctly?
Don't need to type the hyphen, asterisk includes everything. Can add hyphen if you want to, but I hate typing so I never bothered.
User avatar
eloso
Posts: 347
Joined: Sun May 28, 2006 1:57 am
Location: The Greater Chicagoland Area, USA

RE: Copying AI scripts

Post by eloso »

ORIGINAL: JWE

ORIGINAL: OSO
I don't know if it matters but shouldn't you stick a hyphen before the asterisk in order to rename the files correctly?
Don't need to type the hyphen, asterisk includes everything. Can add hyphen if you want to, but I hate typing so I never bothered.

You're right. I must have had a typo when I did it before posting the query. [:(]
Post Reply

Return to “Scenario Design and Modding”