Skip to content

[DRAFT] Match KartTumble using LLM - #85

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

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

Conversation

@derivator

Copy link
Copy Markdown

Hi, after discussing with some people on Discord, I let OpenCode loose on KartTumble as an experiment. Full disclosure, this code was 100% written by an LLM with no human intervention in about an hour. I have deliberately left it unchanged. I know C++ but I'm not an experienced decomper so I can not judge the quality. The only thing that jumps out at me is the type of the _14 member, and obviously variable names could be improved. Let me know if you want me to try improving this or if this kind of PR is unwanted :)

- Reconstruct MakeWanWanTumble, MakeKameTumble, MakeStarTumble,
  MakeDashTumble, DoTumble, DoPakunTumble, DoHanaTumble,
  MakePoiHanaTumble, DoShootCrashCrl, DoTumbleCrl, DoAfterTumbleCrl.
- Add ItemObj::getPos(TVec3f*) inline body so it emits in this TU.
- MakePoiHanaTumble uses TKartThrower getThrowPow()/getThrowDir() and
  the s32->float double-magic conversion; force f31 accumulation via a
  named 5.0f constant.

Unit main/Yamamoto/KartTumble now 15/15 matched (100%).
@derivator

Copy link
Copy Markdown
Author

Those switch statements look very suspect as well...

KartTumble.cpp now matches the target at 100% (15/15 functions), so
enable it for linking in the matching DOL build.
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