Skip to content

KoopaBattleMap and co - #1969

Merged
ThatNintendoNerd merged 5 commits into
SMGCommunity:masterfrom
Fl-ppie:KoopaBattleMapPlanet
Jul 24, 2026
Merged

KoopaBattleMap and co#1969
ThatNintendoNerd merged 5 commits into
SMGCommunity:masterfrom
Fl-ppie:KoopaBattleMapPlanet

Conversation

@Fl-ppie

@Fl-ppie Fl-ppie commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Match KoopaBattleMapPlanet
Match KoopaBattleMapCoinPlanet
Match KoopaBattleMapDamagePlate

@decomp-dev

decomp-dev Bot commented Jul 23, 2026

Copy link
Copy Markdown

Report for RMGK01 (9a5ce20 - a35794f)

📈 Matched code: 62.02% (+0.06%, +3176 bytes)
📈 Linked code: 13.55% (+0.07%, +3948 bytes)
📈 Matched data: 27.79% (+0.06%, +924 bytes)
📈 Linked data: 11.76% (+0.06%, +960 bytes)

✅ 30 new matches
Unit Item Bytes Before After
main/Game/Map/KoopaBattleMapPlanet KoopaBattleMapPlanet::createPlate() +964 0.00% 100.00%
main/Game/Map/KoopaBattleMapCoinPlate KoopaBattleMapCoinPlate::init(const JMapInfoIter&) +320 0.00% 100.00%
main/Game/Map/KoopaBattleMapPlanet KoopaBattleMapPlanet::init(const JMapInfoIter&) +304 0.00% 100.00%
main/Game/Map/KoopaBattleMapPlanet .data +296 0.00% 100.00%
main/Game/Map/KoopaBattleMapCoinPlate KoopaBattleMapCoinPlate::receiveOtherMsg(unsigned long, HitSensor*, HitSensor*) +288 0.00% 100.00%
main/Game/Map/NamePosHolder NamePosHolder::find(const NameObj*, const char*, JGeometry::TVec3<float>*, JGeometry::TVec3<float>*) const +204 0.00% 100.00%
main/Game/Map/KoopaBattleMapPlanet KoopaBattleMapPlanet::KoopaBattleMapPlanet(const char*, const char*, bool, bool, bool) +144 0.00% 100.00%
main/Game/Map/KoopaBattleMapPlanet KoopaBattleMapPlanet::exeDemoGrandStarAppear() +132 0.00% 100.00%
main/Game/Map/KoopaBattleMapPlanet .rodata +112 0.00% 100.00%
main/Game/Map/KoopaBattleMapPlanet KoopaBattleMapPlanet::~KoopaBattleMapPlanet() +92 0.00% 100.00%
main/Game/Map/KoopaBattleMapPlanet KoopaBattleMapPlanet::control() +92 0.00% 100.00%
main/Game/Map/KoopaBattleMapPlanet NrvKoopaBattleMapPlanet::KoopaBattleMapPlanetNrvWait::execute(Spine*) const +72 0.00% 100.00%
main/Game/Map/KoopaBattleMapCoinPlate .data +63 94.83% 100.00%
main/Game/Map/KoopaBattleMapPlanet __sinit_\KoopaBattleMapPlanet_cpp +44 0.00% 100.00%
main/Game/Map/KoopaBattleMapPlanet .sdata2 +32 0.00% 100.00%
main/Game/Map/KoopaBattleMapCoinPlate .sdata2 +24 0.00% 100.00%
main/Game/Map/KoopaBattleMapPlanet NrvKoopaBattleMapPlanet::KoopaBattleMapPlanetNrvWait::KoopaBattleMapPlanetNrvWait() +16 0.00% 100.00%
main/Game/Map/KoopaBattleMapPlanet NrvKoopaBattleMapPlanet::KoopaBattleMapPlanetNrvDemoGrandStarAppear::KoopaBattleMapPlanetNrvDemoGrandStarAppear() +16 0.00% 100.00%
main/Game/Map/KoopaBattleMapCoinPlate KoopaBattleMapCoinPlate::KoopaBattleMapCoinPlate(const char*) +11 84.71% 100.00%
main/Game/Map/KoopaBattleMapCoinPlate .sdata +8 0.00% 100.00%
main/Game/Map/KoopaBattleMapCoinPlate KoopaBattleMapCoinPlate::calcAndSetBaseMtx() +8 0.00% 100.00%
main/Game/Map/KoopaBattleMapDamagePlate .sdata +8 0.00% 100.00%
main/Game/Map/KoopaBattleMapPlanet .sbss +8 0.00% 100.00%
main/Game/Map/KoopaBattleMapPlanet KoopaBattleMapPlanet::startAnimPowerStarAppear() +8 0.00% 100.00%
main/Game/Map/KoopaBattleMapPlanet KoopaBattleMapPlanet::calcAndSetBaseMtx() +8 0.00% 100.00%
main/Game/Map/KoopaBattleMapPlanet NrvKoopaBattleMapPlanet::KoopaBattleMapPlanetNrvDemoGrandStarAppear::execute(Spine*) const +8 0.00% 100.00%
main/Game/Map/KoopaBattleMapPlanet KoopaBattleMapPlanet::getBaseMtx() const +8 0.00% 100.00%
main/Game/Map/KoopaBattleMapPlanet .ctors +4 0.00% 100.00%
main/Game/Map/KoopaBattleMapDamagePlate KoopaBattleMapDamagePlate::init(const JMapInfoIter&) +1 99.94% 100.00%
main/Game/Map/KoopaBattleMapDamagePlate .data -53 77.30% 100.00%
📈 1 improvement in an unmatched item
Unit Item Bytes Before After
main/Game/Map/Halo .data -1 77.48% 88.43%

Comment thread config/RMGK01/splits.txt Outdated
.rodata start:0x80532A68 end:0x80532AA8
.data start:0x80589638 end:0x80589EB8
.sdata start:0x806B1BA8 end:0x806B1BC0
.sdata start:0x806B1BA8 end:0x806B1BC8

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This split was correct before. The added data should go into FishGroup, not FileSelector.

mDamagePlateGroup->initWithoutIter();

for (s32 idx = 0; idx < 6; idx++) {
f32 angles[6][2] = {{0.0f, 0.0f}, {180.0f, 0.0f}, {90.0f, 0.0f}, {270.0f, 0.0f}, {0.0f, 90.0f}, {0.0f, 270.0f}};

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Converting this into an array of structs might help make usage more clear. Same goes for the next couple instances. Assuming doing so still matches.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Not sure if that'll it more readable though. It'll still be a large group of floats. It might make it clear that its an array of x, y angles, but I'm not convinced.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

In terms of initialization, yes, the syntax will be the same. However, usage may make more sense. I won't hold you to adjusting that as it can always be addressed later.

@ThatNintendoNerd
ThatNintendoNerd merged commit 4b6fe92 into SMGCommunity:master Jul 24, 2026
1 check passed
@Fl-ppie
Fl-ppie deleted the KoopaBattleMapPlanet branch July 24, 2026 11:22
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.

2 participants