HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

evil WE crash

12-11-2004, 04:32 AM#1
a thing
Code:
function Trig_WEEEEHA_move_Actions takes nothing returns nothing
local integer i=0
    loop
        exitwhen i>10
        if udg_weeeeha[i] then
            call CameraSetupApplyForPlayer(true,udg_WeeeehaCam[GetRandomInt(0,8)],.01)
        endif
        set i=i+1
    endloop
endfunction

//===========================================================================
function InitTrig_WEEEEHA_move takes nothing returns nothing
    set gg_trg_WEEEEHA_move=CreateTrigger()
    call DisableTrigger(gg_trg_WEEEEHA_move)
    call TriggerRegisterTimerEventPeriodic(gg_trg_WEEEEHA_move,.2)
    call TriggerAddAction(gg_trg_WEEEEHA_move,function Trig_WEEEEHA_move_Actions)
endfunction

When I save or test my map with the above trigger in it, WE crashes. Any ideas on what would cause that?
12-11-2004, 12:26 PM#2
Vexorian
Quote:
call TriggerRegisterTimerEventPeriodic(gg_trg_WEEEEHA_m ove,.2)
There is an extra space between the _m and the ove, and it should be 0.2 not just .2
12-11-2004, 01:34 PM#3
a thing
1. That space is just a bug in the forums.

2. That doesn't matter.
12-11-2004, 01:58 PM#4
Vexorian
Quote:
Originally Posted by a thing
1. That space is just a bug in the forums.

2. That doesn't matter.
Are you sure it doesn't matter? , in that case wheee, new thing for optimizer


Anyways, only idea I can get from it is that perhaps udg_weeeeha is not a boolean array?
12-11-2004, 02:39 PM#5
a thing
Quote:
Originally Posted by my map's war3map.j
boolean array udg_weeeeha

It's a boolean array.


BTW, I'm sure that 0 infront of .2 doesn't make a difference because I tried it.
12-11-2004, 02:40 PM#6
Vexorian
better use pjass, when the map crashes when saving it leaves a MAPNAME.w3xtemp directory, under it look for war3map.j and use that file with pjass