Commit Graph

1136 Commits

Author SHA1 Message Date
Carco_21 cb73e7a1da Work on create functions of d_a_npc_midp and changed mpMatAnm to array (#2366)
* Work on create functions of d_a_npc_midp and changed mpMatAnm to array

* Pull request cleanup
2025-04-01 13:31:12 -07:00
Carco_21 8ac81be425 d_a_ep work (#2364)
* Started work on d_a_ep

* Work on daEp_Create

* daEp_Execute work and other smaller functions

* Work on execute function and started on move function

* Work on ep_move

* Data matching and pushed some functions to 100%

* Pull request cleanup
2025-04-01 13:29:46 -07:00
hatal175 4dfd9b9f3c d_a_npc_worm matching (#2365)
* d_a_npc_worm matching

* Rename a_this
2025-03-31 18:30:42 -07:00
TakaRikka e6b07b81e4 d_a_b_mgn equivalent (#2363) 2025-03-31 19:43:11 +03:00
Carco_21 2441910a1c d_a_npc_zant work (#2354)
* d_a_npc_zant create work

* d_a_npc_zant almost matching

* All functions matching except sinit. Pull request cleanup
2025-03-31 19:40:56 +03:00
Vlad 4f34496a2e d_a_obj_dust work, 90% matching (#2362)
* d_a_obj_dust work 90% matching

* d_a_obj_dust work 90% matching
2025-03-30 21:51:01 -07:00
Huitzi 726e27cf98 d_event_debug equivalent & modifications to dEvLib_callback_c (#2359)
* WIP d_event_debug
* Implemented most functions close to matching
* Removed erroneous comment in d_com_inf_game.h
* Implemented getEventP in dEvDtBase_c
* Retyped dEvLib_callback_c function returns from BOOL to bool
* Implemented getHeader, getEventList, and setDbgData in dEvent_manager_c
* Moved relevant dEvDb_* classes from d_event.h to d_event_debug.h and changed to structs
* Extended JORFile mFilename character array from 8 to 256 characters
* Implemented combo boxes and update slider functionalities in JORMContext
* Named field_0xC of JORProperyEvent as id, based on use of field in d_event_debug.cpp
* Corrected debug event tables and created missing table
* Debug tables explicitly pasted in d_event_debug.cpp to circumvent ShiftJIS not properly encoding tables via #include directive

* Change return types for implemented virtual functions of actors that inherit from dEvLib_callback_c

* Add const modifier to several d_com_inf_game functions called in d_event_debug, and change respective fields in dEvDb_bit & reg_c to be const

* d_event_debug Equivalent
* Changed configure.py entry to equivalent instead of matching
* Preliminary documentation

* Remove debug tables from d_event.cpp
2025-03-30 20:11:50 -07:00
LagoLunatic a87e831b18 Fix dPnt struct (#2361)
* Fix dPnt struct

* Fix Vec warning
2025-03-30 15:45:59 -07:00
LagoLunatic 7ac9c97e33 Debug build now takes .alf as input instead of .dol (#2360)
* Fix debug build

* Debug build now takes .alf as input instead of .dol

I had to manually remove the following line from symbols.txt for DTK to work:
```
.data = .sbss:0x8074C97C; // type:object size:0x4 scope:local data:byte
```
After that it built OK, and DTK automatically modified all other lines in symbols.txt.

* Fix pragma in header messing up debug optimization level
2025-03-30 15:43:44 -07:00
Trueffel 392c0f3181 d_a_e_kk equivalent (#2358)
* d_a_e_kk equivalent

* some docs
2025-03-29 21:24:51 +03:00
TakaRikka 64621f3ca3 e_th equivalent (#2357) 2025-03-29 17:41:13 +03:00
hatal175 803544b5df daPeru_c equivalent (#2356) 2025-03-28 23:55:32 -07:00
soruh 0e90acdb9f Name d_a_cow Animations (#2355)
* name d_a_cow animations

* name run type according to animation name
2025-03-27 20:12:13 -07:00
soruh 8e562847be d_a_cow Equivalent (#2353)
* decompile d_a_cow

* rescope enums to daCow_c class

* apply suggestions by TakaRikka

* fix JUT_ASSERT
2025-03-27 17:56:51 -07:00
Carco_21 31e63d5c02 Work on d_a_obj_timer (#2350)
* Work on d_a_obj_timer

* Cleanup for pull request
2025-03-27 15:46:01 -07:00
Carco_21 02f136235c d_a_b_mgn (Dark Beast Ganon) (#2348)
* Started work on d_a_b_mgn

* Finished some of the smaller functions

* A lot of work on the set_Effect methods

* Work on CreateHeap

* Work on calcBloodMove

* Work on setHideSmokeEffect and _delete

* damage_check at 50%

* demo_skip 94% matching

* Work on some execute functions and a couple others

* Worked on last few functions and general cleanup

* Cleanup for pull request

* Last few pr review comments addressed
2025-03-27 15:45:21 -07:00
TakaRikka 968b010023 d_a_e_th_ball done (#2352) 2025-03-27 11:44:40 +02:00
TakaRikka c5a73223bd fix debug build (#2345) 2025-03-27 00:45:52 -07:00
hatal175 74e25c68aa Work on d_a_npc_cdn3 (#2351) 2025-03-26 18:48:43 -07:00
Sam Chaturvedi d7d1bddb37 d_a_obj_sword matching (#2349)
* d_a_obj_sword matching

* d_a_obj_sword -- Addressed PR comments
2025-03-26 18:38:45 -07:00
Ttobas 08d7508fbf d_a_obj_shoe 91% (#2347)
* Basic structure done

* daNpcShoe_Param_c done, class cleaned a bit, ::Create matching, destructor matching

* WIP

* About 70% done

* Fix after merging main

* TU almost done, missing correct rodata ordering, constructor, setMotionAnim, __sinit not matching

* Fix: Apply suggestions

---------

Co-authored-by: Ttobas <anon@ym.ous>
2025-03-25 18:05:02 -07:00
Emma b83ffd4882 d_a_obj_flag 95% (#2341)
* Started work on d_a_obj_stick

* Lots of green

* Fixed mAcch vtable

* Only missing switch/if problem in create

* All green

* Set stick matching

* Cleanup

* Addressed PR comments

* Reset vscode config

* Started d_a_obj_flag

* More work on flag

* More work on flag

* Flag 60%

* Flag progress

* 80% done

* 87% done

* 95%

* Some more work

* Addressed PR comments

* Switched c for 99
2025-03-25 18:04:00 -07:00
Sam Chaturvedi db83cd5d28 d_a_obj_ganonwall matching (#2346)
* d_a_obj_ganonwall matching

* applied suggestions

* Rework l_idx into 2d array
2025-03-24 17:01:39 -07:00
Stbn-antier 48fcb9dc9d d_a_obj_sekidoor matching (#2344)
* Started work on d_a_obj_sekidoor, 38% match

* Filled functions, rough 70% match

* 76% method matching

* 84% match, only setPrtcls remaining

* Object 100% matching

* Cleanup, remove padding

* Adressed review comments

* Adressed review comment
2025-03-24 03:47:49 -07:00
Łukasz Starzyk f47f32cacc d_a_obj_amiShutter equivalent (#2342)
* init commit

* functions matching progress

* new inline function

added new inline function `OnRoofRegist` to cBgW class

* use of inline function

uses the inline function as in the debug version

* d_a_obj_amiShutter equivalent

* cleanup and field rename

* addressed PR comments
2025-03-23 22:29:10 +02:00
TakaRikka 90c07136bd b_gnd equivalent (#2340)
* b_gnd equivalent

* fix dEvt_info_c inlines

* fix some more inlines
2025-03-23 21:55:28 +02:00
LagoLunatic 0ff06d2974 Debug version now builds OK and all_source compiles (#2343)
* Fix missing arg to JUT_ASSERT

* Fix some MWCC version diff errors

* Compile m_Do_ext, d_demo, actor_mng

* Add VSCode task to quickly switch between versions

* Unlink magLift for debug

* Update the hash of the debug dol

The old cbea5fa... hash here was for the dol generated by the alf2dol.py script, which produces incorrect alignment.

The dol with the new hash can be obtained by using `dtk elf2dol` to convert the debug .alf file to a dol.

The DOL now builds OK.

* Fix all debug REL dtor splits

All RELs now also build OK, meaning `ninja build/ShieldD/ok` now succeeds.

* Add genMessage declarations to all HIO subclasses

* Fixing more compilation errors

* m_Do_mtx 100% on debug

Cannot be linked due to weak function name mangling?

* Improve various matches

* Fix all remaining compilation errors

* Fix new compilation errors from main

* Fix retail regression

* Link f_pc_profile_lst
2025-03-22 18:00:51 -07:00
Carco_21 7fb9310f43 d_a_mant almost done (#2335)
* d_a_mant Create almost equivalent

* Work on mant_move

* Remade d_a_mant branch

* d_a_mant ~76% matching

* daMant_packet_c::draw() 69% matching

* d_a_mant data matching and joint_control over 50% matching

* daMant_Execute looking better

* d_a_mant 92% equivalent

* Removed commented rodata
2025-03-22 02:16:25 -07:00
Caroline Madsen 23f56e4c20 Z2AudioLib work (#2339)
* Z2LinkMgr work, Z2AudioArcLoader matching

* Z2SeMgr matching

* Z2SpeechMgr2 almost done, Z2SoundHandles matching
2025-03-21 23:03:43 -07:00
soruh 42b75737d5 decompile d_a_obj_bmshutter.cpp (#2338)
* Implement `onCondition` inline function of `dEvt_info_c`

* decompile d_a_obj_bmshutter.cpp

* remove uncesary inline and this->

* use dEvt_info_c::checkCommandDemoAccrpt instead of daObjBmSh_c::checkCommandDemoAccrpt

* change style of members

* Revert "Implement `onCondition` inline function of `dEvt_info_c`"

This reverts commit dc7e945aedef44eb7be76a61c2da37e238560c3e.

* use `i_onCondition` instead of `onCondition`

* make l_ statics local

* remove uncessesary parenthesis

* make actor function pointers return ints

* make l_check_area a Vec[4]
2025-03-21 17:34:45 -07:00
Ttobas 7306fc9ccb d_a_obj_udoor matching (#2337)
* d_a_obj_udoor done

* Fix: Re-type unused fields to u8[]

* Fix: Make padding data implicit in obj_udoor_class

---------

Co-authored-by: Ttobas <anon@ym.ous>
2025-03-20 23:01:58 -07:00
hatal175 f175ac1fa8 d_a_npc_cd2 work (#2336) 2025-03-20 22:59:58 -07:00
Ttobas 82eadade8d d_a_obj_zdoor matching (#2334)
* Fully matching

* Fix PR comments

* Fix PR comments (rename parameter in callback functions)

---------

Co-authored-by: Ttobas <anon@ym.ous>
2025-03-20 12:32:51 +02:00
Emma 947851ee6e d_a_obj_metalbox matching (#2333)
* Started work on d_a_obj_stick

* Lots of green

* Fixed mAcch vtable

* Only missing switch/if problem in create

* All green

* Set stick matching

* Cleanup

* Addressed PR comments

* Reset vscode config

* d_a_ob_metalbox mostly complete

* Completed d_a_obj_metalbox

* Addressed PR issues
2025-03-20 12:11:32 +02:00
zerox029 9324c1c22b d_a_obj_stick matching (#2332)
* Started work on d_a_obj_stick

* Lots of green

* Fixed mAcch vtable

* Only missing switch/if problem in create

* All green

* Set stick matching

* Cleanup

* Addressed PR comments

* Reset vscode config
2025-03-18 18:39:26 -07:00
Łukasz Starzyk 6375c780f1 d_a_obj_burnbox matching (#2331)
* initial work

* d_a_obj_burnbox, matching

* renamed varia bles and additional cleanup

* assigned correct comments to models' name

* post review changes

* if statement separation in Execute method
2025-03-18 17:18:22 -07:00
TakaRikka 03c019d736 d_a_e_pz equivalent (#2330)
* d_a_e_pz equivalent

* rename var

* match f_pc closer to debug

* hopefully fix decompctx

* sdk done

* remove unneeded file
2025-03-18 15:45:44 -04:00
Carco_21 70cfd7ff7a d_a_b_gnd ~86% equivalent (#2329)
* Remade fresh fork with clean main branch

* d_a_b_gnd functions are 40% matching

* Some data work

* daB_GND_Execute 26% matching

* daB_GND_Execute 59% matching

* Create and useHeapInit work

* Cleanup work and demo_camera at 50% matching

* h_damage_check 91% matching

* eff_set_h 76% matching

* b_gnd_g_down 82% matching

* general work

* a little bit of improvement on himo_control1

* General work

* Draw at 96%

* Small gake_check work

* Small data cleanup

* NodeCallBack matching and data cleanup
2025-03-17 20:03:37 -07:00
hatal175 ebf5c10523 passer_mng work (#2328) 2025-03-15 23:44:45 -04:00
TakaRikka 4ba9e77b25 b_dr equivalent, update dtk-template (#2327)
* d_a_tag_allmato almost done

* d_a_swhit0 done

* some SSystem cleanup

* treesh done

* swball done, some other rel cleanup

* b_dr equivalent

* update dtk-template

* rename j3dframectrl mode enum
2025-03-14 04:46:21 -04:00
hatal175 51a6a0f4fb daObjCBlk_c equivalent (#2326) 2025-03-12 16:03:14 -07:00
Caroline Madsen f5a6f4b101 e_rdy mostly done (#2324)
* e_rdy work

* e_rdy work

* e_rdy work

* e_rdy mostly done

* e_rdy fix hit direction
2025-03-12 16:02:03 -07:00
Caroline Madsen c98e97b27c f_op_actor_mng matching (#2325) 2025-03-12 15:57:14 -07:00
hatal175 bcf6016cba daObjNAN_c equivalent (#2320)
* daObjNAN_c equivalent

* Remove padding
2025-03-09 16:05:03 -07:00
YunataSavior 9de28f1010 d_a_e_kg equivalent except for action (#2321)
* Initial work on d_a_e_kg

* d_a_e_kg 57% matching

* d_a_e_kg 83% done with regalloc issue in action function

* d_a_e_kg equivalent except for action
2025-03-10 00:57:19 +02:00
hatal175 2a5b7d0d1f Match daNpc_Jagar_c::chkToMotion (#2319) 2025-03-08 15:25:30 -08:00
YunataSavior 133aaa7e02 Fixes and cleanup for d_a_npc_jagar to hit 99% matching (#2318) 2025-03-08 01:05:46 -08:00
YunataSavior 0c61032a8e d_a_e_zs (a.k.a. Stallord's zombie soldiers) equivalent (#2313)
* Initial work for d_a_e_zs

* d_a_e_zs equivalent

* d_a_e_zs data fixes. Thanks Taka!

* Update d_a_e_zs based on Taka's comments
2025-03-08 01:04:31 -08:00
hatal175 d3138501e5 A little work on daObjMasterSword_c (#2316) 2025-03-07 16:01:15 -08:00
Carco_21 657831d783 d_a_npc_jagar - ~94% (#2309)
* Began work on d_a_npc_jagar

* Major work on daNpc_Jagar_c::create()

* Jagar create() - 11%

* Continued work on daNpc_Jagar_c

* Jagar create() - 87%

* Continues work on Jagar

* Work on Jagar.checkChangeEvt()

* Working on Jagar.talk()

* Work on Jagar.changeBtp()

* Jagar.checkChangeJoint() & checkRemoveJoint()

* Jagar.chkAction() & setAction()

* Jagar.chkChuMotion()

* Jagar.chkSitMotion() & chkSitMotion2()

* Jagar.chkToMotion()

* Jagar.CreateHeap()

* Jagar.createHeapCallBack() & ctrlJointCallBack()

* Jagar.cuAnger()

* Jagar.cutClimbUp() - 92%

* Jagar.setAttnPos() - 85%

* Jagar.cutConversationWithBou() - 48%

* Jagar work and daNpcT_c::getActorDistance - 83%

* Jagar setParam work and daNpcT_c::getActorDistance - 85%

* Prep Jagar push to main

* little cleanup

* Fixed return type discrepancy

* Fixed *other* return type issues & variable names for Jagar

* Jagar talkWithBou work

* Work on Jagar talk

* Data & function cleanup

* I dont remember what i added this time lol

* Finished some functions

* Reworking Jagar talk()

* Finished some functions

* Attempting to rework cutNeedYourHelp

* Almost(ish) done with Jaggle

* Almost done with Jaggle

* Took out inline assembly in Jagar.chkToMotion()

* Cleanup

* Minor variable initialization change

* Small cleanup

* Hopefully fixed d_a_npc_bou compilation error
2025-03-07 19:41:36 +02:00