HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Server split. Why?

04-09-2007, 10:05 PM#1
Moss
Why should this cause a server split after the 5 second grace period, when the hero gets booted to their base?

Trigger:
Relocate Trespassing Heroes
Collapse Events
Unit - A unit enters BlueHome <gen>
Unit - A unit enters RedHome <gen>
Collapse Conditions
gameModesSetable Equal to False
Collapse Or - Any (Conditions) are true
Collapse Conditions
Collapse And - All (Conditions) are true
Collapse Conditions
(RedHome <gen> contains (Triggering unit)) Equal to True
((Owner of (Triggering unit)) is an ally of Player 2 (Blue)) Equal to True
Collapse And - All (Conditions) are true
Collapse Conditions
(BlueHome <gen> contains (Triggering unit)) Equal to True
((Owner of (Triggering unit)) is an ally of Player 1 (Red)) Equal to True
Collapse Actions
Custom script: local effect udg_e
Set u = (Triggering unit)
Custom script: call CS_Error(GetOwningPlayer(udg_u), "Trespassing into the enemy base is not allowed. . .")
Wait 5.00 game-time seconds
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
Collapse Or - Any (Conditions) are true
Collapse Conditions
Collapse And - All (Conditions) are true
Collapse Conditions
(RedHome <gen> contains (Triggering unit)) Equal to True
((Owner of (Triggering unit)) is an ally of Player 2 (Blue)) Equal to True
Collapse And - All (Conditions) are true
Collapse Conditions
(BlueHome <gen> contains (Triggering unit)) Equal to True
((Owner of (Triggering unit)) is an ally of Player 1 (Red)) Equal to True
Collapse Then - Actions
Set u = (Triggering unit)
Set i = (Team number of (Owner of u))
Unit - Move u instantly to RevivalPoints[i]
Camera - Pan camera as necessary for (Owner of u) to RevivalPoints[i] over 1.00 seconds
Unit - Pause u
Special Effect - Create a special effect attached to the overhead of u using Abilities\Spells\Human\Thunderclap\ThunderclapTarget.mdl
Set e = (Last created special effect)
Wait 10.00 game-time seconds
Unit - Unpause (Triggering unit)
Special Effect - Destroy e
Else - Actions
04-09-2007, 10:16 PM#2
Mapz_Maker
I do not see any server split material.

Back when i actually used Warcraft III i found a very good debugging technique. After each line in the danger zone (when the server split occurs) create 2 more lines of code (or gui) the first stating what just happened and the second being a one second wait. Then the last message you see before everyone goes bye-bye is the culprit, get the other tester to tell you what the last message said then correct the line of gui. It may be a lengthy process but will give you the soloution.

On a second note, try looking at deleting the local shadow 'e' if that is the culprit make a workaround, that looks suspicious.
04-09-2007, 10:23 PM#3
Ammorth
Pan camera as necessary causes desyncs. Use pan camera instead.
04-09-2007, 10:41 PM#4
Moss
Quote:
Originally Posted by Ammorth
Pan camera as necessary causes desyncs. Use pan camera instead.

Really? Dang. I figured it might be that. Since getting the location of a players camera causes desyncs that makes sense. As luck would have it all my other Pan Cameras are the regular kind. Thanks for the advice too Mapz_Maker.
04-10-2007, 09:08 AM#5
RaveEye
I think you shall move this to the top of the trigger.
Trigger:
Custom script: local effect udg_e
04-10-2007, 09:11 AM#6
blu_da_noob
Quote:
Originally Posted by RaveEye
I think you shall move this to the top of the trigger.
Trigger:
Custom script: local effect udg_e

It is at the top. And the cause of the split is the pan camera thing, because it's well known to do so.