diff options
author | Seth Barberee <seth.barberee@gmail.com> | 2021-08-12 17:26:01 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-12 17:26:01 -0700 |
commit | d9883945954a30e4b753ecbd5d807f4b6cd2a38a (patch) | |
tree | 093c45ab4de91a75d546f58a6672dfc72136677c /data/scripts/company_screens.inc | |
parent | e005410884803f1ec8f5942bd0c8d2da5c2e29c8 (diff) |
More data dumping and some code cleaning (#46)
* more data dumping and some code cleaning
* split out cutscene scripts
* initial start at script conversion
* more script work
* use correct type
* clearer up struct field names
* split known scripts into seperate files
* no need to preproc pure ascii strings in debug
* more cutscene work
* split out personality test scripts
* solidify text macros and doc some dungeon fields
* more scripting work
Diffstat (limited to 'data/scripts/company_screens.inc')
-rw-r--r-- | data/scripts/company_screens.inc | 120 |
1 files changed, 120 insertions, 0 deletions
diff --git a/data/scripts/company_screens.inc b/data/scripts/company_screens.inc new file mode 100644 index 0000000..4d21e2e --- /dev/null +++ b/data/scripts/company_screens.inc @@ -0,0 +1,120 @@ + @ Company Screens + CompanyScreensMainThread: + .byte 0xf6, 0x00, 0x0d, 0x00, 0x00, 0x00, 0x00, 0x00 + .byte 0x00, 0x00, 0x00, 0x00 + .4byte GroundDataS04StationFile_Text + changeTileset 0xE2 + pushR14 + msgEnd 0x163 + + .global GroundDataS04StationFile_Text @ 0x826F1F4 + GroundDataS04StationFile_Text: + .string "../data/ground/ground_data_s04_station.c\0" + .align 2,0 + + CompanyScreensMainThreadHeader: + .byte 0x94, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00 + .4byte CompanyScreensMainThread + + CompanyScreens1MainThread: + .byte 0xf6, 0x00, 0x16, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 + .4byte GroundDataS04StationFile_Text + pushR14 + changeTileset 0xE2 + StartSceneRunCall 0 + waitFlag 3 + pause 0x14 + setFlag 4 + waitFlag 3 + pause 0x14 + setFlag 4 + waitFlag 3 + pause 0x14 + setFlag 4 + waitFlag 3 + .byte 0xa6, 0x00, 0x39, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 + pause 0x4 + endFuncAndScript + + CompanyScreens1MainThreadHeader: + .byte 0x90, 0x01, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00 + .4byte CompanyScreens1MainThread + + CompanyScreens1CameraThread: + .byte 0xf6, 0x00, 0x2c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 + .4byte GroundDataS04StationFile_Text + .byte 0x98, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 + .byte 0x22, 0x01, 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 + pause 0x3C + fadeOut 1 0x14 0 + setFlag 3 + waitFlag 4 + warpToLoc 0 @ Nintendo Screen + .byte 0x22, 0x01, 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 + pause 0x3C + fadeOut 1 0x14 0 + setFlag 3 + waitFlag 4 + warpToLoc 1 @ Chunsoft + .byte 0x22, 0x01, 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 + pause 0x3C + fadeOut 1 0x14 0 + setFlag 3 + waitFlag 4 + warpToLoc 2 @ Year Trademark screen + .byte 0x22, 0x01, 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 + pause 0x3C + fadeOut 1 0x14 0 + setFlag 3 + closeThread + + CompanyScreens1UnkThread: + .byte 0xf6, 0x00, 0x48, 0x00 + .byte 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 + .4byte GroundDataS04StationFile_Text + .byte 0x3c, 0x29, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 + closeThreadRemoveObject + + UNK_826F508: + .byte 0x00, 0x00, 0x01, 0x01 + .byte 15, 11, 0x00, 0x02 @ Pokemon Company Screen coordinates + .4byte CompanyScreens1CameraThread + .byte 0x02, 0x00, 0x01, 0x01, 0x00, 0x00, 0x00, 0x02 + .4byte CompanyScreens1UnkThread + + UNK_826F520: + .4byte CompanyScreensMainThreadHeader + + UNK_826F524: + .4byte CompanyScreens1MainThreadHeader + + CompanyScreensScene0: @ 826F528 + .byte 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 + .byte 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 + .byte 0x01, 0x00, 0x00, 0x00 + .4byte UNK_826F520 + + CompanyScreensScene1: @ 826F550 + .byte 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 + .byte 0x00, 0x00, 0x00, 0x00 + .byte 0x02, 0x00, 0x00, 0x00 + .4byte UNK_826F508 + .byte 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 + .byte 0x01, 0x00, 0x00, 0x00 + .4byte UNK_826F524 + + CompanyScreensScenes: @ 826F578 (Scenes) + .byte 0x01, 0x00, 0x00, 0x00 + .4byte CompanyScreensScene0 + .byte 0x01, 0x00, 0x00, 0x00 + .4byte CompanyScreensScene1 + + CompanyScreensWaypoints: @ 826F588 (Waypoints) + .byte 15, 31, 0x00, 0x02, 0x01, 0x01, 0x02, 0x01 @ Nintendo coordinates + .byte 15, 51, 0x00, 0x02, 0x01, 0x01, 0x02, 0x01 @ Chunsoft coordinates + .byte 15, 71, 0x00, 0x02, 0x01, 0x01, 0x02, 0x01 @ Pokemon copyright coordinates + + .byte 0x02, 0x00, 0x00, 0x00 + .4byte CompanyScreensScenes + .4byte CompanyScreensWaypoints + |