Server split in my map, HELP ME!!!

SaMmM

Member
Reaction score
4
Umm... like the game splits into 2 different games.

For example: Red, blue, teal, yellow are in the same game.
Then when it server split.

Red and blue same game.

Teal and yellow same game.

They exsist in different games.
 

Cohadar

master of fugue
Reaction score
209
Ok man listen up.
Server splitting is not a joke, here is how you fix it:

Track it down:
Play a game, and when the game desyncs quit the game and save replay.
Do this a couple of times.

Most desyncs happen because of bugged spells,
so make sure you check who casted a spell when game desynced.

Also the most common desyncing spells are the ones with waits inside them.
Waits are bad, don't use waits if you don't have to.

For example:

BAD:
Code:
CreateLeaderBoard
    Events
    Conditions
    Actions
        Wait 1.00 seconds
        Leaderboard - Create a leaderboard for (All allies of Player 1 (Red)) titled Kills
        Player Group - Pick every player in (All allies of Player 1 (Red)) and do (Leaderboard - Add (Picked player) to (Last created leaderboard) with label (Name of (Picked player)) and value 0)
        Leaderboard - Remove Player 11 (Dark Green) from (Last created leaderboard)
        Leaderboard - Sort (Last created leaderboard) by Value in Descending order
        Leaderboard - Show (Last created leaderboard)

GOOD:
Code:
CreateLeaderBoard
    Events
        Time - Elapsed game time is 1.00 seconds
    Conditions
    Actions
        Leaderboard - Create a leaderboard for (All allies of Player 1 (Red)) titled Kills
        Player Group - Pick every player in (All allies of Player 1 (Red)) and do (Leaderboard - Add (Picked player) to (Last created leaderboard) with label (Name of (Picked player)) and value 0)
        Leaderboard - Remove Player 11 (Dark Green) from (Last created leaderboard)
        Leaderboard - Sort (Last created leaderboard) by Value in Descending order
        Leaderboard - Show (Last created leaderboard)

This is also a total stupidity:
Code:
Die
    Events
        Unit - A unit owned by Player 12 (Brown) Dies
    Conditions
    Actions
        Player - Add 1 to (Owner of (Killing unit)) Current lumber
        Leaderboard - Change the value for (Owner of (Killing unit)) in (Last created leaderboard) to ((Owner of (Killing unit)) Total lumber gathered)
        Leaderboard - Sort (Last created leaderboard) by Value in Descending order
        Wait 5.00 seconds
        Unit - Remove (Triggering unit) from the game

Do it like this:
Code:
Die
    Events
        Unit - A unit owned by Player 12 (Brown) Dies
    Conditions
    Actions
        Player - Add 1 to (Owner of (Killing unit)) Current lumber
        Leaderboard - Change the value for (Owner of (Killing unit)) in (Last created leaderboard) to ((Owner of (Killing unit)) Total lumber gathered)
        Leaderboard - Sort (Last created leaderboard) by Value in Descending order

And instead of removing the units go to:
Advanced->Gameplay Constants->BoneDecayTime
ans change it from 88 to 5 sec.
 

Magentix

if (OP.statement == false) postCount++;
Reaction score
107

Sim

Forum Administrator
Staff member
Reaction score
534
I didn't check your map but a common function that causes desyncs is "Pan Camera as necessary for player". Make sure you do not use this one. Instead, use simply "Pan Camera for player".
 

hell_knight

Playing WoW
Reaction score
126
Funny how you always start thumping people into the ground :)

I believe I read this somewhere while ago , but Im pretty sure it was from someone that I would respect and is NOT a idiot. I don't know maybe too many memory leaks will lag the persons computer really badly cause him to lag / dc but probaly not a split.

Like everyone said above , pan neccasty for player / get local player
Will cause desyncs if used improperly.
 

Cohadar

master of fugue
Reaction score
209
but Im pretty sure it was from someone that I would respect and is NOT a idiot.

