Players getting disconnected.

emphh

Active Member
Reaction score
0
My problem is that everyone except the host gets disconnected from my map, i dont really know what could be wrong but i think its my victory trigger for reached kills.
Trigger:
  • leaderboard win
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Dying unit) belongs to an ally of Player 5 (Yellow)) Equal to True
      • ((Dying unit) belongs to an enemy of Player 1 (Red)) Equal to True
      • ((Dying unit) is A Hero) Equal to True
    • Actions
      • Set player_kills[1] = (player_kills[(Player number of (Owner of (Killing unit)))] + 1)
      • Set player_kills[2] = (player_kills[(Player number of (Owner of (Killing unit)))] + 1)
      • Leaderboard - Change the value for (Owner of (Killing unit)) in (Last created leaderboard) to player_kills[(Player number of (Owner of (Killing unit)))]
      • Leaderboard - Sort (Last created leaderboard) by Value in Descending order
      • If (player_kills[(Player number of (Owner of (Killing unit)))] Equal to 50) then do (Game - Victory (Owner of (Killing unit)) (Show dialogs, Show scores)) else do (Do nothing)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • player_kills[1] Equal to 25
        • Then - Actions
          • Game - Victory Player 1 (Red) (Show dialogs, Show scores)
          • Game - Victory Player 2 (Blue) (Show dialogs, Show scores)
          • Game - Victory Player 3 (Teal) (Show dialogs, Show scores)
          • Game - Victory Player 4 (Purple) (Show dialogs, Show scores)
          • Game - Defeat Player 5 (Yellow) with the message: Defeat!
          • Game - Defeat Player 6 (Orange) with the message: Defeat!
          • Game - Defeat Player 7 (Green) with the message: Defeat!
          • Game - Defeat Player 8 (Pink) with the message: Defeat!
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • player_kills[2] Equal to 25
        • Then - Actions
          • Game - Victory Player 5 (Yellow) (Show dialogs, Show scores)
          • Game - Victory Player 6 (Orange) (Show dialogs, Show scores)
          • Game - Victory Player 7 (Green) (Show dialogs, Show scores)
          • Game - Victory Player 8 (Pink) (Show dialogs, Show scores)
          • Game - Defeat Player 1 (Red) with the message: Defeat!
          • Game - Defeat Player 2 (Blue) with the message: Defeat!
          • Game - Defeat Player 3 (Teal) with the message: Defeat!
          • Game - Defeat Player 4 (Purple) with the message: Defeat!
        • Else - Actions

I know this trigger is shit, i'm not even sure it works. If anyone got an idea how to make it so when team 1 or team 2 reaches 50 herokills then that team wins and the other team loses.
 

Joccaren

You can change this now in User CP.
Reaction score
54
I don't think that this is the cause of your disconnections. There are some slight errors that I noticed but its late here and not really thinking properly. Tomorrow I'll post answers ect on how to fix your trigger if no-one else has by then. Try disabling this trigger then seeing if it still disconnects. Do this for each trigger until you find the one that causes the game to disconnect.
 

emphh

Active Member
Reaction score
0
alright i've just turned off the newly made triggers and the problem still remains, maybe theres a leak or something that causes them to disconnect? I actually have no idea.
maybe i should post my map and someone here could find what the problem could be.
but it would be best if someone here has had the same problem and could tell me what it is.
 

Yizzy

New Member
Reaction score
20
alright i've just turned off the newly made triggers and the problem still remains, maybe theres a leak or something that causes them to disconnect? I actually have no idea.
as Joccaren, disable ALL triggers, if there's still the same problem then most likely is the problem elsewhere, and it's probably easiest if you upload your map.. but if not then start enable the triggers that you think is the cause of the disconnect, and post 'em

When I read your tirgger I don't even get what it's supposed to do..

If anyone got an idea how to make it so when team 1 or team 2 reaches 50 hero kills then that team wins and the other team loses.

