Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
b1d4c31
match Init__8KartGameFi
9mina Oct 5, 2025
28c6654
match DoItmCancel__8KartGameFv
9mina Oct 5, 2025
5ec6b29
match GetGorundTireNum__8KartGameFv
9mina Oct 6, 2025
cc64602
match WatchEffectAcceleration__8KartGameFv
9mina Oct 6, 2025
a5a736d
match WatchAcceleration__8KartGameFv
9mina Oct 6, 2025
9073695
match DoStopItm__8KartGameFv
9mina Oct 6, 2025
f60b20d
fix redeclaration
9mina Oct 6, 2025
13dd366
match DoChange__8KartGameFv
9mina Oct 8, 2025
99fdad8
match DoDriftTurboSterr__8KartGameFv
9mina Oct 8, 2025
de815a7
match SetDriftTurboSterr__8KartGameFv
9mina Oct 8, 2025
a051257
cleanup
9mina Oct 8, 2025
ef73dae
KartCtrlStrat: WIP
9mina Oct 11, 2025
d917d71
match DoSlide__8KartGameFv
9mina Oct 12, 2025
22aa72a
enum cleanup
9mina Oct 12, 2025
cf87690
match CheckDriftTurbo__8KartGameFv
9mina Nov 9, 2025
f57f96d
match DoRollAnim__8KartGameFv
9mina Nov 11, 2025
9b091da
match DoDriftClear__8KartGameFv
9mina Nov 11, 2025
58f054d
match DoRoll__8KartGameFv (98%)
9mina Nov 29, 2025
081ce79
match DoWarmUpRoll__8KartGameFv
9mina Jan 20, 2026
6f293e7
match DoRoll__8KartGameFv
9mina Jan 20, 2026
6323753
match DoRollOver__8KartGameFv
9mina Jan 20, 2026
8d1b8aa
match DoTestPitch__8KartGameFv
9mina Jan 20, 2026
dacdc91
wip DoLiftTurbo__8KartGameFv
9mina Jan 28, 2026
8cb31f3
kartBody: resolved DriftRight/Left
Apr 2, 2026
8e1c8fc
match DoLiftTurbo__8KartGameFv
May 15, 2026
39ccd4f
match DoActionCtrl__8KartGameFv
May 15, 2026
e8def9b
match DoFlagCtrl__8KartGameFv
9mina May 21, 2026
311c2c7
match AfterItemWatchMan__8KartGameFv
9mina May 21, 2026
5545127
match DoPushStart__8KartGameFv
9mina May 21, 2026
bf7d10b
match DoBalance__8KartGameFPff
9mina May 21, 2026
8dad275
match MakeClear__8KartGameFv
9mina May 21, 2026
a8d47a0
match ItemWatchMan__8KartGameFP7ItemObj
9mina May 21, 2026
0a644ff
match SetRank__8KartGameFv
9mina May 21, 2026
57500c5
match CheckBalloon__8KartGameFv
9mina May 22, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions include/Kawano/driver.h
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ class DriverModel : public ExModel
int IsChange();
int IsChangeBack();
int IsChangeFront();
int IsSit();
int IsStand();

