I think I accidentally hit the limit for the use of arrays. When that happens, all triggers stop working entirely. Unfortunately I've only done like 1% of my map triggers-wise.
I thought the cap was eliminated, or at least raised significantly from Warcraft 3.
Is anyone aware of the actual limit? Or is there a workaround for this?
How does Blizzard expect us to create decent creative maps that exploit the new editor's powerful functionality over warcraft 3 if we are supposed to work with such tight budgets on resources?
I did a quick test on integer arrays and it seems the maximum is about 440000 variables. That's a two-dimensional array with 8192|54 indexes. It looks like GUI doesn't accept a size greater than 8193. But Custom Script doesn't have this limit.
Anyway, if you already reached this maximum then you're doing something horribly wrong. It's probably a trigger error somewhere (never ending loop?).
Whilst you can't have actual dynamic arrays, you can simulate them using the data tables functions/actions. I also had this problem in one of my maps (declaring a large number of static arrays to compensate for the lack of actual dynamic arrays), which caused me to investigate them in the first place. See this post for how to simulate a dynamic array using the data tables, which should relieve the problem unless it's caused by something else entirely, or you are using more than the 440000ish variable limit.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I think I accidentally hit the limit for the use of arrays. When that happens, all triggers stop working entirely. Unfortunately I've only done like 1% of my map triggers-wise.
I thought the cap was eliminated, or at least raised significantly from Warcraft 3.
Is anyone aware of the actual limit? Or is there a workaround for this?
How does Blizzard expect us to create decent creative maps that exploit the new editor's powerful functionality over warcraft 3 if we are supposed to work with such tight budgets on resources?
I did a quick test on integer arrays and it seems the maximum is about 440000 variables. That's a two-dimensional array with 8192|54 indexes. It looks like GUI doesn't accept a size greater than 8193. But Custom Script doesn't have this limit.
Anyway, if you already reached this maximum then you're doing something horribly wrong. It's probably a trigger error somewhere (never ending loop?).
Also, arrays are not dynamic, make sure your setting the size of the array.
Whilst you can't have actual dynamic arrays, you can simulate them using the data tables functions/actions. I also had this problem in one of my maps (declaring a large number of static arrays to compensate for the lack of actual dynamic arrays), which caused me to investigate them in the first place. See this post for how to simulate a dynamic array using the data tables, which should relieve the problem unless it's caused by something else entirely, or you are using more than the 440000ish variable limit.