Commit Graph

1339 Commits

Author SHA1 Message Date
WilliamArnett 11f4940d74 d_a_npc_p1 100% Matching (#1098)
* 99% match

* Rewrote _execute to increase accuracy. Only issue in .text is a label not loading correctly. I have no idea how to fix this.

* Equivalent. Weak func ordering.

* 7% text

* 28% text

* 41% text

* 65% text

* Rewrote _execute to increase accuracy. Only issue in .text is a label not loading correctly. I have no idea how to fix this.

* Equivalent. Weak func ordering.

* 82% text

* Equivalent. A lot of work is needed to name variables and clean up functions. Weak function ordering is wrong.

* Cleaned some functions, named several variables, and began documenting dialog tree.

* Naming a couple more variables

* 21% text

* change out getMySubstanceP for getMyIntegerP inline

* 100% text

* Refactor to use JUT_ASSERT macro

* #181: d_a_tag_attention matching; TODO: implement chk_inside and dComIfGp_att_Look2RequestF

* #181: continue working on d_a_tag_attention, matching almost complete

* #181: revert naming class member (not certain enough)

* #181: preliminary changes to resolve #784 comments regarding usage of debug maps

* #181: commit suggestion by @WilliamArnett, fixing regalloc error

Co-authored-by: WilliamArnett <149556961+WilliamArnett@users.noreply.github.com>

* #181: fix missing curly bracket

* #181: resolve #784 comments with the kind help of @WilliamArnett;
 move `daTagAttention::Act_c::chk_inside` to header file; split `plyrToObjVec` definition to match assembly;
 remove temp variable, use values directly and swap operands;
 implement `Look2RequestF` in `include/d/d_attention.h`;
 remove non-matching use of temp variable `iVar1` and replace `current.pos` with uninitialized variable in `daTagAttention::Act_c::_execute`

* Update fork to match upstream

* some changes

* 73% text

* 100% Matching minus kaji_anm

* Delete debug/m2cdecomp

* revert unnecessary file changes

* remove d_a_npc_p2_cut.inc

* Match kaji_anm

* swap declaration order of l_msg and l_msgId

* Naming many fields

* Implement GetKajiID inline

* Enum and variable names

* Remove virtual genMessage function

* Implement @LagoLunatic 's suggested changes

* Revert array changes in d_camera.h (@LagoLunatic suggested change)

* Whitespace

* Rename dSnap enum

---------

Co-authored-by: Skelp <skelp@pm.me>
Co-authored-by: Skelp <59535863+Skelp@users.noreply.github.com>
2026-08-03 01:40:12 -04:00
LagoLunatic 380407dd26 msg work (#1143)
* fopMsgM_msgDataProc_c::stringSet work

* Fix JPN

* More stringSet work

* work

* get rid of fake temps

* stringSet 99.99%

* fopMsgM_msgDataProc_c::stringLength 100%

* d_msg work

* fix pal

* fix message_paper, d_meter version diff fixes
2026-08-02 21:04:29 -04:00
Benjamin ROELANDT dbc093a3cf d_scope 100% (#1112)
* First version of d_scope, everything is matching on all version, probably missing a few inline on undocumented field that i did not manage to find

* Readd stuff previously deleted but badly tested

* Rename some fields and a few more inline

doesn't improve matching but i think it looks more genuine

* clean up syntax

* move d_scptyp enum and add forgotten inline

* build fix

* replace seStart call with proper enum
2026-08-02 11:45:21 -04:00
LagoLunatic 45718d8ccc Compiler compat fix: Passing of rvalue GXColors to non-const reference parameters (#1142) 2026-07-31 13:20:48 -04:00
LagoLunatic 641268e340 TVec template fixes (#1140)
* TVec template fixes

* Fix cubic
2026-07-31 13:14:06 -04:00
LagoLunatic c9b2970033 obj_drift minor cleanup 2026-07-31 12:01:12 -04:00
Teddy Heidmann 5063d3433c zeldaret/tww#385 d_a_obj_drift (#1100)
* zeldaret/tww#385 d_a_obj_drift

* configure changes

* GZLJ01

* D44J01

* Not matching D44J01

* demo support

* variable cleanup

* revert new helper

* revert again

* Attempt 2

* Try to fix non-deterministic issue

* Revert tide fix

* debug mapping

* more map fixes

* Update src/d/actor/d_a_obj_drift.cpp

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

* review comments

---------

Co-authored-by: LagoLunatic <LagoLunatic@users.noreply.github.com>
2026-07-30 22:46:56 -04:00
LagoLunatic 2bebe68302 majyuu door inlines 2026-07-30 17:17:14 -04:00
Teddy Heidmann 32cd6f7080 d_a_obj_majyuu_door 100% Matching (#1138)
* Initial structure

* More progress

* fix index

* _create()

* more progress

* modeProcCall

* fix smoke_set

* Matching

* add demo support, remove current.roomNo

* cleanup
2026-07-30 17:11:54 -04:00
LagoLunatic be8da688fc zl1 cleanup, inline cleanup 2026-07-27 12:14:38 -04:00
Zeclos 7fae08bcd1 Hi1_demo zl1 cleanup (#1136)
* matching

* cleanup

* d_a_npc_tt matching outside of _create and rodata

* matching

* demo matching + cleanup zl1

* undo removed line

* sorry
2026-07-26 11:32:13 -04:00
LagoLunatic 2091385155 Demo matches 2026-07-24 14:25:28 -04:00
LagoLunatic 26d9efe3b6 Unindent some namespaces 2026-07-24 11:30:45 -04:00
LagoLunatic 7efaae45c7 A couple demo matches 2026-07-24 11:25:35 -04:00
LagoLunatic af1c8e261e Add enum for pearls/symbols 2026-07-23 22:07:02 -04:00
LagoLunatic 4efda6f355 Minor cleanup
Inlines, wrong indentation, enums, private fields, etc
2026-07-23 17:48:51 -04:00
LagoLunatic 2115d05965 d_a_npc_ls1 anim field naming pass, add enums 2026-07-22 21:28:12 -04:00
LagoLunatic 96347ab502 Clean up angle constants and conversions (#1135)
* Add angle conversion constants and macros

* Replace angle literals with hex instead of decimal
2026-07-22 20:13:31 -04:00
WilliamArnett bf372802ca d_a_npc_bm1 100% Matching Retail (#1107)
* 99% match

* Rewrote _execute to increase accuracy. Only issue in .text is a label not loading correctly. I have no idea how to fix this.

* Equivalent. Weak func ordering.

* 7% text

* 28% text

* 41% text

* 65% text

* Rewrote _execute to increase accuracy. Only issue in .text is a label not loading correctly. I have no idea how to fix this.

* Equivalent. Weak func ordering.

* 82% text

* Equivalent. A lot of work is needed to name variables and clean up functions. Weak function ordering is wrong.

* Cleaned some functions, named several variables, and began documenting dialog tree.

* Naming a couple more variables

* 21% text

* change out getMySubstanceP for getMyIntegerP inline

* 100% text

* Refactor to use JUT_ASSERT macro

* #181: d_a_tag_attention matching; TODO: implement chk_inside and dComIfGp_att_Look2RequestF

* #181: continue working on d_a_tag_attention, matching almost complete

* #181: revert naming class member (not certain enough)

* #181: preliminary changes to resolve #784 comments regarding usage of debug maps

* #181: commit suggestion by @WilliamArnett, fixing regalloc error

Co-authored-by: WilliamArnett <149556961+WilliamArnett@users.noreply.github.com>

* #181: fix missing curly bracket

* #181: resolve #784 comments with the kind help of @WilliamArnett;
 move `daTagAttention::Act_c::chk_inside` to header file; split `plyrToObjVec` definition to match assembly;
 remove temp variable, use values directly and swap operands;
 implement `Look2RequestF` in `include/d/d_attention.h`;
 remove non-matching use of temp variable `iVar1` and replace `current.pos` with uninitialized variable in `daTagAttention::Act_c::_execute`

* Update fork to match upstream

* some changes

* 12% text

* 21% text

* 26% text

* 43% text

* 51% text

* Revert unnecessary file changes

* Update d_a_tag_attention.cpp

* 55% text

* 52% text

* 52% text

* 56% text

* 68%

* 77% text

* 100% matching minus regswap

* 100% matching for retail

* Many more demo matches

* Fix broken match in _create()

* Demo Match

* Add some missing inlines

* Fix dComIfGp_setMesgCameraInfoActor

* More inline matching

* fix broken demo match

* Name some fields

* Utilize EventBit enum

* Name more fields, and add inline calls to d_a_npc_ls1

* Remove comments

* Implement @LagoLunatic suggested changes

* remove actor cast from dSnap_RegistFig calls

* Fix broken match in eInit_ATTENTION_

* Second round of @LagoLunatic 's suggested changes

---------

Co-authored-by: Skelp <skelp@pm.me>
Co-authored-by: Skelp <59535863+Skelp@users.noreply.github.com>
2026-07-22 20:10:59 -04:00
LagoLunatic 5c556d3c53 Enum usage 2026-07-22 12:36:48 -04:00
LagoLunatic 0fdc3a3f3b Cleanup/documentation for various photo-related code 2026-07-19 15:54:06 -04:00
LagoLunatic c1513e97e5 Some npc/ship inline fixes from debug map 2026-07-17 16:08:55 -04:00
Zeclos d3d65a4d8c d_a_npc_mk matching (#1115)
* matching

* cleanup

* d_a_npc_tt matching outside of _create and rodata

* matching

* all symbols matching order wrong fake inline usage

* matching

* cleanup, naming of some fields and enums

* undo changes
2026-07-16 17:23:52 -04:00
LagoLunatic c562f05ffa Merge pull request #1120 from LagoLunatic/clib-limit
Improve cLib limit inlines
2026-07-16 17:21:09 -04:00
LagoLunatic c30c494a15 Some demo matches and fake inline fixes 2026-07-14 17:06:45 -04:00
LagoLunatic a1ef9f163e Fix tn sjis error again 2026-07-14 10:53:58 -04:00
SuperDude88 fbf39c24c9 Extract Embedded Model Data 2026-07-13 17:09:49 -04:00
LagoLunatic 98721a6b80 d_a_npc_tt inlines fix 2026-07-13 13:37:02 -04:00
LagoLunatic 6f09bf28ce d_a_bwd cleanup 2026-07-08 13:58:35 -04:00
LagoLunatic 28a4a7a979 d_a_bdk cleanup 2026-07-08 13:37:18 -04:00
LagoLunatic aefdf7499b d_a_obj_tide use res enums 2026-07-08 11:59:39 -04:00
LagoLunatic 68ea9331aa d_a_npc_mt OK for all versions
closes #348
2026-07-05 14:07:43 -04:00
Mattias Blum 6812d925ff d_a_npc_mt 100% for GZLE01 (#1102)
* d_a_npc_mt 100% for GZLE01

* implemented dPb_erasePicture and added some relevant inlines

* fixed existing references to mSelectPicture

* PR changes made
2026-07-05 13:49:57 -04:00
LagoLunatic 5adfe20ead d_menu_save OK
closes #1026 closes #1011
2026-07-05 13:48:06 -04:00
Zeclos a7a5b5d636 D_a_npc_tt (#1099)
* matching

* cleanup

* d_a_npc_tt matching outside of _create and rodata

* matching

* cleanup
2026-07-05 13:11:40 -04:00
LagoLunatic bc3b08eb4f Fix d_a_kb demo version diffs, and match a couple retail funcs 2026-06-26 19:04:31 -04:00
SuperDude88 4b401652d9 d_a_kb Almost Matching (#1040)
* d_a_kb Almost Matching

- Get most of the logic in

Still need to switch over from inheritance to composition, will fix at least 2/3 of the functions

* Switch Inheritance -> Composition

Causes regressions in way_check and target_set

* Use More Enums

Now uses res/loop mode/item number/sound/particle/collision attribute/event flag enums properly

* Fix d_a_npc_people

Used kb_class in a couple spots

* Another Inline

Found it in the debug map

* Joint Enums

- Add joint enums with note about normal/big pigs needing to have (at least partially) identical joint setups

* Assert for Joint Numbers

- Make sure the joint numbers match for the normal pig + big pig models
- Update/extend note accordingly
2026-06-26 17:45:09 -04:00
LagoLunatic 08c9098dcf Also mark NZ_JNT as an ambiguous name 2026-06-16 15:24:19 -04:00
LagoLunatic cc561b1b09 Fix BOW_JNT ambiguity in res_arc.py script 2026-06-16 15:11:23 -04:00
123456789758 d61a31e7ab Use joint enums in several different places (#981)
Co-authored-by: ‎ ‎ ‎ <‎ ‎ ‎>
2026-06-16 14:55:36 -04:00
N1ghtD3c0d3r f2d931cd81 d_a_lstair - 100% matching for GZLJ01, GZLE01 and GZLP01 (#1039)
* d_a_lstair - 100% matching for GZLE01

* d_a_lstair - 100% matching for GZLE01 - restore comment deleted by mistake

* d_a_lstair - 100% matching for GZLE01 - fix return values of functions in the MethodTable; replace code with some inlines and macros; improve some casting locations; replace some magic numbers with enum usage; adjust res enum file according general update in the codebase

* d_a_lstair - 100% matching for GZLE01 - remove useless parameter

* d_a_lstair - 100% matching for GZLJ01, GZLE01 and GZLP01
2026-05-31 18:00:48 -04:00
SuperDude88 42b34a740f dComIfGp_event_reset Uses
- Fix a few cases where this wasn't being used properly
2026-05-30 21:06:45 -04:00
LagoLunatic bae595b973 Update all code to use the new enum formats 2026-05-29 16:34:55 -04:00
LagoLunatic 5ac87a6885 Delete old res file id, file index, and joint index enums 2026-05-29 16:34:55 -04:00
LagoLunatic 5cde617f29 Cleanup, improve readability of conditionals 2026-05-28 20:27:24 -04:00
LagoLunatic b597e195b4 Match 3 more d_a_tn funcs, clean up some inlines 2026-05-28 18:36:35 -04:00
123456789758 ce8aa593df d_a_tn - 99% matching (#994)
Co-authored-by: ‎ ‎ ‎ <‎ ‎ ‎>
2026-05-28 13:59:57 -04:00
LagoLunatic 8b46c357e4 Demo work and fakematch cleanup (#1034) 2026-05-28 13:49:11 -04:00
123456789758 a70388d63f d_a_mo2 - 100% matching (#939)
Co-authored-by: ‎ ‎ ‎ <‎ ‎ ‎>
2026-05-28 13:46:38 -04:00
LagoLunatic bafd8aba62 Implement some more JPAEmitter inlines 2026-05-26 22:18:04 -04:00