Editor suggestion

Please post here for questions and discussion about scenario design and the game editor for WITP.

Moderators: wdolson, Don Bowen, mogami

Post Reply
Damien Thorn
Posts: 1107
Joined: Thu Jul 24, 2003 3:20 am

Editor suggestion

Post by Damien Thorn »

It would be nice to have a button on the edit ship class and edit airplane screens that, when pushed, would update all ships of that ship class or all plane groups of that plane class to have the same items as the class that was edited. That would allow, for example, a person to add a radar to a ship class and then the radar would show up on all ships of that class. As it is, you still have to go through every ship and add the rader manually, which is a pain.
The reason I want a button instead of have it update automatically is because you might want some ships to have unique loadouts that differ from the class by a little bit.
pad152
Posts: 2835
Joined: Sun Apr 23, 2000 8:00 am

RE: Editor suggestion

Post by pad152 »

The way to do this is to first edit the ship class, then go to the ships and change the class to something else and then change it back to the original class, this will refresh the ship with data with the newly changed ship class.
User avatar
michaelm75au
Posts: 12463
Joined: Sat May 05, 2001 8:00 am
Location: Melbourne, Australia

RE: Editor suggestion

Post by michaelm75au »

I was thinking about writing a small program to refresh ship/air groups with changes due to changes to the class or aircraft IDs.
In other words: if a class was updated, the program would go through the ship database and update any ships with the related class entries there.
This might speed up things.
Any takers??

Michael
Michael
User avatar
tanjman
Posts: 668
Joined: Sat Jan 26, 2002 10:00 am
Location: Griffin, GA

RE: Editor suggestion

Post by tanjman »

Michael,

I am. One for aircraft/air groups and LCU TO&E/LCU's would also be nice.
ORIGINAL: michaelm

I was thinking about writing a small program to refresh ship/air groups with changes due to changes to the class or aircraft IDs.
In other words: if a class was updated, the program would go through the ship database and update any ships with the related class entries there.
This might speed up things.
Any takers??

Michael
Gunner's Mate: A Boatswain's Mate with a hunting license.
User avatar
michaelm75au
Posts: 12463
Joined: Sat May 05, 2001 8:00 am
Location: Melbourne, Australia

RE: Editor suggestion

Post by michaelm75au »

I thought that the LCU/formation one might cause some problems as several LCU tended to start out over-quota from their TOE. But I will add it and it will be up to the modder to decide if they want to use it.

Attached is a version to do class/ship and air/group weapon device refresh. Note that it only updates the fields in weapon slots defined in the class record, it leaves the other ship fields (eg dis) alone.
The program (witprfsh.exe) must be run in the same directory as the files requiring to be updated. It also produces a report file of the items changed.
Other parameters are /s <scenario number>
/a <aircraft id>
/c <class id>

It also wont update scenario files#1-25. These files would need to be renumbered to get the program to change them.

[Attachment deleted - see next post for latest copy]
=====
Darn daylight savings. Its 2am here and my eyes are glazing over or something and typing is getting bad..[>:]
Michael
Michael
User avatar
michaelm75au
Posts: 12463
Joined: Sat May 05, 2001 8:00 am
Location: Melbourne, Australia

RE: Editor suggestion

Post by michaelm75au »

Added option /t <TOE slot number> so that unit device table will be updated to reflect TOE.

The report now shows the old values of units before the refresh.

Remember always backup your work before making major changes![X(]
[D/L file and rename to .ZIP]

Michael
Attachments
witprfsh.txt
(16.33 KiB) Downloaded 28 times
Michael
Post Reply

Return to “Scenario Design”