Skip to content

Add Minimap funcs, Annotate unknown Minimap and Cell related vars, document various vars#81

Merged
emd4600 merged 118 commits intoSpore-Community:masterfrom
Valla-Chan:master
Jan 21, 2025
Merged

Add Minimap funcs, Annotate unknown Minimap and Cell related vars, document various vars#81
emd4600 merged 118 commits intoSpore-Community:masterfrom
Valla-Chan:master

Conversation

@Valla-Chan
Copy link
Copy Markdown
Contributor

  • Added Simulator::GetMinimapWindow()
  • Annotated and documented unknown Minimap, Cell, and misc vars
  • Annotated which OTDBParameters actually work (needs further testing)
  • Cleaned up a few typos and extraneous comments
  • Changed some unknown vars to more likely/readable data types

…lette subcategories in part icon capture.

NOTE:  UNTESTED!
For those who can, please compile this and test it ingame before accepting/rejecting PR.
//---------------------------------------------------
// Detours

PaletteUIPtr pLastPalette;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Don't use managed pointer for this, use Palettes::PaletteUI directly. Otherwise, there might be problems with memory (as this pointer will only be cleared after the game is closed)

@emd4600 emd4600 merged commit 88ded97 into Spore-Community:master Jan 21, 2025
Zarklord pushed a commit to Zarklord/Spore-ModAPI that referenced this pull request Oct 8, 2025
…cument various vars (Spore-Community#81)

* add function definition for AddCreature

* Add MouthTypes to CommonIDs.h

* Add name for Unk10 in enum CreaturePersonality

* Add definitions to Cursors.h

* Fix typo, remove duplicate of auto_METHOD(cEditor, bool, AddCreature, add comment to funcC0h in cTribe.h

* Add enum of identity colors to cIdentityColorable

* Add several more cursors

* ammend comment

* remove mouthtypes commit

* Add space game cursors

* fix compile error in cursors.h

* remove erroneous comment

* change mIDColorID to use IdentityColors

* Add 2 new dev cheats (devEffectLog & PrintCursor), add support for palette subcategories in part icon capture.

NOTE:  UNTESTED!
For those who can, please compile this and test it ingame before accepting/rejecting PR.

* fix improper effects detour

* document several part unlocking related fields

* add comment to cCollectibleItems::sub_597BC0

* Add cursors, Document string format for CursorManager::Load

* fix typo

* Add Math::GetDistance

* Revert "Add Math::GetDistance"

This reverts commit cc145ad.

* Begin redoing EP1 object system

* Revert "change mIDColorID to use IdentityColors"

This reverts commit 489f3ad.

* Update cIdentityColorable.h

* cTribeHut - Document field_218

* cTribeHut - document field_21C

* Resolve 4/5 PR change requests

* add 'class' to identitycolor enum

* SpawnNpcTribe's 4rd interger arg = foodAmount

* fix typo

* fix typo in LoadBackgroundFiles

* Add message enums to SimulatorMessages.h, organize by stage

* fix typo

* Clarify new simulator messages

* Clarify more messages

* Add messages, change 1 type

* Update SimulatorMessages.h

* Update SimulatorMessages.h

* fix typo

* Document tribe vars

* Document cTribe.mbMembersFlee, add Button funcs, fix documentation comments

* Annotate unknown func

* Resolve PR issues

* Revert cTribeTool temp fix

* fix HandheldItem enum typos

* document tribe vars, rename BakeManager::func4Ch to Bake

* Document EditorNamePanel Initialize()

* rename mbMembersFlee to mbDefeated

* String16 serialization fix

* Update cTribe.h

* re-sort numgraspers next to numfeet in enum

* fix typos, document working OTDB params, reformat func28 in OTDB

* Update SimulatorMessages.h

* remove unnecessary comment

* rename field_80 in cCombatant to mbInvincible

* Document Cell Stage vars

* Add TribeToolData group ID

* Add kCitizenActionWalkTo

* document mPaintID

* add Simulator::GetMinimapWindow(), Add documentation related to minimap

* remove unneeded header

* remove messy comment

* undo dubious var name

* fix GetMinimapWindow crash

* add EditorManipulators enum to CommonIDs

* fix new enum to type as a uint32

* annotate EditorRigblock field_138

* fix typo

* fix typo in EditorRigblockBoolAttributes

* change kEditorRigblockModelCanBeParentless to kEditorRigblockModelCannotBeParentless

* document creature model related vars and flags

* clarify comment

* document int arg in cTribe::SpawnMember

* Add ColorRGB & ColorRGBA Serializers

* rename func78h to GrowUp()

* clarify cCreatureBase::IsHerbivore (also returns if creature is omnivore)

* Swap AbilityMode enum entries, annotate Editor::AddCreature()

* add better description for AnimEditor, Fix icon capture for subcategories and ingame community planners

* change IsHervibore to IsHerbivore (recent enough addition to mod API that i didn't include fallback names)

* stop tracking editable sdkpathconfigs

* gitgnore

* fix remaining 'hervibore' typo

* undo "Hervibore" fix due to crashes

* fix variable annotations

* add default var amount to AddCreature

* annotate var

* Editor::field_14C set to uint32

* change PaletteUIPtr  to Palettes::PaletteUI* in thumbnail capture
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants