Skip to content

Conversation

@swekka
Copy link
Contributor

@swekka swekka commented Dec 20, 2025

No description provided.

@decomp-dev
Copy link

decomp-dev bot commented Dec 20, 2025

Report for SOUE01 (df5bd1a - 3bbca85)

📈 Matched code: 23.04% (+0.08%, +10628 bytes)
📈 Linked code: 14.38% (+0.09%, +11868 bytes)

✅ 33 new matches
Unit Function Bytes Before After
d_a_obj_rope_igaigaNP/REL/d/a/obj/d_a_obj_rope_igaiga dAcOropeIgaiga_c::executeState_Stick() +1128 0.35% 100.00%
d_a_obj_rope_igaigaNP/REL/d/a/obj/d_a_obj_rope_igaiga dAcOropeIgaiga_c::fn_257_2310(short) +1032 0.00% 100.00%
d_a_obj_rope_igaigaNP/REL/d/a/obj/d_a_obj_rope_igaiga dAcOropeIgaiga_c::executeState_Rope() +841 0.47% 100.00%
d_a_obj_rope_igaigaNP/REL/d/a/obj/d_a_obj_rope_igaiga dAcOropeIgaiga_c::executeState_Ground() +749 0.53% 100.00%
d_a_obj_rope_igaigaNP/REL/d/a/obj/d_a_obj_rope_igaiga dAcOropeIgaiga_c::initializeState_Stick() +676 0.59% 100.00%
d_a_obj_rope_igaigaNP/REL/d/a/obj/d_a_obj_rope_igaiga dAcOropeIgaiga_c::executeState_Water() +648 0.61% 100.00%
d_a_obj_rope_igaigaNP/REL/d/a/obj/d_a_obj_rope_igaiga dAcOropeIgaiga_c::executeState_Init() +613 0.65% 100.00%
d_a_obj_rope_igaigaNP/REL/d/a/obj/d_a_obj_rope_igaiga dAcOropeIgaiga_c::create() +420 0.00% 100.00%
d_a_obj_rope_igaigaNP/REL/d/a/obj/d_a_obj_rope_igaiga dAcOropeIgaiga_c::actorExecute() +368 0.00% 100.00%
d_a_obj_rope_igaigaNP/REL/d/a/obj/d_a_obj_rope_igaiga dAcOropeIgaiga_c::fn_257_21D0() +316 0.00% 100.00%
d_a_obj_rope_igaigaNP/REL/d/a/obj/d_a_obj_rope_igaiga dAcOropeIgaiga_c::fn_257_1DF0() +296 0.00% 100.00%
d_a_obj_rope_igaigaNP/REL/d/a/obj/d_a_obj_rope_igaiga dAcOropeIgaiga_c::fn_257_1FF0(float*, bool) +248 0.00% 100.00%
d_a_obj_rope_igaigaNP/REL/d/a/obj/d_a_obj_rope_igaiga dAcOropeIgaiga_c::fn_257_2720() +224 0.00% 100.00%
d_a_obj_rope_igaigaNP/REL/d/a/obj/d_a_obj_rope_igaiga dAcOropeIgaiga_c::executeState_Tree() +213 1.85% 100.00%
d_a_obj_rope_igaigaNP/REL/d/a/obj/d_a_obj_rope_igaiga dAcOropeIgaiga_c::fn_257_1D20() +208 0.00% 100.00%
d_a_obj_rope_igaigaNP/REL/d/a/obj/d_a_obj_rope_igaiga dAcOropeIgaiga_c::fn_257_20F0(float, float) +176 0.00% 100.00%
d_a_obj_rope_igaigaNP/REL/d/a/obj/d_a_obj_rope_igaiga dAcOropeIgaiga_c::fn_257_1F20() +152 0.00% 100.00%
d_a_obj_rope_igaigaNP/REL/d/a/obj/d_a_obj_rope_igaiga dAcOropeIgaiga_c::createHeap() +144 0.00% 100.00%
d_a_obj_rope_igaigaNP/REL/d/a/obj/d_a_obj_rope_igaiga dAcOropeIgaiga_c::fn_257_1CA0() +124 0.00% 100.00%
d_a_obj_rope_igaigaNP/REL/d/a/obj/d_a_obj_rope_igaiga dAcOropeIgaiga_c_classInit() +83 63.75% 100.00%
d_a_obj_rope_igaigaNP/REL/d/a/obj/d_a_obj_rope_igaiga dAcOropeIgaiga_c::initializeState_Ground() +76 5.00% 100.00%
d_a_obj_rope_igaigaNP/REL/d/a/obj/d_a_obj_rope_igaiga dAcOropeIgaiga_c::~dAcOropeIgaiga_c() +65 74.73% 100.00%
d_a_obj_rope_igaigaNP/REL/d/a/obj/d_a_obj_rope_igaiga dAcOropeIgaiga_c::initializeState_Water() +51 3.08% 100.00%
d_a_obj_rope_igaigaNP/REL/d/a/obj/d_a_obj_rope_igaiga dAcOropeIgaiga_c::draw() +40 0.00% 100.00%
d_a_obj_rope_igaigaNP/REL/d/a/obj/d_a_obj_rope_igaiga dAcOropeIgaiga_c::fn_257_21A0() +40 0.00% 100.00%
d_a_obj_rope_igaigaNP/REL/d/a/obj/d_a_obj_rope_igaiga dAcOropeIgaiga_c::finalizeState_Stick() +33 11.11% 100.00%
d_a_obj_rope_igaigaNP/REL/d/a/obj/d_a_obj_rope_igaiga dAcOropeIgaiga_c::fn_257_1FD0() +24 0.00% 100.00%
d_a_obj_rope_igaigaNP/REL/d/a/obj/d_a_obj_rope_igaiga __sinit_\d_a_obj_rope_igaiga_cpp +17 98.63% 100.00%
d_a_obj_rope_igaigaNP/REL/d/a/obj/d_a_obj_rope_igaiga dAcOropeIgaiga_c::finalizeState_Init() +15 10.00% 100.00%
d_a_obj_rope_igaigaNP/REL/d/a/obj/d_a_obj_rope_igaiga dAcOropeIgaiga_c::finalizeState_Water() +15 10.00% 100.00%

