metadata.txt file defines metadata for maps, including music, weather, environment settings, and player spawn points. Each map has its own section.
File Format
Each map is defined by a section header with its map ID, followed by field definitions:Example Entries
Global Settings (Map 000)
Map ID[000] contains global game settings that apply to all maps.
Default wild Pokémon battle music.
Victory music effect after wild battles.
Default trainer battle music.
Victory music effect after trainer battles.
Music played when riding a bicycle.
Music played when surfing.
Male player character settings. Format:
Female player character settings. Same format as PlayerA.
Starting position when starting new game or blacking out. Format:
MapID,X,Y,DirectionDirection values: 2=Down, 4=Left, 6=Right, 8=UpMap-Specific Settings
Settings for individual maps (Map ID 1 and above).Environment Settings
Whether the map is outdoors. Affects day/night cycle.
Display location name when entering the map.
Whether the bicycle can be used on this map.
Forces bicycle use (Cycling Road).
Where player respawns after whiteout. Format:
MapID,X,YWeather conditions on the map. Format:
WeatherType,ChanceWeather types:Rain- RainStorm- Heavy rain with thunderSnow- SnowfallBlizzard- Heavy snowSandstorm- SandstormHeavyRain- Intense rainSun- Harsh sunlightFog- Foggy
Position on the region map. Format:
RegionID,X,YMap ID to warp to when diving underwater.
Map is dark and requires Flash to illuminate.
Map is part of Safari Zone.
Player snaps to edges when moving near them.
Map is a dungeon (affects escape behavior).
Battle background graphic name (without extension).Common values:
IndoorA,IndoorB,IndoorCCave,RockyForest,GrassSand,BeachWater,OceanElite
Wild battle music for this specific map (overrides global).
Trainer battle music for this specific map (overrides global).
Bicycle music for this specific map (overrides global).
Complete Examples
Outdoor Route
- Outdoor map with day/night
- Shows location name
- Position on region map
Town/City
- Outdoor town
- Shows location name
- Specific map position
Indoor Building
- Indoor (no Outdoor field)
- Custom battle background
- Healing spot set
- Still has map position for Town Map
Player’s House
- Simple indoor location
- Only needs map position
Cave Map
- Dark cave (needs Flash)
- Cave battle background
- Marked as dungeon
- Cannot use Escape Rope
Water Route
- Outdoor water route
- Water battle background
- Cannot use bicycle
- Shows area name
Special Location
- Dark dungeon
- Rocky battle background
- No bicycle
- Custom wild battle music
Global Settings Example
Weather Examples
Rain Route
Rain Route
Snowy Mountain
Snowy Mountain
Desert
Desert
Map Position Guide
TheMapPosition field places your location on the Town Map/Fly screen:
- RegionID: Which region map (usually 0 for main region)
- X: Horizontal position on map
- Y: Vertical position on map
Music Files: All music file references (BGM, ME) should match filenames in your Audio/BGM and Audio/ME folders, without the file extension.
Battle Backgrounds: Battle background names must match files in Graphics/Battlebacks/ folder. Use the filename without extension.
Comments: Use
# for comments to document your maps. Comments are ignored by the game.