Convert map data to JSON

This commit is contained in:
Marcus Huderle
2019-01-31 15:51:20 -06:00
parent 5c1667b41a
commit 29d6221935
2102 changed files with 72595 additions and 27039 deletions
-8
View File
@@ -1,8 +0,0 @@
DewfordTown_MapConnectionsList:
connection up, -60, MAP_ROUTE106
connection right, 0, MAP_ROUTE107
DewfordTown_MapConnections:
.4byte 2
.4byte DewfordTown_MapConnectionsList
-24
View File
@@ -1,24 +0,0 @@
DewfordTown_EventObjects:
object_event 1, EVENT_OBJ_GFX_WOMAN_2, 0, 7, 12, 3, MOVEMENT_TYPE_WANDER_LEFT_AND_RIGHT, 1, 0, 0, 0, DewfordTown_EventScript_1E95B1, 0
object_event 2, EVENT_OBJ_GFX_EXPERT_M, 0, 12, 9, 3, MOVEMENT_TYPE_FACE_LEFT, 0, 1, 0, 3, DewfordTown_EventScript_1E9511, FLAG_HIDE_MR_BRINEY_DEWFORD_TOWN
object_event 3, EVENT_OBJ_GFX_FISHERMAN, 0, 12, 14, 3, MOVEMENT_TYPE_WANDER_LEFT_AND_RIGHT, 1, 0, 0, 0, DewfordTown_EventScript_1E95D5, 0
object_event 4, EVENT_OBJ_GFX_MR_BRINEYS_BOAT, 0, 12, 8, 1, MOVEMENT_TYPE_FACE_DOWN, 0, 0, 0, 0, 0x0, FLAG_HIDE_MR_BRINEY_BOAT_DEWFORD_TOWN
object_event 5, EVENT_OBJ_GFX_BOY_1, 0, 1, 6, 3, MOVEMENT_TYPE_LOOK_AROUND, 0, 0, 0, 0, DewfordTown_EventScript_1E9922, 0
DewfordTown_MapWarps:
warp_def 3, 3, 0, 0, MAP_DEWFORD_TOWN_HALL
warp_def 2, 10, 0, 0, MAP_DEWFORD_TOWN_POKEMON_CENTER_1F
warp_def 8, 17, 0, 0, MAP_DEWFORD_TOWN_GYM
warp_def 17, 14, 0, 0, MAP_DEWFORD_TOWN_HOUSE1
warp_def 8, 8, 0, 0, MAP_DEWFORD_TOWN_HOUSE2
DewfordTown_MapBGEvents:
bg_event 10, 10, 0, BG_EVENT_PLAYER_FACING_ANY, DewfordTown_EventScript_1E95BA
bg_event 11, 16, 0, BG_EVENT_PLAYER_FACING_ANY, DewfordTown_EventScript_1E95C3
bg_event 4, 10, 0, BG_EVENT_PLAYER_FACING_NORTH, DewfordTown_EventScript_271E73
bg_event 3, 10, 0, BG_EVENT_PLAYER_FACING_NORTH, DewfordTown_EventScript_271E73
bg_event 2, 4, 0, BG_EVENT_PLAYER_FACING_ANY, DewfordTown_EventScript_1E95CC
DewfordTown_MapEvents::
map_events DewfordTown_EventObjects, DewfordTown_MapWarps, 0x0, DewfordTown_MapBGEvents
-15
View File
@@ -1,15 +0,0 @@
DewfordTown:
.4byte DewfordTown_Layout
.4byte DewfordTown_MapEvents
.4byte DewfordTown_MapScripts
.4byte DewfordTown_MapConnections
.2byte MUS_HIGHTOWN
.2byte LAYOUT_DEWFORD_TOWN
.byte MAPSEC_DEWFORD_TOWN
.byte 0
.byte WEATHER_SUNNY
.byte MAP_TYPE_TOWN
.2byte 0
map_header_flags allow_bike=1, allow_escape_rope=0, allow_run=1, show_map_name=1
.byte MAP_BATTLE_SCENE_NORMAL
+174
View File
@@ -0,0 +1,174 @@
{
"id": "MAP_DEWFORD_TOWN",
"name": "DewfordTown",
"layout": "LAYOUT_DEWFORD_TOWN",
"music": "MUS_HIGHTOWN",
"region_map_section": "MAPSEC_DEWFORD_TOWN",
"requires_flash": false,
"weather": "WEATHER_SUNNY",
"map_type": "MAP_TYPE_TOWN",
"allow_bike": true,
"allow_escape_rope": false,
"allow_running": true,
"show_map_name": true,
"battle_scene": "MAP_BATTLE_SCENE_NORMAL",
"connections": [
{
"direction": "up",
"offset": -60,
"map": "MAP_ROUTE106"
},
{
"direction": "right",
"offset": 0,
"map": "MAP_ROUTE107"
}
],
"object_events": [
{
"graphics_id": "EVENT_OBJ_GFX_WOMAN_2",
"x": 7,
"y": 12,
"elevation": 3,
"movement_type": "MOVEMENT_TYPE_WANDER_LEFT_AND_RIGHT",
"movement_range_x": 1,
"movement_range_y": 0,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "DewfordTown_EventScript_1E95B1",
"flag": "0"
},
{
"graphics_id": "EVENT_OBJ_GFX_EXPERT_M",
"x": 12,
"y": 9,
"elevation": 3,
"movement_type": "MOVEMENT_TYPE_FACE_LEFT",
"movement_range_x": 0,
"movement_range_y": 1,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 3,
"script": "DewfordTown_EventScript_1E9511",
"flag": "FLAG_HIDE_MR_BRINEY_DEWFORD_TOWN"
},
{
"graphics_id": "EVENT_OBJ_GFX_FISHERMAN",
"x": 12,
"y": 14,
"elevation": 3,
"movement_type": "MOVEMENT_TYPE_WANDER_LEFT_AND_RIGHT",
"movement_range_x": 1,
"movement_range_y": 0,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "DewfordTown_EventScript_1E95D5",
"flag": "0"
},
{
"graphics_id": "EVENT_OBJ_GFX_MR_BRINEYS_BOAT",
"x": 12,
"y": 8,
"elevation": 1,
"movement_type": "MOVEMENT_TYPE_FACE_DOWN",
"movement_range_x": 0,
"movement_range_y": 0,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "0x0",
"flag": "FLAG_HIDE_MR_BRINEY_BOAT_DEWFORD_TOWN"
},
{
"graphics_id": "EVENT_OBJ_GFX_BOY_1",
"x": 1,
"y": 6,
"elevation": 3,
"movement_type": "MOVEMENT_TYPE_LOOK_AROUND",
"movement_range_x": 0,
"movement_range_y": 0,
"trainer_type": 0,
"trainer_sight_or_berry_tree_id": 0,
"script": "DewfordTown_EventScript_1E9922",
"flag": "0"
}
],
"warp_events": [
{
"x": 3,
"y": 3,
"elevation": 0,
"dest_map": "MAP_DEWFORD_TOWN_HALL",
"dest_warp_id": 0
},
{
"x": 2,
"y": 10,
"elevation": 0,
"dest_map": "MAP_DEWFORD_TOWN_POKEMON_CENTER_1F",
"dest_warp_id": 0
},
{
"x": 8,
"y": 17,
"elevation": 0,
"dest_map": "MAP_DEWFORD_TOWN_GYM",
"dest_warp_id": 0
},
{
"x": 17,
"y": 14,
"elevation": 0,
"dest_map": "MAP_DEWFORD_TOWN_HOUSE1",
"dest_warp_id": 0
},
{
"x": 8,
"y": 8,
"elevation": 0,
"dest_map": "MAP_DEWFORD_TOWN_HOUSE2",
"dest_warp_id": 0
}
],
"coord_events": [],
"bg_events": [
{
"type": "sign",
"x": 10,
"y": 10,
"elevation": 0,
"player_facing_dir": "BG_EVENT_PLAYER_FACING_ANY",
"script": "DewfordTown_EventScript_1E95BA"
},
{
"type": "sign",
"x": 11,
"y": 16,
"elevation": 0,
"player_facing_dir": "BG_EVENT_PLAYER_FACING_ANY",
"script": "DewfordTown_EventScript_1E95C3"
},
{
"type": "sign",
"x": 4,
"y": 10,
"elevation": 0,
"player_facing_dir": "BG_EVENT_PLAYER_FACING_NORTH",
"script": "DewfordTown_EventScript_271E73"
},
{
"type": "sign",
"x": 3,
"y": 10,
"elevation": 0,
"player_facing_dir": "BG_EVENT_PLAYER_FACING_NORTH",
"script": "DewfordTown_EventScript_271E73"
},
{
"type": "sign",
"x": 2,
"y": 4,
"elevation": 0,
"player_facing_dir": "BG_EVENT_PLAYER_FACING_ANY",
"script": "DewfordTown_EventScript_1E95CC"
}
]
}