Generate SVG's of the apparel colour scheme icons in GTFO.
As prefab names and in-game labels do not match, multiple steps are required to extract the necessary files and match with their in-game label.
This process will have to be run whenever GTFO's palettes are updated. The path provided may also change between versions of GTFO and the tooling below. These files have not been included within this repository as they are copyrighted.
To export the color data:
- Install and launch AssetRipper
- Check "Skip StreamingAssets folder"
- Press File → Open Folder
- Select the installation location of GTFO:
C:\Program Files (x86)\Steam\steamapps\common\GTFO
- Once loaded, select
sharedassets3.assets
→GameObjects
→Palette002Hackett
- Press Export → Export all Files of Selected Type
- Extract to this project's directory
- Once complete, a new folder will be created titled
GTFO
.
For some reason, extracting the files directly from sharedassets3.assets
will not export the necessary color definitions.
To export the palette name data:
- Install and launch r2modman
- Within r2modman
- Install the BepInExPack GTFO and MTFO packages
- Press Start modded to create the necessary config files.
- Once GTFO has launched successfully, quit the game
- Browse to:
%USERPROFILE%\AppData\Roaming\r2modmanPlus-local\GTFO\profiles\Default\BepInEx\config
- Edit
MTFO.ini
and setDump GameData
totrue
- Edit
- Within r2modman:
- Re-launch the game by pressing Start modded
- Once GTFO has launched successfully, quit the game
- Browse to:
%USERPROFILE%\AppData\Roaming\r2modmanPlus-local\GTFO\profiles\Default\BepInEx\GameData-Dump\
- Locate and copy the file
GameData_VanityItemsTemplateDataBlock_bin.json
into this project's directory.
- Locate and copy the file
Extract the palette as a JSON:
python extract_palette.py
Generate the SVG icons:
python generate_icons.py
After export, unnecessary files can be deleted with:
git clean -f -X .\GTFO\