HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

An odd problem...

07-19-2006, 02:50 AM#1
SentryIII
For some reason, my triggers that are set to run on Map Initialization no longer run on Map Initialization. I've made an event that would run the triggers after 0 seconds have elapsed as a workaround, and they work. Unfortunately, I do a lot of things in the triggers so it causes a lot of lag. Has anyone had a similar problem or have ideas as to where to start looking for the cause of the problem?

07-19-2006, 03:04 AM#2
Tiki
If I remember most things need to be called by the timer.
07-19-2006, 03:09 AM#3
PipeDream
Map initialization runs the triggers via TriggerExecute. That means the contents of the triggers themselves can't stop the main init thread. So somehow or another the thread is stopping before it reaches them. One likely cause is initialization of the entire contents of an array-try initializing only 1 element and then setting them up manually as appropriate. BTW, I forget whose map IAWRPG is, but they misspelled "Initialization" (my reference huge war3map.j)
07-19-2006, 08:50 AM#4
SentryIII
Ok, I fixed the problem. Turns out I had an ENDLESS LOOP in one of my InitTrig functions.

Thanks for the help!
07-19-2006, 02:39 PM#5
The)TideHunter(
Yea a endless loop would crash the thread, crashing the Init, stopping the rest of them which are declared after the 1 that crashed.