Hello =)
I'm having issue with Gamesplit in my map thats happen randomly mostly past the 30 minutes marks.
I changed all the real times wait to polled wait
I examined if the map was leaking etc
I searched for the getlocalplayer() things and here is what i found in the custom script section of the trigger menu
Can one of those script cause Gamesplit? I really dont feel like removing any of em
I'm having issue with Gamesplit in my map thats happen randomly mostly past the 30 minutes marks.
I changed all the real times wait to polled wait
I examined if the map was leaking etc
I searched for the getlocalplayer() things and here is what i found in the custom script section of the trigger menu
Can one of those script cause Gamesplit? I really dont feel like removing any of em
JASS:
function PlaySoundForPlayer takes player whichPlayer, sound whichSound returns nothing
if ( whichPlayer == GetLocalPlayer() ) then
call PlaySoundBJ( whichSound )
endif
endfunction
// YAAAAAY, now i have my own jass in my map YAAAY
// The fade filter jass code was taken from W3 search and is originaly made by Jukebox42 . Respect dude
// LocalCinematicFade( FADETYPE, DURATION, STRING, RED%, GREEN%, BLUE%, TRANSPARENT%, PLAYER)
// This jass code worked perfectly in "Test Map", but caused the server split, so everyone was kicked exept the host, when played online. U can see the activation string in the map OTHER/PRESS ESCAPE
function LocalCinematicFade takes integer fadetype, real duration, string tex, real red, real green, real blue, real trans, player toPlayer returns nothing
if (GetLocalPlayer() == toPlayer) then
if (fadetype == bj_CINEFADETYPE_FADEOUT) then
// Fade out to the requested color.
call AbortCinematicFadeBJ()
call CinematicFadeCommonBJ(red, green, blue, duration, tex, 100, trans)
elseif (fadetype == bj_CINEFADETYPE_FADEIN) then
// Fade in from the requested color.
call AbortCinematicFadeBJ()
call CinematicFadeCommonBJ(red, green, blue, duration, tex, trans, 100)
call FinishCinematicFadeAfterBJ(duration)
elseif (fadetype == bj_CINEFADETYPE_FADEOUTIN) then
// Fade out to the requested color, and then fade back in from it.
if (duration > 0) then
call AbortCinematicFadeBJ()
call CinematicFadeCommonBJ(red, green, blue, duration * 0.5, tex, 100, trans)
call ContinueCinematicFadeAfterBJ(duration * 0.5, red, green, blue, trans, tex)
call FinishCinematicFadeAfterBJ(duration)
endif
else
// Unrecognized fadetype - ignore the request.
endif
endif
endfunction