Well who ever it was, (s)he was wrong.

Just because someone is respectful does not mean they know all info on the world, and does not mean that they never speak boolshit.

Take me for example....
 

duyen

New Member
Reaction score
214
Why is your map a .rar

Not to mention it's protected so we won't be able to track the problem anyways... Maybe post all the triggers?
 

SaMmM

Member
Reaction score
4
The upload website won't allow me to upload warcraft maps file type.

Does any1 know where can i upload it?

I unprotected it for u guys to help me check.
 

Drunken_God

Hopes to get back into Mapmaking with SC2 :)
Reaction score
106
The upload website won't allow me to upload warcraft maps file type.

Does any1 know where can i upload it?

I unprotected it for u guys to help me check.

upload it here in this forum:
scroll down while posint a new reply then press manage attachements
 

Romek

Super Moderator
Reaction score
964
Well who ever it was, (s)he was wrong.

Just because someone is respectful does not mean they know all info on the world, and does not mean that they never speak boolshit.

Take me for example....

...You're calling yourself respectful?
I doubt many people respect you. (Judging by the way you're acting in this topic)

And as for the problem, Do the replay thing. You'll at least find when the server split is happening...
 

Cohadar

master of fugue
Reaction score
209
And you are..?

EDIT: ----------------------
I think I found server split
It is in trigger Die under Attacker category

Code:
Die
    Events
        Unit - A unit owned by Player 12 (Brown) Dies
    Conditions
    Actions
        Player - Add 1 to (Owner of (Killing unit)) Current lumber
        Leaderboard - Change the value for (Owner of (Killing unit)) in (Last created leaderboard) to ((Owner of (Killing unit)) Total lumber gathered)
        Leaderboard - Sort (Last created leaderboard) by Value in Descending order
        Wait 5.00 seconds   // <===== REMOVE THIS LINE
        Unit - Remove (Triggering unit) from the game // <===== AND THIS LINE

Then go to Advanced -> Gameplay Constants -> Decay Time (sec) - Bones and set it from 88 to 3.

-------------------
You should also remove that wait in Vision trigger under Debug category.

-------------------
The whole anti-team category is totally idiotic and should be removed completely.
put this instead:
Code:
Prevent Betraying
    Events
        Unit - A unit Is attacked
    Conditions
        (Attacked unit) Equal to Fortress 0000 <gen>
        (Owner of (Attacking unit)) Not equal to Player 12 (Brown)
    Actions
        Unit - Order (Attacking unit) to Stop
 

ManyTimes

I'm so lonesome I could cry...
Reaction score
293
Code:
Wait 5.00 seconds   // <===== REMOVE THIS LINE
        Unit - Remove (Triggering unit) from the game // <===== AND THIS LINE
If that causes the server split, call me ...whatever

Some things I did not like:
Code:
Actions
    For each (Integer A) from 1 to 50, do (If (((Triggering unit) has (Item being manipulated)) Equal to True) then do (Hero - Order (Triggering unit) to use (Item being manipulated)) else do (Do nothing))
Why not just change the ability to add X INT/STR/AGI instead of doing a loop like that?

The triggers: Give Money, YOU LOSE, YOU WIN, use a loop next time.

The trigger "nt", I did not like it at all...

As cohadar already said, the whole anti-team category...

The empty folder "other stuff", remove it? or was there something "secret" you did not want to show us?

Last tip; add everything, add all heroes/gold to all players/wood/items/ computer creeps/cheese... so you can control, when each trigger will fire. Then do one thing at a time, having a friend of you inside the game, checking whenever he drops. If he drops, you know where it is, if he does not drop, try do a "beta test", get several people in, and test! :)

Last Last tip; have "game display text: 1/2/3/4...." to yourself, in each trigger (all the unsecure ones), so when you watch the replay, it will be easier to detect...

Have fun!

Edit; do you got a replay and not sure whats happening? upload it? :)

Edit2; Cohadar :p
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top