Zaimoni's XCOM1 Editor

From UFOpaedia
Revision as of 18:37, 31 March 2012 by Zaimoni (talk | contribs)
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 should work with Python 2.6.x and 2.7.x as well.

  • They will not work with Python 2.4.x due to undocumented incompatible changes in the struct module, and presumably will not work with earlier versions either.
  • They will not work with Python 3 due to pointless, gratuitous changes in the Python language, including but not limited to renaming xrange to range.

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 ....
  • Transfer.py : Transfer editor. Intended to run from the savegame directory being edited: ..\Transfer.py ....
  • Omniview.py : lights whole map, reveals whole map, renders all aliens visible.
  • 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
  • XCOM1.py : some numerical utilities for tactical analysis. Run from the main directory as python -i XCOM1.py (it's meant to be used in interactive mode).

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.
fast_construction:
 forces all in-construction facilities to complete at next midnight.  Cheat.
instant_construction:
 forces all in-construction facilities to complete instantly.  Cheat.  Not smart
 enough to handle radars or hyperwave detectors.
overview Name:
 lists all items in inventory at base Name.

Soldier.py

Supported subcommands for Soldier.py

list
 lists soldier names in internal order.
sort:
 sorts soldiers according to the function SOLDIERS_CMP.
 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.  Cheat.
inactive Name:
 reduces mission count and score for Name by 1.  Cheat.
battlescape
 military intelligence overview...vaguely like XCOMUtil DIS:2
facing [unitref index] [facing]
 changes facing of target index
transpose [unitref index] [unitref index]
 transposes two units on the battlescape.  Unreliable in the presence of
 large units.

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

Transfer.py

Supported subcommands for Transfer.py

fast_shipment:
 forces all in-progress transfers to arrive at the next hour transition.  Cheat.

See Also

User_talk:Zaimoni