Page 1 of 1

Command line scenario editor

Posted: Mon Oct 03, 2005 11:18 pm
by Captain Cruft
Rather than wasting my time carping on about bugs or starting to make maps and not finishing them (one day ...) I have decided to actually do something useful.

The command line WitP scenario editor witpcmd will allow direct interactive and non-interactive editing of WitP scenario files. Functionality will be limited but extensible by use of batch files or other scripting mechanisms.

Anyway, it doesn't actually do anything yet but here is the help screen to give an idea:

Code: Select all

 Commands (case insensitive):-
 
  SCENARIO NUM - work with data for scenario NUM
  SHOW TABLE SLOTNUM|ALL - show data for a slot or complete table
    TABLE is one of aircraft, airgroup, device, leader, location, pilot, ship, ship_class
  SET TABLE SLOTNUM|ALL PARAM=value PARAM=value ...  - set values for a slot or complete table
    PARAM names are given by SHOW command
  SET TABLE SLOTNUM|ALL BLANK - set all values to 0 for a slot or complete table
  REFRESH AIRCRAFT - refresh all airgroup device data from the aircraft table
  REFRESH SHIPS - refresh all ship device data from the ship_class table
  HELP - print this message
  QUIT - quit program
 

Obviously there will be overlap with witpload, witpcheck and WitPExcel but we could always do with another way to skin the cat ...

If anyone has any ideas for additional simple commands that operate either on a single slot or entire table please speak up.