Commit Graph

758 Commits

Author SHA1 Message Date
Briggs Baltzell ca9481dcc9 d_cloth_packet matching (#928)
* Match dCloth_packet_c::setMtx

* Match dCloth_packet_c::setGlobalWind

* Match dCloth_packet_c::dCloth_packet_c constructor implementation

* Match dCloth_packet_c::getFactor and get_cloth_anim_sub_factor implementation

* Match dCloth_packet_c::cloth_move implementation

* Match dCloth_packet_c::setNrm implementation

* Match dCloth_packet_c::init and default_factor_checkCB implementation

* Match dCloth_packet_c::draw implementation

* Match dCloth_packet_c::cloth_draw implementation

* Match dCloth_packet_c::plot implementation

* Match dCloth_packet_c::TexObjLoad implementation

* Match dCloth_packet_c::TexObjInit implementation

* Match dCloth_packet_c::TevSetting implementation

* Match dCloth_packet_c::dCloth_packet_create implementation

* Match dCloth_packet_c::TevSetting implementation

* Match dCloth_packetXlu_c::TevSetting implementation and make dCloth_packet_c members protected

* Match dCloth_packetXlu_c::cloth_draw implementation

* Match dClothVobj03_c::cloth_copy implementation and update member definitions

* Match dClothVobj04_c, dClothVobj05_c, and dClothVobj07_0_c::cloth_copy implementations and update member definitions

* Match dClothVobj03_c::init implementation, update cloth_counter definitions, and add new member variables

* Match `dClothVobj04_c::init`, `dClothVobj05_c::init`, and `dClothVobj07_0_c::init` implementations, and add new member variables.

* Match `dClothVobj03_c::dClothVobj03_create` and constructor implementations, update member definitions, and add new logic checks.

* Match `dClothVobj03_c::cloth_move` implementation

* Match `dClothVobj04_c`, `dClothVobj05_c`, and `dClothVobj07_0_c::cloth_move` implementations

* Match `dClothVobj03_c`, `dClothVobj04_c`, `dClothVobj05_c`, and `dClothVobj07_0_c::TexObjInit` implementations, update member definitions, and initialize `mTlutObj`.

* Match `TexObjLoad` implementations for `dClothVobj03_c`, `dClothVobj04_c`, `dClothVobj05_c`, and `dClothVobj07_0_c`.

* Fix `dClothVobj04_c::cloth_move`

* Match `dClothVobj04_create`, `dClothVobj05_create`, and `dClothVobj07_0_create` implementations, update parameter definitions, and add new constructor logic.

* Update parameter names in `dClothVobj05_VtxFactorCB` and `dClothVobj07_0_VtxFactorCB` for consistency.

* Adjust parameter values in `dClothVobj05_create` and `dClothVobj07_0_create` for consistency with expected behavior.

* Match `dClothVobj05_VtxFactorCB` and `dClothVobj07_0_VtxFactorCB` implementations and update return logic.

* Fix constructors

* Refactor repetitive parameter assignments in `dCloth_packet_c` with `setParam` and `setWindPower` for cleaner and more maintainable code.

* Add `setFactorCheckCB` call in `dCloth_packet_c` initialization

* Refactor `dCloth_packet_c` and related classes to eliminate redundant success checks with `chkCreateBuff` helper method.

* Refactor `dCloth_packet_c` and related classes to use getter methods for cleaner access and rename methods for improved clarity.

* Simplify constructors for `dClothVobj03_c`, `dClothVobj04_c`, `dClothVobj05_c`, and `dClothVobj07_0_c` by removing redundant parameters.

* Replace `field_0x109` with `mIsIndoors` for improved clarity and consistency across `dCloth_packet_c` and related classes.

* Replace `VECDotProduct` with `inprod` method in `dCloth_packet_c` for improved readability and modern syntax usage.

* Make `top_pointer` and `cloth_counter` members private in multiple `dClothVobjXX_c` classes for encapsulation.

* Match cloth creation functions

* Add `l_alpha_matDL` assets and update `GXCallDisplayList` usage in `dCloth_packetXlu_c`

* Match dCloth_packet_c::init

* Match dCloth_packet_c::setNrm

* Refactor dCloth_packet_c to use mDoMtx_stack_c methods

* Match `get_cloth_anim_sub_factor` implementation in `dCloth_packet_c`.

* Refactor `getFactor` in `dCloth_packet_c` to use a bitmask for neighbor checks, enhancing code clarity and efficiency.

* Match dCloth_packet_c::cloth_move

* Match dCloth_packet_c::setGlobalWind

* Match dCloth_packet_c::plot implementation

* Remove unused virtual function declarations

* Update `d/d_cloth_packet.cpp` to Matching in configure.py

* Refactor field_0x108 and mIsIndoors to boolean types, rename, and add explanatory comments.

* Update `d/d_cloth_packet.cpp` to `MatchingFor("GZLE01")` in configure.py

* Add new material and alpha material configurations for `d_cloth_packet` across GZLP01, GZLJ01, and D44J01

* Update `d/d_cloth_packet.cpp` to `Matching` in configure.py

* Update `d/d_cloth_packet.cpp` to `MatchingFor("GZLE01", "GZLP01")` in configure.py

* Add conditional GXSetNumIndStages and resetVcdVatCache for non-JPN versions in `dCloth_packet_c::draw`

* Update `d/d_cloth_packet.cpp` to `MatchingFor("GZLJ01", "GZLE01", "GZLP01")` in configure.py

* Matched dCloth_packet_c::dCloth_packet_c for `VERSION_DEMO` in `d/d_cloth_packet.cpp`

* Matched dCloth_packet_c::cloth_move for `VERSION_DEMO` in `d/d_cloth_packet.cpp`

* Matched dCloth_packet_c::draw for `VERSION_DEMO` in `d/d_cloth_packet.cpp`

* Matched dCloth_packet_c::TexObjInit for `VERSION_DEMO` in `d/d_cloth_packet.cpp`

* Matched dClothVobjXX_c::TexObjInit for `VERSION_DEMO` in `d/d_cloth_packet.cpp`

* Update `d/d_cloth_packet.cpp` to `Matching` in configure.py

* Replaced direct member access with getter methods in `d/d_cloth_packet.cpp`

* Added `f` suffix to floating-point literals in `d/d_cloth_packet.cpp` for consistency.
2026-02-12 01:42:21 -05:00
ssorenson130 579931b72c d_a_obj_volcano matching (#924)
* start

* startfire

* some partial matches

* matching

* cleanup

* demo matching
2026-02-11 22:45:53 -05:00
Roland 2168699559 d_a_npc_rsh1 matching (#927)
* Initial work

* 14% matching in .text
- Add some of the static data
- Match sinit function
- Match HIO constructor
- Match _create
- Match some other trivial functions

* Match CreateHeap

* 20% matching in .text

* 31% matching in .text

* 34% matching in .text

* 38% matching in .text

* 51% matching in .text

* createShopList work

* More createShopList work

* 54% matching in .text: Match createShopList

* 57% matching in .text

* 68% matching in .text

* Variable name updates

* 75% matching in .text

* 81% matching in .text

* Match lookBack

* d_a_npc_rsh1 100% for demo and retail

* Replace magic constants with applicable enums

* Give some member fields trivial names and name some method parameters

* Fix a few renaming errors

* More renaming work

* Rename HIO fields and rest of actor fields

* Replace magic numbers associated with mItemNo
2026-02-11 22:40:15 -05:00
Roland c79fa65efd d_a_npc_ls1 matching (#925)
* Match daNpc_Ls1_c::create, decideType, and ctor

* 16% matching in .text
-Match daNpc_Ls1_c::CreateHeap
-Match daNpc_Ls1_c::itemCreateHeap
-Match daNpc_Ls1_c::handCreateHeap
-Match daNpc_Ls1_c::_delete
-Match other trivial functions

* Add hio_prm_c

* 27% matching in .text
-Add some static data
-Match daNpc_Ls1_c::endEvent
-Match daNpc_Ls1_c::isEventEntry
-Match daNpc_Ls1_c::execute
-Match daNpc_Ls1_c::bodyCreateHeap
-Match some more trivial funcs

* 33% matching in .text
-Match daNpc_Ls1_c::create_init
-Match daNpc_Ls1_c::chngAnmTag
-Match daNpc_Ls1_c::ctrlAnmTag
-Match init_LS1_#n() funcs
-Match searchActor funcs

* Add daNpc_Ls1_c::anm_prm_c struct and associated static data

* 39% matching in .text
- Matched daNpc_Ls1_matAnm_c::calc
- Matched static node callbacks
- Matched daNpc_Ls1_c::setAnm_anm
- Matched daNpc_Ls1_c::setAnm_NUM
- Matched daNpc_Ls1_c::chngAnmAtr
- Misc code formatting changes

* 52% matching in .text
- Match daNpc_Ls1_c::play_animation
- Match daNpc_Ls1_c::set_mtx
- Match ResID funcs
- Match daNpc_Ls1_c::setBtp
- Match daNpc_Ls1_c::setMat
- Match daNpc_Ls1_c::setBtk
- Match daNpc_Ls1_c::init_texPttrnAnm
- Match daNpc_Ls1_c::play_btp_anm
- Match daNpc_Ls1_c::play_btk_anm
- Match daNpc_Ls1_c::ctrlAnmAtr
- Match daNpc_Ls1_c::setAnm_ATR
- Match daNpc_Ls1_c::chk_parts_notMov
- Match daNpc_Ls1_c::cut_init_LOK_PLYER
- Match daNpc_Ls1_c::cut_move_WAI
- Match daNpc_Ls1_c::cut_init_ANM_CHG
- Match daNpc_Ls1_c::set_action

* Update comments

* Match daNpc_Ls1_c::_draw

* 63% matching in .text
- Match member J3D node callbacks
- Match daNpc_Ls1_c::eye_ctrl
- Match daNpc_Ls1_c::next_msgStatus
- Match daNpc_Ls1_c::getMsg
- Match daNpc_Ls1_c::chk_talk
- Match daNpc_Ls1_c::setEyeCtrl
- Match daNpc_Ls1_c::clrEyeCtrl
- Match daNpc_Ls1_c::setAttention
- Add misc enums
- Add a_cut_tbl

* 66% matching in .text
- Matched daNpc_Ls1_c::searchByID
- Matched daNpc_Ls1_c::partner_search_sub
- Matched daNpc_Ls1_c::partner_search
- Matched daNpc_Ls1_c::chkAttention
- Marched daNpc_Ls1_c::shadowDraw

* 75% matching in .text
- Match daNpc_Ls1_c::anmAtr
- Match daNpc_Ls1_c::getMsg_LS1_0
- Match daNpc_Ls1_c::chk_talk
- Match daNpc_Ls1_c::setStt
- Match daNpc_Ls1_c::get_playerEvnPos
- Match daNpc_Ls1_c::chkTelescope
- Match daNpc_Ls1_c::wait_1
- Match daNpc_Ls1_c::wait_4
- Match daNpc_Ls1_c::talk_1
- Match daNpc_Ls1_c::demo_action1

* Match daNpc_Ls1_c::wait_3

* 100% matching for both demo and retail

* Update comments

* Initial refactoring work

* Renaming work & declaring functions in f_op_msg_mng header

* Refactoring continued

* Last bit of renaming work

* Add missing include
2026-02-11 22:31:05 -05:00
Roland 1763262970 d_a_oship matching (#929)
* Initial work, 30% matching in .text

* 42% matching in .text

* 51% matching in .text

* 72% matching in .text

* 75% matching in .text

* 93% matching in .text

* d_a_oship 100% for both demo and retail
2026-02-11 22:24:08 -05:00
Roland ba4a7b481c d_a_obj_buoyrace - matching (#921)
* 13% matching in .text

* 32% matching in .text

* d_a_obj_buoyrace 98%

* d_a_obj_buoyrace demo 98%

* link d_a_obj_buoyrace

* Small refactor

* More refactoring

* Small renaming work

* Fix errors

* Variable name cleanup
2026-01-12 14:17:01 -05:00
Roland 6893c2588e d_a_goal_flag - matching (#918)
* initial work on d_a_goal_flag

* Update config.yml to extract symbols from d_a_goal_flag; also add l_pos and l_texCoord

* 17% matching in .text

* daGoal_Flag_c::CreateHeap matched

* RopeMove 99%

* Update d_a_goal_flag.cpp

* getRacePath 100%

* 31% in .text

* 47% matching in .text

* 56% matching in .text

* 70% matching in .text
Add definitions to inlines in daGFlag_packet_c and fully matched some daGFlag_packet_c methods.

* 84% matching in .text
Match daGFlag_packet_c::draw

* 91% matching in .text
- Formatting tweaks
- Match TimerExecute
- Add fopMsgM_MiniGameTerminater_create inline
- Move daGoal_Flag_c::_create in the correct place to match .data

* d_a_goal_flag matching 100% for retail

* d_a_goal_flag demo 99%

* Resolve _create fakematch

* d_a_goal_flag demo matching 100%

* link d_a_goal_flag for demo

* Renaming of fields/variables and some refactoring

* Refactoring continued
- Change direct calls to VECDotProduct to cXyz::getDotProduct

* Named more HIO fields and packet fields

* Implement fopMsgM_MiniGameStarter_create

* Name all used HIO fields

* Named all fields in daGoal_Flag_c

* Finishing touches
2026-01-09 13:09:23 -05:00
Lord-McSweeney ca83b5d1ae d_file_error matching (#915)
* d_file_error decompiled

* Use dComIfGs_getPalLanguage

* Resolve review comments

* d_file_error matching for non-debug
2026-01-01 14:14:13 -05:00
LagoLunatic d272deb179 ospbox OK for demo 2025-12-29 13:28:29 -05:00
LagoLunatic b6999d37a6 d_a_kokiie OK 2025-12-29 13:23:22 -05:00
LagoLunatic e095de7b01 Fix d_a_obj_gnnbtltaki and d_a_obj_gnndemotakie create_heap 2025-12-29 12:59:43 -05:00
Nuss cdaed9aadd d_a_obj_gnndemotakie - matching (#914)
* matching 100%

* D44J01 matching

* demo stuff
2025-12-29 12:47:20 -05:00
LagoLunatic d88201d35f Update objdiff, fixing some minor underreport issues 2025-12-27 21:32:04 -05:00
LagoLunatic 47ce38557b Match warpgn for demo 2025-12-27 21:32:04 -05:00
Roland 49d9ed5757 d_a_obj_ajav - matching (#911)
* initial work on d_a_obj_ajav

* matched Act_c::_create and Part_c::init_data

* initialized cXyz arrays

* 44% matching in .text

* more work on d_a_obj_ajav

* 73% matching in .text

* 83% matching in .text

* 99% of .text matching

* 100% .data matching

* fakematch _execute and link d_a_obj_ajav

* demo matching

* initial code cleanup

* named all fields in Act_c and some Part_c fields

* more documentation

* make a fakematch slightly less fake

* fix _execute for demo

* named more fields in Part_c

* named most fields and parameters

* finishing touches

* update d_a_obj_ajav .cpp and .h

* Commit review suggestions
2025-12-27 18:42:16 -05:00
Roland 24708b315d d_a_warpgn (#910)
* initial work on daWarpgn_c

* 76% of .text matching

* d_a_warpgn matching for retail

* fixed initWarpArrive for GZLJ01

* d_a_warpgn matching for both demo and retail; reformat field names

* Update configure.py

* Update d_a_warpgn.cpp

* unlink from demo and commit suggestions from review
2025-12-23 23:51:56 -05:00
Zeclos 65611e09a4 D_a_npc_hi1 matching for retail (#897)
* bit too difficult for me for now, might go back later

* progress

* getmsg

* logic matching data isnt

* data section matches

* mathubcg 100%

* cleanup

* revert this change

* final cleanup and configure.py

* nevermind cleanup

* Equivalent onstead of matching

* removed padding

* cleanup code comments and a bit more

* matching

* cleanup

* matching for retail

* little bit of cleanup
2025-12-23 23:20:37 -05:00
Roland a0476593c9 d_a_obj_rflw matching (#908)
* initial work on d_a_obj_rflw

* 50% matching in .text

* d_a_obj_rflw 100% for retail and demo

* removed goto from CreateHeap

* cleaning up d_a_obj_rflw

* Update d_a_obj_rflw.cpp

Co-authored-by: LagoLunatic <LagoLunatic@users.noreply.github.com>

---------

Co-authored-by: LagoLunatic <LagoLunatic@users.noreply.github.com>
2025-12-19 00:04:05 -05:00
LagoLunatic 8ce8d2f541 Add JSystem PCH to fix weak function order (#904)
* Add JSystem PCH

* Fix build issues, remove weak order fakematches, and fix functionvalue weak func order
2025-12-05 09:11:53 -08:00
LagoLunatic c076a8000f Match mDoLib_setResTimgObj 2025-11-24 18:49:01 -05:00
Luke Street 55a6d8f1dc Update dtk-template & use wibo on macOS (#901)
* Update dtk-template & use wibo on macOS

* Update to wibo 1.0.0-beta.5

* Fix implicit deps for pch rules
2025-11-20 12:20:02 -05:00
Kristopher Early 2c7dbdc59d d_a_obj_gnnbtltaki OK (#887)
* d_a_obj_gnnbtltaki OK

* d_a_obj_gnnbtltaki Cleanup

* set d_a_obj_gnnbtltaki as matching.

* d_a_obj_gnnbtltaki OK for GZLJ01, GZLE01, GZLP01

* Update d_a_obj_gnnbtltaki.cpp

* d_a_obj_gnnbtltaki Retail and Demo OK
2025-11-10 23:49:10 -08:00
KallePM e7b951841e d_a_yougan (#878)
* d_a_yougan: match retail

* d_a_yougan: match demo

* d_a_yougan: remove nonmatching comments
2025-11-10 23:48:23 -08:00
KallePM cf668ea219 d_a_kmon (#868)
* d_a_kmon: match for retail

* d_a_kmon: match for demo

* d_a_kmon: remove nonmatching comments
2025-11-10 23:46:41 -08:00
LagoLunatic 1a828e61ab Several more actors matching for demo 2025-09-19 18:57:49 -04:00
LagoLunatic 0e9059b633 d_a_dr2 matching for demo 2025-09-19 18:44:06 -04:00
LagoLunatic 048d242eef bpw partial cleanup, fix inline usage across several actors 2025-09-18 20:17:27 -04:00
maimai0254 6980cbaa21 d_a_bdk (#888)
* d_a_bdk - 98%

* C-style

* maybe 100%

* Resolve protected access violation

* Set configure.py to matching
2025-09-17 10:56:12 -04:00
Maide 3fbe8b5798 d_a_kokiie (#884) 2025-09-14 13:18:13 -04:00
Zeclos f754fe68b6 D_a_obj_stair matching for retail (#891)
* bit too difficult for me for now, might go back later

* progress

* getmsg

* logic matching data isnt

* data section matches

* mathubcg 100%

* cleanup

* revert this change

* final cleanup and configure.py

* nevermind cleanup

* Equivalent onstead of matching

* removed padding

* cleanup code comments and a bit more

* text 100% matching

* _draw and MoveBGDraw()

* matches

* MatchingFor change
2025-09-14 13:11:35 -04:00
LagoLunatic c3fdf89c3a d_a_arrow OK for demo 2025-09-08 17:47:54 -04:00
Maide c1b30df5b9 d_a_mflft (#889) 2025-09-08 14:19:30 -04:00
maimai0254 21f0519158 d_a_bdkobj (#874)
* 99% work

* Update configure.py

* Apply suggested changes

* fix ,
2025-09-08 13:46:51 -04:00
Maide 71a6b78ddf d_a_kn (#883) 2025-09-07 00:38:16 -04:00
Maide 6ed56c2bad d_a_door12 (#870) 2025-09-05 22:56:31 -04:00
Maide 064d9d3ea9 d_a_dai (#869) 2025-09-05 22:44:31 -04:00
LagoLunatic 78d9b53a52 Add hacks to fix PCH .data causing fake mismatches with decompctx 2025-09-03 22:20:36 -04:00
LagoLunatic 3ebf69a870 Update objdiff, fix matched data %s in progress report 2025-09-02 18:12:23 -04:00
LagoLunatic 2866b1570f gy_ctrl OK 2025-08-31 22:25:42 -04:00
LagoLunatic b6c62c110c Merge branch 'main' into d_a_gy_ctrl 2025-08-31 22:10:36 -04:00
Maide 0c9ac9c065 d_a_kamome2 (#881)
* d_a_kamome2

* PR
2025-08-31 19:27:23 -04:00
Maide fc3beb2c6c d_a_kamome (#879) 2025-08-31 19:22:55 -04:00
LagoLunatic fbb4ae9935 d_snap OK for demo 2025-08-29 19:37:12 -04:00
Maide e0da16f8c7 d_a_himo3 (#873) 2025-08-29 15:54:28 -04:00
Kelebek1 c01eb698cd d_a_gy_ctrl 2025-08-28 02:10:37 +01:00
Maide 7f22dd203f d_a_cc (#867) 2025-08-26 12:49:28 -04:00
Maide 1b49cb3ce0 d_a_canon (#865) 2025-08-25 18:55:36 -04:00
LagoLunatic b8ddc45f52 Update sjiswrap 2025-08-25 18:51:52 -04:00
LagoLunatic b77717694c Add dolzel_rel.pch
This fixes the sdata linker error in the debug build.
2025-08-23 12:17:10 -04:00
LagoLunatic 77cc6a6119 stone OK and misc demo matches 2025-08-22 23:14:23 -04:00