Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Detecting who is in-game
Detecting who is in-game
Nov 30 2008, 8:24 pm
By: SiN  

Nov 30 2008, 8:24 pm SiN Post #1



In a map I've been working on, I've been having an odd problem. Even when some players are not active it will still create units for them with the "create unit" trigger. So I simply need to know how I can detect at the beginning of the game if a player is active or not.



None.

Nov 30 2008, 8:25 pm Symmetry Post #2

Dungeon Master

Isn't it as simple as 'player x commands at least 1 y' at the beginning of the map (or alternatively, each trigger that creates stuff for that player)?



:voy: :jaff: :voy: :jaff:

Nov 30 2008, 8:26 pm Devourer Post #3

Hello

Quote from SiN
In a map I've been working on, I've been having an odd problem. Even when some players are not active it will still create units for them with the "create unit" trigger. So I simply need to know how I can detect at the beginning of the game if a player is active or not.

Place a Unit or each player which never dies....
then start "current player command at least/exxactly 1 of UNIT"
that's all....^^



Please report errors in the Staredit.Network forum.

Nov 30 2008, 8:27 pm SiN Post #4



Should I preplace it?



None.

Nov 30 2008, 8:27 pm Devourer Post #5

Hello

Yes.



Please report errors in the Staredit.Network forum.

Nov 30 2008, 8:28 pm SiN Post #6



Alright thanks, that's all I needed.

Moderator may lock.



None.

Nov 30 2008, 8:43 pm rockz Post #7

ᴄʜᴇᴇsᴇ ɪᴛ!

That's not a very good way of doing it. Death counts would be better, or Killer Kow's method. By placing units which never die, you essentially waste your max units in the map, and I don't think it looks good.

Preplaced units and Triggers won't run for players who aren't there. However, if another player has a trigger which creates units for the player who left, those units will still be created.

I suggest you change your triggers to only have units created for current player, and give them to the appropriate player.



"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"

Nov 30 2008, 9:29 pm NudeRaider Post #8

We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

Quote from rockz
I suggest you change your triggers to only have units created for current player, and give them to the appropriate player.
This.

Everything else is just cleaning up the symptoms of poorly made triggers.




Nov 30 2008, 11:14 pm Falkoner Post #9



This bug only happens when you specifically tell the game to create a unit for a player who is not there. Now, usually triggers like this don't run, because in most cases the map maker puts the triggers that create units for the player, under the player the units will be owned by, so if the player is gone, the triggers creating the units don't run.

However, in your case you probably had a computer own the trigger creating the unit, so it created units for "Ghost Players" which by default are enemies to the players, the reason why using Current Player instead works is because if you set it for a force, the trigger is simply split into multiple triggers, for each active player, so if the player isn't there, the trigger split for him doesn't run.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[02:28 am]
Symmetry -- I vaguely remember Voy doing some ACE back in the day, but I had no idea EUDs could do that kind of shit. I am very much catching up on the technology
[02:28 am]
Symmetry -- Ohhh imagine a SC map that could delete itself
[08:51 pm]
NudeRaider -- Symmetry
Symmetry shouted: NudeRaider Is EUD editor capable of writing shit onto the player's harddrive? That seems like it would be dangerous
yeah an editor that isn't allowed to write files sounds rather pointless, so I'd assume it can. Like most other programs too btw. and yes, obviously that's dangerous, but also kinda necessary. MS introduced that virtualization for exactly that reason.
[2026-7-15. : 4:10 am]
Ultraviolet -- I don't think so. I think they shut that shit down after 1.16, maybe even earlier
[2026-7-15. : 2:19 am]
Symmetry -- NudeRaider
NudeRaider shouted: Symmetry I can't tell if it's relevant. You provided literally no context so I was providing an equally generic answer.
Is EUD editor capable of writing shit onto the player's harddrive? That seems like it would be dangerous
[2026-7-14. : 11:43 pm]
Ultraviolet -- let's take each other's clothes off :teach:
[2026-7-14. : 11:03 pm]
Vrael -- :teach:
[2026-7-14. : 11:03 pm]
Vrael -- I mean, my clothes
[2026-7-14. : 11:03 pm]
Vrael -- I will take your clothes off
[2026-7-14. : 7:13 pm]
NudeRaider -- I am gettin' so hot :teach:
Please log in to shout.


Members Online: lil-Inferno, Roy