Bank limitations?

Status
Not open for further replies.

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,241
I think the limitation is a total size in bytes. Each variable has an underlying xml cost in bytes. Additionally as the values are stored as text and not binary data, larger numbers (more decimal characters) and strings use more than short ones.

Thus....
You can have a few very long variables (like strings).
You can have many very small variables (like booleans).
You can store more data using fewer variables (due to underlying xml structure cost of each entry has).
You can store the most data by encrypting to strings (like WC3) due to higher base.

On top of that, the limit is a pool. Thus a 2 player map can use banks 6 times larger than a 12 player map.
If a bank is too big, the players who exceede the bank limite would freeze during map load.

This was the case during the beta of SC2. It may have changed since then but I have no heard any data to support that.
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,241
Yes you can make multiple banks. Night Special Forces uses 2 each for 6 players as an example.

The limit needs to exist otherwise I could make a harmful map which in the background saves a many gegabytes of garbage data to dozens of banks just to slow someone's computer down.

The problem is you can not dynamically create banks as far as I know. All used banks have to be declared in a separate non-trigger related file to specify that they must be preoloaded and synced with all players.
 
Level 1
Joined
Jul 16, 2011
Messages
5
Can you give me any numbers, on how many variables(integrier) i can store? And is the bank limit for all players(The Map) or each player using the bank?

I am making a map that is much like Night Special Forces, but i think i might be storing a bit more info.
Im not ready to publish a beta.

I got a 6 player map with about 15 variables(Just integrier) for each player. I could need to add a few more.
 
Last edited:
Status
Not open for further replies.
Top