From d68312a5508462ccb9a20fc646924c855f7a7f67 Mon Sep 17 00:00:00 2001 From: Sad Date: Sun, 12 Jul 2026 02:59:59 -0300 Subject: [PATCH 1/2] Document some flags in cEmpire, cPlanetRecord and cStarRecord, change mSkinColors in cSpeciesProfile from ResourceKey to ColorRGB --- Spore ModAPI/Spore/Simulator/cEmpire.h | 1 + Spore ModAPI/Spore/Simulator/cPlanetRecord.h | 1 + Spore ModAPI/Spore/Simulator/cSpeciesProfile.h | 2 +- Spore ModAPI/Spore/Simulator/cStarRecord.h | 5 +++++ 4 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Spore ModAPI/Spore/Simulator/cEmpire.h b/Spore ModAPI/Spore/Simulator/cEmpire.h index b2529787..de03dcc6 100644 --- a/Spore ModAPI/Spore/Simulator/cEmpire.h +++ b/Spore ModAPI/Spore/Simulator/cEmpire.h @@ -39,6 +39,7 @@ namespace Simulator enum EmpireFlags { kEmpireFlagNeedsEmpireLines = 0x10, + kEmpireFlagFromSaveGame = 0x40 }; /// An empire in Space Stage. diff --git a/Spore ModAPI/Spore/Simulator/cPlanetRecord.h b/Spore ModAPI/Spore/Simulator/cPlanetRecord.h index c75f4f02..bff3b771 100644 --- a/Spore ModAPI/Spore/Simulator/cPlanetRecord.h +++ b/Spore ModAPI/Spore/Simulator/cPlanetRecord.h @@ -156,6 +156,7 @@ namespace Simulator kPlanetFlagIsDestroyed = 0x100, // 1 << 8 + kPlanetFlagHasWildlifeSanctuary = 0x800, // 1 << 11 kPlanetFlagRedOrbit = 0x1000, // 1 << 12 kPlanetFlagBlueOrbit = 0x2000, // 1 << 13 }; diff --git a/Spore ModAPI/Spore/Simulator/cSpeciesProfile.h b/Spore ModAPI/Spore/Simulator/cSpeciesProfile.h index 3b90f96d..194358d8 100644 --- a/Spore ModAPI/Spore/Simulator/cSpeciesProfile.h +++ b/Spore ModAPI/Spore/Simulator/cSpeciesProfile.h @@ -70,7 +70,7 @@ namespace Simulator }; /* 00h */ UnkStructPool capsInfos; - /* 4E0h */ ResourceKey mSkinColors[3]; //what is this? + /* 4E0h */ Math::ColorRGB mSkinColors[3]; //[0] base, [1] coat, [2] detail. /* 504h */ ResourceKey mCreatureKey; /* 510h */ ResourceKey mBabyKey; /* 51Ch */ eastl::string16 mCreatureName; diff --git a/Spore ModAPI/Spore/Simulator/cStarRecord.h b/Spore ModAPI/Spore/Simulator/cStarRecord.h index 324165f4..ce0a4a89 100644 --- a/Spore ModAPI/Spore/Simulator/cStarRecord.h +++ b/Spore ModAPI/Spore/Simulator/cStarRecord.h @@ -35,6 +35,11 @@ namespace Simulator enum StarFlags { + kStarFlagPotentialSaveGame = 0x1, // 1 << 0 + kStarFlagSaveGame = 0x2, // 1 << 1 + + // 1 << 3 has monolith? Also set on some stars without a monolith. + kStarFlagIsOwned = 0x10, // 1 << 4 // 1 << 6 has destroyed planet? From 3227345ff8a0bef8df565fad8f50337667f1dd41 Mon Sep 17 00:00:00 2001 From: Sad Date: Sun, 12 Jul 2026 03:05:59 -0300 Subject: [PATCH 2/2] Add more context for the flag 1 << 3 in cStarRecord --- Spore ModAPI/Spore/Simulator/cStarRecord.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Spore ModAPI/Spore/Simulator/cStarRecord.h b/Spore ModAPI/Spore/Simulator/cStarRecord.h index ce0a4a89..8b58b80a 100644 --- a/Spore ModAPI/Spore/Simulator/cStarRecord.h +++ b/Spore ModAPI/Spore/Simulator/cStarRecord.h @@ -38,7 +38,7 @@ namespace Simulator kStarFlagPotentialSaveGame = 0x1, // 1 << 0 kStarFlagSaveGame = 0x2, // 1 << 1 - // 1 << 3 has monolith? Also set on some stars without a monolith. + // 1 << 3 has monolith? Also set on some stars without a monolith and on the home star during part of the tutorial. kStarFlagIsOwned = 0x10, // 1 << 4