• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] Way to fix this desync?

Status
Not open for further replies.
Level 10
Joined
May 27, 2009
Messages
495
I am currently working on a system but unfortunately i'm having some desyncs on the GetLocalPlayer() about Cinematic Fade Filters.. When 2 or more User-type players are playing, when 1 player use the system, that player will get disconnected.

I Use:
JASS:
If GetLocalPlayer() == GetTriggerPlayer() then
     call CinematicFadeBJ( bj_CINEFADETYPE_FADEOUTIN, 3.5, "texture.blp", 100,100,100,0)
endif

are there anyways to solve this? Please help me i really need this. This is the only thing is on desync because when I remove this part.. it works fine or the CinematicFadeBJ part...
 
CinematicFadeBJ calls a lot of other functions and one of them might cause a desync
http://www.mappedia.de/wiki/Jass:CinematicFadeBJ
better set the alpha value or the texture localy and then call the function for all players:
JASS:
local string s = "texture.blp"
if GetLocalPlayer() != GetTriggerPlayer() then
    set s = ""
endif
call CinematicFadeBJ( bj_CINEFADETYPE_FADEOUTIN, 3.5, s, 100,100,100,0)
(if that does not work which might be possible since I never messed with fading try setting both alpha and texture localy (and probably fade time) but don't touch the fade type)
 
Level 21
Joined
Mar 19, 2009
Messages
444
If you get 2 different filters using this BJ's applied on several local players, you can get some problemes (bugged natives) causing desync. I experimented this in Restricted Complex 601; I get a filter for nightvision, and I used to get a white filter for lightnings; both used at the same time to several players caused desync, for the reason Nightvision was a local filter, whereas lightning was used without GetLocalPlayer.
 
Status
Not open for further replies.
Top