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.
 
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.
 
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.
 
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[])
 
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.
 
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..
 
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?
 
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.
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    News portal has been retired. Main page of site goes to Headline News forum now
  • The Helper The Helper:
    I am working on getting access to the old news portal under a different URL for those that would rather use that for news before we get a different news view.
  • Ghan Ghan:
    Easily done
    +1
  • The Helper The Helper:
    https://www.thehelper.net/pages/news/ is a link to the old news portal - i will integrate it into the interface somewhere when i figure it out
  • Ghan Ghan:
    Need to try something
  • Ghan Ghan:
    Hopefully this won't cause problems.
  • Ghan Ghan:
    Hmm
  • Ghan Ghan:
    I have converted the Headline News forum to an Article type forum. It will now show the top 20 threads with more detail of each thread.
  • Ghan Ghan:
    See how we like that.
  • The Helper The Helper:
    I do not see a way to go past the 1st page of posts on the forum though
  • The Helper The Helper:
    It is OK though for the main page to open up on the forum in the view it was before. As long as the portal has its own URL so it can be viewed that way I do want to try it as a regular forum view for a while
  • Ghan Ghan:
    Yeah I'm not sure what the deal is with the pagination.
  • Ghan Ghan:
    It SHOULD be there so I think it might just be an artifact of having an older style.
  • Ghan Ghan:
    I switched it to a "Standard" article forum. This will show the thread list like normal, but the threads themselves will have the first post set up above the rest of the "comments"
  • The Helper The Helper:
    I don't really get that article forum but I think it is because I have never really seen it used on a multi post thread
  • Ghan Ghan:
    RpNation makes more use of it right now as an example: https://www.rpnation.com/news/
  • The Helper The Helper:
  • The Helper The Helper:
    What do you think Tom?
  • tom_mai78101 tom_mai78101:
    I will have to get used to this.
  • tom_mai78101 tom_mai78101:
    The latest news feed looks good

      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