Resource icon

GlobalBanks: Custom Local Save File Function Library v1

What permissions do you give others to modify and/or maintain your submission?
Modify: ASK ME - Maintain: IN MY ABSENCE - Others must ask me for permission before modifying my submission or use it in their own work, and I reserve the right to say no for any reason. However, if I can no longer be contacted, I give permission for my entire submission to be maintained by others.
Global Banks, a mod that globalizes the luabanks save file array, making it completely accessible at all times.
Normally, luabanks is limited to only being usable just once by a single file, any other files that try to use it after in the same session will simply error.
GlobalBanks intends to bypass this limitation by assigning the luabanks array to a global table,
thereby allowing any number of mods to access custom information stored directly to the .ssg save file, and access it as many times as necessary, with no limitations.
This allows each individual save file to have its own custom info, and can be useful for things like additional emerald collectibles.

Note that until saving in modified games is allowed, this mod cannot be used to write custom info unless a custom gamedata is active. It it still safe to use it to read the file however, say with a custom character reading if a hyper form is unlocked
With v2.2.12 released, you can use this freely without needing a gamedata

Contained within the file are an explanation on how to use the functions, as well as the currently reserved flags, many of which are simply there for quick convenience. Please contact me @ Xian1101 on discord if you wish to reserve a flag or slot so that I may write it down for you

There are 16 slots in a save file, each containing room for 32 bit flags. With this, proper organization, and optimization, up to 512 bits of custom info can be stored to a save file.
Currently slots 0, 1, 2, and 15 are reserved

This mod is marked as non-reusable, but only due to the necessity of keeping slot reservations organized.
The mod would also need to be loaded alongside any other mod that uses its functions.
As such, I give permission to add this mod to your mod, under the condition that the actual contents of this file remain unmodified.
Author
Xian
Downloads
491
Views
2,862
Extension type
lua
File size
5.4 KB
MD5 Hash
77ce47c7f0524fb9b3f5ae68b28725bf
First release
Last update
Rating
0.00 star(s) 0 ratings

Share this resource

Latest updates

  1. v2.2.12 yeay

    Now that v2.2.12 has added the ability to save with mods, this has become more useful outside of...
  2. mfw new reusability system

    Just updating to new Open Assets system
Back
Top