HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Huge Bug - Redongculous

10-14-2006, 03:33 AM#1
xombie
Okay, my script is as follows:
Code:
function InitTrig_Initialization takes nothing returns nothing
    set gg_trg_Initialization = CreateTrigger()
    call TriggerAddAction( gg_trg_Initialization, function Initialization_Actions )
endfunction
For some reason, this actually does nothing. I put a DebugMsg right after it adds the action, and it displays the message, but when I put it into the Initialization_Actions trigger it doesn't display anything. I'm not getting any error with my syntax in PJass or the World Editor checker either...

:: edit ::

I seem to be coming across some more bugs dealing with camera. I have a timer that starts going off every 0.1 seconds, and it is supposed to set a camera's FoV, AoA, etc. Now for some reason it does all of this ONCE, and then stops updating. There is no where that destroys the timer, or edits it in any way. Why the hell?
10-14-2006, 03:58 AM#2
darkwulfv
Hmm... Perhaps, typos? Maybe function Initialization_Actions doesn't exist in the trigger your refrencing to?
10-14-2006, 04:19 AM#3
Vexorian
maybe you didn't set the "Run on map initialization" checkbox?
10-14-2006, 06:18 AM#4
xombie
Actually, to answer your first reply, the PJass and World Editor syntax checkers didn't pick that up, as they would've if I had typos. Also, I actually copied and pasted the function I made into the:
Code:
call TriggerAddAction( trigger, function <action trigger> )
I'd understand if the PJass checker gave me errors, but this is just rediculous. Also, to answer the second reply, yes the checkbox is clicked =P.

There are absolutly no errors with starting up this map, and when I put a BJDebugMsg after I add the action, the message shows up, but the DebugMsg I put at the very beginning of the function (after declaring locals) did not even go. Somewhere along the lines this function just is not being called upon.
10-14-2006, 06:26 AM#5
SentryIII
I have a hunch that you have an endless loop in one of your InitTrig_******* functions.
10-14-2006, 06:55 AM#6
xombie
An endless loop created by what? There are only two lines of code in my "InitTrig_Initialization" function which consist of a "set gg_trg_Initialization" and a TriggerAddAction(...). There is no where for a loop to be created.

::edit::

It is also my only InitTrig function... so...
10-14-2006, 10:50 AM#7
zen87
Quote:
Originally Posted by xombie
An endless loop created by what? There are only two lines of code in my "InitTrig_Initialization" function which consist of a "set gg_trg_Initialization" and a TriggerAddAction(...). There is no where for a loop to be created.

::edit::

It is also my only InitTrig function... so...
post the whole thing down... there might be some error in the middle that we cant see
10-14-2006, 12:22 PM#8
Jazradel
At least post the local decleration.
10-14-2006, 01:39 PM#9
Vexorian
Quote:
Originally Posted by Vexorian
maybe you didn't set the "Run on map initialization" checkbox?
people, he can put a message and the message appears, he can save and run the map, there are no syntax errors there.
10-14-2006, 05:52 PM#10
xombie
Thank you Vex, sometimes people don't read...
::edit::
PS.
do you want me to let this post get deleted and start a new on in the proper location? i've been reading the rules and it seems this forum (General Discussion) is not for this type of thing..
Code:
function Initialization_Actions takes nothing returns nothing
 local player focus
 local unit hero
 local group units = CreateGroup()
 local integer index = 0
    call BJDebugMsg( " debug " )
No message of " debug " shows up. I know for a fact my declarations are fine, since the W.E didn't give me any syntax errors and I could start up the map, it just seems to not like the "Initialization_Actions" function.
10-14-2006, 07:40 PM#11
Vexorian
I mantain my question, Are you sure "Run on map initialization" is checked?


I am just moving the thread to the right forum
10-14-2006, 07:47 PM#12
SentryIII
If the "Run on map initialization" box for both triggers is checked and it still doesn't work, something is stopping the initialization thread from running (which is why I thought it was an endless loop, or possibly numerous REALLY REALLY long loops in there).
10-14-2006, 08:18 PM#13
xombie
Well if I wasn't too lazy to take a screenshot, I would show you that both the "Enabled" and "Run on Map Initialization" checkboxes are checked.

PS.

Thanks for moving it.

::edit::

If I disable this trigger, and then add another one that displays a message on initialization, the message shows up. So whatever it is it is coming arm in arm with the trigger. What could be wrong?
10-17-2006, 10:22 PM#14
xombie
lol i love how this just goes un-answered, and nobody even tries/
10-18-2006, 01:07 AM#15
Vexorian
It could also be that some other Init section of a trigger ran after this one is crashing the thread disallowing the map initialization trigger execution thread to stop, if you really want an answer post the map in the pastebin and send me the link by a pm