SCRMaps
/
Sign in

The five pools the engine draws from

Units, sprites, images, bullets and orders - each a fixed count, and "the 500 limit" is two different 500s.

12 min read

StarCraft takes all five from pools allocated in advance: creating something takes one, destroying it gives it back. When a pool is empty nothing more can be made - and that is not an error, it is simply nothing happening.

The pools
Unit1,700, or 3,400 with the editor's extended units option.
Bullets100, or 200 extended. This is the scarce one.
Sprites placed in the editor500, or 1,000 extended.
Transient effects (corpses, spell effects, scans)About 500, and no plugin raises it.
Sprites in total2,500 - the table that holds the units, the placed sprites and the effects together.
Images5,000.

"The 500 sprite limit" is two different 500s: editor-placed sprites, and temporary effects, both sitting inside a 2,500-entry sprite table. All three numbers are real and they constrain different things, so conflating them means fixing the wrong one.

The symptom is distinctive enough to memorise: solo it works, and in a full four-player game the effects stop appearing - scan effects, missiles, missile trails, all of them - while units keep working and nothing errors.

What makes it diagnosable
A created unit is not a visible effectCreating the scan unit only reveals vision and fixes the position; whether an image appears there is a separate question. Over the limit the unit is created and nothing is drawn.
Only one player sees the “cannot create” messageIt reaches only the player who owns the CreateUnit, so "nobody reported an error" is not evidence.
The unlimiter has nothing to do with thisThe unlimiter enlarges the sprite region; the effect 500 is not that region.
If they never come back after the count drops, suspect the iscriptIf effects never come back after the count drops, suspect the iscript: a misconfigured one leaves an invisible image that never expires, so the 500 fills permanently rather than transiently.

Note also that bullets are only 100, which makes any technique that draws with them unusable at stock limits for anything but scenery. And the unlimiter is not unlimited, just a bigger region - large enough that a map cannot exhaust it unless it is leaking, with the side effect that draw order keeps swapping and the picture shimmers.

What the unlimiter actually raises
Bullets100 to 8,192
Sprites2,500 to 65,536
Images5,000 to 65,536
Ordersto 65,536
UnitStays at 1,700.
Sprites placed on the mapStays at 500. Place as many as you like with the unlimiter on and the game still loads only 500.

These numbers were read out of the plugin's own source, a 50-line file that names all four pool sizes and their free-list addresses - which is where to look when the figures people quote disagree. One more side effect: a unit created after the unlimiter is on reads 0 in its CUnit sprite field.

What actually fills that 500 pool is usually corpses - and which units leave one is not the same question as which units create something when they die. A death script that creates a sprite leaves an object that outlives the unit and occupies the pool; one that creates an image attaches it to the unit's own sprite, and it goes away with it.

Measured across all 228 units
Leaves a sprite90. These occupy the pool.
Leaves only an image102. They go with the unit, so they are free.
Leaves nothing35.
Has no death animation at all1.

The 90 read as a rule rather than a list: every building (rubble), every Zerg ground unit (blood), and a short tail - Marine, Ghost, Medic, Jim Raynor (Marine), Duran, Stukov, Dragoon, Fenix. Flyers and the other Protoss ground units leave an image only, which is why an air-heavy defence map never meets this limit and a Zergling wave does.