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.
  • Monovertex Monovertex:
    How are you all? :D
    +1
  • Ghan Ghan:
    Howdy
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though

      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