Building TF for an AI Script

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
jmolyson
Posts: 185
Joined: Mon Nov 27, 2006 3:11 am

Building TF for an AI Script

Post by jmolyson »

Does the AI always build its own TF, or can you build TFs in the Editor that the AI will use?

For example, I build a TF for an Attack Savo Surface Action Group (SAG) in the Editor. I prepare a script for a
Savo attack, essentially the IJN operation that sunk our 4 Allied cruisers at the beginning of the campaign.

Will the AI use the TF I built or will it build its own from scratch using the TF1 parameters?

Is there any way to connect the historical TF I built and the script I wrote?

Finally, is there a YOUTUBE video that might clarify this whole process?

Thanks,

Joe

Joe
Dali101
Posts: 360
Joined: Sun Apr 17, 2016 4:55 am

RE: Building TF for an AI Script

Post by Dali101 »

TF in editor,,,

jmolyson
Posts: 185
Joined: Mon Nov 27, 2006 3:11 am

RE: Building TF for an AI Script

Post by jmolyson »

So the AI will use the TF I built in the Editor if
I'm reading your reply correctly.

Thanks,

Joe


Joe
User avatar
MakeeLearn
Posts: 4274
Joined: Sun Sep 11, 2016 1:01 pm

RE: Building TF for an AI Script

Post by MakeeLearn »

ORIGINAL: AYAAD

So the AI will use the TF I built in the Editor if
I'm reading your reply correctly.

Thanks,

Joe




There is a chance. I believe there are 12 main AI possibilities, each with their own TFs and plans. The AI chooses 1 at the start of the scenario and sticks with that. So it depends on which main AI you attach your TF to.

Iam just getting into AI modding and there are few threads about it. Look for threads with Andy Mac posting.


12... more or less depending on scenario example from SCEN folder "... aei001-15.dat, aei001-16.dat"






User avatar
PaxMondo
Posts: 11125
Joined: Fri Jun 06, 2008 3:23 pm

RE: Building TF for an AI Script

Post by PaxMondo »

If you mean TF=script, then yes.

The AI is a scripted event type of AI. It has the capacity for 1000 events to be scripted, and each event can be quite complex. An event can be instantaneous or it can last for a defined period of time. within that event can be air, land, and sea elements that can encompass a single base or a long sequence of bases (think Burma land campaign with +20 base targets invovled). Support units as well as attack units are part of this.

It takes a while to get the hang of it and Andy developed some 'specialty' scripts to do things like aggregate ships at a base or hold units in a position.

Since these are scripts, you have to first off imagine how players will play and then design scripts to counter that play. It's fairly easy in the early part of the scenario where options are limited. It gets harder as the time from start extends. Predicting what a player will be doing in 1944 from a 1941 start is tough. Even tougher is that you have to predict what forces you will have at that point in time. This is why the Ironman scenarios work so well.

Finally testing is the real bear. Devs have the advantage as they can 'start' a game from a save. we can't. so to test ai changes you have to 'play' all the way to that date to test. Testing scripts in 1945 for the GC can take days just for a few passes....

Andy is Da MAN!!!
[&o][&o][&o]
Pax
jmolyson
Posts: 185
Joined: Mon Nov 27, 2006 3:11 am

RE: Building TF for an AI Script

Post by jmolyson »

Well I modified the stock Guadalcanal scenario from the game by extensively researching the actual orders of battle. I also
added some weapons not really well-defined in the stock game, like air-delivered depth bombs.

I play against the Japanese AI. What I'm trying to do now is add scripts for the major Japanese offensive events
like the Battle of Savo Island, the Ichiki Detachment attack, the Battle of the Eastern Solomons and the Battle
of Santa Cruz.

I think I have the methodology figured out except putting the historical hulls into the corresponding battles. I
have built all the Japanese TFs for the operations listed above with accurate component ships and have them appear
at the appropriate ports at the right time. I'm just wondering if the script will go ahead and use the TFs I built
or will it build its own.

Joe
User avatar
PaxMondo
Posts: 11125
Joined: Fri Jun 06, 2008 3:23 pm

RE: Building TF for an AI Script

Post by PaxMondo »

It follows the scripts .. it cannot 'build its own'.

Having said that, I don't recall being able to input specific ships, only choose TF types composed of ship types. YOu can input specific LCU's and air groups.

Image

The manual then gives tables that detail what ships types and numbers it will try to collect for the TF.
Attachments
Capture.jpg
Capture.jpg (13.95 KiB) Viewed 432 times
Pax
jmolyson
Posts: 185
Joined: Mon Nov 27, 2006 3:11 am

RE: Building TF for an AI Script

Post by jmolyson »

Thanks Pax.

It's strange to me that in this NAVAL wargame we can specify air groups and LCUs, but not
specific ships in a script. [&:]

Joe
jmolyson
Posts: 185
Joined: Mon Nov 27, 2006 3:11 am

RE: Building TF for an AI Script

Post by jmolyson »


How do you enter data in the PREVIOUS slot to sequence scripts?











Joe
User avatar
PaxMondo
Posts: 11125
Joined: Fri Jun 06, 2008 3:23 pm

RE: Building TF for an AI Script

Post by PaxMondo »

ORIGINAL: AYAAD

Thanks Pax.

It's strange to me that in this NAVAL wargame we can specify air groups and LCUs, but not
specific ships in a script. [&:]

LCU's and Airgroups can be rebuilt if destroyed. Ships cannot. Specifying ships would make the AI acripts too rigid, as it is, just ship types are very risky ...
Pax
jmolyson
Posts: 185
Joined: Mon Nov 27, 2006 3:11 am

RE: Building TF for an AI Script

Post by jmolyson »

OK, I prepared a checklist for creating scripts. Comments and suggestions welcome.

Attachments
CreatingScripts.zip
(8.88 KiB) Downloaded 24 times
Joe
Post Reply

Return to “Scenario Design and Modding”