Hey, there. I'm doing my best to keep up with the utilities already in existence for Starcraft but very few if any tools seem to exist for tedious operations. For example, in the map I am creating, I intend for a player to have to bring one of sixteen different things to any of nine beacons on the map. The contents of each trigger are considerable (four conditions, five actions), each player gets a different result (thus meaning each player needs his or her own trigger for each case), there are nine possible locations and sixteen possible requirements. Therefore, for this portion of the map alone, I need 9x16x8 = 1152 triggers. As I don't want to put those in by hand, I sought a different way.
I looked up the CHK file format and wrote a program to generate the necessary triggers. This program then takes a valid CHK (the base map with no triggers), generates a TRIG section, and replaces the CHK's existing TRIG section with the generated one. It also replaces the STR (strings) section, as many of the triggers have text or at least comments.
I was testing the result as I went along. I got as far as the first player, all nine locations for six of the sixteen requirements. After I add the seventh set for the first player, StarEdit X-Tra, StarForge, and the original editor cease to be able to load the CHK file. I'm quite confused, as I'm absolutely certain I've kept to the file format spec.
Only one thing strikes me as a potential problem. The generated triggers section is absolutely massive, accounting for more than a megabyte of the 1.3 Mb file. Is there some kind of size limit that I'm not aware of? According to the spec, the TRIG section can be up to 2 Gb in size.
The spec I'm using, by the way, is the one on the Campaign Creations site (
here) as it is the only one I can find.
Can anyone provide any insight or a potential fix? I'd appreciate help on this one. The eventual goal of the map is to function much like the well inspired but poorly designed God's Land maps on Battle.Net, but the deity influencing the game is a trigger-driven computer instead of a human (to encourage fairness

). Unfortunately, Starcraft's trigger system is far short of a Turing-complete language; I have to copy a trigger and use a switch just to get an OR out of the blasted thing.
Is what I'm trying to do impossible? Does anyone know the limits of this file format or of the Starcraft map's trigger section in general?
Thanks again for reading and for any help you might provide. I appreciate the time.
Cheers!