| name | description |
|---|---|
| asset_and_tileset_compilation | Instructions for updating tilesets (`#wizsavetiledata`), running TileSetCompiler, and managing FMOD sound set files. |
👉 This skill guides you through the process of generating updated tile data, compiling custom tilesets using the GnollHackTileSet repository, and deploying sound banks.
🖼️ Tileset Compilation Process
Whenever you add new monsters, objects, or terrain that require graphical representation, you must update the tileset.
1. Generate tile_definition.csv
- Open
win\win32\vs\GnollHack.slnin Visual Studio. - Ensure you have temporary or existing tilesets (
gnollhack_64x96_transparent_32bits.png,-2.png, and-3.png) placed inwin\win32\tileset. - Set the GnollHackW project's debugging properties: Working Directory to
$(BinDir), Command Arguments to-D -u wizard. - Run GnollHackW in debug mode.
- In the game, type the extended command
#wizsavetiledata. - This generates
tile_definition.csvinbin\Debug\x64.
2. Compile the Tileset
- Copy the generated
tile_definition.csvto the root of the GnollHackTileSet repository. - Open the GnollHackTileSet solution and run the TileSetCompiler project.
- The compiler will generate updated
gnollhack_64x96_transparent_32bits.png,gnollhack_64x96_transparent_32bits-2.png, andgnollhack_64x96_transparent_32bits-3.pngfiles in the repository root.
3. Deploy the Tileset
- Copy the newly generated
.pngtilesets back towin\win32\tilesetin the GnollHack repository. - Rebuild the
GnollHack.slnsolution.- The
copytilesetdroid.projMSBuild target will automatically copy and rename these files to.ghpngformat across all target platform directories inGnollHackM(e.g.,GnollHackM\Platforms\Android\tileset\).
- The
- Rebuild
GnollHackM.slnto bundle the updated assets into the modern client.
🎵 FMOD Sound Banks
- Pre-compiled sound banks (
.bankfiles) should be placed inwin\win32\bank\Desktoporwin\win32\bank\Mobile. - These files are typically maintained in the separate GnollHackSoundSet repository and copied over.
- The build process automatically copies them to the appropriate output directories during compilation.