Zaimoni's XCOM1 Editor

From UFOpaedia
Revision as of 04:35, 3 July 2008 by Zaimoni (talk | contribs) (added help summary)
Jump to navigation Jump to search

File:ZaiXcomSuite.0.1.zip

This set of DOS batch files and Python 2.5.x scripts is a command-line savegame editor and turn-swapping utility. You will also need the (http://www.python.org/) Python scripting language installed. Unzip into c:\mps\ufo (will need editing if the XCOM1 install is elsewhere)

The Python scripts may work with later versions of Python (tested with 2.5.0 and 2.5.1). They will not work with Python 2.4.x due to incompatible changes in one of the modules used, and presumably will not work with earlier versions either.

Usage:

  • Soldier.py : Soldier and battlescape editor. Intended to run from the savegame directory being edited: ..\Soldier.py ....
  • Base.py : Base editor. Intended to run from the savegame directory being edited: ..\Base.py ....
  • PrepareSWP.py : Prepares a battlescape savegame for turnswapping. Run from the savegame directory to be enabled: ..\PrepareSWP.py
  • Alienturn.bat : Swaps a game from the human player to the alien player. Run from the main directory, e.g. Alienturn.bat game_8
  • Humanturn.bat : Swaps a game from the alien player to the human player. Run from the main directory, e.g. Humanturn.bat game_8

AutoClose.py may also be useful for repairing savefiles with UFO doors stuck open. Run from the savegame directory to be fixed: ..\AutoClose.py


Base.py

Supported subcommands for Base.py

unbuild_dirt:
 sets days-to-completion for dirt to 255/-1 (never) at all bases.  This bypasses a bug.
overview Name:
 lists all items in inventory at base Name.

Soldier.py

Supported subcommands for Soldier.py

sort:
 sorts soldiers according to the function SoldierCMP.
 Soldiers in transit will be left in place to prevent eliciting gross bugs.
rename OldName NewName:
 renames soldier from oldname to newname.  NewName will be truncated to fit, if needed.
swap Name1 Name2:
 swaps the soldiers named Name1 and Name2.
max_recruit Name:
 sets recruit stats for Name to maximum.  This is technically a cheat.
list
 lists soldier names in internal order.
battlescape
 military intelligence overview...vaguely like XCOMUtil DIS:2
facing [unitref index] [facing]

The shipped sort order is moderately useful if you want psi-weakings to soak reaction fire.