convert map data to json

This commit is contained in:
garak
2019-05-13 19:44:24 -04:00
parent 4b98d7d07a
commit 55d66b5177
2112 changed files with 53337 additions and 19410 deletions
-7
View File
@@ -1,7 +0,0 @@
CeladonCity_MapConnectionsList: @ 8352844
connection left, 10, MAP_ROUTE16
connection right, 10, MAP_ROUTE7
CeladonCity_MapConnections:: @ 835285C
.4byte 2
.4byte CeladonCity_MapConnectionsList
-45
View File
@@ -1,45 +0,0 @@
CeladonCity_EventObjects:
object_event 1, 49, 0, 48, 0, 15, 0, 3, 5, 20, 0, 0, 0, 0, 0, CeladonCity_EventScript_166CFA, 95, 0, 0
object_event 2, 27, 0, 38, 0, 14, 0, 3, 9, 17, 0, 0, 0, 0, 0, CeladonCity_EventScript_166CC5, 0, 0, 0
object_event 3, 112, 0, 36, 0, 14, 0, 3, 10, 17, 0, 0, 0, 0, 0, CeladonCity_EventScript_166CDC, 0, 0, 0
object_event 4, 17, 0, 11, 0, 18, 0, 3, 52, 68, 0, 0, 0, 0, 0, CeladonCity_EventScript_166C99, 0, 0, 0
object_event 5, 28, 0, 18, 0, 22, 0, 3, 2, 82, 0, 0, 0, 0, 0, CeladonCity_EventScript_166CAD, 0, 0, 0
object_event 6, 32, 0, 30, 0, 24, 0, 3, 8, 17, 0, 0, 0, 0, 0, CeladonCity_EventScript_166CB6, 0, 0, 0
object_event 7, 33, 0, 26, 0, 19, 0, 3, 8, 17, 0, 0, 0, 0, 0, CeladonCity_EventScript_166CBF, 0, 0, 0
object_event 8, 49, 0, 38, 0, 31, 0, 3, 5, 21, 0, 0, 0, 0, 0, CeladonCity_EventScript_166D03, 95, 0, 0
object_event 9, 32, 0, 9, 0, 30, 0, 3, 7, 17, 0, 0, 0, 0, 0, CeladonCity_EventScript_166CA2, 0, 0, 0
object_event 10, 95, 0, 52, 0, 22, 0, 3, 8, 17, 0, 0, 0, 0, 0, CeladonCity_EventScript_1BDF13, 20, 0, 0
object_event 11, 95, 0, 40, 0, 35, 0, 0, 8, 17, 0, 0, 0, 0, 0, CeladonCity_EventScript_1BDF13, 19, 0, 0
object_event 12, 19, 0, 25, 0, 10, 0, 3, 7, 17, 0, 0, 0, 0, 0, CeladonCity_EventScript_166D0C, 0, 0, 0
object_event 13, 65375, 0, 249, 255, 21, 0, 7, 0, 0, 0, 34, 0, 3, 0, 0x0, 0, 0, 0
object_event 14, 92, 0, 5, 0, 3, 0, 3, 8, 17, 0, 0, 0, 0, 0, CeladonCity_EventScript_1BEBC0, 465, 0, 0
object_event 15, 55, 0, 47, 0, 24, 0, 3, 1, 17, 0, 0, 0, 0, 0, CeladonCity_EventScript_166D15, 95, 0, 0
CeladonCity_MapWarps:
warp_def 34, 21, 0, 0, 2574
warp_def 11, 14, 0, 1, 2560
warp_def 15, 14, 0, 4, 2560
warp_def 30, 11, 0, 1, 2567
warp_def 48, 11, 0, 1, 2572
warp_def 39, 20, 0, 1, 2575
warp_def 11, 30, 0, 1, 2576
warp_def 37, 29, 0, 1, 2577
warp_def 41, 29, 0, 1, 2578
warp_def 49, 29, 0, 1, 2579
warp_def 29, 5, 0, 5, 2567
warp_def 30, 4, 3, 5, 2567
warp_def 31, 5, 0, 5, 2567
CeladonCity_MapBGEvents:
bg_event 45, 23, 0, 0, 0, CeladonCity_EventScript_166D5A
bg_event 38, 23, 0, 0, 0, CeladonCity_EventScript_166D63
bg_event 33, 23, 0, 0, 0, CeladonCity_EventScript_166D6C
bg_event 22, 18, 3, 0, 0, CeladonCity_EventScript_166D27
bg_event 26, 11, 0, 0, 0, CeladonCity_EventScript_166D48
bg_event 33, 16, 0, 0, 0, CeladonCity_EventScript_166D1E
bg_event 18, 14, 3, 0, 0, CeladonCity_EventScript_166D51
bg_event 16, 31, 0, 0, 0, CeladonCity_EventScript_166D30
bg_event 55, 20, 3, 7, 0, 69, 47, 1
CeladonCity_MapEvents::
map_events CeladonCity_EventObjects, CeladonCity_MapWarps, 0x0, CeladonCity_MapBGEvents
-8
View File
@@ -1,8 +0,0 @@
CeladonCity:: @ 83506C0
.4byte CeladonCity_Layout @ 0x82E2818
.4byte CeladonCity_MapEvents @ 0x83B5898
.4byte CeladonCity_MapScripts @ 0x8166C8F
.4byte CeladonCity_MapConnections @ 0x835285C
.2byte BGM_FRLG_CELADON_CITY
.2byte 84
.byte 0x5e, 0x00, 0x02, 0x01, 0x01, 0x06, 0x00, 0x00
+384
View File
@@ -0,0 +1,384 @@
{
"id": "MAP_CELADON_CITY",
"name": "CeladonCity",
"layout": "LAYOUT_CELADON_CITY",
"music": "BGM_FRLG_CELADON_CITY",
"region_map_section": "MAPSEC_CELADON_CITY",
"requires_flash": false,
"weather": "WEATHER_2",
"map_type": "MAP_TYPE_1",
"unknown_18": 1,
"unknown_19": 6,
"elevator_flag": 0,
"battle_scene": "BATTLE_SCENE_0",
"connections": [
{
"map": "MAP_ROUTE16",
"offset": 10,
"direction": "left"
},
{
"map": "MAP_ROUTE7",
"offset": 10,
"direction": "right"
}
],
"object_events": [
{
"graphics_id": "49",
"x": 48,
"y": 15,
"elevation": 3,
"movement_type": "5",
"movement_range_x": 4,
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "CeladonCity_EventScript_166CFA",
"flag": "95"
},
{
"graphics_id": "27",
"x": 38,
"y": 14,
"elevation": 3,
"movement_type": "9",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "CeladonCity_EventScript_166CC5",
"flag": "0"
},
{
"graphics_id": "112",
"x": 36,
"y": 14,
"elevation": 3,
"movement_type": "10",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "CeladonCity_EventScript_166CDC",
"flag": "0"
},
{
"graphics_id": "17",
"x": 11,
"y": 18,
"elevation": 3,
"movement_type": "52",
"movement_range_x": 4,
"movement_range_y": 4,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "CeladonCity_EventScript_166C99",
"flag": "0"
},
{
"graphics_id": "28",
"x": 18,
"y": 22,
"elevation": 3,
"movement_type": "2",
"movement_range_x": 2,
"movement_range_y": 5,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "CeladonCity_EventScript_166CAD",
"flag": "0"
},
{
"graphics_id": "32",
"x": 30,
"y": 24,
"elevation": 3,
"movement_type": "8",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "CeladonCity_EventScript_166CB6",
"flag": "0"
},
{
"graphics_id": "33",
"x": 26,
"y": 19,
"elevation": 3,
"movement_type": "8",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "CeladonCity_EventScript_166CBF",
"flag": "0"
},
{
"graphics_id": "49",
"x": 38,
"y": 31,
"elevation": 3,
"movement_type": "5",
"movement_range_x": 5,
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "CeladonCity_EventScript_166D03",
"flag": "95"
},
{
"graphics_id": "32",
"x": 9,
"y": 30,
"elevation": 3,
"movement_type": "7",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "CeladonCity_EventScript_166CA2",
"flag": "0"
},
{
"graphics_id": "95",
"x": 52,
"y": 22,
"elevation": 3,
"movement_type": "8",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "CeladonCity_EventScript_1BDF13",
"flag": "20"
},
{
"graphics_id": "95",
"x": 40,
"y": 35,
"elevation": 0,
"movement_type": "8",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "CeladonCity_EventScript_1BDF13",
"flag": "19"
},
{
"graphics_id": "19",
"x": 25,
"y": 10,
"elevation": 3,
"movement_type": "7",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "CeladonCity_EventScript_166D0C",
"flag": "0"
},
{
"graphics_id": "65375",
"x": 65529,
"y": 21,
"elevation": 7,
"movement_type": "0",
"movement_range_x": 0,
"movement_range_y": 0,
"trainer_type": 34,
"trainer_sight_or_berry_tree_id": 3,
"script": "0x0",
"flag": "0"
},
{
"graphics_id": "92",
"x": 5,
"y": 3,
"elevation": 3,
"movement_type": "8",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "CeladonCity_EventScript_1BEBC0",
"flag": "465"
},
{
"graphics_id": "55",
"x": 47,
"y": 24,
"elevation": 3,
"movement_type": "1",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "CeladonCity_EventScript_166D15",
"flag": "95"
}
],
"warp_events": [
{
"x": 34,
"y": 21,
"elevation": 0,
"dest_map": "MAP_CELADON_CITY_GAME_CORNER",
"dest_warp_id": 0
},
{
"x": 11,
"y": 14,
"elevation": 0,
"dest_map": "MAP_CELADON_CITY_DEPARTMENT_STORE_1F",
"dest_warp_id": 1
},
{
"x": 15,
"y": 14,
"elevation": 0,
"dest_map": "MAP_CELADON_CITY_DEPARTMENT_STORE_1F",
"dest_warp_id": 4
},
{
"x": 30,
"y": 11,
"elevation": 0,
"dest_map": "MAP_CELADON_CITY_CONDOMINIUMS_1F",
"dest_warp_id": 1
},
{
"x": 48,
"y": 11,
"elevation": 0,
"dest_map": "MAP_CELADON_CITY_POKEMON_CENTER_1F",
"dest_warp_id": 1
},
{
"x": 39,
"y": 20,
"elevation": 0,
"dest_map": "MAP_CELADON_CITY_GAME_CORNER_PRIZE_ROOM",
"dest_warp_id": 1
},
{
"x": 11,
"y": 30,
"elevation": 0,
"dest_map": "MAP_CELADON_CITY_GYM",
"dest_warp_id": 1
},
{
"x": 37,
"y": 29,
"elevation": 0,
"dest_map": "MAP_CELADON_CITY_RESTAURANT",
"dest_warp_id": 1
},
{
"x": 41,
"y": 29,
"elevation": 0,
"dest_map": "MAP_CELADON_CITY_HOUSE1",
"dest_warp_id": 1
},
{
"x": 49,
"y": 29,
"elevation": 0,
"dest_map": "MAP_CELADON_CITY_HOTEL",
"dest_warp_id": 1
},
{
"x": 29,
"y": 5,
"elevation": 0,
"dest_map": "MAP_CELADON_CITY_CONDOMINIUMS_1F",
"dest_warp_id": 5
},
{
"x": 30,
"y": 4,
"elevation": 3,
"dest_map": "MAP_CELADON_CITY_CONDOMINIUMS_1F",
"dest_warp_id": 5
},
{
"x": 31,
"y": 5,
"elevation": 0,
"dest_map": "MAP_CELADON_CITY_CONDOMINIUMS_1F",
"dest_warp_id": 5
}
],
"coord_events": [],
"bg_events": [
{
"type": "bg_event_type_0",
"x": 45,
"y": 23,
"elevation": 0,
"script": "CeladonCity_EventScript_166D5A"
},
{
"type": "bg_event_type_0",
"x": 38,
"y": 23,
"elevation": 0,
"script": "CeladonCity_EventScript_166D63"
},
{
"type": "bg_event_type_0",
"x": 33,
"y": 23,
"elevation": 0,
"script": "CeladonCity_EventScript_166D6C"
},
{
"type": "bg_event_type_0",
"x": 22,
"y": 18,
"elevation": 3,
"script": "CeladonCity_EventScript_166D27"
},
{
"type": "bg_event_type_0",
"x": 26,
"y": 11,
"elevation": 0,
"script": "CeladonCity_EventScript_166D48"
},
{
"type": "bg_event_type_0",
"x": 33,
"y": 16,
"elevation": 0,
"script": "CeladonCity_EventScript_166D1E"
},
{
"type": "bg_event_type_0",
"x": 18,
"y": 14,
"elevation": 3,
"script": "CeladonCity_EventScript_166D51"
},
{
"type": "bg_event_type_0",
"x": 16,
"y": 31,
"elevation": 0,
"script": "CeladonCity_EventScript_166D30"
},
{
"type": "hidden_item",
"x": 55,
"y": 20,
"elevation": 3,
"item": "ITEM_PP_UP",
"flag": "47",
"unknown": 1
}
]
}