Skip to content

[DRAFT] Match KartSus using LLM - #87

Draft
derivator wants to merge 2 commits into
doldecomp:mainfrom
derivator:kart_sus
Draft

derivator wants to merge 2 commits into
doldecomp:mainfrom
derivator:kart_sus

Conversation

@derivator

Copy link
Copy Markdown

100% LLM-generated, no human review yet. Will review to comply with LLM contribution policy later.

OpenCode added 2 commits October 3, 2026 15:05
- Implement KartSus functions to match MWCC 2.6 decompilation
- Flip Yamamoto/kartSus.cpp to Matching in configure.py
- Unit now 100% matched (matched_code=6188, 19/19 functions)
- complete_units 518 -> 519, complete_code +6188, no regressions
Rename the _xxx placeholder member variables in KartSus to descriptive names
and split the large u8 arrays into properly-typed members:

- _a8[8]  -> f32 mSpring, f32 mDamp
- _bc[4]  -> f32 mSusForce
- _27c[8] -> f32 mTireGrip, f32 mGripScale
- _290[60]-> f32/u8/u32 members (mSusPower, mSusPowerMul, mTireSusA/B,
            mSusParam0, mSusState, mSpringBase/Max/Min/K/Div, mSuspRearY,
            mSuspFrontY, mSusParam2, mObjKind)

Also rename scalar/vector/matrix placeholders (mSusMtx, mTireMtx, mArmMtx,
mSuspArmMtx, mSuspMtx, mDumpMtx, mDumpArmMtx, mWheelRPM, mRPM, etc.) and
update all references across kartCtrlInfo.cpp, KartDisp.cpp, KartDossin.cpp,
KartSound.cpp, kartBody.cpp, KartCrash.cpp. All 19 kartSus functions remain
100% matched (no regression).
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.

1 participant