...and 3 more new matches

Comment on lines 1015 to 1017
void OffCoSet() {
mCo.OffSPrm(1);
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

there should already be a ClrCoSet inline defined


dCcD_SrcSph dAcOropeIgaiga_c::sSphSrc = {
/* mObjInf */
{/* mObjAt */ {0x400, 0x1F, {0, 0, 0}, 1, 0, 0, 0, 0, 0},
Copy link
Collaborator

Choose a reason for hiding this comment

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

Use Type Enum

Comment on lines 59 to 62
inline static void vecCylCalc(mVec3_c &target, const mAng &rot, f32 factor) {
target.x += factor * rot.sin();
target.z += factor * rot.cos();
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

add to issue comment for notice :)

Copy link
Collaborator

Choose a reason for hiding this comment

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

With #291 merged this can now be removed and the call replaced with a call to getCirclePoint from d/d_vec.h

mRotationYOffset = rotationYOffset;
}
mLinkPosDiff = mPosition - dAcPy_c::GetLink()->getCenterTranslation();
if (dAcPy_c::GetLink()->getCurrentAction() == 0x25 /* (IDL_ON_VINES|NO_STAMINA) */) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

This action is not yet known. We know its vine related based on positioning in enum.
Action isnt a bitfield

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah I knew it didn't make much sense but it's what ghidra showed so I added the comments in case it could help me understand the code (it didn't) and I forgot to remove them.


#include "d/a/d_a_base.h"
#include "d/a/obj/d_a_obj_base.h"
#include "d/a/obj/d_a_obj_ivy_rope.h"
Copy link
Collaborator

Choose a reason for hiding this comment

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

d_a_obj_ivy_rope can be removed from this header.

Instead forward delcare it since its used for a reference

} else if (field_0x91E == 0) {
deleteRequest();
}
if ((u16)(field_0x91E - 1) <= 1) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
if ((u16)(field_0x91E - 1) <= 1) {
if (field_0x91E > 0 && field_0x91E < 3) {

This should work too

@swekka swekka force-pushed the d_a_obj_rope_igaiga branch from 71eabb6 to 206079e Compare December 29, 2025 12:11
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.

3 participants