Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PTX (PSD to XML)

Description

Author: antglobes Purpose: "Automate the building of texture definition xml files for Stalker Anomaly"

Installation

There are 2 recommended ways of installing this program

  1. pip
    • run the follwing in a shell
    • git clone https://github.com/antglobes/ptx
    • python -m venv .venv
    • Windows: & .venv/Scripts/activate.ps1 or Linux: . .venv/Scripts/activate
    • pip install -e
  2. 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"

Building

  • 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 .pkg for macOS, .msi for Windows, For linux it will create the distro specific system package i.e .deb, .rpm etc)

Usage

  • There are 2 ways of using this program
  1. Print to console: ptx -i stalker_textures.psd
  2. Write to xml file: ptx -i stalker_textures.psd -o ui_stalker_texture_descr.xml a. 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

Extra

If wanting to add to another program or use for an addon feel free, just credit me :)

About

Photoshop to Xml. Automating building xml texture defs for Stalker Anomaly .

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages