Note: this tutorial assumes that the porytiles executable exists on your system path. It also assumes your pokeemerald project is stored at the $HOME location. If your executable or project lives elsewhere, you'll need to change those paths in the commands below.
This tutorial is a simplified version of the tutorials contained at Compiling A Primary Tileset and Compiling A Secondary Tileset. Check those pages for a more comprehensive look at these topics.
-
Open a
pokeemeraldproject (pokefireredandpokerubyare also supported via command line options) in Porymap. Porytiles supports both dual-layer-tile and triple-layer-tile project configurations. -
In Porymap's menu bar, select
Tools -> New Tileset. Create a primary set calledPorytilesPrimaryTest. -
In Porymap's leftside panel, right click one of the map groups and create a new map called
PorytilesTestMap. For this map's primary tileset, selectgTileset_PorytilesPrimaryTest. Then save the map. -
Run one of the following commands, depending on the layer type of your project.
Dual layer:
porytiles compile-primary -Wall -dual-layer -o $HOME/pokeemerald/data/tilesets/primary/porytiles_primary_test Resources/Examples/simple_primary_1 Resources/Examples/metatile_behaviors.h
Triple layer:
porytiles compile-primary -Wall -o $HOME/pokeemerald/data/tilesets/primary/porytiles_primary_test Resources/Examples/simple_primary_1 Resources/Examples/metatile_behaviors.h
-
In Porymap, select
File -> Reload Project. -
The metatile picker on the right should now show a basic tileset! Start mapping on your new map, and then save.
-
Open one of the layer PNGs in
Resources/Examples/simple_primary_1and edit it. Re-run the command from Step 4, and then reload Porymap again like in Step 5. You should see your changes reflected in both the map and the metatile picker. -
You can stop here and enjoy! Or, if you want to bring in a secondary set as well, please read on.
-
In Porymap, select
Tools -> New Tileset. Create a secondary set calledPorytilesSecondaryTest. -
In Porymap, make sure
PorytilesTestMapis open. Use the tileset selector to changePorytilesTestMap's secondary tileset togTileset_PorytilesSecondaryTest. Then save the map. -
Again, run the command that corresponds to your project's layer type.
Dual layer:
porytiles compile-secondary -Wall -dual-layer -o $HOME/pokeemerald/data/tilesets/secondary/porytiles_secondary_test Resources/Examples/simple_secondary_1 Resources/Examples/simple_primary_1 Resources/Examples/metatile_behaviors.h
Triple layer:
porytiles compile-secondary -Wall -o $HOME/pokeemerald/data/tilesets/secondary/porytiles_secondary_test Resources/Examples/simple_secondary_1 Resources/Examples/simple_primary_1 Resources/Examples/metatile_behaviors.h
-
In Porymap, select
File -> Reload Project. -
Your map now has a custom primary and secondary tileset! Feel free to keep editing these sets to see what Porytiles can do!
Starting Out
Compilation
Decompilation
Decompiling A Secondary Tileset
Advanced Topics
Makefile Integration
Target Base Game and Fieldmap Overrides
Other Useful Options
Tileset Optimization