From f5683b5c46b802cf75491d931a33d2fbe52a332c Mon Sep 17 00:00:00 2001 From: garak Date: Thu, 18 Apr 2019 10:44:26 -0400 Subject: move headers and connections into map dirs --- data/maps/Route2/connections.inc | 7 +++++++ data/maps/Route2/header.inc | 8 ++++++++ 2 files changed, 15 insertions(+) create mode 100644 data/maps/Route2/connections.inc create mode 100644 data/maps/Route2/header.inc (limited to 'data/maps/Route2') diff --git a/data/maps/Route2/connections.inc b/data/maps/Route2/connections.inc new file mode 100644 index 000000000..43b34821a --- /dev/null +++ b/data/maps/Route2/connections.inc @@ -0,0 +1,7 @@ +Route2_MapConnectionsList: @ 83529FC + connection up, -12, MAP_PEWTERCITY + connection down, -12, MAP_VIRIDIANCITY + +Route2_MapConnections:: @ 8352A14 + .4byte 2 + .4byte Route2_MapConnectionsList diff --git a/data/maps/Route2/header.inc b/data/maps/Route2/header.inc new file mode 100644 index 000000000..2d892eab9 --- /dev/null +++ b/data/maps/Route2/header.inc @@ -0,0 +1,8 @@ +Route2:: @ 8350848 + .4byte Route2_Layout @ 0x82E64F0 + .4byte gMapEvents_Route2 @ 0x83B676C + .4byte gMapScripts_Route2 @ 0x8167F64 + .4byte Route2_MapConnections @ 0x8352A14 + .2byte BGM_FRLG_ROUTE_1 + .2byte 90 + .byte 0x66, 0x00, 0x02, 0x03, 0x01, 0x06, 0x00, 0x00 -- cgit v1.2.3 From 799e971efef15b66345b255d57e94780733f667a Mon Sep 17 00:00:00 2001 From: garak Date: Thu, 18 Apr 2019 11:03:10 -0400 Subject: fix map events names --- data/maps/Route2/header.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'data/maps/Route2') diff --git a/data/maps/Route2/header.inc b/data/maps/Route2/header.inc index 2d892eab9..985fe6d72 100644 --- a/data/maps/Route2/header.inc +++ b/data/maps/Route2/header.inc @@ -1,7 +1,7 @@ Route2:: @ 8350848 .4byte Route2_Layout @ 0x82E64F0 - .4byte gMapEvents_Route2 @ 0x83B676C - .4byte gMapScripts_Route2 @ 0x8167F64 + .4byte Route2_MapEvents @ 0x83B676C + .4byte Route2_MapScripts @ 0x8167F64 .4byte Route2_MapConnections @ 0x8352A14 .2byte BGM_FRLG_ROUTE_1 .2byte 90 -- cgit v1.2.3 From fb1ae058073d64305cb5dbae873095febdd36d74 Mon Sep 17 00:00:00 2001 From: garak Date: Thu, 18 Apr 2019 12:08:12 -0400 Subject: move map events to map directories --- data/maps/Route2/events.inc | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 data/maps/Route2/events.inc (limited to 'data/maps/Route2') diff --git a/data/maps/Route2/events.inc b/data/maps/Route2/events.inc new file mode 100644 index 000000000..316893612 --- /dev/null +++ b/data/maps/Route2/events.inc @@ -0,0 +1,27 @@ +Route2_EventObjects: + object_event 1, 95, 0, 16, 0, 62, 0, 3, 8, 17, 0, 0, 0, 0, 0, Route2_EventScript_1BDF13, 20, 0, 0 + object_event 2, 95, 0, 15, 0, 69, 0, 3, 8, 17, 0, 0, 0, 0, 0, Route2_EventScript_1BDF13, 19, 0, 0 + object_event 3, 95, 0, 11, 0, 13, 0, 3, 8, 17, 0, 0, 0, 0, 0, Route2_EventScript_1BDF13, 21, 0, 0 + object_event 4, 95, 0, 18, 0, 26, 0, 3, 8, 17, 0, 0, 0, 0, 0, Route2_EventScript_1BDF13, 22, 0, 0 + object_event 5, 92, 0, 17, 0, 54, 0, 3, 8, 17, 0, 0, 0, 0, 0, Route2_EventScript_1BE58E, 340, 0, 0 + object_event 6, 92, 0, 17, 0, 64, 0, 3, 8, 17, 0, 0, 0, 0, 0, Route2_EventScript_1BE59B, 341, 0, 0 + object_event 7, 65375, 0, 6, 0, 85, 0, 8, 0, 0, 0, 1, 0, 3, 0, 0x0, 0, 0, 0 + +Route2_MapWarps: + warp_def 5, 13, 3, 3, 3843 + warp_def 6, 13, 3, 3, 3843 + warp_def 5, 51, 3, 1, 3840 + warp_def 17, 11, 3, 1, 292 + warp_def 17, 22, 0, 1, 3841 + warp_def 18, 46, 3, 1, 3842 + warp_def 18, 41, 3, 3, 3842 + warp_def 19, 41, 3, 3, 3842 + warp_def 19, 46, 3, 1, 3842 + warp_def 6, 51, 3, 1, 3840 + +Route2_MapBGEvents: + bg_event 14, 12, 0, 0, 0, Route2_EventScript_167F6E + bg_event 7, 73, 0, 0, 0, Route2_EventScript_167F65 + +Route2_MapEvents:: + map_events Route2_EventObjects, Route2_MapWarps, 0x0, Route2_MapBGEvents -- cgit v1.2.3 From 4e5d818f89caae9153dd53ba321900e0d4e16c1e Mon Sep 17 00:00:00 2001 From: garak Date: Mon, 6 May 2019 22:13:57 -0400 Subject: dump event scripts --- data/maps/Route2/scripts.inc | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 data/maps/Route2/scripts.inc (limited to 'data/maps/Route2') diff --git a/data/maps/Route2/scripts.inc b/data/maps/Route2/scripts.inc new file mode 100644 index 000000000..8623b3622 --- /dev/null +++ b/data/maps/Route2/scripts.inc @@ -0,0 +1,12 @@ +Route2_MapScripts:: @ 8167F64 + .byte 0 + +Route2_EventScript_167F65:: @ 8167F65 + loadword 0, gUnknown_818345E + callstd 3 + end + +Route2_EventScript_167F6E:: @ 8167F6E + loadword 0, gUnknown_8183482 + callstd 3 + end -- cgit v1.2.3 From 4b98d7d07a681279022cec9f082071a374ddbdb9 Mon Sep 17 00:00:00 2001 From: garak Date: Fri, 10 May 2019 11:45:18 -0400 Subject: fix map and layout constants --- data/maps/Route2/connections.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'data/maps/Route2') diff --git a/data/maps/Route2/connections.inc b/data/maps/Route2/connections.inc index 43b34821a..d37b77d96 100644 --- a/data/maps/Route2/connections.inc +++ b/data/maps/Route2/connections.inc @@ -1,6 +1,6 @@ Route2_MapConnectionsList: @ 83529FC - connection up, -12, MAP_PEWTERCITY - connection down, -12, MAP_VIRIDIANCITY + connection up, -12, MAP_PEWTER_CITY + connection down, -12, MAP_VIRIDIAN_CITY Route2_MapConnections:: @ 8352A14 .4byte 2 -- cgit v1.2.3 From 55d66b51770b4f657ed55822e7e76f6d6e3261d8 Mon Sep 17 00:00:00 2001 From: garak Date: Mon, 13 May 2019 19:44:24 -0400 Subject: convert map data to json --- data/maps/Route2/connections.inc | 7 -- data/maps/Route2/events.inc | 27 ----- data/maps/Route2/header.inc | 8 -- data/maps/Route2/map.json | 208 +++++++++++++++++++++++++++++++++++++++ 4 files changed, 208 insertions(+), 42 deletions(-) delete mode 100644 data/maps/Route2/connections.inc delete mode 100644 data/maps/Route2/events.inc delete mode 100644 data/maps/Route2/header.inc create mode 100644 data/maps/Route2/map.json (limited to 'data/maps/Route2') diff --git a/data/maps/Route2/connections.inc b/data/maps/Route2/connections.inc deleted file mode 100644 index d37b77d96..000000000 --- a/data/maps/Route2/connections.inc +++ /dev/null @@ -1,7 +0,0 @@ -Route2_MapConnectionsList: @ 83529FC - connection up, -12, MAP_PEWTER_CITY - connection down, -12, MAP_VIRIDIAN_CITY - -Route2_MapConnections:: @ 8352A14 - .4byte 2 - .4byte Route2_MapConnectionsList diff --git a/data/maps/Route2/events.inc b/data/maps/Route2/events.inc deleted file mode 100644 index 316893612..000000000 --- a/data/maps/Route2/events.inc +++ /dev/null @@ -1,27 +0,0 @@ -Route2_EventObjects: - object_event 1, 95, 0, 16, 0, 62, 0, 3, 8, 17, 0, 0, 0, 0, 0, Route2_EventScript_1BDF13, 20, 0, 0 - object_event 2, 95, 0, 15, 0, 69, 0, 3, 8, 17, 0, 0, 0, 0, 0, Route2_EventScript_1BDF13, 19, 0, 0 - object_event 3, 95, 0, 11, 0, 13, 0, 3, 8, 17, 0, 0, 0, 0, 0, Route2_EventScript_1BDF13, 21, 0, 0 - object_event 4, 95, 0, 18, 0, 26, 0, 3, 8, 17, 0, 0, 0, 0, 0, Route2_EventScript_1BDF13, 22, 0, 0 - object_event 5, 92, 0, 17, 0, 54, 0, 3, 8, 17, 0, 0, 0, 0, 0, Route2_EventScript_1BE58E, 340, 0, 0 - object_event 6, 92, 0, 17, 0, 64, 0, 3, 8, 17, 0, 0, 0, 0, 0, Route2_EventScript_1BE59B, 341, 0, 0 - object_event 7, 65375, 0, 6, 0, 85, 0, 8, 0, 0, 0, 1, 0, 3, 0, 0x0, 0, 0, 0 - -Route2_MapWarps: - warp_def 5, 13, 3, 3, 3843 - warp_def 6, 13, 3, 3, 3843 - warp_def 5, 51, 3, 1, 3840 - warp_def 17, 11, 3, 1, 292 - warp_def 17, 22, 0, 1, 3841 - warp_def 18, 46, 3, 1, 3842 - warp_def 18, 41, 3, 3, 3842 - warp_def 19, 41, 3, 3, 3842 - warp_def 19, 46, 3, 1, 3842 - warp_def 6, 51, 3, 1, 3840 - -Route2_MapBGEvents: - bg_event 14, 12, 0, 0, 0, Route2_EventScript_167F6E - bg_event 7, 73, 0, 0, 0, Route2_EventScript_167F65 - -Route2_MapEvents:: - map_events Route2_EventObjects, Route2_MapWarps, 0x0, Route2_MapBGEvents diff --git a/data/maps/Route2/header.inc b/data/maps/Route2/header.inc deleted file mode 100644 index 985fe6d72..000000000 --- a/data/maps/Route2/header.inc +++ /dev/null @@ -1,8 +0,0 @@ -Route2:: @ 8350848 - .4byte Route2_Layout @ 0x82E64F0 - .4byte Route2_MapEvents @ 0x83B676C - .4byte Route2_MapScripts @ 0x8167F64 - .4byte Route2_MapConnections @ 0x8352A14 - .2byte BGM_FRLG_ROUTE_1 - .2byte 90 - .byte 0x66, 0x00, 0x02, 0x03, 0x01, 0x06, 0x00, 0x00 diff --git a/data/maps/Route2/map.json b/data/maps/Route2/map.json new file mode 100644 index 000000000..a8fde02a1 --- /dev/null +++ b/data/maps/Route2/map.json @@ -0,0 +1,208 @@ +{ + "id": "MAP_ROUTE2", + "name": "Route2", + "layout": "LAYOUT_ROUTE2", + "music": "BGM_FRLG_ROUTE_1", + "region_map_section": "MAPSEC_ROUTE_2", + "requires_flash": false, + "weather": "WEATHER_2", + "map_type": "MAP_TYPE_3", + "unknown_18": 1, + "unknown_19": 6, + "elevator_flag": 0, + "battle_scene": "BATTLE_SCENE_0", + "connections": [ + { + "map": "MAP_PEWTER_CITY", + "offset": -12, + "direction": "up" + }, + { + "map": "MAP_VIRIDIAN_CITY", + "offset": -12, + "direction": "down" + } + ], + "object_events": [ + { + "graphics_id": "95", + "x": 16, + "y": 62, + "elevation": 3, + "movement_type": "8", + "movement_range_x": 1, + "movement_range_y": 1, + "trainer_type": 0, + "trainer_sight_or_berry_tree_id": 0, + "script": "Route2_EventScript_1BDF13", + "flag": "20" + }, + { + "graphics_id": "95", + "x": 15, + "y": 69, + "elevation": 3, + "movement_type": "8", + "movement_range_x": 1, + "movement_range_y": 1, + "trainer_type": 0, + "trainer_sight_or_berry_tree_id": 0, + "script": "Route2_EventScript_1BDF13", + "flag": "19" + }, + { + "graphics_id": "95", + "x": 11, + "y": 13, + "elevation": 3, + "movement_type": "8", + "movement_range_x": 1, + "movement_range_y": 1, + "trainer_type": 0, + "trainer_sight_or_berry_tree_id": 0, + "script": "Route2_EventScript_1BDF13", + "flag": "21" + }, + { + "graphics_id": "95", + "x": 18, + "y": 26, + "elevation": 3, + "movement_type": "8", + "movement_range_x": 1, + "movement_range_y": 1, + "trainer_type": 0, + "trainer_sight_or_berry_tree_id": 0, + "script": "Route2_EventScript_1BDF13", + "flag": "22" + }, + { + "graphics_id": "92", + "x": 17, + "y": 54, + "elevation": 3, + "movement_type": "8", + "movement_range_x": 1, + "movement_range_y": 1, + "trainer_type": 0, + "trainer_sight_or_berry_tree_id": 0, + "script": "Route2_EventScript_1BE58E", + "flag": "340" + }, + { + "graphics_id": "92", + "x": 17, + "y": 64, + "elevation": 3, + "movement_type": "8", + "movement_range_x": 1, + "movement_range_y": 1, + "trainer_type": 0, + "trainer_sight_or_berry_tree_id": 0, + "script": "Route2_EventScript_1BE59B", + "flag": "341" + }, + { + "graphics_id": "65375", + "x": 6, + "y": 85, + "elevation": 8, + "movement_type": "0", + "movement_range_x": 0, + "movement_range_y": 0, + "trainer_type": 1, + "trainer_sight_or_berry_tree_id": 3, + "script": "0x0", + "flag": "0" + } + ], + "warp_events": [ + { + "x": 5, + "y": 13, + "elevation": 3, + "dest_map": "MAP_ROUTE2_VIRIDIAN_FOREST_NORTH_ENTRANCE", + "dest_warp_id": 3 + }, + { + "x": 6, + "y": 13, + "elevation": 3, + "dest_map": "MAP_ROUTE2_VIRIDIAN_FOREST_NORTH_ENTRANCE", + "dest_warp_id": 3 + }, + { + "x": 5, + "y": 51, + "elevation": 3, + "dest_map": "MAP_ROUTE2_VIRIDIAN_FOREST_SOUTH_ENTRANCE", + "dest_warp_id": 1 + }, + { + "x": 17, + "y": 11, + "elevation": 3, + "dest_map": "MAP_DIGLETTS_CAVE_NORTH_ENTRANCE", + "dest_warp_id": 1 + }, + { + "x": 17, + "y": 22, + "elevation": 0, + "dest_map": "MAP_ROUTE2_HOUSE", + "dest_warp_id": 1 + }, + { + "x": 18, + "y": 46, + "elevation": 3, + "dest_map": "MAP_ROUTE2_EAST_BUILDING", + "dest_warp_id": 1 + }, + { + "x": 18, + "y": 41, + "elevation": 3, + "dest_map": "MAP_ROUTE2_EAST_BUILDING", + "dest_warp_id": 3 + }, + { + "x": 19, + "y": 41, + "elevation": 3, + "dest_map": "MAP_ROUTE2_EAST_BUILDING", + "dest_warp_id": 3 + }, + { + "x": 19, + "y": 46, + "elevation": 3, + "dest_map": "MAP_ROUTE2_EAST_BUILDING", + "dest_warp_id": 1 + }, + { + "x": 6, + "y": 51, + "elevation": 3, + "dest_map": "MAP_ROUTE2_VIRIDIAN_FOREST_SOUTH_ENTRANCE", + "dest_warp_id": 1 + } + ], + "coord_events": [], + "bg_events": [ + { + "type": "bg_event_type_0", + "x": 14, + "y": 12, + "elevation": 0, + "script": "Route2_EventScript_167F6E" + }, + { + "type": "bg_event_type_0", + "x": 7, + "y": 73, + "elevation": 0, + "script": "Route2_EventScript_167F65" + } + ] +} \ No newline at end of file -- cgit v1.2.3 From 7dca612936fda9254239e0e350a45c56a766053a Mon Sep 17 00:00:00 2001 From: PikalaxALT Date: Tue, 14 May 2019 16:47:07 -0400 Subject: Fix indentation in .inc files --- data/maps/Route2/scripts.inc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'data/maps/Route2') diff --git a/data/maps/Route2/scripts.inc b/data/maps/Route2/scripts.inc index 8623b3622..fbcf581e4 100644 --- a/data/maps/Route2/scripts.inc +++ b/data/maps/Route2/scripts.inc @@ -1,12 +1,12 @@ Route2_MapScripts:: @ 8167F64 - .byte 0 + .byte 0 Route2_EventScript_167F65:: @ 8167F65 - loadword 0, gUnknown_818345E - callstd 3 - end + loadword 0, gUnknown_818345E + callstd 3 + end Route2_EventScript_167F6E:: @ 8167F6E - loadword 0, gUnknown_8183482 - callstd 3 - end + loadword 0, gUnknown_8183482 + callstd 3 + end -- cgit v1.2.3 From 119693e1816563b66b19eef216f08cab65a644ba Mon Sep 17 00:00:00 2001 From: PikalaxALT Date: Thu, 16 May 2019 09:38:19 -0400 Subject: propagate msgbox macro --- data/maps/Route2/scripts.inc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'data/maps/Route2') diff --git a/data/maps/Route2/scripts.inc b/data/maps/Route2/scripts.inc index fbcf581e4..67ba5729e 100644 --- a/data/maps/Route2/scripts.inc +++ b/data/maps/Route2/scripts.inc @@ -2,11 +2,9 @@ Route2_MapScripts:: @ 8167F64 .byte 0 Route2_EventScript_167F65:: @ 8167F65 - loadword 0, gUnknown_818345E - callstd 3 + msgbox gUnknown_818345E, 3 end Route2_EventScript_167F6E:: @ 8167F6E - loadword 0, gUnknown_8183482 - callstd 3 + msgbox gUnknown_8183482, 3 end -- cgit v1.2.3 From cfc43d11115ab3258592801665caef9cfe859589 Mon Sep 17 00:00:00 2001 From: SatoMew Date: Fri, 17 May 2019 14:14:21 +0100 Subject: Label weather --- data/maps/Route2/map.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'data/maps/Route2') diff --git a/data/maps/Route2/map.json b/data/maps/Route2/map.json index a8fde02a1..92a7b66e8 100644 --- a/data/maps/Route2/map.json +++ b/data/maps/Route2/map.json @@ -5,7 +5,7 @@ "music": "BGM_FRLG_ROUTE_1", "region_map_section": "MAPSEC_ROUTE_2", "requires_flash": false, - "weather": "WEATHER_2", + "weather": "WEATHER_SUNNY", "map_type": "MAP_TYPE_3", "unknown_18": 1, "unknown_19": 6, @@ -205,4 +205,4 @@ "script": "Route2_EventScript_167F65" } ] -} \ No newline at end of file +} -- cgit v1.2.3 From 44e30e713664330179a41f08a90ad7f168fd82da Mon Sep 17 00:00:00 2001 From: garak Date: Tue, 21 May 2019 17:00:28 -0400 Subject: split map text into map directories --- data/maps/Route2/text.inc | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 data/maps/Route2/text.inc (limited to 'data/maps/Route2') diff --git a/data/maps/Route2/text.inc b/data/maps/Route2/text.inc new file mode 100644 index 000000000..4197b7071 --- /dev/null +++ b/data/maps/Route2/text.inc @@ -0,0 +1,7 @@ +gUnknown_818345E:: @ 818345E + .string "ROUTE 2\n" + .string "VIRIDIAN CITY - PEWTER CITY$" + +gUnknown_8183482:: @ 8183482 + .string "DIGLETT'S CAVE$" + -- cgit v1.2.3