Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible server- and creation-related functions to add to the SDK #44

Open
Tenderi4 opened this issue May 9, 2023 · 3 comments
Open

Comments

@Tenderi4
Copy link
Contributor

Tenderi4 commented May 9, 2023

Decompiled with Ghidra version 10.2.3
FUN_005fbb90.txt
FUN_005fc3c0.txt
FUN_0057c590.txt
FUN_0057ea30.txt
FUN_005634b0.txt
FUN_005802F0.txt
FUN_006160c0.txt
FUN_006161e0.txt
FUN_005f8b60.txt
FUN_005f99b0.txt
FUN_005fa320.txt

Addresses are from the March 2017 version of Spore.

@Tenderi4
Copy link
Contributor Author

Tenderi4 commented May 9, 2023

Here are some findings I've had regarding them, pasted from Discord. Most of them are related to the class App::Thumbnail_cImportExport in some form or another.

  • 0x5634b0 - (Calls Database, Resource::Paths::GetSaveArea(SaveAreaID), Resource::Paths::GetSaveArea(GraphicsCache), Resource::Paths::GetSaveArea(Cache). Parent class unknown)

  • 0x57c590 - (Relates to cEditorSkin. Parent class perhaps App::Thumbnail_cImportExport)

  • 0x57ea30 - (References Resource::Paths::GetSaveArea() and UI::cHintManager::Get())

  • 0x5802f0 - (Generates an ID and perhaps saves a creation)

  • 0x5f8b60 - (Calls Resource::Paths::GetSaveArea(Server) - perhaps sharing-related?)

  • 0x5f99b0 - (Memory allocation -related. References "Thumbnail_cImportExport" in raw text)

  • 0x5fa320 - (Possibly another server/sharing-related function)

  • 0x5fbb90 - (Perhaps the sharing function? MemoryStream parameter's purpose unknown)

  • 0x5fc5fb - (References ResourceManager and IDGenerator. Perhaps for downloading creations?)

  • 0x6160c0 - (Another very important thing. Perhaps the downloader function)

  • 0x6161e0 - (Another reference to ResourceManager. Calls App::Thumbnail_cImportExport::Get() at the end)

@Tenderi4
Copy link
Contributor Author

Tenderi4 commented May 9, 2023

March 2017 to Disk addresses

March 2017 Disk (If name already exists in SDK)
0x5634b0 0x563550
0x57c590 0x57c590 Editor_ExportModelToCollada
0x57ea30 0x57e870
0x5802f0 0x580040
0x5f8b60 0x5f89c0
0x5f99b0 0x5f9830
0x5fa320 0x5fa1a0
0x5fbb90 0x5fba10
0x5fc5fb 0x5fc240
0x6160c0 0x615cc0
0x6161e0 0x615de0

@Tenderi4
Copy link
Contributor Author

I noticed some fo the functions I've found already exist within the SDK. Feel free to disregard those that I've noted in the above table.

Tenderi4 added a commit to Liskomato/Spore-CreationZIP-Porter that referenced this issue Aug 22, 2023
Added function addresses related to emd4600/Spore-ModAPI#44.
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

No branches or pull requests

1 participant