public:
u8 _8c[0xfc - 0x8c];
Expand Down
16 changes: 8 additions & 8 deletions include/Sato/GeographyObj.h
Original file line number Diff line number Diff line change
Expand Up @@ -289,14 +289,14 @@ class ExGeographyObj : public GeographyObj {

~ExGeographyObj() {}
// TODO: check return types
virtual bool Search_Bound(const JGeometry::TVec3f &) { return false; }
virtual bool Search_BoundRadius(const JGeometry::TVec3f &, f32) { return false; }
virtual void Search(const JGeometry::TVec3f &, const JGeometry::TVec3f &) {}
virtual void AddVel(const JGeometry::TVec3f &, const JGeometry::TVec3f &) {}
virtual void Search_Wall(const JGeometry::TVec3f &, f32) { }
virtual void draw(Mtx) {}
virtual f32 getMaxHeight() const { return 0.0f; }
virtual void lockDisplayList() {}
virtual bool Search_Bound(const JGeometry::TVec3f &) { return false; } // 80
virtual bool Search_BoundRadius(const JGeometry::TVec3f &, f32) { return false; } // 84
virtual void Search(const JGeometry::TVec3f &, const JGeometry::TVec3f &) {} // 88
virtual void AddVel(const JGeometry::TVec3f &, const JGeometry::TVec3f &) {} // 8C
virtual void Search_Wall(const JGeometry::TVec3f &, f32) { } // 90
virtual void draw(Mtx) {} // 94
virtual f32 getMaxHeight() const { return 0.0f; } // 98
virtual void lockDisplayList() {} // 9C

template<class T>
static T *ExNew(CrsData::SObject &object) { return new T(object); }
Expand Down
4 changes: 3 additions & 1 deletion include/Sato/JPEffectPerformer.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ class JPEffectPerformer
Effect_Unknown6 = 0x6, // Something reflection related...?
Effect_Unknown12 = 0x12, // Star react.
Effect_Burn = 0x13,
Effect_Unknown1b = 0x1b, // something slide related
Effect_Unknown1A = 0x1A,
Effect_Star = 0x1c
};

Expand Down Expand Up @@ -102,4 +104,4 @@ class JPEffectPerformer
// void JPStartFootSmokeEmitterCallBack::draw(JPABaseEmitter *);
// void PermissionCounterObserver::reset();
// void PermissionCounterObserver::calc();
#endif // JPEFFECTPERFORMER_H
#endif // JPEFFECTPERFORMER_H
28 changes: 18 additions & 10 deletions include/Yamamoto/KartGame.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class KartGame
{
public:
// In kartCtrlStrat.cpp
void Init(int);
bool Init(int kartNo);
void GetGorundTireNum();
void WatchEffectAcceleration();
void WatchAcceleration();
Expand All @@ -22,17 +22,17 @@ class KartGame
void DoDriftTurboSterr();
void SetDriftTurboSterr();
void CheckDriftTurbo();
void DoWarmUpRoll();
f32 DoWarmUpRoll();
void DoRollAnim();
void DoDriftClear();
void DoRoll();
void DoTestPitch();
void DoLiftTurbo();
void DoTurbo();
void DoRollThrow();
void DoRollOver();
int DoRollOver();
void DoWanWan();
void DoPushStart();
bool DoPushStart();
void DoBalance(f32 *, f32);
void MakeClear();
void MakeBoardDash();
Expand All @@ -54,7 +54,7 @@ class KartGame
bool CheckBalloon();
void SetRank();
void RankWatchMan();
void ItemWatchMan(ItemObj *);
void ItemWatchMan(ItemObj *incomingItem);
void AfterItemWatchMan();
void DoFlagCtrl();
void KeepWatch();
Expand Down Expand Up @@ -89,13 +89,21 @@ class KartGame
// void FrameWorkL(f32, f32, KartSus *);
// void DoTurboPower();
// void CheckBalloonPlayer();
KartBody *mBody;
u8 _4[0x12 - 004];
u16 mCountDownDuration;
u8 _14[0x20 - 0x14];
KartBody *mBody; // 00
u32 _4;
u8 _8; // probably a bitmask
u8 _9;
u8 _A;
u8 mTimeToChange;
u8 _C[0x2];
u16 _E;
u16 _10;
u16 mCountDownDuration; // 12
ItemObj *mIncomingItem; // 14, the item that's about to collide with the kart
float _18[2];
JGeometry::TVec3f _20;
JGeometry::TVec3f _2C;
JGeometry::TVec3f _34;
JGeometry::TVec3f _38;
};

#endif KARTGAME_H
8 changes: 5 additions & 3 deletions include/Yamamoto/KartRescue.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,14 @@ class KartRescue

