War2.ru Slogan
News: Don't forget to join Channel: Trivia for trivia!


Welcome, Guest. Please login or register.

Login with username, password and session length
Welcome to the forums! We're glad to have you here! :) You can register your account here, then feel free to introduce yourself in the Server.War2.ru board & let us know who you are on the server.

Auto obs + Auto teams {BETA test} 1455  55

Grunt Posts: 130 Karma: +15/-0 ***

Mistral

  • Grunt
  • ***
  • Posts: 130
    • View Profile
Auto obs + Auto teams {BETA test}
« on: July 28, 2021, 02:46:42 PM »
Added Auto obs and teams feature to server.
Still in BETA test so will be many bugs - use with caution. IF you found a bug - please write. We need to fix all bugs.

How to use this:
1) its working ONLY in LOBBY.
2) its working ONLY for HOST.

host need to write
-team player_nickname team_id
where team_id can be from 0 to 9 or obs
0 is default (nothing changes)
1-8 will auto ally+viz other players of same team on game start
9 or OBS will become observer. They are spawned without any units and get auto viz from all players.

host additionally can write commands:
-check
-teams
to check mod version and teams of players

if you want you can write command like
-team slot_id team_id
where slot_id is player slot in lobby (its considered from PUD map colors)



P.S. examples of commands:
-team mistral OBS
-team MisTRal 1
-team 2 1
-team Droid 2
-team Droid obs
Sappers Posts: 763 Karma: +33/-3 ******

{Lance}

  • Sappers
  • ******
  • Posts: 763
    • View Profile
Re: Auto obs + Auto teams {BETA test}
« Reply #1 on: July 28, 2021, 03:51:22 PM »
Very cool,  I can now allow all the retards to watch me smoke their buddies without them fuckin shit up :)

But you know whats missing?  HELP MENUS.  You cant make new features without help menus silly lol.  Other than Team 9,  what is the point of the other team settings?  Is it just to vis others?  If so,  TVB already does that.  A usecase could be to attach it to the Teams Ladder which is what I had done decades ago when I did the same thing as this :)

Anyway,   good job redeveloping my idea.  It's great to see it finally implemented on a server thats sort of in use (population is really lacking these days).
Axe Thrower Posts: 390 Karma: +30/-0 ****

Harrywangs

  • Axe Thrower
  • ****
  • Posts: 390
    • View Profile
Re: Auto obs + Auto teams {BETA test}
« Reply #2 on: July 28, 2021, 03:54:13 PM »
Wow, that looks really cool. I do see that you still have the option to ally/share vision though.

What happens when you ally/share vision?

Does the game not end unless the obs are allied/AV? If not, that will pose a problem unless you can somehow do something similar to killing their peon to end it.

Teams 2 1 would mean that player is on 2 both teams at the same time?

Once this is fully implemented, spb is going to shit his pants. :)
Global Moderator Grunt Posts: 147 Karma: +3/-0 We're smarter than you. *****

Available

  • Global Moderator
  • Grunt
  • *****
  • *
  • Posts: 147
  • We're smarter than you.
    • View Profile
Re: Auto obs + Auto teams {BETA test}
« Reply #3 on: July 28, 2021, 04:03:12 PM »
what is the point of the other team settings
To have any number of teams, like 2x2x2x2 etc.


Teams 2 1 would mean
that player in slot 2 belongs to team 1.

Does the game not end unless the obs are allied/AV
Once there are no players, observers leave.
Sappers Posts: 763 Karma: +33/-3 ******

{Lance}

  • Sappers
  • ******
  • Posts: 763
    • View Profile
Re: Auto obs + Auto teams {BETA test}
« Reply #4 on: July 28, 2021, 04:12:49 PM »
Does the game not end unless the obs are allied/AV
Once there are no players, observers leave.

Harry brings up a good point.  So are you trying to say that if there is only 1 TEAM left?  IE:  Players from team 2,3,4,5,6,7,8 have all left,  Players from team 1 are still in the game (assuming Team 1 are the winners of course),  and Players from team 9 (OBS) are also still in the game,  == The game ends?

what is the point of the other team settings
To have any number of teams, like 2x2x2x2 etc.

Just trying to figure out what this could be useful for since setting teams like that is already possible without any extra code.  So far the only thing I can think of is a way to force the game to end when there are observers who dont want to leave which I think you're trying to say is already baked in (which is great if that is indeed the case).

BTW,  I like the X on the msg you print.  It's reminiscent of the old DOS version where the word "xin" was actually a thing :)  You're probably to young to realize the subtleness of that nostalgic piece but now you know ;)
Grunt Posts: 130 Karma: +15/-0 ***

Mistral

  • Grunt
  • ***
  • Posts: 130
    • View Profile
Re: Auto obs + Auto teams {BETA test}
« Reply #5 on: July 28, 2021, 04:24:52 PM »
those teams thing only making changes BEFORE game started
teams NOT changes anything DURING game itself
you CAN set on or off any shared vision and ally and AV
shared vision for OBS will be reset though

only thing its makes for obs is that they not leave game even if have 0 units. (but they will leave anyways if there is no other players)

this thing is basically are recreation of team selections like in Warcraft 3 (like Clan1 Clan2 and etc)

and as Avail said you can make 2x2x2x2 or something
and other thing is that you can actually bring COMPS into team with players too
or make comps fight with other comps etc (still have some bugs though)
Sappers Posts: 763 Karma: +33/-3 ******

