Preload & Sync
- fake action in the trigger editor causing the editor to transfer the information into a BankData.xml file inside the map when the map is saved. The preload action will have no trace in the galaxy code the GUI editor produces.
Enable Signature
- just enable it at the start before you read any bank data. It's just a flag that controls whether the saving of the map will generate a signature or not.
Open Bank
- I assume it converts the distributed bank file (during loading screen) to be opened and stored in a cache. You will manipulate the cache with save/load value actions.
so open bank is like open a wordpad file, and i can write in it with the store command and finally save it with the save command. correct?
Exactly. Keep in mind though that your changes to the bank will only get permanent if using the save action. Otherwise, if for example a player disconnects from a game or something similar, the changes will not take effect.
Depending on the exact implementation it might be a good idea to always instantly save the bank after writing to it, or to implement some sort of periodic, automatic save.
Exactly, what does the following do and and why are they necessary?
What does the open bank do?
What does the preload and sync bank do? (when to run and why)
When do i enable signature, in what order?
Preload & Sync
- fake action in the trigger editor causing the editor to transfer the information into a BankData.xml file inside the map when the map is saved. The preload action will have no trace in the galaxy code the GUI editor produces.
Enable Signature
- just enable it at the start before you read any bank data. It's just a flag that controls whether the saving of the map will generate a signature or not.
Open Bank
- I assume it converts the distributed bank file (during loading screen) to be opened and stored in a cache. You will manipulate the cache with save/load value actions.
so open bank is like open a wordpad file, and i can write in it with the store command and finally save it with the save command. correct?
open will also create a new bank. after opening the bank if you save it to a global variable you never need to re-open it.
Exactly. Keep in mind though that your changes to the bank will only get permanent if using the save action. Otherwise, if for example a player disconnects from a game or something similar, the changes will not take effect.
Depending on the exact implementation it might be a good idea to always instantly save the bank after writing to it, or to implement some sort of periodic, automatic save.