Page 1 of 1

Editor suggestion

Posted: Fri Sep 24, 2004 2:03 pm
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.

RE: Editor suggestion

Posted: Tue Nov 02, 2004 3:47 am
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.

RE: Editor suggestion

Posted: Sat Nov 06, 2004 12:45 pm
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

RE: Editor suggestion

Posted: Sat Nov 06, 2004 1:09 pm
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

RE: Editor suggestion

Posted: Sat Nov 06, 2004 2:58 pm
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

RE: Editor suggestion

Posted: Sun Nov 07, 2004 1:38 am
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