From 7e80d87cc0052697291eda3cf7e732d1b35c1ee0 Mon Sep 17 00:00:00 2001 From: OrangeAedan <107678080+OrangeAedan@users.noreply.github.com> Date: Tue, 3 Nov 2026 20:55:26 +0100 Subject: [PATCH 1/6] Update CellFunctions.h Added the OverwriteCellCollisionSpheres function. --- Spore ModAPI/Spore/Simulator/Cell/CellFunctions.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Spore ModAPI/Spore/Simulator/Cell/CellFunctions.h b/Spore ModAPI/Spore/Simulator/Cell/CellFunctions.h index 04e1a06a..aa21964a 100644 --- a/Spore ModAPI/Spore/Simulator/Cell/CellFunctions.h +++ b/Spore ModAPI/Spore/Simulator/Cell/CellFunctions.h @@ -43,6 +43,11 @@ namespace Simulator Math::Quaternion* pTargetOrientation = nullptr, int = 0); + /// Allows you to overwrite the collision spheres for cells. + /// @param outCount + /// @param outRecords + /// @param resourceKey + void OverwriteCellCollisionSpheres(int* outCount, unsigned char* outRecords, ResourceKey * resourceKey); void MovePlayerToMousePosition(float deltaTime); @@ -104,6 +109,7 @@ namespace Simulator DeclareAddress(GetCurrentAdvectInfo); // 0xE594F0 0xE58EF0 DeclareAddress(GetNextAdvectID); // 0xE59430 0xE58E30 DeclareAddress(CreateCellObject); // 0xE74F60 0xE74A20 + DeclareAddress(OverwriteCellCollisionSpheres); // 0xE83E30 0xe843c0 DeclareAddress(MovePlayerToMousePosition); // 0xE5BD90 0xE5B790 DeclareAddress(GetScaleDifferenceWithPlayer); // 0xE57940 0xE57340 DeclareAddress(ShouldNotAttack); // 0xE57A60 0xE57460 @@ -112,4 +118,4 @@ namespace Simulator DeclareAddress(PlayAnimation); // 0xE6D780 0xE6D200 DeclareAddress(GetModelKeyForCellResource); // 0xE65BE0 0xE65640 } -} \ No newline at end of file +} From c9f914bc421fd29401a67c85d1b5e6cfdc13521c Mon Sep 17 00:00:00 2001 From: OrangeAedan <107678080+OrangeAedan@users.noreply.github.com> Date: Tue, 3 Nov 2026 21:26:54 +0100 Subject: [PATCH 2/6] Update AddressesSimulator.cpp Added the OverwriteCellCollisionSpheres address. --- Spore ModAPI/SourceCode/DLL/AddressesSimulator.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Spore ModAPI/SourceCode/DLL/AddressesSimulator.cpp b/Spore ModAPI/SourceCode/DLL/AddressesSimulator.cpp index 08d84a28..1750d8c0 100644 --- a/Spore ModAPI/SourceCode/DLL/AddressesSimulator.cpp +++ b/Spore ModAPI/SourceCode/DLL/AddressesSimulator.cpp @@ -1159,6 +1159,7 @@ namespace Simulator DefineAddress(GetCurrentAdvectInfo, SelectAddress(0xE594F0, 0xE58EF0)); DefineAddress(GetNextAdvectID, SelectAddress(0xE59430, 0xE58E30)); DefineAddress(CreateCellObject, SelectAddress(0xE74F60, 0xE74A20)); + DefineAddress(OverwriteCellCollisionSpheres, SelectAddress(0xE843C0, 0xE83E30)); DefineAddress(MovePlayerToMousePosition, SelectAddress(0xE5BD90, 0xE5B790)); DefineAddress(GetScaleDifferenceWithPlayer, SelectAddress(0xE57940, 0xE57340)); DefineAddress(ShouldNotAttack, SelectAddress(0xE57A60, 0xE57460)); From 7e08359b42399c31c6d142dfa31138b031c5596f Mon Sep 17 00:00:00 2001 From: OrangeAedan <107678080+OrangeAedan@users.noreply.github.com> Date: Wed, 4 Nov 2026 21:12:03 +0100 Subject: [PATCH 3/6] Update SimulatorCell.cpp Added missing code. --- Spore ModAPI/SourceCode/Simulator/SimulatorCell.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Spore ModAPI/SourceCode/Simulator/SimulatorCell.cpp b/Spore ModAPI/SourceCode/Simulator/SimulatorCell.cpp index 98c0dad9..6e57d3df 100644 --- a/Spore ModAPI/SourceCode/Simulator/SimulatorCell.cpp +++ b/Spore ModAPI/SourceCode/Simulator/SimulatorCell.cpp @@ -88,6 +88,10 @@ namespace Simulator Args(cCellQueryLinkedPool* a1, const Math::Vector3& a2, float a3, cCellDataReference* a4, CellStageScale a5, float a6, float a7, bool a8, Math::Quaternion* a9, int a10), Args(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10)); + auto_STATIC_METHOD_VOID(Cell, OverwriteCellCollisionSpheres, + Args(int* outCount, unsigned char* outRecords, ResourceKey* resourceKey), + Args(outCount, outRecords, resourceKey)); + auto_STATIC_METHOD_VOID(Cell, MovePlayerToMousePosition, Args(float a0), Args(a0)); From ec1869a9af4429e8d5c31301c238585fad343c71 Mon Sep 17 00:00:00 2001 From: OrangeAedan <107678080+OrangeAedan@users.noreply.github.com> Date: Wed, 25 Nov 2026 22:46:09 +0100 Subject: [PATCH 4/6] Added IncreasePlayerFood to CellFunctions.h. --- Spore ModAPI/Spore/Simulator/Cell/CellFunctions.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Spore ModAPI/Spore/Simulator/Cell/CellFunctions.h b/Spore ModAPI/Spore/Simulator/Cell/CellFunctions.h index aa21964a..65b623c6 100644 --- a/Spore ModAPI/Spore/Simulator/Cell/CellFunctions.h +++ b/Spore ModAPI/Spore/Simulator/Cell/CellFunctions.h @@ -51,6 +51,12 @@ namespace Simulator void MovePlayerToMousePosition(float deltaTime); + /// Increase the players progress by dnaCount. dnaCount is the progress bar progress. Not the currency. + /// dietType is how the food is counted on the timeline. If its 0, Spore counts it as meat. And if its not 0, its counted as a plant. + /// @param dnaCount + /// @param dietType + void IncreasePlayerFood(int dnaCount, char dietType); + /// Returns scale difference between the given cell and the player cell, /// telling whether it is smaller, larger or the same scale (level). /// @param otherCell @@ -111,6 +117,7 @@ namespace Simulator DeclareAddress(CreateCellObject); // 0xE74F60 0xE74A20 DeclareAddress(OverwriteCellCollisionSpheres); // 0xE83E30 0xe843c0 DeclareAddress(MovePlayerToMousePosition); // 0xE5BD90 0xE5B790 + DeclareAddress(IncreasePlayerFood); // 0xE7D370 0xE7CE10 DeclareAddress(GetScaleDifferenceWithPlayer); // 0xE57940 0xE57340 DeclareAddress(ShouldNotAttack); // 0xE57A60 0xE57460 DeclareAddress(GetDamageAmount); // 0xE58F80 0xE58980 From 23eb6fa2b1feb4c3d3ec699fcce62b07ac8317e0 Mon Sep 17 00:00:00 2001 From: OrangeAedan <107678080+OrangeAedan@users.noreply.github.com> Date: Wed, 25 Nov 2026 22:52:34 +0100 Subject: [PATCH 5/6] Added IncreasePlayerFood to SimulatorCell.cpp. --- Spore ModAPI/SourceCode/Simulator/SimulatorCell.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Spore ModAPI/SourceCode/Simulator/SimulatorCell.cpp b/Spore ModAPI/SourceCode/Simulator/SimulatorCell.cpp index 6e57d3df..b4a877a1 100644 --- a/Spore ModAPI/SourceCode/Simulator/SimulatorCell.cpp +++ b/Spore ModAPI/SourceCode/Simulator/SimulatorCell.cpp @@ -95,6 +95,10 @@ namespace Simulator auto_STATIC_METHOD_VOID(Cell, MovePlayerToMousePosition, Args(float a0), Args(a0)); + auto_STATIC_METHOD_VOID(Cell, IncreasePlayerFood, + Args(int dnaCount, char dietType), + Args(dnaCount, dietType)); + auto_STATIC_METHOD(Cell, ScaleDifference, GetScaleDifferenceWithPlayer, Args(cCellObjectData* a0), Args(a0)); From babb9cec04c9e1da259f268ea24305df374939bc Mon Sep 17 00:00:00 2001 From: OrangeAedan <107678080+OrangeAedan@users.noreply.github.com> Date: Wed, 25 Nov 2026 22:59:16 +0100 Subject: [PATCH 6/6] Added IncreasePlayerFood to AddressesSimulator.cpp. --- Spore ModAPI/SourceCode/DLL/AddressesSimulator.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Spore ModAPI/SourceCode/DLL/AddressesSimulator.cpp b/Spore ModAPI/SourceCode/DLL/AddressesSimulator.cpp index 1750d8c0..4faa483f 100644 --- a/Spore ModAPI/SourceCode/DLL/AddressesSimulator.cpp +++ b/Spore ModAPI/SourceCode/DLL/AddressesSimulator.cpp @@ -1161,6 +1161,7 @@ namespace Simulator DefineAddress(CreateCellObject, SelectAddress(0xE74F60, 0xE74A20)); DefineAddress(OverwriteCellCollisionSpheres, SelectAddress(0xE843C0, 0xE83E30)); DefineAddress(MovePlayerToMousePosition, SelectAddress(0xE5BD90, 0xE5B790)); + DefineAddress(IncreasePlayerFood, SelectAddress(0x00E7D370, 0x00E7CE10)); DefineAddress(GetScaleDifferenceWithPlayer, SelectAddress(0xE57940, 0xE57340)); DefineAddress(ShouldNotAttack, SelectAddress(0xE57A60, 0xE57460)); DefineAddress(GetDamageAmount, SelectAddress(0xE58F80, 0xE58980));