Staredit Network > Forums > SC2 Assistance > Topic: # Players
# Players
Aug 25 2010, 1:14 am
By: payne  

Aug 25 2010, 1:14 am payne Post #1

:payne:

How does StarCraft II's engine determines the players' numbers?

If I have Team 1 with 3 slots and Team 2 as well, and someone joins.
Host is obviously Player 1, but the player that just joined will be considered as Player 2 or 4 (since he's the 1st player of the 2nd team)?
And the next one, which will be the 2nd player of Team 1, is Player 3 or 2?

SEE THIS LINK: http://www.staredit.net/254612/

Post has been edited 1 time(s), last time on Aug 27 2010, 4:40 am by payne.



None.

Aug 25 2010, 1:22 am Alzarath Post #2

Praetor

I'd like to know this as well. I'd also like to know how to randomize which player someone plays as.



None.

Aug 25 2010, 2:57 am shmeeps Post #3



I've had some strange behavior with this. I have a map with 12 Players and a computer unit, set up as 0-Neutral, 1-12-Players, 15-Hostile. If all the player slots are not filled (As of the last time I tested this), it would register the computer in the lobby as player 2, while I was player 1. The only way I could work around it was adding in computer players in the lobby and disabling the triggers for them if they are registered as computers.



None.

Aug 25 2010, 4:21 am Apos Post #4

I order you to forgive yourself!

Quote from shmeeps
I've had some strange behavior with this. I have a map with 12 Players and a computer unit, set up as 0-Neutral, 1-12-Players, 15-Hostile. If all the player slots are not filled (As of the last time I tested this), it would register the computer in the lobby as player 2, while I was player 1. The only way I could work around it was adding in computer players in the lobby and disabling the triggers for them if they are registered as computers.
You mean it doesn't work like it used to in Starcraft 1? From what I remember in the beta, player filled the next slot available when they joined.




Aug 25 2010, 4:50 am shmeeps Post #5



It seems to do weird things with computers, when trying to assign them a player slot larger than one that is available. For instance, in mine, you had to have all player slots 1-12 filled to bump the computer player to 15. Granted, the last time I tested this on Battle.Net was about a month ago, when the game first game out.

When a player joins the game, it seems they are assigned the lowest available slot. Not sure what the relation between slot and player number is though.



None.

Aug 25 2010, 5:03 am Alzarath Post #6

Praetor

Ya, this problem persists today. I'd really like to know how to fix it. :\



None.

Aug 25 2010, 5:34 am shmeeps Post #7



The only work around I've found is to buff all the open slots with AIs (via the lobby A.I. + command), and make any player-triggers only run if the player occupying the slot is a human, not a computer.

I assume if you made the computers a lower player number than the players (in my case, make the enemy player 1, and the players 2-13) it should work, but this would be hard to edit for maps already under construction.



None.

Aug 25 2010, 5:40 am payne Post #8

:payne:

Quote from shmeeps
I assume if you made the computers a lower player number than the players (in my case, make the enemy player 1, and the players 2-13) it should work, but this would be hard to edit for maps already under construction.
It'd be great to know if it actually works. ;) :P



None.

Aug 26 2010, 5:17 pm payne Post #9

:payne:

Sorry for double-post.

Let's say I have set in the Player Properties the player 1, 2 and 3 on a team and players 4 to 6 on an other team (team 1 vs team 2). All of them are set as "User".
Also, in my Game Variants, I set "Locked Alliance" to 'Yes' and 'locked' and I set the Lobby Teams with "Teams [Custom Teams]". In this last attribute, the values are:
Player 1 -> Team 1 [1]
2 -> Team 1 [2]
3 -> Team 1 [3]
4 -> Team 2 [1]
etc...

What will happen if three players join? They will all fill the Team 1 slots directly? And will they all be labeled respectively as Player 1, 2 and 3 when I'm trying to call in their player # with triggers?

And if I set:
Player 1 -> Team 1 [1]
2 -> Team 2 [1]
3 -> Team 1 [2]
4 -> Team 2 [2]
etc...

Same questions as above.




This deserves a goddamn Wiki! :flamer:
http://www.staredit.net/starcraft2/Player_ID
Please fill!




Additional question: If I set the players' "Control" to "(None)" in the Player Properties, will it prevent the console from filling the empty slots with computers when the game starts?



None.

Aug 26 2010, 5:32 pm Devourer Post #10

Hello

One thing with only partly answering your questions:
The player 1,2,3.... are the players in the order they join, no matter in which slots they are.



Please report errors in the Staredit.Network forum.

Aug 26 2010, 5:56 pm payne Post #11

:payne:

Quote from Devourer
One thing with only partly answering your questions:
The player 1,2,3.... are the players in the order they join, no matter in which slots they are.
Better than nothing. Though still so many questions left :(

What if there are 3 players in a lobby and the 1st player that joined (this excludes Host, of course) leaves? Player 3 is set to Player 2 or not to join is Player 2?



None.

Aug 26 2010, 6:13 pm Apos Post #12

I order you to forgive yourself!

Not sure if it helps, but you could probably make a test map and get a couple friends to help you test it.

The test map would display the player's name with the player's number. Then you can take notes for each time you host and see if it's really random.




Aug 26 2010, 6:15 pm payne Post #13

:payne:

I was thinking exactly of doing this. ^^
Though I never have 5 available friends at the same time y'know? :P

I'll organize a test-night soon. Now I must leave for school.
Still, if someone has the answers, please share. :)



None.

Aug 26 2010, 6:37 pm shmeeps Post #14



If you give me a test night I'd be happy to help

FDIT: Assuming I can make it >.<



None.

Aug 26 2010, 9:12 pm Apos Post #15

I order you to forgive yourself!

Quote from shmeeps
If you give me a test night I'd be happy to help

FDIT: Assuming I can make it >.<

If you give me a starcraft II key I'd be happy to help

FDIT: Assuming I can make it >.<




Aug 28 2010, 5:43 am payne Post #16

:payne:

http://www.staredit.net/starcraft2/Player_ID

I fucking win. :)

