Question for Modders: Best Method to Transfer Data Between Scenarios?

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
Dereck
Posts: 3257
Joined: Mon Sep 06, 2004 10:43 pm
Location: Romulus, MI

Question for Modders: Best Method to Transfer Data Between Scenarios?

Post by Dereck »

Hi all,

I’m looking for some guidance from experienced modders on the cleanest way to move data from one scenario into another.

Specifically, I want to take the ship, ship class, aircraft, device, and LCU data from an older custom scenario and bring it into a newer scenario built on the modern map and database. I’m trying to avoid re‑entering everything manually if there’s a supported workflow for exporting/importing or otherwise transferring the data.

For those of you who have done large‑scale scenario work:
• What tools or methods do you use to export data from one scenario?
• Is there a standard workflow for importing that data into a different scenario number?
• Are there any pitfalls or steps I should be aware of when moving OOB elements between scenarios?

I’d appreciate hearing how others approach this, especially anyone who has modernized an older scenario or merged data across versions.

Thanks in advance.
PO2 US Navy (1980-1986);
USS Midway CV-41 (1981-1984)
Whidbey Island, WA (1984-1986)
Naval Reserve (1986-1992)
Cavalry Corp
Posts: 4262
Joined: Tue Sep 02, 2003 5:28 pm
Location: Sampford Spiney Devon UK

Re: Question for Modders: Best Method to Transfer Data Between Scenarios?

Post by Cavalry Corp »

Alas, you cannot port anything, but you have to open a scn (anything you like), do a save as new number, then type everything in yourself- gutting isn't it. This may be one reason there are not many big mods.

Cav.
User avatar
Skyros
Posts: 1572
Joined: Fri Sep 29, 2000 8:00 am
Location: Columbia SC

Re: Question for Modders: Best Method to Transfer Data Between Scenarios?

Post by Skyros »

I believe that once you create the new scenario by copying the old one, you can use witploadAE to export csv files from that scenario. You can modify those csv files then reimport them and update the scenario.

Instructions:

WITPloadAE version 9.0

This program will export the scenario database files for a scenario number to several CSV files.

As part of the export, a reference table CSV is generated showing the values for certain exported/editor fields.

In addition, it also provides the ability to import changes to these CSV files back into the scenario database files.

It is suggested that when creating a new scenario that you copy the original database files (wpa, wpl, wph, wpd, wpg, wpp, wpc and wps) to a new directory and modify them there. And then copy them back to the game’s scenario directory.

Do not modify any of the official scenarios (1-25) as this may impact your ability to apply patches in the future. If you want to change an official scenario, it is best to copy and rename them to a spare scenario number or load it by the Editor and then save it a spare slot.

Be careful. The import function does not check that the value entered for a field is within the game parameters. For example, assigning a weapon slot to a non-defined weapon device will not be picked up by the import.
The program will do simple byte checking - it will reject ("Value error") an attempt to load a value into a field that cannot hold that value.

Restrictions:
The first row (field names) must NOT be altered otherwise the fields cannot be imported.
The first column (UnitNumber) must always be first otherwise the program will not know which item number the fields apply to.
The scenario databases must exist in order for the import to function. If building a new scenario, copy the files for an existing scenario and rename them to your scenario number. Then import the CSV files for your new scenario.

Running the program:
The program is run from the command prompt.
Start->Run->cmd.exe

The CSV files are always created/read from the current directory.

Several parameters are defined for use with the program. The default parameters are:
a) Import the CSV files
b) To scenario #1 database
c) In the current directory.

To override the default case, the following options are available.

/e Exports to CSV format
/s### Scenario number (1-199) to import or export.
/d Path to the scenario files. In some window versions, the path must be defined in quotes (").
/i Use the default install path (“C:\Matrix Games\War in the Pacific Admiral's Edition\SCEN”).
/bX Use character X as a different delimiter than ',' between fields (eg /b; will use ';' rather than ','

Eamples:
To export scenario #15 in the current directory
witploadae /e /s15

To import scenario #15 in the current directory
witploadae /s15

To export scenario #15 from the default install directory
witploadae /e /s15 /i

To see options
witploadae /?


I hope that you find this program useful.

Michael
Australia
Cavalry Corp
Posts: 4262
Joined: Tue Sep 02, 2003 5:28 pm
Location: Sampford Spiney Devon UK

Re: Question for Modders: Best Method to Transfer Data Between Scenarios?

Post by Cavalry Corp »

OK neat so things are possible - good.
User avatar
Dereck
Posts: 3257
Joined: Mon Sep 06, 2004 10:43 pm
Location: Romulus, MI

Re: Question for Modders: Best Method to Transfer Data Between Scenarios?

Post by Dereck »

What about map differences? My scenario is pre 2015 so I'm sure it has an older map. If I create a NEW scenario bases off of a stock scenario provided with the game that the new scenario will be using a newer map version?
PO2 US Navy (1980-1986);
USS Midway CV-41 (1981-1984)
Whidbey Island, WA (1984-1986)
Naval Reserve (1986-1992)
User avatar
Skyros
Posts: 1572
Joined: Fri Sep 29, 2000 8:00 am
Location: Columbia SC

Re: Question for Modders: Best Method to Transfer Data Between Scenarios?

Post by Skyros »

If you are changing the actual map you will need to edit the hex data file. If just editing, adding, or delating bases the location csv can be edited and uploaded or use the AE Editor exe application.
User avatar
zebrazwo
Posts: 142
Joined: Sat Jul 01, 2023 3:35 pm
Location: Denmark

Re: Question for Modders: Best Method to Transfer Data Between Scenarios?

Post by zebrazwo »

And maybe consider using one of Andrews versions, updated or standard map. Updated is corrections to the map from 2009.

https://sites.google.com/view/witp-ae-m ... elease-map
Z
Post Reply

Return to “Scenario Design and Modding”