| 10-14-2006, 03:33 AM | #1 |
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:: 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 |
Hmm... Perhaps, typos? Maybe function Initialization_Actions doesn't exist in the trigger your refrencing to? |
| 10-14-2006, 04:19 AM | #3 |
maybe you didn't set the "Run on map initialization" checkbox? |
| 10-14-2006, 06:18 AM | #4 |
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> ) 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 |
I have a hunch that you have an endless loop in one of your InitTrig_******* functions. |
| 10-14-2006, 06:55 AM | #6 |
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 | |
Quote:
|
| 10-14-2006, 12:22 PM | #8 |
At least post the local decleration. |
| 10-14-2006, 01:39 PM | #9 | |
Quote:
|
| 10-14-2006, 05:52 PM | #10 |
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 " ) |
| 10-14-2006, 07:40 PM | #11 |
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 |
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 |
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 |
lol i love how this just goes un-answered, and nobody even tries/ |
| 10-18-2006, 01:07 AM | #15 |
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 |
