there really is not fix cause if the power outage happens during the save the save will be half finish even tho its like a millisecond to save it will just corrupt
hmm i was wondering how do you get a multilayer bank i cant figure out how to save player 1s kills for player 1 but cant load them to players 2 kills when he rejoins but is player 2
Okay so my backup system makes a bank with just purely integers saved out at ONLY the game start. If your main bank is detected to be corrupt/empty then itll load from the backup bank which has no encryption or protection (yeah i had to try it). People are still sending me kill-reset emails so this sucks lol. I can't win.
Either way my backup bank should be doing that assuming if their main bank got emptied. I think my last resort will be to not open my backup bank until the game ends and just save it quickly. I think the problem is essentially any bank you open, even if you aren't writing to it, are just subject to be erased randomly unless blizz gives us a close bank function.
Trying a new system which only opens/saves a backup bank when you win. Thus if you crash mid-game that bank won't be affected; granted it'll be a little out of date. This bank will only be loaded if it exists and your main bank is empty (thus meaning a corruption has occured).
Well, it's been a while and I still get emails every day about banks reset from power outages or computer failures. Not sure if my backup procedure helped or not...
I still get quite a few emails about people moving computers or getting new ones. From a user perspective, we really need server banks. It's not natural in today's google/cloud world to sign into your bnet account and play a map and find yourself reset, when infact it's just because the file is sitting on your documents on a different computer. Don't know what Blizzard can offer us, but it seems we need to be able to tie some data to accounts... would instantly solve bank-cheating AND be a much better experience for the user imo.
I wish I could say I am causing it, but I've tried so many different things at this point (over the course of a month), even just saving the numbers blatantly into a backup bank that loads if your main bank is empty. Maybe that has helped I can't really know. Well the map is dieing in popularity I hope so I can move on lol.
From Vexal I only here that he gets emails about people moving computers... but to my knowledge I haven't seen many maps using banks for progress saving; more so just for stats which are only saved at the end of a match and thus would rarely have this power outage failure issue.
Edit: Trying another backup.
Edit: Dangerous using a completely un-obfuscated backup bank but w/e at this point. I fixed it now to be saving to the backup on your death or a win. Thus it will be opened minimally. Btw I also just tested shutting my computer off mid test document and it indeed reset the only bank which was open, my main one. Published and going to find out how it helps...
Update for anyone that cares: 3 days have passed and for the most part i haven't received an email since. So the solution is to have your regular bank that is open on map start and saves every 5s or w/e, then at player-death or game-win you open a 2nd bank for the player and save the data out there as well. This way the 2nd bank is only opened/saved near the game end and will likely not be reset from a power outage. Then on map load you also need to check if the main bank doesn't have data in the main section, to then check the backup bank, and if it has contents then load from the backup bank.
Also, both banks are preloaded and synchronized and I have tested this locally with a force-shutdown and it did work. It appears to be working on bnet too.
Okay I just did some testing. I set my save to be every 30s. I force shutdown my computer about midway between two saves, ensuring there was no data currently being written. Upon coming back, the bank file was intact. So, your assumption seems right Mille25.
But now you have to think: saving on every interaction (probably like WoW does) could result in a bank-reset. Or you could save every 30s+ and be safer, but essentially if your RPG had item trading people could dupe the system. Not to mention someone's computer could still die during bank-writing, just rarer.
one question did you try this save your bank every 10 seconds have those kills saved to one variable and at the beginning and end of the game save it to another variable so when they join try to load the 10s one and if that = 0 or is corrupted if you can detect that then load from the second one so when they join they wont have the 0 set back they will have the beginning one
That's certainly an option; in my case I save to the main bank every 2s and then to a backup bank on a win or death. Other than that I do exactly as you suggest. Another possible option is to have 3+ banks. One saving really fast, one moderate, and one slow. If any are broken it tries to load from the slower one and so on.
My banks fails to load, unless "preload" thing fixed it.
There is very rare bug in TCG caused probably by Blizzard and kinda same as OneTwoSC has.
Very minor percent of people have constantly problems with bank files, and they are most vocal ones to complain me about it.
I have possible solution, when bank is saved and either team should win, save banks and make game wait them to finish before telling victory or defeat for players.
I actually did some tests awhile back, and found that banks fail to load after I purge them from the buffer.. From what I understand, at map load, banks may be preloaded into a "buffer". So long as it's in this buffer, it may be modified. If its closed (flushed) from the buffer and an attempt is made to load it again, all the sections and keys just disappear. Possible fix.. Whenever you're about to save, count the number of sections in the banks first. If its 0, save the bank to another bank that doesn't exist. Print a warning on screen and tell the player to load the backup bank..
there really is not fix cause if the power outage happens during the save the save will be half finish even tho its like a millisecond to save it will just corrupt
@aczchef: Go
It's still happening even with the 10s-periodic backup save.
hmm i was wondering how do you get a multilayer bank i cant figure out how to save player 1s kills for player 1 but cant load them to players 2 kills when he rejoins but is player 2
Okay so my backup system makes a bank with just purely integers saved out at ONLY the game start. If your main bank is detected to be corrupt/empty then itll load from the backup bank which has no encryption or protection (yeah i had to try it). People are still sending me kill-reset emails so this sucks lol. I can't win.
@OneTwoSC: Go
Tell people.... not to turn thier power off in the middle of the game?..... why dont you just save when the game ends for the player?
@SouLCarveRR: Go
Either way my backup bank should be doing that assuming if their main bank got emptied. I think my last resort will be to not open my backup bank until the game ends and just save it quickly. I think the problem is essentially any bank you open, even if you aren't writing to it, are just subject to be erased randomly unless blizz gives us a close bank function.
Trying a new system which only opens/saves a backup bank when you win. Thus if you crash mid-game that bank won't be affected; granted it'll be a little out of date. This bank will only be loaded if it exists and your main bank is empty (thus meaning a corruption has occured).
Hope it works...
Well, it's been a while and I still get emails every day about banks reset from power outages or computer failures. Not sure if my backup procedure helped or not...
I still get quite a few emails about people moving computers or getting new ones. From a user perspective, we really need server banks. It's not natural in today's google/cloud world to sign into your bnet account and play a map and find yourself reset, when infact it's just because the file is sitting on your documents on a different computer. Don't know what Blizzard can offer us, but it seems we need to be able to tie some data to accounts... would instantly solve bank-cheating AND be a much better experience for the user imo.
Kinda strange that you would get soo much feed back for the problem OneTwo are you sure your not corrupting or deleting the bank some how.
I dont mean to insult you....
But everybody makes little mistakes some where along the way that they always look over them selfs some times.
@SouLCarveRR: Go
I wish I could say I am causing it, but I've tried so many different things at this point (over the course of a month), even just saving the numbers blatantly into a backup bank that loads if your main bank is empty. Maybe that has helped I can't really know. Well the map is dieing in popularity I hope so I can move on lol.
From Vexal I only here that he gets emails about people moving computers... but to my knowledge I haven't seen many maps using banks for progress saving; more so just for stats which are only saved at the end of a match and thus would rarely have this power outage failure issue.
Edit: Trying another backup.
Edit: Dangerous using a completely un-obfuscated backup bank but w/e at this point. I fixed it now to be saving to the backup on your death or a win. Thus it will be opened minimally. Btw I also just tested shutting my computer off mid test document and it indeed reset the only bank which was open, my main one. Published and going to find out how it helps...
Update for anyone that cares: 3 days have passed and for the most part i haven't received an email since. So the solution is to have your regular bank that is open on map start and saves every 5s or w/e, then at player-death or game-win you open a 2nd bank for the player and save the data out there as well. This way the 2nd bank is only opened/saved near the game end and will likely not be reset from a power outage. Then on map load you also need to check if the main bank doesn't have data in the main section, to then check the backup bank, and if it has contents then load from the backup bank.
Also, both banks are preloaded and synchronized and I have tested this locally with a force-shutdown and it did work. It appears to be working on bnet too.
so did i get this right?
- if the computer crashes and the bank is opened the data isnt effected
- if the computer crashes while saving, the bank is reset
@Mille25: Go
Okay I just did some testing. I set my save to be every 30s. I force shutdown my computer about midway between two saves, ensuring there was no data currently being written. Upon coming back, the bank file was intact. So, your assumption seems right Mille25.
But now you have to think: saving on every interaction (probably like WoW does) could result in a bank-reset. Or you could save every 30s+ and be safer, but essentially if your RPG had item trading people could dupe the system. Not to mention someone's computer could still die during bank-writing, just rarer.
one question did you try this save your bank every 10 seconds have those kills saved to one variable and at the beginning and end of the game save it to another variable so when they join try to load the 10s one and if that = 0 or is corrupted if you can detect that then load from the second one so when they join they wont have the 0 set back they will have the beginning one
@aczchef: Go
That's certainly an option; in my case I save to the main bank every 2s and then to a backup bank on a win or death. Other than that I do exactly as you suggest. Another possible option is to have 3+ banks. One saving really fast, one moderate, and one slow. If any are broken it tries to load from the slower one and so on.
I have same problem.
My banks fails to load, unless "preload" thing fixed it.
There is very rare bug in TCG caused probably by Blizzard and kinda same as OneTwoSC has.
Very minor percent of people have constantly problems with bank files, and they are most vocal ones to complain me about it.
I have possible solution, when bank is saved and either team should win, save banks and make game wait them to finish before telling victory or defeat for players.
I encountered that often in ZHRPG
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
Tell people to manually backup their bank files, then they can cheat if they loose a game *cough*. :)
I actually did some tests awhile back, and found that banks fail to load after I purge them from the buffer.. From what I understand, at map load, banks may be preloaded into a "buffer". So long as it's in this buffer, it may be modified. If its closed (flushed) from the buffer and an attempt is made to load it again, all the sections and keys just disappear. Possible fix.. Whenever you're about to save, count the number of sections in the banks first. If its 0, save the bank to another bank that doesn't exist. Print a warning on screen and tell the player to load the backup bank..
hate this, just got a report myself. i guess a lot of people don't care or complaiin. never happend myself