Author: antglobes Purpose: "Automate the building of texture definition xml files for Stalker Anomaly"
There are 2 recommended ways of installing this program
pip- run the follwing in a shell
git clone https://github.com/antglobes/ptxpython -m venv .venv- Windows:
& .venv/Scripts/activate.ps1or Linux:. .venv/Scripts/activate pip install -e
ptx.1.x.x.msi(Windows only, see Building for other platforms)- Download the latest msi from Releases
- Click "Next"
- Click "I accept the terms in the License Agreement" and "Next"
- Select "Install for all users of this machine", the installer requires administrator privileges
- Click "Next"
- Select Installation folder and Click "Next"
- Click "Install"
- Select "Yes" when asked for admin privileges
- Click "Finish"
- briefcase is required, it's a python lib that's used to create a standlone installer native to your os.
pip install briefcase- run the following commands sequentially and it should produce an executable in a folder called
dist briefcase create(Downloads a Python interpreter and installs dependancies)briefcase build(Compiles PTX)briefcase package(Produces a.pkgfor macOS,.msifor Windows, For linux it will create the distro specific system package i.e.deb,.rpmetc)
- There are 2 ways of using this program
- Print to console:
ptx -i stalker_textures.psd - Write to xml file:
ptx -i stalker_textures.psd -o ui_stalker_texture_descr.xmla. if the xml file is verified as a valid texture defintion file and file mode is append or not specified then whatever is found in the psd will be appendened b.otherwise if the xml file is new or overwrite an existing.
- To organise texture id's you can also prefix or suffix each texture id with -p (prefix) or -s (suffix), these options aren't mutually exclusive.
- To get more information run
-dbg - To get specific infomation about each option do
ptx --help
If wanting to add to another program or use for an addon feel free, just credit me :)