Save data with Lua?

Status
Not open for further replies.
I wonder, but... is it possible to save custom values into (savedata).dat when making a level mod?This matters for what I want to do, because I want to remember where in the story the player is, without having to make a new map for each scene individually.
 
Lua is intended to have it's own subfolder where it will be able to save and load files freely, similar to the replays folder and ghost data. This will also involve allowing Lua to know the currently running mod name (in order to save a "Lua gamedata" file specific to each mod) and the currently running save slot (in order to have it's own singleplayer progression savedata), in addition to just being able to save and load arbitrary files (which may work cross-game with compatible scripts), but the details aren't hammered out yet.

It has also been attempted to tie in custom Lua data to savegames and gamedata directly, but there were concerns about inseparable file bloat potentially being able to render legitimate vanilla saves into uselessly giant blobs several megabytes of "data" large.

Sadly, no, it's not possible.
 
Status
Not open for further replies.

Who is viewing this thread (Total: 1, Members: 0, Guests: 1)

Back
Top