Skip to content
This repository was archived by the owner on Feb 5, 2025. It is now read-only.

Generate SVG's of the apparel colour scheme icons in GTFO.

Notifications You must be signed in to change notification settings

lachlanmcdonald/gtfo-apparel-icons

Repository files navigation

gtfo-apparel-icons

Generate SVG's of the apparel colour scheme icons in GTFO.

Setup

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:

  1. Install and launch AssetRipper
  2. Check "Skip StreamingAssets folder"
  3. Press FileOpen Folder
  4. Select the installation location of GTFO:
    C:\Program Files (x86)\Steam\steamapps\common\GTFO
  5. Once loaded, select sharedassets3.assetsGameObjectsPalette002Hackett
  6. Press ExportExport all Files of Selected Type
  7. Extract to this project's directory
  8. 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:

  1. Install and launch r2modman
  2. Within r2modman
    1. Install the BepInExPack GTFO and MTFO packages
    2. Press Start modded to create the necessary config files.
    3. Once GTFO has launched successfully, quit the game
  3. Browse to: %USERPROFILE%\AppData\Roaming\r2modmanPlus-local\GTFO\profiles\Default\BepInEx\config
    • Edit MTFO.ini and set Dump GameData to true
  4. Within r2modman:
    1. Re-launch the game by pressing Start modded
    2. Once GTFO has launched successfully, quit the game
  5. 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.

Generate

Extract the palette as a JSON:

python extract_palette.py

Generate the SVG icons:

python generate_icons.py

Clean-up

After export, unnecessary files can be deleted with:

git clean -f -X .\GTFO\

About

Generate SVG's of the apparel colour scheme icons in GTFO.

Topics

Resources

Stars

Watchers

Forks

Languages