HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Can anyone see whats wrong here?

01-03-2008, 09:47 AM#1
grundy
i have no ****ing clue what is wrong here. this trigger sometimes works and sometimes does not. I stripped the trigger down so its less complicated and have a better chance of finding whats wrong. i've tested this new trigger and it has the same exact problem my original trigger had. so can anyone see what's wrong with this trigger?

Expand JASS:

the problem is that sometimes (it appears to be random with no apparent cause) the local trigger that is created does absolutely nothing. The illusions are created from the dummy units casting Item Illusion on the caster and the local trigger is supposed to go off when an image is created and move the images to surround the target and pause the illusions. now sometimes it works and some times it just creates the illusions, leaves them where they were created, and does not pause them. like that local trigger was never created. and its so random i cannot narrow it down to find the cause

it'll work perfectly like 5 times and then it ****s up once and then it will work perfectly 2 times and then it ****s up once and then it will work perfectly 12 times and then it ****s up once and then it works perfectly 7 times and then it ****s up once. i am completely stumped.
01-03-2008, 10:13 AM#2
Jazradel
In before cohadar saying it's due to your attachment system.

Personally, I think it's your attachment system. I2H, H2U, local triggers, etc can not be good. Knowing me, however I've probably just overlooked something. I'd try writing this with CS_Cache, or even better structs and see if it works then.

Also, triggers sans vJass are horrible to look at
01-03-2008, 12:26 PM#3
Vexorian
GetHandleHandle = I2H = Random issues.

But it sounds like your random issues are easier to reproduce than often. Besides of I2H I can say there are a lot of nasty things you are doing in your trigger, for example, you should seriously not use a group there, you actually just want a counter.

If I could show you a theory it would be that CountUnitsInGroup function that exploits that terrible bj_wantDestroyGroup hack, I am 95% sure you got a trigger somewhere in which that variable is wrongly assigned to true and is causing a destruction of the group. Want to check if I am right? try adding this:

Collapse JASS:

if CountUnitsInGroup(G)!=InG then
    call BJDebugMsg("ouch")
endif

after : set InG = CountUnitsInGroup(G)
01-04-2008, 10:24 PM#5
Jazradel
They might have a mac. Besides, forcing stuff on people = bad. Educate them, but if they still don't want to then don't force then.

Good idea there Vex. If that doesn't work out, starting adding debug messages to everything.
01-05-2008, 01:18 AM#6
Av3n
Thats why... GetHandleUnit is more safer... sheez, dman these ppl are under educated

-Av3n
01-05-2008, 08:23 AM#7
Pyrogasm
Quote:
Originally Posted by Jazradel
They might have a mac.
<3