I'm trying to get my banks working here, but I've got a problem where the bank info isn't saved between games. I preload the bank for each player on init, then during the game I open the bank and pull out a boolean value, which defaults to "false" when the bank doesn't exist yet. I set the boolean value to "true" and save it in the bank, and then any time I access that value from the bank for the rest of the game I can pull it out as "true".
However, once I restart the map, make another test, or load a new instance of the game, the value has always been reset back to "false". So I'm not sure what I'm doing wrong here. I preload the banks, and I can save and retrieve values during a game, but between games all my data is lost.
I "store something" and then immediately save the bank.
I was just looking on my file system. I create the bank as "TowerDefenseTycoon_HighScore", but then the actual bank file is called "TowerDefenseTycoonHighScore". So maybe the fact that the game is altering the file name makes it mismatch? I'll test it out tonight.
- make sure to preload the banks
- make sure not to use variables for preloading
- make sure to save the bank after modifying it
- make sure to use the exact same bank name in both maps
- remember opening the bank
Basically what he said. Double check all of your bank names and strings, don't use loops or variables during the preload/open bank part. If all else fails, let's take a look at those triggers :P
Rollback Post to RevisionRollBack
Feel free to Send me a PM if you have any questions/concerns!
To post a comment, please login or register a new account.
I'm trying to get my banks working here, but I've got a problem where the bank info isn't saved between games. I preload the bank for each player on init, then during the game I open the bank and pull out a boolean value, which defaults to "false" when the bank doesn't exist yet. I set the boolean value to "true" and save it in the bank, and then any time I access that value from the bank for the rest of the game I can pull it out as "true".
However, once I restart the map, make another test, or load a new instance of the game, the value has always been reset back to "false". So I'm not sure what I'm doing wrong here. I preload the banks, and I can save and retrieve values during a game, but between games all my data is lost.
Anyone know?
Do you actually use "Save Bank" or by save you mean "Store something"?
@Nerfpl:
I "store something" and then immediately save the bank.
I was just looking on my file system. I create the bank as "TowerDefenseTycoon_HighScore", but then the actual bank file is called "TowerDefenseTycoonHighScore". So maybe the fact that the game is altering the file name makes it mismatch? I'll test it out tonight.
@SkrowFunk:
You you have to be really meticulous and check that your strings match. If you still have problems try posting screenshots of your bank triggers.
<Click Here> To See My Epic Single Player Campaign (LifeForceCampaign.com)
- make sure to preload the banks
- make sure not to use variables for preloading
- make sure to save the bank after modifying it
- make sure to use the exact same bank name in both maps
- remember opening the bank
@Mille25: Go
Basically what he said. Double check all of your bank names and strings, don't use loops or variables during the preload/open bank part. If all else fails, let's take a look at those triggers :P