If I press the test button, my map is normally loaded, the values are saved and so on. But if i repress the test button at the beginning of the map all keys and sections are removed from my bank - resetted.
My bank name does not use spaces, _, or special characters.
Here is what i do:
Map
Preload Data dialog
Banks
Preload bank "<BankName>" for each player
Triggers
Open bank "<BankName>" for player 1
Set Bank[1] (last opened bank)
Open bank "<BankName>" for player 2
Set Bank[2]...
To save my key:
Pick each player in all players
If (key <X> section <Y> from bank Bank[Picked player] == FALSE
Save TRUE boolean as key <X> section <Y> in Bank[Picked player]
And yes, I checked my Documents/StarCraft II/Banks/MacroMicroExtension.SC2Bank for 20-30 times with different actions/orders, and I can assume that the bank resets every time I check any value or save it in the bank after a new loading. Tested on Battle.net too, same issue.
You may want to try updating your saving code to the following:
1) Open bank
2) Store value(s)
3) Set signature option (enable)
4) Save bank
Perhaps it is redundant, but that's my process and it works. I think it's possible that your bank isn't updating the signature every time you save, try throwing in a debug message in your bank validation check that says "Error - Bank Invalid - clearing all data."
If I press the test button, my map is normally loaded, the values are saved and so on. But if i repress the test button at the beginning of the map all keys and sections are removed from my bank - resetted. My bank name does not use spaces, _, or special characters. Here is what i do:
To save my key:
Sorry for bad syntax not using enUS editor.
@alfx01: Go
would be easier to see all bank related triggers. raw data is good too.
@alfx01: Go
I don't see you saving values anywhere. (Unless you have that code but didn't paste it in)
Did you open your bank file while testing to verify that values are actually being saved?
E: I see it now, oops I'm blind :P
@Apollys: Go Of course I save my bank, right after saving a value in the bank, look at these lines from the second trigger of the code above:
And yes, I checked my Documents/StarCraft II/Banks/MacroMicroExtension.SC2Bank for 20-30 times with different actions/orders, and I can assume that the bank resets every time I check any value or save it in the bank after a new loading. Tested on Battle.net too, same issue.
How exactly do you preload your banks?
Does the problem persist after disabling signatures and validation?
@alfx01: Go
You may want to try updating your saving code to the following: 1) Open bank 2) Store value(s) 3) Set signature option (enable) 4) Save bank
Perhaps it is redundant, but that's my process and it works. I think it's possible that your bank isn't updating the signature every time you save, try throwing in a debug message in your bank validation check that says "Error - Bank Invalid - clearing all data."
@Apollys: Go
if that all doesn't help try using a local Bank variable instead of a global one and always reopen it into that variable before working with it.
Banks cannot be loaded from extension mods.
Really?? This is definitely the problem, then. My project is a mod.