Lobby Teams
I have seen numerous posts about problems with the teams in game being completely different than the teams that are launched with in the lobby. This tutorial will explain how to setup your map so that the teams in the lobby are the EXACT teams that are played in the game, it also fixes all issues regarding moving players in the lobby and having uneven teams.
The Problem
The problem is that the lobby treats teams and players differently. The lobby sets player id's to players according to the order in which they enter the lobby instead of by what team the player is on.
For example:
If there are two teams and 2 players enter, the first player will be team 1 player 1, while the second player will be team 2 player 2. If a third player then joins then they will be team 1 player 3. If player 2 then leaves, and player 3 moves to team 2, player 3 is still considered player 3 on team 2 instead of player 2 because they entered the lobby 3rd.
Now if that didn't make any sense to you, don't even worry about it because once this code is applied to your map, you will have no problems with it anyway.
The Solution
The whole solution can be seen in this image. Make sure you put the loop that sets the teams in map initialization.
P.S. If you need to see the image bigger, than right click and copy image url and paste it into your browser.
Ok, thanks to Grimshad´s trigger I got it working properly. I needed some minor additions tho, to keep a clear head about all that trigger stuff. So for everyone out there who has a similiar Team Setup like I have: here is, what i did. I have a 6vs6 map, each team with a Computer as an ally. So it´s actually 7vs7, although the computer only has a few units.
Player Properties:
Only define, which player is supposed to be "User" and "Computer" Controller, leave everything else as it is by default
Game Variants:
I created a new game variant (6vs6), with max team size 2, and in the Attributes Tab, I changed the following:
- 2 Teams (Locked)
- Color: one color for every player, each is locked
- Controller: Player 1-12 User (Unlocked), 13 and 14 Closed (Locked)
(13,14 are the computer allies, I closed those slots in here to make them invisible in the lobby. Because I had problems with these slots, as players could drag their slot over the one of the computer ally and then the AI switched teams)
I also wanted to lock the races, but the problem is: as soon as you are in the lobby and change team, the locked races will follow the players, so...you can´t lock races to teams...and I couldn´t find a way to change the UI ingame by trigger. So every player can decide which UI he wants to have.
Anyways, I also added some triggers to have a clear overview of my teams. I also locked each team to a specific Hero Selection Region.
Here is what I added to Grimshads Trigger under "Variable - Set OnTeam[Player] = Team"
New Action: Player Group - For each player Player in (Active Players) do (Actions)
Actions
General - If (Conditions) then do (Actions) else do (Actions)
If: OnTeam[Player] == 1
Then: Player Group - Add player Player to Terran
Else: Player Group - Add player Player to Protoss
New Action: Player Group - Add player 13 to Terran
New Action: Player Group - Add player 14 to Protoss
New Action: Make all Players in Terran treat each other as Ally with Shared Vision
New Action: Make all Players in Protoss treat each other as Ally with Shared Vision
New Action: Make player (Number of players in Terran) and player (Number of players in Protoss) treat each other as Enemy
So I could easily define the teams and I can join team 1 or team 2 as Player 1: I will always be on the Terran Team in Team 1 and Team 2 will always be the Protoss team. It works until now, I will post if something goes wrong :)
Imagine I have 12 bases in the map, each of 1 player from 1 to 12.
With this, may I be able to let players choose in-game player? For example, if when Iog in, I select green color, will I play as the green player equivalent in the editor?
Also, now imagine I have 2 teams, 1-6 in the 1st and 7-12 in the 2nd, and I want people not to be able to select 1-6 when they're in 2nd. Is that possible?
Edit: I just read that blizzard is going to add an option in maps for the game teams to reflect the lobby in an upcoming patch. They said it 2 months ago though.
Edit: I just read that blizzard is going to add an option in maps for the game teams to reflect the lobby in an upcoming patch. They said it 2 months ago though.
I really hope it so, it's annoying as hell for maps with already placed units and buildings :S.
The complexity of my map triggers absolutely require that the lobby matches. I didn't see this even listed in the ptr patch 1.33 maybe we have to make a few posts there to make sure they remember to help out the mappers too :0.
does this set players in the lobby to their corresponding player in the map?
I have 6 pre-placed units for 2 teams, and I can't figure out how to get players 1, 2, and 3 to team 1, and players 4, 5, 6 to team 2 :3
also would it be possible to get a higher def picture? or maybe a typed version of it? I downloaded the pic and can't seem to make out some of it.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I didn't really know what to call this so...
Lobby Teams
I have seen numerous posts about problems with the teams in game being completely different than the teams that are launched with in the lobby. This tutorial will explain how to setup your map so that the teams in the lobby are the EXACT teams that are played in the game, it also fixes all issues regarding moving players in the lobby and having uneven teams.
The Problem
The problem is that the lobby treats teams and players differently. The lobby sets player id's to players according to the order in which they enter the lobby instead of by what team the player is on.
For example:
If there are two teams and 2 players enter, the first player will be team 1 player 1, while the second player will be team 2 player 2. If a third player then joins then they will be team 1 player 3. If player 2 then leaves, and player 3 moves to team 2, player 3 is still considered player 3 on team 2 instead of player 2 because they entered the lobby 3rd.
Now if that didn't make any sense to you, don't even worry about it because once this code is applied to your map, you will have no problems with it anyway.
The Solution
The whole solution can be seen in this image. Make sure you put the loop that sets the teams in map initialization.
P.S. If you need to see the image bigger, than right click and copy image url and paste it into your browser.
Any questions.. please ask.
Ok, thanks to Grimshad´s trigger I got it working properly. I needed some minor additions tho, to keep a clear head about all that trigger stuff. So for everyone out there who has a similiar Team Setup like I have: here is, what i did. I have a 6vs6 map, each team with a Computer as an ally. So it´s actually 7vs7, although the computer only has a few units.
Player Properties:
Only define, which player is supposed to be "User" and "Computer" Controller, leave everything else as it is by default
Game Variants:
I created a new game variant (6vs6), with max team size 2, and in the Attributes Tab, I changed the following:
- 2 Teams (Locked)
- Color: one color for every player, each is locked
- Controller: Player 1-12 User (Unlocked), 13 and 14 Closed (Locked)
(13,14 are the computer allies, I closed those slots in here to make them invisible in the lobby. Because I had problems with these slots, as players could drag their slot over the one of the computer ally and then the AI switched teams)
I also wanted to lock the races, but the problem is: as soon as you are in the lobby and change team, the locked races will follow the players, so...you can´t lock races to teams...and I couldn´t find a way to change the UI ingame by trigger. So every player can decide which UI he wants to have.
Anyways, I also added some triggers to have a clear overview of my teams. I also locked each team to a specific Hero Selection Region.
Here is what I added to Grimshads Trigger under "Variable - Set OnTeam[Player] = Team"
New Action: Player Group - For each player Player in (Active Players) do (Actions)
Actions
General - If (Conditions) then do (Actions) else do (Actions)
If: OnTeam[Player] == 1
Then: Player Group - Add player Player to Terran
Else: Player Group - Add player Player to Protoss
New Action: Player Group - Add player 13 to Terran
New Action: Player Group - Add player 14 to Protoss
New Action: Make all Players in Terran treat each other as Ally with Shared Vision
New Action: Make all Players in Protoss treat each other as Ally with Shared Vision
New Action: Make player (Number of players in Terran) and player (Number of players in Protoss) treat each other as Enemy
So I could easily define the teams and I can join team 1 or team 2 as Player 1: I will always be on the Terran Team in Team 1 and Team 2 will always be the Protoss team. It works until now, I will post if something goes wrong :)
Sorry for my bad english !
Imagine I have 12 bases in the map, each of 1 player from 1 to 12.
With this, may I be able to let players choose in-game player? For example, if when Iog in, I select green color, will I play as the green player equivalent in the editor?
Also, now imagine I have 2 teams, 1-6 in the 1st and 7-12 in the 2nd, and I want people not to be able to select 1-6 when they're in 2nd. Is that possible?
This topic is a big mess by Blizzard's part :S.
didn't seem to work for me :(
Edit: I just read that blizzard is going to add an option in maps for the game teams to reflect the lobby in an upcoming patch. They said it 2 months ago though.
I really hope it so, it's annoying as hell for maps with already placed units and buildings :S.
The complexity of my map triggers absolutely require that the lobby matches. I didn't see this even listed in the ptr patch 1.33 maybe we have to make a few posts there to make sure they remember to help out the mappers too :0.
does this set players in the lobby to their corresponding player in the map? I have 6 pre-placed units for 2 teams, and I can't figure out how to get players 1, 2, and 3 to team 1, and players 4, 5, 6 to team 2 :3
also would it be possible to get a higher def picture? or maybe a typed version of it? I downloaded the pic and can't seem to make out some of it.