// Inline/Unused
// void DoHang();
// private:
u8 _0[0xc]; //
CrsGround mGround; // c
u8 _6c[0x74 - 0x6c]; // padding up to offset 0x74
u8 mFlags; // 74
u8 _75[0x8c - 0x75]; // remaining padding
u8 mFlags; // 74 0x20: in rescue animation
u8 _75;
u8 mState; // 0: no rescue 2: got out of course 3: lakitu holds us 4: lakitu lets us down
u8 _77; // seems to be some kind of frame counter when getting rescued
u8 _78[0x8c - 0x78]; // remaining padding
JGeometry::TVec3f _8c; //
JGeometry::TVec3f _98; //
JGeometry::TVec3f _a4; //
Expand Down
33 changes: 30 additions & 3 deletions include/Yamamoto/kartBody.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,33 @@
class KartBody
{
public:
// TODO: move in KartGame
enum GameStatus {
HasCoDriver = 1<<0,
GsUnknown3 = 1<<3,
};

enum CarStatus {
DriftLeft = 1<<0,
DriftRight = 1<<1,
DoesSlide = 1<<2,
CsUnknown3 = 1<<3,
CsUnknown5 = 1<<5,
InDriverChange = 1<<7,
CsUnknown8 = 1<<8,
CsUnknown9 = 1<<9,
CsUnknown10 = 1<<10,
CsUnknown11 = 1<<11,
CsUnknown12 = 1<<12,
CsUnknown15 = 1<<15,
CsUnknown18 = 1<<18,
CsUnknown20 = 1<<20,
CsUnknown22 = 1<<22,
CsUnknown25 = 1<<25,
CsUnknown26 = 1<<26,
CsUnknown27 = 1<<27,
};

KartBody() {}

void DegubBody(u32);
Expand Down Expand Up @@ -102,7 +129,7 @@ class KartBody
KartSus *mKartSus[4];
ExModel *mBodyModel;
DriverModel *mDriverModels[2];
ExModel *mExModels[2];
DriverModel *mExModels[2];
KartShadowModel *mShadowModel;
CrsGround mBodyGround;
CrsArea mShadowArea;
Expand Down Expand Up @@ -285,7 +312,7 @@ class KartBody
f32 _564;
f32 _568;
u8 _56c[4]; // padding?
u64 mCarStatus; // 570, 574
u64 mCarStatus; // 570, 574 | 0x400000: could be off track
u32 mGameStatus; // 578
u32 _57c;
u32 _580;
Expand All @@ -311,7 +338,7 @@ class KartBody
u8 mMynum;
u8 _5b4;
u8 _5b5; // also some timer
u8 _5b6; // dash timer?
u8 mSlideTimer; // dash timer?
u8 mCameraNum;
u8 _5b8[8];
u8 _5c0;
Expand Down
2 changes: 1 addition & 1 deletion include/Yamamoto/kartCtrl.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ class KartCtrl : public KartMat // WHAT THE HELL ARE YOU DOING
double GetTireRadius(int);
bool IsBurn(int);
bool IsWallReact(int);
u32 HaveBalloon(int);
bool HaveBalloon(int);
int GetDriftCnt(int);
bool IsMiniGame();
bool IsMiniGameEnd();
Expand Down
2 changes: 1 addition & 1 deletion include/Yamamoto/kartSus.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class KartSus
f32 _10c;
f32 _110;
u8 _114[0x124 - 0x114];
u32 _124;
u32 _124; // bitmask? 0: on ground?
Mtx _128;
Mtx _158;
Mtx _188;
Expand Down
2 changes: 1 addition & 1 deletion src/Yamamoto/kartBody.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1926,7 +1926,7 @@ void KartBody::Init(int index) {
_5b0 = 0;
_5b1 = 0;
mDriver = 0;
_5b6 = 0;
mSlideTimer = 0;
mMynum = 0;
_5c5 = 0;
_592 = 0;
Expand Down
Loading