Difference between revisions of "Zaimoni's XCOM1 Editor"
Jump to navigation
Jump to search
(New page: 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 t...) |
m (categorizing) |
||
(10 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
[[Image:ZaiXcomSuite.0.1.zip|ZaiXcomSuite.0.1.zip]] | [[Image:ZaiXcomSuite.0.1.zip|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 | + | 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 | + | 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: | Usage: | ||
* Soldier.py : Soldier and battlescape editor. Intended to run from the savegame directory being edited: <code>..\Soldier.py ....</code> | * Soldier.py : Soldier and battlescape editor. Intended to run from the savegame directory being edited: <code>..\Soldier.py ....</code> | ||
* Base.py : Base editor. Intended to run from the savegame directory being edited: <code>..\Base.py ....</code> | * Base.py : Base editor. Intended to run from the savegame directory being edited: <code>..\Base.py ....</code> | ||
+ | * Transfer.py : Transfer editor. Intended to run from the savegame directory being edited: <code>..\Transfer.py ....</code> | ||
+ | * 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: <code>..\PrepareSWP.py</code> | * PrepareSWP.py : Prepares a battlescape savegame for turnswapping. Run from the savegame directory to be enabled: <code>..\PrepareSWP.py</code> | ||
* Alienturn.bat : Swaps a game from the human player to the alien player. Run from the main directory, e.g. <code>Alienturn.bat game_8</code> | * Alienturn.bat : Swaps a game from the human player to the alien player. Run from the main directory, e.g. <code>Alienturn.bat game_8</code> | ||
* Humanturn.bat : Swaps a game from the alien player to the human player. Run from the main directory, e.g. <code>Humanturn.bat game_8</code> | * Humanturn.bat : Swaps a game from the alien player to the human player. Run from the main directory, e.g. <code>Humanturn.bat game_8</code> | ||
+ | * XCOM1.py : some numerical utilities for tactical analysis. Run from the main directory as <code>python -i XCOM1.py</code> (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: <code>..\AutoClose.py</code> | ||
+ | <hr> | ||
+ | <b><tt>Base.py</tt></b> | ||
+ | |||
+ | <code>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.</code> | ||
+ | |||
+ | <b><tt>Soldier.py</tt></b> | ||
+ | |||
+ | <code>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.</code> | ||
+ | <hr>The shipped sort order is moderately useful if you want psi-weakings to soak reaction fire. | ||
+ | |||
+ | <b><tt>Transfer.py</tt></b> | ||
+ | |||
+ | <code>Supported subcommands for Transfer.py | ||
+ | |||
+ | fast_shipment: | ||
+ | forces all in-progress transfers to arrive at the next hour transition. Cheat.</code> | ||
+ | |||
+ | ==See Also== | ||
+ | [[User_talk:Zaimoni]] | ||
+ | |||
+ | [[Category:Enemy Unknown/UFO Defense]] |
Latest revision as of 03:16, 23 July 2013
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.