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
-52
View File
@@ -1,52 +0,0 @@
SaffronCity_Gym_EventObjects:
object_event 1, 41, 0, 24, 0, 18, 0, 3, 8, 17, 0, 1, 0, 3, 0, SaffronCity_Gym_EventScript_16EEC3, 0, 0, 0
object_event 2, 41, 0, 24, 0, 2, 0, 3, 8, 17, 0, 1, 0, 3, 0, SaffronCity_Gym_EventScript_16EE88, 0, 0, 0
object_event 3, 41, 0, 4, 0, 2, 0, 3, 8, 17, 0, 1, 0, 3, 0, SaffronCity_Gym_EventScript_16EEDA, 0, 0, 0
object_event 4, 58, 0, 14, 0, 2, 0, 3, 8, 17, 0, 1, 0, 3, 0, SaffronCity_Gym_EventScript_16EEF1, 0, 0, 0
object_event 5, 58, 0, 4, 0, 10, 0, 3, 8, 17, 0, 1, 0, 3, 0, SaffronCity_Gym_EventScript_16EF08, 0, 0, 0
object_event 6, 58, 0, 4, 0, 18, 0, 3, 8, 17, 0, 1, 0, 3, 0, SaffronCity_Gym_EventScript_16EF1F, 0, 0, 0
object_event 7, 85, 0, 14, 0, 11, 0, 3, 8, 17, 0, 0, 0, 0, 0, SaffronCity_Gym_EventScript_16EDD8, 0, 0, 0
object_event 8, 41, 0, 24, 0, 10, 0, 3, 8, 17, 0, 1, 0, 3, 0, SaffronCity_Gym_EventScript_16EE9F, 0, 0, 0
object_event 9, 91, 0, 15, 0, 20, 0, 3, 8, 17, 0, 0, 0, 0, 0, SaffronCity_Gym_EventScript_16EF36, 0, 0, 0
SaffronCity_Gym_MapWarps:
warp_def 13, 23, 3, 3, 778
warp_def 14, 23, 3, 3, 778
warp_def 15, 23, 3, 3, 778
warp_def 18, 20, 3, 32, 3587
warp_def 0, 4, 3, 22, 3587
warp_def 0, 7, 3, 20, 3587
warp_def 0, 12, 3, 30, 3587
warp_def 0, 15, 3, 11, 3587
warp_def 0, 20, 3, 28, 3587
warp_def 0, 23, 3, 19, 3587
warp_def 8, 4, 3, 18, 3587
warp_def 8, 7, 3, 7, 3587
warp_def 8, 12, 3, 17, 3587
warp_def 8, 15, 3, 15, 3587
warp_def 8, 20, 3, 26, 3587
warp_def 8, 23, 3, 13, 3587
warp_def 12, 4, 3, 24, 3587
warp_def 12, 7, 3, 12, 3587
warp_def 16, 4, 3, 10, 3587
warp_def 16, 7, 3, 9, 3587
warp_def 18, 15, 3, 5, 3587
warp_def 20, 4, 3, 23, 3587
warp_def 20, 7, 3, 4, 3587
warp_def 20, 12, 3, 21, 3587
warp_def 20, 15, 3, 16, 3587
warp_def 20, 20, 3, 27, 3587
warp_def 20, 23, 3, 14, 3587
warp_def 28, 4, 3, 25, 3587
warp_def 28, 7, 3, 8, 3587
warp_def 28, 12, 3, 31, 3587
warp_def 28, 15, 3, 6, 3587
warp_def 28, 20, 3, 29, 3587
warp_def 28, 23, 3, 3, 3587
SaffronCity_Gym_MapBGEvents:
bg_event 12, 20, 0, 0, 0, SaffronCity_Gym_EventScript_16EF55
bg_event 16, 20, 0, 0, 0, SaffronCity_Gym_EventScript_16EF55
SaffronCity_Gym_MapEvents::
map_events SaffronCity_Gym_EventObjects, SaffronCity_Gym_MapWarps, 0x0, SaffronCity_Gym_MapBGEvents
-8
View File
@@ -1,8 +0,0 @@
SaffronCity_Gym:: @ 835169C
.4byte SaffronCity_Gym_Layout @ 0x82D7C44
.4byte SaffronCity_Gym_MapEvents @ 0x83BCF6C
.4byte SaffronCity_Gym_MapScripts @ 0x816EDD7
.4byte NULL
.2byte BGM_FRLG_GYM
.2byte 34
.byte 0x62, 0x00, 0x00, 0x08, 0x00, 0x01, 0x00, 0x01
+384
View File
@@ -0,0 +1,384 @@
{
"id": "MAP_SAFFRON_CITY_GYM",
"name": "SaffronCity_Gym",
"layout": "LAYOUT_SAFFRON_CITY_GYM",
"music": "BGM_FRLG_GYM",
"region_map_section": "MAPSEC_SAFFRON_CITY",
"requires_flash": false,
"weather": "WEATHER_0",
"map_type": "MAP_TYPE_8",
"unknown_18": 0,
"unknown_19": 1,
"elevator_flag": 0,
"battle_scene": "BATTLE_SCENE_1",
"connections": null,
"object_events": [
{
"graphics_id": "41",
"x": 24,
"y": 18,
"elevation": 3,
"movement_type": "8",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": 1,
"trainer_sight_or_berry_tree_id": 3,
"script": "SaffronCity_Gym_EventScript_16EEC3",
"flag": "0"
},
{
"graphics_id": "41",
"x": 24,
"y": 2,
"elevation": 3,
"movement_type": "8",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": 1,
"trainer_sight_or_berry_tree_id": 3,
"script": "SaffronCity_Gym_EventScript_16EE88",
"flag": "0"
},
{
"graphics_id": "41",
"x": 4,
"y": 2,
"elevation": 3,
"movement_type": "8",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": 1,
"trainer_sight_or_berry_tree_id": 3,
"script": "SaffronCity_Gym_EventScript_16EEDA",
"flag": "0"
},
{
"graphics_id": "58",
"x": 14,
"y": 2,
"elevation": 3,
"movement_type": "8",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": 1,
"trainer_sight_or_berry_tree_id": 3,
"script": "SaffronCity_Gym_EventScript_16EEF1",
"flag": "0"
},
{
"graphics_id": "58",
"x": 4,
"y": 10,
"elevation": 3,
"movement_type": "8",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": 1,
"trainer_sight_or_berry_tree_id": 3,
"script": "SaffronCity_Gym_EventScript_16EF08",
"flag": "0"
},
{
"graphics_id": "58",
"x": 4,
"y": 18,
"elevation": 3,
"movement_type": "8",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": 1,
"trainer_sight_or_berry_tree_id": 3,
"script": "SaffronCity_Gym_EventScript_16EF1F",
"flag": "0"
},
{
"graphics_id": "85",
"x": 14,
"y": 11,
"elevation": 3,
"movement_type": "8",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "SaffronCity_Gym_EventScript_16EDD8",
"flag": "0"
},
{
"graphics_id": "41",
"x": 24,
"y": 10,
"elevation": 3,
"movement_type": "8",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": 1,
"trainer_sight_or_berry_tree_id": 3,
"script": "SaffronCity_Gym_EventScript_16EE9F",
"flag": "0"
},
{
"graphics_id": "91",
"x": 15,
"y": 20,
"elevation": 3,
"movement_type": "8",
"movement_range_x": 1,
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "SaffronCity_Gym_EventScript_16EF36",
"flag": "0"
}
],
"warp_events": [
{
"x": 13,
"y": 23,
"elevation": 3,
"dest_map": "MAP_SAFFRON_CITY_DUPLICATE",
"dest_warp_id": 3
},
{
"x": 14,
"y": 23,
"elevation": 3,
"dest_map": "MAP_SAFFRON_CITY_DUPLICATE",
"dest_warp_id": 3
},
{
"x": 15,
"y": 23,
"elevation": 3,
"dest_map": "MAP_SAFFRON_CITY_DUPLICATE",
"dest_warp_id": 3
},
{
"x": 18,
"y": 20,
"elevation": 3,
"dest_map": "MAP_SAFFRON_CITY_GYM",
"dest_warp_id": 32
},
{
"x": 0,
"y": 4,
"elevation": 3,
"dest_map": "MAP_SAFFRON_CITY_GYM",
"dest_warp_id": 22
},
{
"x": 0,
"y": 7,
"elevation": 3,
"dest_map": "MAP_SAFFRON_CITY_GYM",
"dest_warp_id": 20
},
{
"x": 0,
"y": 12,
"elevation": 3,
"dest_map": "MAP_SAFFRON_CITY_GYM",
"dest_warp_id": 30
},
{
"x": 0,
"y": 15,
"elevation": 3,
"dest_map": "MAP_SAFFRON_CITY_GYM",
"dest_warp_id": 11
},
{
"x": 0,
"y": 20,
"elevation": 3,
"dest_map": "MAP_SAFFRON_CITY_GYM",
"dest_warp_id": 28
},
{
"x": 0,
"y": 23,
"elevation": 3,
"dest_map": "MAP_SAFFRON_CITY_GYM",
"dest_warp_id": 19
},
{
"x": 8,
"y": 4,
"elevation": 3,
"dest_map": "MAP_SAFFRON_CITY_GYM",
"dest_warp_id": 18
},
{
"x": 8,
"y": 7,
"elevation": 3,
"dest_map": "MAP_SAFFRON_CITY_GYM",
"dest_warp_id": 7
},
{
"x": 8,
"y": 12,
"elevation": 3,
"dest_map": "MAP_SAFFRON_CITY_GYM",
"dest_warp_id": 17
},
{
"x": 8,
"y": 15,
"elevation": 3,
"dest_map": "MAP_SAFFRON_CITY_GYM",
"dest_warp_id": 15
},
{
"x": 8,
"y": 20,
"elevation": 3,
"dest_map": "MAP_SAFFRON_CITY_GYM",
"dest_warp_id": 26
},
{
"x": 8,
"y": 23,
"elevation": 3,
"dest_map": "MAP_SAFFRON_CITY_GYM",
"dest_warp_id": 13
},
{
"x": 12,
"y": 4,
"elevation": 3,
"dest_map": "MAP_SAFFRON_CITY_GYM",
"dest_warp_id": 24
},
{
"x": 12,
"y": 7,
"elevation": 3,
"dest_map": "MAP_SAFFRON_CITY_GYM",
"dest_warp_id": 12
},
{
"x": 16,
"y": 4,
"elevation": 3,
"dest_map": "MAP_SAFFRON_CITY_GYM",
"dest_warp_id": 10
},
{
"x": 16,
"y": 7,
"elevation": 3,
"dest_map": "MAP_SAFFRON_CITY_GYM",
"dest_warp_id": 9
},
{
"x": 18,
"y": 15,
"elevation": 3,
"dest_map": "MAP_SAFFRON_CITY_GYM",
"dest_warp_id": 5
},
{
"x": 20,
"y": 4,
"elevation": 3,
"dest_map": "MAP_SAFFRON_CITY_GYM",
"dest_warp_id": 23
},
{
"x": 20,
"y": 7,
"elevation": 3,
"dest_map": "MAP_SAFFRON_CITY_GYM",
"dest_warp_id": 4
},
{
"x": 20,
"y": 12,
"elevation": 3,
"dest_map": "MAP_SAFFRON_CITY_GYM",
"dest_warp_id": 21
},
{
"x": 20,
"y": 15,
"elevation": 3,
"dest_map": "MAP_SAFFRON_CITY_GYM",
"dest_warp_id": 16
},
{
"x": 20,
"y": 20,
"elevation": 3,
"dest_map": "MAP_SAFFRON_CITY_GYM",
"dest_warp_id": 27
},
{
"x": 20,
"y": 23,
"elevation": 3,
"dest_map": "MAP_SAFFRON_CITY_GYM",
"dest_warp_id": 14
},
{
"x": 28,
"y": 4,
"elevation": 3,
"dest_map": "MAP_SAFFRON_CITY_GYM",
"dest_warp_id": 25
},
{
"x": 28,
"y": 7,
"elevation": 3,
"dest_map": "MAP_SAFFRON_CITY_GYM",
"dest_warp_id": 8
},
{
"x": 28,
"y": 12,
"elevation": 3,
"dest_map": "MAP_SAFFRON_CITY_GYM",
"dest_warp_id": 31
},
{
"x": 28,
"y": 15,
"elevation": 3,
"dest_map": "MAP_SAFFRON_CITY_GYM",
"dest_warp_id": 6
},
{
"x": 28,
"y": 20,
"elevation": 3,
"dest_map": "MAP_SAFFRON_CITY_GYM",
"dest_warp_id": 29
},
{
"x": 28,
"y": 23,
"elevation": 3,
"dest_map": "MAP_SAFFRON_CITY_GYM",
"dest_warp_id": 3
}
],
"coord_events": [],
"bg_events": [
{
"type": "bg_event_type_0",
"x": 12,
"y": 20,
"elevation": 0,
"script": "SaffronCity_Gym_EventScript_16EF55"
},
{
"type": "bg_event_type_0",
"x": 16,
"y": 20,
"elevation": 0,
"script": "SaffronCity_Gym_EventScript_16EF55"
}
]
}