Tilesets
Location in the unpacked data: data\tilesets.txt
The tilesets file is one of the most important when modding TEIN, especially in regards to adding new areas/zones. The file dictates general information about a given area, but also defines many of the traits and aspects that will make an area unique (graphical elements, what music to use, palette, etc.).
Here is an example tileset taken from the game, ("The End" downward secret area tileset):
1xd { #1 bonus downward areas
area_name "The End"
area_label_frame 1
tile_graphics Tilecity
overlay_graphics Overlayscity
background_graphics bg2
palette 1
fx_shader reflectionripples
music [**hmk_secret_intro.ogg, hmk_secret_loop.ogg**]
ambience rain.ogg
stop_previous_music false
music_volume 1
ambience_volume 1
area_type normal
tile_particle_1 drip
npc_1 NPCD6
npc_2 NPC0
npc_3 none
}
Whilst this may seem complex, the syntax for a tileset can be broken down and represented as the following:
[**TILESET_NAME**] {
[**VARIABLE_NAME**] [VALUE]
...
}
The # followed by text, in The End example, is simply a comment and not interpreted/read by the game itself, hence why it was not added in the simplified syntax breakdown.
So, overall, the "tilesets.txt" file simply stores a series of tilesets that define properties, features, and aspects of the different zones in the game. Allowing for them to make use of different assets, music, NPCs, alternate graphics, particles, etc.
Contents
- Variables Overview - Details about the Area Name variable.
- Area Name - Details about the Area Label Frame variable.
- Area Label Frame - Details about the Area Type variable.
- Area Type - Details about the Tile Graphics variable.
- Tile Graphics - Details about the Overlay Graphics variable.
- Overlay Graphics - Details about the Background Graphics variable.
- Background Graphics - Details about the Foreground Graphics variable.
- Foreground Graphics - Details about the Palette variable.
- Palette - Details about the Music variable.
- Music - Details about the Ambience variable.
- Ambience - Details about the Music Volume variable.
- Music Volume - Details about the Ambience Volume variable.
- Ambience Volume - Details about the Stop Previous Music variable.
- Stop Previous Music - Details about the NPC variable.
- NPC - Details about the Art Alts. variable.
- Art Alts - Details about the Toxic Timer variable.
- Toxic Timer - Details about the Cart Intro PNG variable.
- Cart Intro PNG - Details about the Cart Intro Palette variable.