yes... it's a combiined limit on triggers (estimated by their constituent actions, conditions, and local variables) and global variables. I believe local variables count under the "trigger limit" and global variables fall under their own limit
I didn't hit it myself yet, but I've heard DarkRevenant hit it already.
The script limit is 2mb. The script size is the uncompressed size of the "MapScript.galaxy" file.
You can open your map file with an mpq editor like WinMPQ and check the uncompressed file size.
If you are close to the limit, you could write a program, that renames everything with shorter names and deletes characters that only exist for human readability like line breaks. That can give you a little bit more space, if you add new code with that style yourself.
But in the end we hope that Blizzard will raise that limit because every trigger intensive project might hit it sooner or later.
Thanks a lot. Seems like I got some room left, since my MapScript.galaxy file has "only" about 980 kb :) Apparently, the 25k lines of code aren't that serious.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Unfortunately, all the threads about this topic are quite old, so I dunno whether something has changed about it already.
Is there a limit regarding the script size (MB, lines, whatever).. or a limit on variables, function calls, triggers...
My project is already somewhat huge and I fear to hit a certain limit... what would be a desaster ^^
yes... it's a combiined limit on triggers (estimated by their constituent actions, conditions, and local variables) and global variables. I believe local variables count under the "trigger limit" and global variables fall under their own limit
I didn't hit it myself yet, but I've heard DarkRevenant hit it already. The script limit is 2mb. The script size is the uncompressed size of the "MapScript.galaxy" file.
You can open your map file with an mpq editor like WinMPQ and check the uncompressed file size.
If you are close to the limit, you could write a program, that renames everything with shorter names and deletes characters that only exist for human readability like line breaks. That can give you a little bit more space, if you add new code with that style yourself.
But in the end we hope that Blizzard will raise that limit because every trigger intensive project might hit it sooner or later.
@thepumaman1: Go
As far as I know global variables add to that limit, too. Local variables have been separated from that with a patch I think.
@Ahli634: Go
you're probably right.
oh, and i managed to hit the limit on a shitty map :D
really bad trigger organization, but half of the triggers were deleted and reworked in an effort to figure out how to do something
@Ahli634: Go
Thanks a lot. Seems like I got some room left, since my MapScript.galaxy file has "only" about 980 kb :) Apparently, the 25k lines of code aren't that serious.