Commit Graph

48 Commits

Author SHA1 Message Date
Jcw87 be0f59f361 d_mesg 2025-04-17 12:16:48 -07:00
SuperDude88 1f1900bf66 f_op_msg_mng Work (#685)
* f_op_msg_mng work

* Fix Some Conflicts

Haven't had much chance to work on actual progress, still looking to do more matching before merge

* Tiny bit of Work

Little bit of cleanup, start on a couple more functions

* More Matches

Also add back some missing nonmatch comments

* Fixes

* JPN ifdefs

* Inline Fix

Also force one match (there's no way that casting is real)

* Reorder Strings

Fix rodata, I think this order is also slightly more accurate to the function (but I'm not really trying to match it right now anyways)
2025-04-12 21:02:24 -04:00
Mattias Blum 5f287fcaee d_camera 28% (#732)
* initial progress

* more progress

* more progress

* more progress

* more progress

* more progress

* more progress

* more progress

* more progress

* more progress

* more progress

* more progress

* fix outdated member names

* more progress

* more progress

* more progress

* more progress

* more progress

* more progress

* fixed deprecated member references

* more progress

* more progress

* more progress

* fix deprecated member references

* more progress

* more progress

* more progress

* more progress

* more progress

* check in for review

* remove comment

* initial PR changes

* more PR changes

* more PR changes

* added anonymous struct as class member

* reverted changes to `stage_camera2_data_class`

* added `dCamera_event_data`, `dCamera_monitoring_things` and `dCamera_DMC_system` from debug maps

* more progress

* more progress

* realmatch for `camera_draw`

* PR changes

* fix broken merge

* formatting

* Reverted change to `camSphChkdata` that caused  `sph_chk_callback` match to regress

* Reverted change to `BG` struct that caused ctor and dtor match to regress
2025-04-11 16:37:42 -04:00
mattias-blum d945c14cac d_a_ship 95% (#706)
* Initial Progress

Basic functions at 100% matching

100% Matching:
- `daShip_Draw`
- `daShip_Execute`
- `daShip_IsDelete`
- `daShip_Delete`
- `daShip_createHeap`
- `daShip_Create`

* implemented `getJointPos` inlines in `daTornado_c` needed for d_a_ship

* implemented `Center()` inline in `dCamera_c` needed for d_a_ship

* added `setTranslationX` inline to `J3DTexMtx` needed for match in d_a_ship

* parameters set to `const` for certain inlines in `m_Do_mtx.h`

* added `dComIfGp_onMenuCollect` inline

* changed `shipSpecialDemoStart` return type to `BOOL`

* added member functions to `dPa_waveEcallBack`, `dPa_splashEcallBack `, `dPa_trackEcallBack`

also modified member type of `mRotMtx` of `dPa_waveEcallBack`  and `mPos` of `dPa_trackEcallBack`

* added member to `daGrid_c` that is used in d_a_ship

* added `mDoAud_setShipSailState` and `mDoAud_shipCruiseSePlay` inline functions

* added `fopAcM_seenPlayerAngleY` inline

* d_a_ship mostly matching

approx. 90% matching, mostly regalloc issues. , `checkNextMode`, `setRopePos`, `setHeadAnm`, and `execute` need to have their logic fixer

* replace `unknown_inline_TODO ` from `daShip_c` with `checkForceMove`

* .data match

* .rodata matching

* more inline return type changes from `bool` to `BOOL`

Also changed the array size of `mPlayerStatus`

* implemented `force_calc_wind_rel_angle` inline in `daGrid_c`

* fix `d_a_ship_static`

* fixed `getEmitterAxis`, might need review but works for now

* more progress

* reverted change to `getEmitterAxis`, moved casts to function call in `dPa_waveEcallBack::executeAfter`

* more progress

* change return types of certain inlines from `BOOL` to `u32`

`dComIfGp_checkCameraAttentionStatus`, `dComIfGp_checkPlayerStatus0`, `dComIfGp_checkPlayerStatus1` needed for match in d_a_ship

* fixed memory addresses in `daGrid_c`

* more progress

* resolving symbols

* Initial PR changes

* Removed unnecessary cast

* replaced instances of `PSVECSquareMag` with corresponding inline functions

* update memory layout in `d_a_grid` for consistency

* More PR changes

`checkNextMode` and `procZevDemo` now at 100% matching
2025-03-28 14:17:21 -04:00
LagoLunatic 5cb5fe848b Clean up mDoAud_seStart inline
The devs apparently made 4 versions of this inline instead of just using default arguments.
2025-03-17 15:57:18 -04:00
mattias-blum ae528dc3d9 d_a_fganon 100% (#695)
* added `cBgS_Chk::OffSameActorChk`inline function

* initial progress of d_a_fganon

100% Matching:
- `anim_init`
- `tama_draw`
- `daFganon_Draw`
- `daFganon_IsDelete`

Partial Matching:
- `daFganon_Hio_C::daFganon_HIO_c` (88%)
- `deru_brk` (98%, code is matching, variable memory locations needed for 100% match)
- `kieru_brk` (98%, code is matching, variable memory locations needed for 100% match)
- `deru_brk2` (98%, code is matching, variable memory locations needed for 100% match)
- `kieru_brk2` (98%, code is matching, variable memory locations needed for 100% match)
- `pos_move` (73%)
- `move` (80%)
- `mahou_se_set` (82%)
- `daFganon_Delete` (94%, code is matching, variable memory locations needed for 100% match)
- `useHeapInit` (92%)
- `daFganon_Create` (77%)
- `fgannon_class::fganon_class()` (88%)

Remainder haven't been started

* Additional progress, more functions at 100% matching

100% Matching:
- `daFganon_Hio_C::daFganon_HIO_c`
- `anim_init`
- `tama_draw`
- `daFganon_Draw`
- `deru_brk`
- `kieru_brk`
- `deru_brk2`
- `kieru_brk2`
- `pos_move`
- `fly_se_set`
- `mahou_set`
- `mahou_se_set`
- `daFganon_IsDelete`
- `daFganon_Delete`
- `useHeapInit`

Partial Matching:
- `fly` (60%)
- `shot` (46%)
- `move` (92%)
- `daFganon_Execute` (11%)
- `daFganon_Create` (60%)
- `fgannon_class::fganon_class()` (93%)

* More functions at 100% matching

- Added a `cXyz` member to `mant_class` that is referenced in this TU.
- Changed 'fganon_class` to inherit from `fopEn_enemy_c` instead of `fopAc_ac_c`

100% Matching:
- `daFganon_Hio_C::daFganon_HIO_c`
- `anim_init`
- `tama_draw`
- `daFganon_Draw`
- `deru_brk`
- `kieru_brk`
- `deru_brk2`
- `kieru_brk2`
- `pos_move`
- `fly_se_set`
- `fly`
- `shot`
- `spinattack`
- `fly2`
- `tama_set`
- `mahou_set`
- `mahou_set`
- `mahou_se_set`
- `daFganon_IsDelete`
- `daFganon_Delete`
- `useHeapInit`
- `fgannon_class::fganon_class()`

Partial Matching:
- `move` (96%, code is matching, variable memory locations needed for 100% match)
- `daFganon_Execute` (96%, code is matching, variable memory locations needed for 100% match)
- `daFganon_Create` (96%, code is matching, variable memory locations needed for 100% match)

* additional functions at 100% matching

Cleaned up the values of the static globals, will resolve their symbols later

100% Matching:
- `daFganon_Hio_C::daFganon_HIO_c`
- `anim_init`
- `tama_draw`
- `daFganon_Draw`
- `deru_brk`
- `kieru_brk`
- `deru_brk2`
- `kieru_brk2`
- `pos_move`
- `fly_se_set`
- `fly`
- `shot`
- `spinattack`
- `fly2`
- `tama_set`
- `mahou_set`
- `shot2`
- `spinattack2`
- `down`
- `kabe_check`
- `deru`
- `kieru`
- `fail`
- `standby`
- `start`
- `last_end`
- `damage_check`
- `ball_tg_check`
- `mahou_se_set`
- `daFganon_IsDelete`
- `daFganon_Delete`
- `useHeapInit`
- `fgannon_class::fganon_class()`

Partial Matching:
- `end` (97%, code is matching, variable memory locations needed for 100% match)
- `move` (97%, code is matching, variable memory locations needed for 100% match)
- `demo_camera` (63%)
- `daFganon_Execute` (97%, code is matching, variable memory locations needed for 100% match)
- `daFganon_Create` (98%, code is matching, variable memory locations needed for 100% match)

* added `mDoAud_changeSubBgmStatus` inline

* changed return type of `dComIfGp_getPlayerCameraID` inline

needed this change to get a match for this `d_a_fganon`

* d_a_fganon 100% matching

Currently the checksum fails but I have some theories as to why that might be. I'll continue to cleanup the symbols.

* symbol cleanup

* fixed `mDoAud_changeSubBgmStatus` calling wrong function

* 100% matching now, checksum passes

There is a weak function ordering issue so I included the param in `configure.py`

* PR changes made

* Additional PR changes, better naming of class members
2025-03-16 19:04:00 -04:00
LagoLunatic 5400c43ea1 d_a_bk work 2025-01-17 20:04:27 -05:00
LagoLunatic f74fd75332 Misc cleanup 2025-01-08 15:42:47 -05:00
LagoLunatic f8f84a2ac8 procTactPlay, player_tact 100%
fixes #641
2024-06-07 10:02:06 -04:00
LagoLunatic eec24f6c27 procTactWait 2024-06-06 18:48:25 -04:00
LagoLunatic af61ba5f0a d_a_player_tact work 2024-05-08 19:11:20 -04:00
LagoLunatic ad0478fe15 d_a_tag_event OK 2024-04-16 13:28:35 -04:00
LagoLunatic f835d2b98f d_a_npc_md 2024-02-25 18:50:02 -05:00
LagoLunatic 0d899b50f5 d_envse OK 2024-02-04 20:33:51 -05:00
Jasper St. Pierre a6b584eff1 d_s_play work 2024-01-20 22:22:15 -08:00
LagoLunatic 25e69da75e d_cc_uty OK 2024-01-20 19:27:19 -05:00
LagoLunatic 2a27075530 d_a_player_main 2024-01-16 14:44:21 -05:00
Jasper St. Pierre f5773a44d1 d_attention work 2024-01-14 22:10:48 -08:00
LagoLunatic 9037c8e8f1 Use BGM/SE enums for JAIZelBasic 2024-01-13 01:50:54 -05:00
LagoLunatic 48e936269c daPy_lk_c::changeDamageProc 2024-01-10 19:21:12 -05:00
LagoLunatic edbb1ebc9e d_save OK 2024-01-05 00:21:42 -05:00
LagoLunatic ea78ea5f5c d_a_player_main 2024-01-03 15:55:56 -05:00
LagoLunatic 4d85f3c390 d_a_player_main anim data/enum + d_a_player_tact work 2023-12-31 18:04:58 -05:00
LagoLunatic e6edfa7b6f start d_a_player_tact, add player status enums 2023-12-28 18:58:56 -05:00
Jasper St. Pierre 617cf1a248 d_a_tag_waterlevel 2023-12-27 23:37:51 -08:00
Jcw87 91113fa772 JAIZelBasic 2023-12-20 21:25:15 -08:00
LagoLunatic a3170e5d69 add default params to a lot more functions 2023-12-08 16:25:12 -05:00
Jasper St. Pierre b0c3b557c8 d_a_mmusic match 2023-12-03 12:49:51 -08:00
LagoLunatic c130095d7f player_main work, player_ship start 2023-11-19 22:33:45 -05:00
Jasper St. Pierre 04e35fdbe0 d_event_data mostly 2023-11-11 01:49:46 -08:00
LagoLunatic f3eb54ccf8 Set up headers for all JAZelAudio TUs 2023-11-06 02:05:53 -05:00
Dylan Ascencio e5b40fab3e d_a_tbox OK (#536)
* Add model info and demoProc to d_a_Tbox

* Remove nonmatching comment from demoProc

* remove nonmatching comment from getFuncType

* Remove remaining nonmatching comments

* Match first 4 functios of daTbox_c

* Match a bunch of functions for daTbox_c

* Code review cleanup

* Match execute and add some missing weak functions

* Match a few more functions on daTbox_c

* Finish all but actionDemo and draw on daTbox_c

* Fix PTMFs and remove return type from CreateInit

* Match all of daTbox_c. Relocations are wrong for some reason

* Remove nonmatching comments

* d_a_tbox ok
2023-11-01 00:14:13 -04:00
LagoLunatic 9e9f2b3d41 daPy_lk_c::commonProcInit match 2023-10-22 23:46:03 -04:00
Jasper St. Pierre fa21ca4be9 d_metronome: melodyDemo match 2023-10-21 14:13:36 -07:00
Jasper St. Pierre 21fae08883 d_metronome work 2023-10-21 13:35:38 -07:00
SuperDude88 07a5a8cd18 Bomb Work 2023-10-06 17:27:47 -04:00
LagoLunatic 7372aa189b d_a_am 100%, no match 2023-10-06 00:07:15 -04:00
Dylan Ascencio ba091d3092 Execute to 90% 2023-10-03 02:20:21 -04:00
Dylan Ascencio 5842ffc64e Lots of work, many matching functions, most only requiring data to be complete 2023-10-01 20:19:02 -04:00
Jasper St. Pierre f65adb0f97 f_op_camera seems good 2023-09-22 10:58:13 -07:00
TakaRikka 62e1473c58 d_kankyo_wether almost done 2023-09-20 21:04:56 -07:00
TakaRikka 853e5c7fba most of d_kankyo done (#61)
* most of d_kankyo done

* some kankyo fixes
2023-09-19 16:46:06 -07:00
TakaRikka 00fe8a0873 d_seafightgame, m_Do_machine_exception, m_Do_reset, m_Do_DVDError OK (#41)
* m_Do_machine_exception OK

* m_Do_Reset OK

* m_Do_DVDError OK

* some fixes for JP

* JP OK again

* d_seafightgame OK

* cleanup m_Do_Reset a bit
2023-09-16 13:46:37 -07:00
TakaRikka f1d8c41c38 work on d_s_play (#31)
* work on d_s_play

* some fixes
2023-09-14 12:45:49 -07:00
Jasper St. Pierre 44c39026c0 d_a_obj_Ygush00 almost 2023-09-13 15:34:06 -07:00
TakaRikka 85b77c336b work on m_Do_audio and d_com_inf_game (#18)
* fix float issues and add decompctx.py tool

* work on m_Do_audio and d_com_inf_game

* fix build
2023-09-12 03:14:40 -07:00
TakaRikka 6406901ea7 m_Do_main OK 2023-09-10 21:04:21 -07:00
TakaRikka 0f3b98fdca more of d_com_inf_game setup 2023-09-10 16:02:21 -07:00