• 💀 Happy Halloween! 💀 It's time to vote for the best terrain! Check out the entries to Hive's HD Terrain Contest #2 - Vampire Folklore.❗️Poll closes on November 14, 2023. 🔗Click here to cast your vote!
  • 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 HD Level Design Contest #1 is OPEN! Contestants must create a maze with at least one entry point, and at least one exit point. The map should be made in HD mode, and should not be openable in SD. Only custom models from Hive's HD model and texture sections are allowed. The only exceptions are DNC models and omnilights. This is mainly a visual and design oriented contest, not technical. The UI and video walkthrough rules are there to give everyone an equal shot at victory by standardizing how viewers see the terrain. 🔗Click here to enter!

Bank limitations?

Status
Not open for further replies.

Dr Super Good

Spell Reviewer
Level 63
Joined
Jan 18, 2005
Messages
27,156
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 63
Joined
Jan 18, 2005
Messages
27,156
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