Made map names be added to map_metadata.txt when writing it if possible

This commit is contained in:
Maruno17
2021-11-21 23:11:19 +00:00
parent d93d73caa8
commit a5f91f62ea
2 changed files with 82 additions and 12 deletions

View File

@@ -870,6 +870,7 @@ module Compiler
map_name = (map_infos && map_infos[map_data.id]) ? map_infos[map_data.id].name : nil map_name = (map_infos && map_infos[map_data.id]) ? map_infos[map_data.id].name : nil
if map_name if map_name
f.write(sprintf("[%03d] # %s\r\n", map_data.id, map_name)) f.write(sprintf("[%03d] # %s\r\n", map_data.id, map_name))
f.write("Name = #{map_name}\r\n") if nil_or_empty?(map_data.real_name)
else else
f.write(sprintf("[%03d]\r\n", map_data.id)) f.write(sprintf("[%03d]\r\n", map_data.id))
end end

View File

@@ -1,80 +1,101 @@
# See the documentation on the wiki to learn how to edit this file. # See the documentation on the wiki to learn how to edit this file.
#------------------------------- #-------------------------------
[001] # Intro [001] # Intro
Name = Intro
#------------------------------- #-------------------------------
[002] # Lappet Town [002] # Lappet Town
Name = Lappet Town
Outdoor = true Outdoor = true
ShowArea = true ShowArea = true
MapPosition = 0,13,12 MapPosition = 0,13,12
BattleBack = field BattleBack = field
#------------------------------- #-------------------------------
[003] # \PN's house [003] # \PN's house
Name = \PN's house
HealingSpot = 2,8,8 HealingSpot = 2,8,8
MapPosition = 0,13,12 MapPosition = 0,13,12
#------------------------------- #-------------------------------
[004] # Pokémon Lab [004] # Pokémon Lab
Name = Pokémon Lab
ShowArea = false ShowArea = false
MapPosition = 0,13,12 MapPosition = 0,13,12
#------------------------------- #-------------------------------
[005] # Route 1 [005] # Route 1
Name = Route 1
Outdoor = true Outdoor = true
ShowArea = true ShowArea = true
MapPosition = 0,13,11 MapPosition = 0,13,11
BattleBack = field BattleBack = field
#------------------------------- #-------------------------------
[006] # Kurt's house [006] # Kurt's house
Name = Route 1
MapPosition = 0,13,11 MapPosition = 0,13,11
#------------------------------- #-------------------------------
[007] # Cedolan City [007] # Cedolan City
Name = Cedolan City
Outdoor = true Outdoor = true
ShowArea = true ShowArea = true
MapPosition = 0,13,10 MapPosition = 0,13,10
MapSize = 2,11 MapSize = 2,11
#------------------------------- #-------------------------------
[008] # Daisy's house [008] # Daisy's house
Name = Lappet Town
MapPosition = 0,13,12 MapPosition = 0,13,12
#------------------------------- #-------------------------------
[009] # Cedolan City Poké Center [009] # Cedolan City Poké Center
Name = Cedolan City
HealingSpot = 8,17,11 HealingSpot = 8,17,11
MapPosition = 0,14,10 MapPosition = 0,14,10
#------------------------------- #-------------------------------
[010] # Cedolan Gym [010] # Cedolan Gym
Name = Cedolan City
MapPosition = 0,13,10 MapPosition = 0,13,10
BattleBack = indoor3 BattleBack = indoor3
Environment = Rock Environment = Rock
Flags = DisableBoxLink Flags = DisableBoxLink
#------------------------------- #-------------------------------
[011] # Pokémon Institute [011] # Pokémon Institute
Name = Cedolan City
MapPosition = 0,14,10 MapPosition = 0,14,10
#------------------------------- #-------------------------------
[012] # Cedolan City Condo [012] # Cedolan City Condo
Name = Cedolan City
MapPosition = 0,14,10 MapPosition = 0,14,10
#------------------------------- #-------------------------------
[013] # Game Corner [013] # Game Corner
Name = Cedolan City
MapPosition = 0,14,10 MapPosition = 0,14,10
#------------------------------- #-------------------------------
[014] # Cedolan Dept. 1F [014] # Cedolan Dept. 1F
Name = Cedolan City
MapPosition = 0,13,10 MapPosition = 0,13,10
#------------------------------- #-------------------------------
[015] # Cedolan Dept. 2F [015] # Cedolan Dept. 2F
Name = Cedolan City
MapPosition = 0,13,10 MapPosition = 0,13,10
#------------------------------- #-------------------------------
[016] # Cedolan Dept. 3F [016] # Cedolan Dept. 3F
Name = Cedolan City
MapPosition = 0,13,10 MapPosition = 0,13,10
#------------------------------- #-------------------------------
[017] # Cedolan Dept. 4F [017] # Cedolan Dept. 4F
Name = Cedolan City
MapPosition = 0,13,10 MapPosition = 0,13,10
#------------------------------- #-------------------------------
[018] # Cedolan Dept. 5F [018] # Cedolan Dept. 5F
Name = Cedolan City
MapPosition = 0,13,10 MapPosition = 0,13,10
#------------------------------- #-------------------------------
[019] # Cedolan Dept. Rooftop [019] # Cedolan Dept. Rooftop
Name = Cedolan City
MapPosition = 0,13,10 MapPosition = 0,13,10
#------------------------------- #-------------------------------
[020] # Cedolan Dept. Elevator [020] # Cedolan Dept. Elevator
Name = Cedolan City
MapPosition = 0,13,10 MapPosition = 0,13,10
#------------------------------- #-------------------------------
[021] # Route 2 [021] # Route 2
Name = Route 2
Outdoor = true Outdoor = true
ShowArea = true ShowArea = true
Weather = Rain,100 Weather = Rain,100
@@ -83,24 +104,30 @@ BattleBack = field
MapSize = 1,11 MapSize = 1,11
#------------------------------- #-------------------------------
[023] # Lerucean Town [023] # Lerucean Town
Name = Lerucean Town
Outdoor = true Outdoor = true
ShowArea = true ShowArea = true
MapPosition = 0,15,8 MapPosition = 0,15,8
#------------------------------- #-------------------------------
[024] # Lerucean Town Poké Center [024] # Lerucean Town Poké Center
Name = Lerucean Town
HealingSpot = 23,11,15 HealingSpot = 23,11,15
MapPosition = 0,15,8 MapPosition = 0,15,8
#------------------------------- #-------------------------------
[025] # Lerucean Town Mart [025] # Lerucean Town Mart
Name = Lerucean Town
MapPosition = 0,15,8 MapPosition = 0,15,8
#------------------------------- #-------------------------------
[026] # Pokémon Fan Club [026] # Pokémon Fan Club
Name = Lerucean Town
MapPosition = 0,15,8 MapPosition = 0,15,8
#------------------------------- #-------------------------------
[027] # Pokémon Day Care [027] # Pokémon Day Care
Name = Lerucean Town
MapPosition = 0,15,8 MapPosition = 0,15,8
#------------------------------- #-------------------------------
[028] # Natural Park [028] # Natural Park
Name = Natural Park
Outdoor = true Outdoor = true
ShowArea = true ShowArea = true
MapPosition = 0,16,8 MapPosition = 0,16,8
@@ -108,13 +135,16 @@ BattleBack = field
Flags = MossRock Flags = MossRock
#------------------------------- #-------------------------------
[029] # Natural Park Entrance [029] # Natural Park Entrance
Name = Natural Park
Bicycle = true Bicycle = true
MapPosition = 0,16,8 MapPosition = 0,16,8
#------------------------------- #-------------------------------
[030] # Natural Park Pavillion [030] # Natural Park Pavillion
Name = Natural Park
MapPosition = 0,16,8 MapPosition = 0,16,8
#------------------------------- #-------------------------------
[031] # Route 3 [031] # Route 3
Name = Route 3
Outdoor = true Outdoor = true
ShowArea = true ShowArea = true
MapPosition = 0,14,6 MapPosition = 0,14,6
@@ -122,44 +152,52 @@ BattleBack = field
MapSize = 2,1101 MapSize = 2,1101
#------------------------------- #-------------------------------
[034] # Ice Cave [034] # Ice Cave
Name = Route 3
Bicycle = true Bicycle = true
MapPosition = 0,15,6 MapPosition = 0,15,6
BattleBack = cave1 BattleBack = cave1
Environment = Cave Environment = Cave
Flags = IceRock Flags = IceRock
#------------------------------- #-------------------------------
[035] # Ingido Plateau [035] # Ingido Plateau outside
Name = Ingido Plateau
Outdoor = true Outdoor = true
ShowArea = true ShowArea = true
MapPosition = 0,13,6 MapPosition = 0,13,6
#------------------------------- #-------------------------------
[036] # Pokémon League [036] # Pokémon League entrance
Name = Ingido Plateau
HealingSpot = 35,17,7 HealingSpot = 35,17,7
MapPosition = 0,13,6 MapPosition = 0,13,6
#------------------------------- #-------------------------------
[037] # Pokémon League [037] # Pokémon League room 1
Name = Ingido Plateau
MapPosition = 0,13,6 MapPosition = 0,13,6
BattleBack = elite1 BattleBack = elite1
Flags = DisableBoxLink Flags = DisableBoxLink
#------------------------------- #-------------------------------
[038] # Hall of Fame [038] # Hall of Fame
Name = Ingido Plateau
MapPosition = 0,13,6 MapPosition = 0,13,6
Flags = DisableBoxLink Flags = DisableBoxLink
#------------------------------- #-------------------------------
[039] # Route 4 [039] # Route 4
Name = Route 4
Outdoor = true Outdoor = true
ShowArea = true ShowArea = true
MapPosition = 0,11,6 MapPosition = 0,11,6
BattleBack = field BattleBack = field
MapSize = 2,11 MapSize = 2,11
#------------------------------- #-------------------------------
[040] # Route 4 [040] # Route 4 Cycling Road
Name = Route 4
Outdoor = true Outdoor = true
ShowArea = true ShowArea = true
BicycleAlways = true BicycleAlways = true
MapPosition = 0,11,6 MapPosition = 0,11,6
#------------------------------- #-------------------------------
[041] # Route 5 [041] # Route 5
Name = Route 5
Outdoor = true Outdoor = true
ShowArea = true ShowArea = true
BicycleAlways = true BicycleAlways = true
@@ -167,23 +205,27 @@ MapPosition = 0,11,7
MapSize = 1,111 MapSize = 1,111
#------------------------------- #-------------------------------
[044] # Route 6 [044] # Route 6
Name = Route 6
Outdoor = true Outdoor = true
ShowArea = true ShowArea = true
MapPosition = 0,11,10 MapPosition = 0,11,10
BattleBack = field BattleBack = field
MapSize = 2,11 MapSize = 2,11
#------------------------------- #-------------------------------
[045] # Route 6 [045] # Route 6 Cycling Road
Name = Route 6
Outdoor = true Outdoor = true
ShowArea = true ShowArea = true
BicycleAlways = true BicycleAlways = true
MapPosition = 0,11,10 MapPosition = 0,11,10
#------------------------------- #-------------------------------
[046] # Cycling Road gate [046] # Route 4 Cycling Road gate
Name = Route 4
Bicycle = true Bicycle = true
MapPosition = 0,12,6 MapPosition = 0,12,6
#------------------------------- #-------------------------------
[047] # Route 7 [047] # Route 7
Name = Route 7
Outdoor = true Outdoor = true
ShowArea = true ShowArea = true
Weather = Rain,0 Weather = Rain,0
@@ -192,14 +234,16 @@ BattleBack = rocky
MapSize = 2,11 MapSize = 2,11
Environment = Rock Environment = Rock
#------------------------------- #-------------------------------
[049] # Rock Cave [049] # Rock Cave 1F
Name = Route 7
Bicycle = true Bicycle = true
MapPosition = 0,16,10 MapPosition = 0,16,10
BattleBack = cave1 BattleBack = cave1
Environment = Cave Environment = Cave
Flags = Magnetic Flags = Magnetic
#------------------------------- #-------------------------------
[050] # Rock Cave [050] # Rock Cave B1F
Name = Route 7
Bicycle = true Bicycle = true
MapPosition = 0,16,10 MapPosition = 0,16,10
DarkMap = true DarkMap = true
@@ -208,6 +252,7 @@ Environment = Cave
Flags = Magnetic Flags = Magnetic
#------------------------------- #-------------------------------
[051] # Dungeon [051] # Dungeon
Name = Route 7
Bicycle = true Bicycle = true
MapPosition = 0,16,10 MapPosition = 0,16,10
Dungeon = true Dungeon = true
@@ -216,71 +261,88 @@ Environment = Cave
Flags = Magnetic Flags = Magnetic
#------------------------------- #-------------------------------
[052] # Battle Frontier [052] # Battle Frontier
Name = Battle Frontier
Outdoor = true Outdoor = true
ShowArea = true ShowArea = true
MapPosition = 0,17,10 MapPosition = 0,17,10
#------------------------------- #-------------------------------
[053] # Battle Frontier Poké Center [053] # Battle Frontier Poké Center
Name = Battle Frontier
HealingSpot = 52,17,14 HealingSpot = 52,17,14
MapPosition = 0,17,10 MapPosition = 0,17,10
#------------------------------- #-------------------------------
[054] # Battle Frontier Mart [054] # Battle Frontier Mart
Name = Battle Frontier
MapPosition = 0,17,10 MapPosition = 0,17,10
#------------------------------- #-------------------------------
[055] # Battle Tower [055] # Battle Tower
Name = Battle Frontier
HealingSpot = 52,30,10 HealingSpot = 52,30,10
MapPosition = 0,17,10 MapPosition = 0,17,10
#------------------------------- #-------------------------------
[056] # Battle Tower arena [056] # Battle Tower arena
Name = Battle Frontier
MapPosition = 0,17,10 MapPosition = 0,17,10
BattleBack = indoor1 BattleBack = indoor1
Flags = DisableBoxLink Flags = DisableBoxLink
#------------------------------- #-------------------------------
[057] # Stadium Cup lobby [057] # Stadium Cup lobby
Name = Battle Frontier
MapPosition = 0,17,10 MapPosition = 0,17,10
#------------------------------- #-------------------------------
[058] # Battle Palace [058] # Battle Palace
Name = Battle Frontier
MapPosition = 0,17,10 MapPosition = 0,17,10
#------------------------------- #-------------------------------
[059] # Battle Palace arena [059] # Battle Palace arena
Name = Battle Frontier
MapPosition = 0,17,10 MapPosition = 0,17,10
BattleBack = indoor1 BattleBack = indoor1
Flags = DisableBoxLink Flags = DisableBoxLink
#------------------------------- #-------------------------------
[060] # Battle Arena [060] # Battle Arena
Name = Battle Frontier
MapPosition = 0,17,10 MapPosition = 0,17,10
#------------------------------- #-------------------------------
[061] # Battle Arena arena [061] # Battle Arena arena
Name = Battle Frontier
MapPosition = 0,17,10 MapPosition = 0,17,10
BattleBack = indoor1 BattleBack = indoor1
Flags = DisableBoxLink Flags = DisableBoxLink
#------------------------------- #-------------------------------
[062] # Battle Factory [062] # Battle Factory
Name = Battle Frontier
MapPosition = 0,17,10 MapPosition = 0,17,10
#------------------------------- #-------------------------------
[063] # Battle Factory intro corridor [063] # Battle Factory intro corridor
Name = Battle Frontier
MapPosition = 0,17,10 MapPosition = 0,17,10
Flags = DisableBoxLink Flags = DisableBoxLink
#------------------------------- #-------------------------------
[064] # Battle Factory arena [064] # Battle Factory arena
Name = Battle Frontier
MapPosition = 0,17,10 MapPosition = 0,17,10
BattleBack = indoor1 BattleBack = indoor1
Flags = DisableBoxLink Flags = DisableBoxLink
#------------------------------- #-------------------------------
[065] # Battle Factory corridor [065] # Battle Factory corridor
Name = Battle Frontier
MapPosition = 0,17,10 MapPosition = 0,17,10
Flags = DisableBoxLink Flags = DisableBoxLink
#------------------------------- #-------------------------------
[066] # Safari Zone [066] # Safari Zone outside
Name = Safari Zone
Outdoor = true Outdoor = true
ShowArea = true ShowArea = true
MapPosition = 0,12,12 MapPosition = 0,12,12
BattleBack = field BattleBack = field
#------------------------------- #-------------------------------
[067] # Safari Zone gate [067] # Safari Zone gate
Name = Safari Zone
MapPosition = 0,12,12 MapPosition = 0,12,12
#------------------------------- #-------------------------------
[068] # Safari Zone [068] # Safari Zone
Name = Safari Zone
Outdoor = true Outdoor = true
ShowArea = true ShowArea = true
MapPosition = 0,12,12 MapPosition = 0,12,12
@@ -289,21 +351,25 @@ BattleBack = forest
Environment = Forest Environment = Forest
#------------------------------- #-------------------------------
[069] # Route 8 [069] # Route 8
Name = Route 8
Outdoor = true Outdoor = true
ShowArea = true ShowArea = true
MapPosition = 0,13,13 MapPosition = 0,13,13
DiveMap = 70 DiveMap = 70
BattleBack = field BattleBack = field
#------------------------------- #-------------------------------
[070] # Underwater [070] # Route 8 underwater
Name = Route 8
MapPosition = 0,13,13 MapPosition = 0,13,13
BattleBack = underwater BattleBack = underwater
Environment = Underwater Environment = Underwater
#------------------------------- #-------------------------------
[071] # Harbor [071] # Route 8 harbor
Name = Route 8
MapPosition = 0,13,13 MapPosition = 0,13,13
#------------------------------- #-------------------------------
[072] # Berth Island [072] # Berth Island
Name = Berth Island
Outdoor = true Outdoor = true
ShowArea = true ShowArea = true
Weather = Storm,50 Weather = Storm,50
@@ -311,16 +377,19 @@ MapPosition = 0,18,17
BattleBack = field BattleBack = field
#------------------------------- #-------------------------------
[073] # Faraday Island [073] # Faraday Island
Name = Faraday Island
Outdoor = true Outdoor = true
ShowArea = true ShowArea = true
MapPosition = 0,22,16 MapPosition = 0,22,16
BattleBack = field BattleBack = field
#------------------------------- #-------------------------------
[074] # Cycling Road gate [074] # Route 6 Cycling Road gate
Name = Route 6
Bicycle = true Bicycle = true
MapPosition = 0,12,10 MapPosition = 0,12,10
#------------------------------- #-------------------------------
[075] # Tiall Region [075] # Tiall Region
Name = Tiall Region
Outdoor = true Outdoor = true
MapPosition = 1,13,16 MapPosition = 1,13,16
BattleBack = city BattleBack = city