Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding bank14, good chunk of text transcribed and labelled in bank0d, renaming farcall to callab, and much more #112

Merged
merged 13 commits into from
Jan 16, 2025

Conversation

DrippingYellow
Copy link
Contributor

@DrippingYellow DrippingYellow commented Jan 11, 2025

Forgive me if this is a messy commit, I'm not used to the process of GitHub development.

I've spent the past two weeks or so slaving away at several parts of the SpaceWorld 97 disassembly, with the major changes in no particular order being:

  • Bank $14: has had all of its functions in shim.sym (mostly relating to the stats screen and party menu) properly decompiled, and many more that happened to be found in between. Text and a few functions are labelled, but most are not. There is still about $dc8 bytes left near the end bank, which I have labelled as "Unknown53274".

  • Fly Destinations, Landmarks, Spawn Points: Moved into separate data files, and have been constantified where not previously. Spawn Point and Fly Point constants can be merged if they are redundant, since Fly Point ID is always Spawn Point ID - 1.

  • object_struct changes: Removed the Palette holdover from final GSC, which caused values from Walking to StepType to all be offset by one, and added placeholder value. Additionally split Radius into two bytes, RadiusX and RadiusY, to match treatment in code.

  • Band $0d: Labelled several functions and text, transcribed good chunk of text from raw bytes to actual text, and constantified and labelled move grammar.

  • FarCall name changes: Per issue 69, farcall and its ilk are renamed to match pokered, which is its closest parallel (Port refactorings and formatting from pokered/pokegold/pokecrystal #69)

There might be other minor changes or added labels that I haven't brought up. If there are glaring problems with any of my changes (i.e. naming inconsistencies. I think my "PartyMenuInBattle" functions might be a culprit, oops!), please let me know.

Copy link
Collaborator

@vulcandth vulcandth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Obviously there is still much work to do; and there could still be improvements/fixes with what you did here... but if you fix these few minor things, I think its fine to merge. We can continue to fix/improve in future PR's.

ram/wram.asm Outdated
wccc0:: ds 1
wccc1:: ds 1
wFXAnimID:: dw
;wccc1:: ds 1
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't leave labels commented out; just remove them.

Comment on lines 59 to 61
const MONMENUITEM_FLASH ; 5
const MONMENUITEM_WHIRLPOOL ; 6
const MONMENUITEM_BOUNCE ; 7
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Double check that the comments line up.

Comment on lines 4 to 23
const FLY_POINT_SILENT_HILL ; 0
const FLY_POINT_OLD ; 1
const FLY_POINT_WEST ; 2
const FLY_POINT_HAITEKU ; 3
const FLY_POINT_FONTO ; 4
const FLY_POINT_BAADON ; 5
const FLY_POINT_NEWTYPE ; 6
const FLY_POINT_SUGAR ; 7
const FLY_POINT_BULL_FOREST ; 8
const FLY_POINT_STAND ; 9
const FLY_POINT_KANTO ; 10
const FLY_POINT_PRINCE ; 11
const FLY_POINT_MT_FUJI ; 12
const FLY_POINT_SOUTH ; 13
const FLY_POINT_NORTH ; 14

; Unused?

const FLY_POINT_ROUTE_15 ; 15
const FLY_POINT_ROUTE_18 ; 16
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

index comments should be aligned one space after the longest const name.

Comment on lines 106 to 108
; English version:
;DEF MONS_PER_BOX EQU 20
;DEF NUM_BOXES EQU 14
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can probably just get rid of these lines.

data/maps/landmarks.asm Show resolved Hide resolved
data/maps/landmarks.asm Outdated Show resolved Hide resolved
data/maps/landmarks.asm Outdated Show resolved Hide resolved
ram/wram.asm Outdated Show resolved Hide resolved
@vulcandth
Copy link
Collaborator

also; unrelated. Some of these can be broken up into their own "files" to match some of the other pret repos.. but i'll do that after merge.

@vulcandth vulcandth merged commit ce247cc into pret:master Jan 16, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants