Hmm. I've just modified the saving time and it works nearly fine. My game has two fade-out situations, so I can save all players' info in that time. Thanks for advicing me :)
I treated Starcode like a Limited Dynamic Array, that is retain its own area even though it doesn't use its space. Thanks for correcting me, but I can't find a way to reduce the amount of saving variables... Everything is needed in a right place.
ps. If my game just saves 1172 variables instead of 1.8M, then why Starcode freezes when I change the maximum Credits from 99999 to 999999? By your opinion, latter's amount is same with former. Of course, I changed the saving/loading bank name.
Well, Even though I unchecked 'Create thread' options for all save macros, ACH and HPF comes for nothing. And I thought that Galaxy Editor supports controlling the critical section(someday I experimented)... so there might not have race conditions.
This is the hardest problem I've experienced in mapping... Why Blizzard's bank signatures can be cracked.. LOL
I separated Load macro into 4 threaded macros(Player Statistics, Item, Achievement, Hero Pick Frequency). Lag reduced, but some of Starcodes didn't saved.
As you can see in this picture, HPF(Hero Pick Frequency) and ACH(Achievement) didn't saved. watwatwat...
Try merging all those variables into a String and compress it using the StarCode Function "Compress String", then save that string into your bank.
I didn't understand that, isn't there already compress that variables? Or did you mean create 'another' threaded macros that stores another Starcode string containing those variables, and put it in player leave trigger?
Main map uses above 100mb mod file, and it takes too long for upload, so I separate the bank triggers. There can be 2 players, and you can see the freezing when your opponent player leaves.
Smallized my bank to save just 360000 integers. Lag is reduced but not much I wanted. Can't it be threaded? Although I made a threaded action for save and put in on player leave trigger, result was same. All players stopped.
Hi. I'm currently working on banks that save players' info by using Starcode. Everything works fine w/o just one problem. When player leaves, the game saves his info, and ALL PLAYER'S GAME IS STOPPED FOR A WHILE. Nobody can't interact with game before the saving procedure is complete. Does anyone got clue about this?? Thanks.
p.s. Currently my game saves about 2 million integers(maybe). Was the size problem?
@TheUltragon: Go
Hmm. I've just modified the saving time and it works nearly fine. My game has two fade-out situations, so I can save all players' info in that time. Thanks for advicing me :)
@finiteturtles: Go
I treated Starcode like a Limited Dynamic Array, that is retain its own area even though it doesn't use its space. Thanks for correcting me, but I can't find a way to reduce the amount of saving variables... Everything is needed in a right place.
ps. If my game just saves 1172 variables instead of 1.8M, then why Starcode freezes when I change the maximum Credits from 99999 to 999999? By your opinion, latter's amount is same with former. Of course, I changed the saving/loading bank name.
@TheUltragon: Go
How can I describe my systems? Do you mean my bank system? Or is it a whole game mechanism?
@TheUltragon: Go
Well, Even though I unchecked 'Create thread' options for all save macros, ACH and HPF comes for nothing. And I thought that Galaxy Editor supports controlling the critical section(someday I experimented)... so there might not have race conditions.
This is the hardest problem I've experienced in mapping... Why Blizzard's bank signatures can be cracked.. LOL
dafuq.
I separated Load macro into 4 threaded macros(Player Statistics, Item, Achievement, Hero Pick Frequency). Lag reduced, but some of Starcodes didn't saved.
As you can see in this picture, HPF(Hero Pick Frequency) and ACH(Achievement) didn't saved. watwatwat...
Here is the source :
Thanks for your kind reply, but I have one question.
I didn't understand that, isn't there already compress that variables? Or did you mean create 'another' threaded macros that stores another Starcode string containing those variables, and put it in player leave trigger?
Main map uses above 100mb mod file, and it takes too long for upload, so I separate the bank triggers. There can be 2 players, and you can see the freezing when your opponent player leaves.
Smallized my bank to save just 360000 integers. Lag is reduced but not much I wanted. Can't it be threaded? Although I made a threaded action for save and put in on player leave trigger, result was same. All players stopped.
@TheUltragon: Go
3000 for Minimum amount of Exp, 60000 for Maximum amount of Exp, 50 for Maximum level
+ 999999 for Maximum Credits, 99999 for Maximum Play Count, 50000 for Maximum Amount of Player Win
+ 28(Maximum amount of heroes) * 30000 for Play Count for each Heroes, 840 for Items available, 300 for Achievemets available.
-> 3000 + 60000 + 50 + 999999 + 99999 + 50000 + 28*30000 + 840 + 300 = about 1.8 million LOL
How should I reduce? Should I remove Playcount for each heroes? but it's still about 1 million though OMG
Hi. I'm currently working on banks that save players' info by using Starcode. Everything works fine w/o just one problem. When player leaves, the game saves his info, and ALL PLAYER'S GAME IS STOPPED FOR A WHILE. Nobody can't interact with game before the saving procedure is complete. Does anyone got clue about this?? Thanks.
p.s. Currently my game saves about 2 million integers(maybe). Was the size problem?