View Single Post
Old 05-03-07, 04:46 PM   #1
mcoca
Loader
 
Join Date: Apr 2005
Location: Madrid, Spain
Posts: 86
Downloads: 0
Uploads: 0
Default [REL] Automated Campaign Editor v0.4

This is the 0.3 release of the SH Batch Editor, a tool for making automated changes to the campaign files. Please consider it a beta release.

If you want to make some extensive changes to the SH4 campaign, but don't spend hours in the in-game editor, this is your tool. Just enter the values you want to set, and (if needed) the conditions a randomly generated group must fulfill to be modified, run the program, and the entire campaign will have been modified.

The changes to be made are specified as code snippets in the Python programming language (www.python.org), but the program has been designed to make it possible to use it with only a minimum of programming knowledge.

At the moment, the program only supports editing random generated groups (including contents and waypoints, so you can add or remove ships from them), but scripted elements, bases, etc, should not be affected in any way by running it. But, just in case, always make backups.

The program is available at:

http://downloads.sourceforge.net/shb...editor-0.4.zip

It is written in the Java programming language so you will need the Java Virtual Machine (version 1.5 or later), available at http://java.sun.com/ (but likely to be already installed on your computer).

This program is released under the GNU General Public License, and the linked file includes full source code for the technically inclined.

The README.txt file includes all instructions for running simple changes. If you know some programming and want to try more complex changes, in the "samples" folder of the distribution you can find the script to reproduce the changes I'm currently using in my campaign.

Finally, I really don't know how much further I will be able to develop this. That's one of the reasons for releasing it as Free Software, so that everybody who is interested can continue developing it should I no longer have time or (let's face it) interest. If anybody wants to contribute, I sure could use some help.

Hope you enjoy this.

Changes in v 0.4
  • Added option to run script directly from file.
  • Added group cloning.
  • Fixed cargoInt and cargoExt getters. Now it's internalCargo and externalCargo, as per the setters.
  • Allow logging from scripts.
  • Added Yanaran's fix to zig-zag code.
  • Fixed dateline heading and offset bugs.
Changes in v0.3:
  • Added "Output" field to GUI.
  • Added init.py initialization file.
  • Added waypoint length and heading read-only attributes.
  • Changed Waypoint loop attribute to take a Waypoint object.
  • Added sample zig-zag code to init.py

Last edited by mcoca; 06-13-07 at 05:15 PM. Reason: New release
mcoca is offline   Reply With Quote