Try this:
Trigger:
  • leaderboard win
    • Untitled Trigger 001
      • Events
        • Unit - A unit Dies
      • Conditions
        • ((Dying unit) is A Hero) Equal to True
        • (Player number of (Owner of (Killing unit))) Greater than or equal to 1
        • (Player number of (Owner of (Killing unit))) Less than or equal to 8
      • Actions
        • Set player_kills[(Player number of (Owner of (Killing unit)))] = (player_kills[(Player number of (Owner of (Killing unit)))] + 1)
        • Leaderboard - Change the value for (Owner of (Killing unit)) in (Last created leaderboard) to player_kills[(Player number of (Owner of (Killing unit)))]
        • Leaderboard - Sort (Last created leaderboard) by Value in Descending order
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • (Player number of (Owner of (Killing unit))) Greater than or equal to 1
            • (Player number of (Owner of (Killing unit))) Less than or equal to 4
          • Then - Actions
            • Set team_kills[0] = (team_kills[0] + 1)
            • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
              • If - Conditions
                • team_kills[0] Greater than or equal to 50
              • Then - Actions
                • For each (Integer A) from 1 to 4, do (Actions)
                  • Loop - Actions
                    • Game - Victory (Player((Integer A))) (Show dialogs, Show scores)
                • For each (Integer A) from 5 to 8, do (Actions)
                  • Loop - Actions
                    • Game - Defeat (Player((Integer A))) with the message: Defeat!
              • Else - Actions
          • Else - Actions
            • Set team_kills[1] = (team_kills[1] + 1)
            • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
              • If - Conditions
                • team_kills[1] Greater than or equal to 50
              • Then - Actions
                • For each (Integer A) from 5 to 8, do (Actions)
                  • Loop - Actions
                    • Game - Victory (Player((Integer A))) (Show dialogs, Show scores)
                • For each (Integer A) from 1 to 4, do (Actions)
                  • Loop - Actions
                    • Game - Defeat (Player((Integer A))) with the message: Defeat!
              • Else - Actions


You will need another integer array varable, to count team kills.. (team_kills[])
 

emphh

Active Member
Reaction score
0
yeah that trigger is supposed to be a killcounter for teams :p
it works for individual heros.

http://rapidshare.com/files/286122926/arena__.w3x.html
thats my map, the bad english is an inside joke with my friends.

I've disabled the triggers that i think could have anything to do with the disconnects. Someone could perhaps disable them all and try.

So... any help would be appreciated.
 

Yizzy

New Member
Reaction score
20
This trigger causes desync, which causes disconnect
Trigger:
  • Start game
    • Events
      • Time - Elapsed game time is 0.01 seconds
    • Conditions
    • Actions
      • Unit - Create 1 circle for Player 1 (Red) at (Target of current camera view) facing Default building facing (270.0) degrees
      • Unit - Create 1 circle for Player 2 (Blue) at (Target of current camera view) facing Default building facing (270.0) degrees
      • Unit - Create 1 circle for Player 3 (Teal) at (Target of current camera view) facing Default building facing (270.0) degrees
      • Unit - Create 1 circle for Player 4 (Purple) at (Target of current camera view) facing Default building facing (270.0) degrees
      • Unit - Create 1 circle for Player 5 (Yellow) at (Target of current camera view) facing Default building facing (270.0) degrees
      • Unit - Create 1 circle for Player 6 (Orange) at (Target of current camera view) facing Default building facing (270.0) degrees
      • Unit - Create 1 circle for Player 7 (Green) at (Target of current camera view) facing Default building facing (270.0) degrees
      • Unit - Create 1 circle for Player 8 (Pink) at (Target of current camera view) facing Default building facing (270.0) degrees


replace it with

Trigger:
  • Start game
    • Events
      • Time - Elapsed game time is 0.01 seconds
    • Conditions
    • Actions
      • Do Multiple ActionsFor each (Integer A) from 1 to 8, do (Actions)
        • Loop - Actions
          • Unit - Create 1 circle for (Player((Integer A))) at ((Player((Integer A))) start location) facing Default building facing (270.0) degrees


Why? (Target of current camera view) will return at game time 0.01 the starting location of the local player, search the forums for local player if you want more information about this issue..
 

emphh

Active Member
Reaction score
0
are you sure thats the problem? because that was one of the first triggers i made to this map and it has been working steadily with it, it must have been something more recent that has caused it to malfunction

Also how do i make that action? i made an integer array (8) and kinda got stuck :p

could you tell me step by step how to make it work?
 

Yizzy

New Member
Reaction score
20
Maybe there are more things that causes disconnects but I'm sure that trigger is one of them,

It's first: General -> For each Integer A, do multiple actions

the other line is from your trigger with changed player to Conversion - Convert Player Index To Player, and the point (which probably leaks) is Player - Player Start Location
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top