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
-30
View File
@@ -1,30 +0,0 @@
SilphCo_2F_EventObjects:
object_event 1, 49, 0, 29, 0, 12, 0, 3, 7, 17, 0, 1, 0, 5, 0, SilphCo_2F_EventScript_1616AE, 83, 0, 0
object_event 2, 55, 0, 28, 0, 18, 0, 3, 15, 17, 0, 1, 0, 4, 0, SilphCo_2F_EventScript_161680, 83, 0, 0
object_event 3, 49, 0, 20, 0, 14, 0, 3, 13, 17, 0, 1, 0, 3, 0, SilphCo_2F_EventScript_161697, 83, 0, 0
object_event 4, 55, 0, 5, 0, 19, 0, 3, 1, 17, 0, 1, 0, 0, 0, SilphCo_2F_EventScript_161669, 83, 0, 0
object_event 5, 28, 0, 10, 0, 4, 0, 0, 7, 17, 0, 0, 0, 0, 0, SilphCo_2F_EventScript_16165A, 0, 0, 0
SilphCo_2F_MapWarps:
warp_def 28, 2, 3, 0, 305
warp_def 2, 6, 3, 8, 305
warp_def 15, 6, 3, 5, 310
warp_def 30, 2, 3, 3, 303
warp_def 7, 19, 3, 1, 308
warp_def 33, 19, 3, 2, 310
warp_def 22, 3, 0, 0, 314
SilphCo_2F_MapBGEvents:
bg_event 5, 8, 0, 0, 0, SilphCo_2F_EventScript_1A891B
bg_event 6, 8, 0, 0, 0, SilphCo_2F_EventScript_1A891B
bg_event 5, 9, 0, 0, 0, SilphCo_2F_EventScript_1A891B
bg_event 6, 9, 0, 0, 0, SilphCo_2F_EventScript_1A891B
bg_event 5, 15, 0, 0, 0, SilphCo_2F_EventScript_1A8935
bg_event 6, 15, 0, 0, 0, SilphCo_2F_EventScript_1A8935
bg_event 5, 16, 0, 0, 0, SilphCo_2F_EventScript_1A8935
bg_event 6, 16, 0, 0, 0, SilphCo_2F_EventScript_1A8935
bg_event 11, 21, 0, 7, 0, 2, 135, 1
bg_event 29, 1, 0, 0, 0, SilphCo_2F_EventScript_161660
SilphCo_2F_MapEvents::
map_events SilphCo_2F_EventObjects, SilphCo_2F_MapWarps, 0x0, SilphCo_2F_MapBGEvents
-8
View File
@@ -1,8 +0,0 @@
SilphCo_2F:: @ 834F754
.4byte SilphCo_2F_Layout @ 0x8307840
.4byte SilphCo_2F_MapEvents @ 0x83AFE1C
.4byte SilphCo_2F_MapScripts @ 0x8161641
.4byte NULL
.2byte BGM_FRLG_SILPH
.2byte 133
.byte 0x86, 0x00, 0x00, 0x08, 0x00, 0x07, 0x02, 0x00
+208
View File
@@ -0,0 +1,208 @@
{
"id": "MAP_SILPH_CO_2F",
"name": "SilphCo_2F",
"layout": "LAYOUT_SILPH_CO_2F",
"music": "BGM_FRLG_SILPH",
"region_map_section": "MAPSEC_SILPH_CO",
"requires_flash": false,
"weather": "WEATHER_0",
"map_type": "MAP_TYPE_8",
"unknown_18": 0,
"unknown_19": 7,
"elevator_flag": 2,
"battle_scene": "BATTLE_SCENE_0",
"connections": null,
"object_events": [
{
"graphics_id": "49",
"x": 29,
"y": 12,
"elevation": 3,
"movement_type": "7",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": 1,
"trainer_sight_or_berry_tree_id": 5,
"script": "SilphCo_2F_EventScript_1616AE",
"flag": "83"
},
{
"graphics_id": "55",
"x": 28,
"y": 18,
"elevation": 3,
"movement_type": "15",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": 1,
"trainer_sight_or_berry_tree_id": 4,
"script": "SilphCo_2F_EventScript_161680",
"flag": "83"
},
{
"graphics_id": "49",
"x": 20,
"y": 14,
"elevation": 3,
"movement_type": "13",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": 1,
"trainer_sight_or_berry_tree_id": 3,
"script": "SilphCo_2F_EventScript_161697",
"flag": "83"
},
{
"graphics_id": "55",
"x": 5,
"y": 19,
"elevation": 3,
"movement_type": "1",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": 1,
"trainer_sight_or_berry_tree_id": 0,
"script": "SilphCo_2F_EventScript_161669",
"flag": "83"
},
{
"graphics_id": "28",
"x": 10,
"y": 4,
"elevation": 0,
"movement_type": "7",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "SilphCo_2F_EventScript_16165A",
"flag": "0"
}
],
"warp_events": [
{
"x": 28,
"y": 2,
"elevation": 3,
"dest_map": "MAP_SILPH_CO_3F",
"dest_warp_id": 0
},
{
"x": 2,
"y": 6,
"elevation": 3,
"dest_map": "MAP_SILPH_CO_3F",
"dest_warp_id": 8
},
{
"x": 15,
"y": 6,
"elevation": 3,
"dest_map": "MAP_SILPH_CO_8F",
"dest_warp_id": 5
},
{
"x": 30,
"y": 2,
"elevation": 3,
"dest_map": "MAP_SILPH_CO_1F",
"dest_warp_id": 3
},
{
"x": 7,
"y": 19,
"elevation": 3,
"dest_map": "MAP_SILPH_CO_6F",
"dest_warp_id": 1
},
{
"x": 33,
"y": 19,
"elevation": 3,
"dest_map": "MAP_SILPH_CO_8F",
"dest_warp_id": 2
},
{
"x": 22,
"y": 3,
"elevation": 0,
"dest_map": "MAP_SILPH_CO_ELEVATOR",
"dest_warp_id": 0
}
],
"coord_events": [],
"bg_events": [
{
"type": "bg_event_type_0",
"x": 5,
"y": 8,
"elevation": 0,
"script": "SilphCo_2F_EventScript_1A891B"
},
{
"type": "bg_event_type_0",
"x": 6,
"y": 8,
"elevation": 0,
"script": "SilphCo_2F_EventScript_1A891B"
},
{
"type": "bg_event_type_0",
"x": 5,
"y": 9,
"elevation": 0,
"script": "SilphCo_2F_EventScript_1A891B"
},
{
"type": "bg_event_type_0",
"x": 6,
"y": 9,
"elevation": 0,
"script": "SilphCo_2F_EventScript_1A891B"
},
{
"type": "bg_event_type_0",
"x": 5,
"y": 15,
"elevation": 0,
"script": "SilphCo_2F_EventScript_1A8935"
},
{
"type": "bg_event_type_0",
"x": 6,
"y": 15,
"elevation": 0,
"script": "SilphCo_2F_EventScript_1A8935"
},
{
"type": "bg_event_type_0",
"x": 5,
"y": 16,
"elevation": 0,
"script": "SilphCo_2F_EventScript_1A8935"
},
{
"type": "bg_event_type_0",
"x": 6,
"y": 16,
"elevation": 0,
"script": "SilphCo_2F_EventScript_1A8935"
},
{
"type": "hidden_item",
"x": 11,
"y": 21,
"elevation": 0,
"item": "POCKET_KEY_ITEMS",
"flag": "135",
"unknown": 1
},
{
"type": "bg_event_type_0",
"x": 29,
"y": 1,
"elevation": 0,
"script": "SilphCo_2F_EventScript_161660"
}
]
}