Thanks to Riney. (And also to Rahab and MrBiggens).
As you can read, I forgot to test the "leaving player" case. This will be for an other time. ;o

In resume: fml, I must restart a lot of triggers due to the very last sentence.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[09:38 pm]
NudeRaider -- Ultraviolet
Ultraviolet shouted: NudeRaider sing it brother
trust me, you don't wanna hear that. I defer that to the pros.
[07:56 pm]
Ultraviolet -- NudeRaider
NudeRaider shouted: "War nie wirklich weg" 🎵
sing it brother
[2024-4-27. : 6:24 pm]
NudeRaider -- "War nie wirklich weg" 🎵
[2024-4-27. : 3:33 pm]
O)FaRTy1billion[MM] -- o sen is back
[2024-4-27. : 1:53 am]
Ultraviolet -- :lol:
[2024-4-26. : 6:51 pm]
Vrael -- It is, and I could definitely use a company with a commitment to flexibility, quality, and customer satisfaction to provide effective solutions to dampness and humidity in my urban environment.
[2024-4-26. : 6:50 pm]
NudeRaider -- Vrael
Vrael shouted: Idk, I was looking more for a dehumidifer company which maybe stands out as a beacon of relief amidst damp and unpredictable climates of bustling metropolises. Not sure Amazon qualifies
sounds like moisture control is often a pressing concern in your city
[2024-4-26. : 6:50 pm]
Vrael -- Maybe here on the StarEdit Network I could look through the Forums for some Introductions to people who care about the Topics of Dehumidifiers and Carpet Cleaning?
[2024-4-26. : 6:49 pm]
Vrael -- Perhaps even here I on the StarEdit Network I could look for some Introductions.
[2024-4-26. : 6:48 pm]
Vrael -- On this Topic, I could definitely use some Introductions.
Please log in to shout.


Members Online: Roy