HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

How to fix this desync

06-06-2006, 01:19 AM#1
TaintedReality
Collapse JASS:
if(GetLocalPlayer()==o) then
     call CinematicFadeBJ( bj_CINEFADETYPE_FADEOUT, 0.50, "ReplaceableTextures\\CameraMasks\\Black_mask.blp", 0, 0, 0, 0 )
endif

That's what is desyncing, is there any way to change it so I get the same effect (fade out to black) so that it doesn't cause a desync? I'm making a spell that blacks out the view of anyone it gets cast on. This is the only GetLocalPlayer() call in the function, so I know it's this. Thanks for any help.

Oh and BTW, yes I realize that's a BJ, but...it's one big BJ function and I didn't see any reason to go through and decipher what all of it was doing when I could just use this.
06-06-2006, 05:39 AM#2
Anitarf
Obviously, some of it generates net traffic.

Try using advanced fade filter GUI action, it works for me.
06-06-2006, 10:51 AM#3
Soultaker
I read a lot of places that the normal fade filter causes an desync which you can't fix. But the advanced filter should do the trick.

- Soultaker
06-06-2006, 11:25 AM#4
blu_da_noob
Well, looking through the two different filter function (Advanced and normal) the only differences I could come across amounted to:

Advanced has (and normal doesn't):
Collapse JASS:
    call AbortCinematicFadeBJ()
Normal has (and advanced doesn't):
Collapse JASS:
    call EnableUserUI(false)

AbortCinematicFadeBJ doesn't do anything unusual, so I assume the problem lies with the EnableUserUI which is probably causing the desync problem.

To fix use the advanced fade filter action in GUI (and for your fadeout action you want, the first transparency value should be 100% and the second should be your ending %, probably 0):
Trigger:
Cinematic - Apply a filter over 2.00 seconds using Normal blending on texture White Mask, starting with color (100.00%, 100.00%, 100.00%) and 100.00% transparency and ending with color (0.00%, 0.00%, 0.00%) and 0.00% transparency
06-06-2006, 01:00 PM#5
TaintedReality
Ok, thanks, I'll try it out. Sorry for the long wait to reply I was asleep ; ).
How to fix this desync - Wc3C.net