Spore Mods Help

Spore LuaAPI

This Mod Uses the Mod API to allow you to write mods for spore in Lua.

Download (Experimental)

Download: Latest Experimental Release

Version History

v1.0.0 prerelease 1
  • Mods now use modimport/ModImportOnAllThreads instead of require/RequireOnAllThreads.

  • Fixed a crash from LuaMultiReference returning temporaries.

  • All bindings now have proper tostring and == metamethods set.

  • InitializePropManager and LuaConsole won't crash the game when the game is shutting down.

  • ExecuteOnAllThreads now properly copies upvalues, and has the default error handler.

v1.0.0 beta 2
  • Added a proper callstack logging when a lua crash occurs.

  • Added tostring metamethods to most basic property types.

  • Fixed a bug when setting property's of type bool, int32, uint32, or float.

v1.0.0 beta 1
  • Lua mod's can be embedded into packages.

  • Functions in the global environment can be called directly via the cheat console (the cheat console has been modified to be capable of running Lua code).

  • Currently, the following Spore ModAPI types have been exposed to lua:

    • Resource::IKeyFilter

    • App::Property

    • App::PropertyList

    • App::IPropManager

    • ResourceKey

    • TextProperty

    • LocalizedString

    • Vector2

    • Vector3

    • Vector4

    • ColorRGB

    • ColorRGBA

    • Matrix

    • Transform

    • BoundingBox

  • The tracy profiler has been implemented as well, you can download the profiler application from here to connect to a running spore game.

Last modified: 05 September 2024