{Lance}

  • Sappers
  • ******
  • Posts: 763
    • View Profile
Re: Auto obs + Auto teams {BETA test}
« Reply #6 on: July 28, 2021, 04:38:33 PM »
Ahh ok,  well the comps bit is something interesting.  I've never actually played a team or 1v1 game where a CPU was my ally.  IDK if I'd even want that.  The CPU SUCKS and would be a complete waste of a mine hehe.  Arent there custom maps that have a CPU as your ally?  I've never played one but I'm sure such a monster exists by now lol.

So what happens to records if everyone leaves except the observers?  Do the winning players get a loss?
Grunt Posts: 130 Karma: +15/-0 ***

Mistral

  • Grunt
  • ***
  • Posts: 130
    • View Profile
Re: Auto obs + Auto teams {BETA test}
« Reply #7 on: July 28, 2021, 04:51:31 PM »
From my side winning players get win 100% (and obs too)
i mean in status screen there will be written "Victory"
but i dunno how ladder works
iL said that server just reads reports - and i think that in report winning player should win too even if he leaved before observers.

This is why i said its BETA version and needs testing and many bugs fixing  :)
Sappers Posts: 763 Karma: +33/-3 ******

{Lance}

  • Sappers
  • ******
  • Posts: 763
    • View Profile
Re: Auto obs + Auto teams {BETA test}
« Reply #8 on: July 28, 2021, 05:02:37 PM »
For the win I wasnt referring to the Web based ladder system.  I was referring to the War2 Victory/Defeat screen.  As long as it shows the victory screen regardless of what the Observer selects in the "Ally" screen, then thats cool.  Otherwise,  it would need work :)  Cuz we all know Van is going to find a way to be a total dick if he's still allowed to watch games and this doesnt work as intended lol.
Grunt Posts: 134 Karma: +4/-1 ***

maciek

  • Grunt
  • ***
  • *
  • Posts: 134
    • View Profile
Re: Auto obs + Auto teams {BETA test}
« Reply #9 on: July 28, 2021, 05:55:20 PM »
finally watchers are able to watch 2v2 chop farms games, good work
Server Admin Death Knight Posts: 4596 Karma: +110/-14 *****

tk[as]

  • Server Admin
  • Death Knight
  • *****
  • *
  • Posts: 4596
    • View Profile
Re: Auto obs + Auto teams {BETA test}
« Reply #10 on: July 28, 2021, 06:23:49 PM »
You get a loss every time you're designated as a watcher.. but still get victory screen.

If you talk in game as a watcher, the players hear you, but you can't hear anyone in game chatting

Nothing happens if you give vision as a watcher

I think game crashes if non-host types the "-team (user)- obs" command
Grunt Posts: 130 Karma: +15/-0 ***

Mistral

  • Grunt
  • ***
  • Posts: 130
    • View Profile
Re: Auto obs + Auto teams {BETA test}
« Reply #11 on: July 29, 2021, 04:27:40 AM »
1) dunno about obs loss - should get win. I will check it and try fix if real.

2) I know about chat problems they was here from the start - still trying to fix. (tis is the most thing why i said this is still beta test)

3) All working ok cuz obs NOT have ANY units that can give any viz so ofc noting changes

4) 100% should not be crash - i just calling standart war2 dialog with text "This command only for host!". I doubt it can cause crash cuz its a standart dialog. It the same dialog as when you press button OK in lobby and its saying that map being distrib, I just changed text on it.
Will attach screnshoot with it.
Server Admin Death Knight Posts: 4596 Karma: +110/-14 *****

tk[as]

  • Server Admin
  • Death Knight
  • *****
  • *
  • Posts: 4596
    • View Profile
Re: Auto obs + Auto teams {BETA test}
« Reply #12 on: July 29, 2021, 10:33:39 AM »
I'm just noting my observations.

Cool feature if the bugs get worked out. Getting the losses is the biggest issue I noticed.

I typed the command as a non-host and the game crashed. Maybe it was just coincidence

It does suck you cant hear the players chat. Idk if that can be fixed.
Grunt Posts: 130 Karma: +15/-0 ***

Mistral

  • Grunt
  • ***
  • Posts: 130
    • View Profile
Re: Auto obs + Auto teams {BETA test}
« Reply #13 on: July 29, 2021, 10:47:52 AM »
Where exactly you mean obs get defeat?
After all other players left game? there is should be 100% win i checked it 3 times.

Maybe you mean they receive loss when they leave game before other players? like u know they press button "surrender" in menu?

about crash i dunno. Are you got crash just one time or it is every time? Cuz if yes then i will need to fix it somehow too.
Grunt Posts: 77 Karma: +3/-1 ***

Droid

  • Grunt
  • ***
  • *
  • Posts: 77
    • View Profile
Re: Auto obs + Auto teams {BETA test}
« Reply #14 on: July 29, 2021, 11:50:12 AM »
Teams 2 1 would mean
that player in slot 2 belongs to team 1.
The counting starts at 0, so there are 0 1 2 3 4 5 6 7 slots.

-team 2 1
(someone from the 3rd slot is in team 1 now)



Maybe add +1 to slot counter in your code to make it more user-friendly?
1 2 ... 8
So all alternatively gifted GOW players (and Nazi too) can set the teams EZ.