AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D] Score/Team Manager 1.1.1 (https://forums.alliedmods.net/showthread.php?t=87759)

Downtown1 03-16-2009 03:02

[L4D] Score/Team Manager 1.1.1
 
2 Attachment(s)
L4D Score/Team Manager 1.1.1

Now there is an easy way to manage the teams (who is on what teams), and the order that teams are played in.

This plugin provides functionality to:
  • unscramble the teams after a map change
  • change the order of which team goes survivor first
  • swap players around to a different team
  • swap an entire team with the other team
  • see the scores for previous levels and campaign scores at any time
  • swap or reset the campaign scores

Commands
Admin (BAN flag):
  • sm_swapmenu - bring up a menu to swap players between survivors or infected
  • sm_swap <player1> [player2] ... [playerN] - swap all listed players to opposite teams
  • sm_swapto <player1> [player2] ... [playerN] <teamnum> - swap all listed players to specified team (1,2,3)
  • sm_swapteams - swaps the infected and survivor teams
  • sm_swapscores - swaps the campaign scores
  • sm_resetscores - resets the campaign scores to 0/0

Anyone:
  • sm_printscores - prints the scores for each previously played map, and the campaign scores
  • sm_scores - displays the total scores for each map for both teams in a menu similar to sm_admin

Cvars
  • l4d_team_manager_ver - the version of this plugin
  • l4d_team_order - who goes survivor first after a map change?
    • 0 - default behaviour (highest score goes survivor first)
    • 1 - inverse default behaviour (highest score goes infected first)
    • 2 - classic behavior (teams are never swapped)
    • 3 - ABABA (teams are swapped every map)
    • 4 - AABBB (teams are swapped on 3rd map, ala CAL)
    • 5 - maps 1-4 highest goes survivor, 5 highest goes infected first
l4d_team_order 5 appears to be broken atm, I suggest avoiding it. Usually the highest score goes survivor first, which means that if the winning team from maps 1-4 wins the first round on the finale, the game is now over. Whatever the other team does, it doesn't matter because they already lost.

By having the losing team go survivor first on the finale, this will keep the full game going because they still can win the finale as survivors, and then have the potential to stop the other team as infected.

INSTALLATION
Note: This plugin is probably incompatible with any other plugins that changes a player's team at the beginning of the map, so you should probably avoid using those other plugins. I was using Unscrambler myself during the testing of this and found that it would almost completely reverse my team changes every time.

CUSTOM MENU
There is a menu invoked with sm_swapmenu, but it may not suit everyone. You can additional use this snippet, the full instructions are here:
http://wiki.alliedmods.net/Dynamic_A...nu_(SourceMod)
Code:

"Commands"
{
        "Left 4 Dead"
        {
                "Swap Player"
                {
                        "cmd"                "sm_swap #1"
                        "execute"        "player"
                        "1"
                        {
                                "type"                "teamplayer"
                                "method"        "name"
                                "title"                "Player:"
                        }
                }
        }
}

CHANGELOG
  • 1.1.1
    • bugfix: 06/25/2009 L4D update breaks GetCampaignScores which is used to detect when a new campaign has started
    • dependency: update to Left4Downtown Extension 0.3.1+ to fix the above problem
  • 1.1.0
    • command: sm_swapto - swap players to a specific team
    • command: sm_swapmenu - bring up a menu to swap players to opposite team
    • command: sm_scores - bring up the team round/campaign scores in a menu display
    • bugfix: campaign scores will reset properly (i.e. on a manual changelevel), score should no longer carry over from previous campaigns
    • bugfix: clients will no longer be infinitely moved back to spectate when their automatic team placement fails
    • bugfix: support teams larger than 4 by checking the survivor_limit and z_max_player_zombies cvars
    • bugfix: when round is restarted using l4dready plugin, the team score will no longer reset (l4dready 0.16.2 or later necessary)
  • 1.0.3
    • feature: added 'highest score goes survivor first, except on finale' to use this set the cvar l4d_team_order 5
  • 1.0.2
    • bugfix: sm_swap wouldn't work with more than 1 player due to a typo
  • 1.0.1
    • command: sm_swap now takes an unlimited number of players (i.e. "sm_swap joe bob fred smith" will swap them all to opposite teams)
    • bugfix: improve detection when the game automatically swaps teams
  • 1.0.0 - Initial release

Views:
1.0.3 - 534
1.1.0 - 272

L4D2 stable release by AtomicStryker is available at http://forums.alliedmods.net/showthread.php?t=113188
The .SP file will fail to compile using the web compiler, download the .SMX file instead.

Felycity 03-16-2009 09:06

Re: [L4D] Score/Team Manager
 
hello, i tried this plugin just now. :)
but almost 50%, this plugin doesn't work... :cry:
this is summary of 1 campaign.

chapter 1 ... failed
chapter 2 ... succeced
chapter 3 ... succeced
chapter 4 ... succeced
chapter 5 ... failed

every failed time, full of team players was different team.
here is demo files.
password "l4dscores"
if this one helpful for fix this problem, im happy. :)

thanks for great plugin.

santaclaus 03-16-2009 13:24

Re: [L4D] Score/Team Manager
 
sm_swapsscores lol :D isn't that a bit tricky ...

I hope some admin won't use it with evil though :D

Downtown1 03-16-2009 16:30

Re: [L4D] Score/Team Manager
 
Quote:

Originally Posted by Felycity (Post 781796)
hello, i tried this plugin just now. :)
but almost 50%, this plugin doesn't work... :cry:
this is summary of 1 campaign.

chapter 1 ... failed
chapter 2 ... succeced
chapter 3 ... succeced
chapter 4 ... succeced
chapter 5 ... failed

every failed time, full of team players was different team.
here is demo files.
password "l4dscores"
if this one helpful for fix this problem, im happy. :)

thanks for great plugin.

Can you please let me know what your l4d_team_order was, and also if you were running any other plugins that would change people's teams?

Number Six 03-16-2009 16:33

Re: [L4D] Score/Team Manager
 
-menu in sourcemod incorpored , or all manuel console cvar ?

- second question ^^
http://forums.alliedmods.net/showthread.php?t=85994 l4d versus tools worked 90% , but a really bad bug again :

"and another thing - after survivors team finish (survive) 5th map of death toll or dead air, coming credits and map end, and the infected team cant play round cause of this.if survivor team dies, infected can play thier round. any ideas?"

Possibly integrated in your pluggin force swap team and turn round team on the 2 final map dead air and deathtrool with your plugin ?

Thank in advance for answers .

Downtown1 03-16-2009 17:16

Re: [L4D] Score/Team Manager
 
There are no menus right now, I am planning on adding a player swap menu for the next major version update however. I could also post a custom menu snippet that could be pasted into your custom menu files.

Felycity 03-16-2009 19:52

Re: [L4D] Score/Team Manager
 
Quote:

Originally Posted by Downtown1 (Post 782134)
Can you please let me know what your l4d_team_order was, and also if you were running any other plugins that would change people's teams?

l4d_team_order is,

Code:

l4d_team_order 0

im using plugin below.
  • advertisements.smx
  • country_filter.smx
  • hzombies.smx
  • L4DSafeRoomHunterGlitch.smx
  • l4dscores.smx
  • sm_l4dvs_mapchanger.smx
other than that, default plugin of SourceMOD 1.3.0-hg2665.

Downtown1 03-16-2009 20:07

Re: [L4D] Score/Team Manager
 
Quote:

Originally Posted by Felycity (Post 782293)
l4d_team_order is,

Code:

l4d_team_order 0

im using plugin below.
  • advertisements.smx
  • country_filter.smx
  • hzombies.smx
  • L4DSafeRoomHunterGlitch.smx
  • l4dscores.smx
  • sm_l4dvs_mapchanger.smx
other than that, default plugin of SourceMOD 1.3.0-hg2665.

I'll check it out, sm_l4dvs_mapchanger.smx looks like it might be suspicious because it seems to force a changelevel after 4 round_end events?

Also, how can the teams fail on the first map exactly? I am lost, my plugin doesn't "fix" teams on the first map at all because it doesn't save what teams to fix until the end of a map.

Felycity 03-16-2009 20:24

Re: [L4D] Score/Team Manager
 
Quote:

Originally Posted by Downtown1 (Post 782300)
I'll check it out, sm_l4dvs_mapchanger.smx looks like it might be suspicious because it seems to force a changelevel after 4 round_end events?

Also, how can the teams fail on the first map exactly? I am lost, my plugin doesn't "fix" teams on the first map at all because it doesn't save what teams to fix until the end of a map.

my explanation was wrong, im sorry XD

chapter 1 to 2 ... failed
chapter 2 to 3 ... succeced
chapter 3 to 4 ... succeced
chapter 4 to 5 ... failed

when failed, winning team didn't change to survivors first.
(that winning team was 2nd survivors at prev-chapter)

im using sm_l4dvs_mapchanger.smx only after chapter 5 for next campaign start automatically.
therefore, i think that plugin is not reason of this problem. :)

Downtown1 03-16-2009 21:11

Re: [L4D] Score/Team Manager
 
So what happened when it "failed" were the teams opposite of what they should have been? Or were they "scrambled?" Were the scores still correct?

Felycity 03-16-2009 21:35

Re: [L4D] Score/Team Manager
 
ok, this is example,

end of chapter 1..

A team (1st survivors) score:1124
Player_A1
Player_A2
Player_A3
Player_A4

B team (2nd survivors) score:1156
Player_B1
Player_B2
Player_B3
Player_B4

begining of chapter 2 become like this...

A team (1st survivors) score:1156
Player_A1
Player_A2
Player_A3
Player_A4

B team (2nd survivors) score:1124
Player_B1
Player_B2
Player_B3
Player_B4

that supposed to be...

A team (1st survivors) score:1156
Player_B1
Player_B2
Player_B3
Player_B4

B team (2nd survivors) score:1124
Player_A1
Player_A2
Player_A3
Player_A4

B team supposed to be "1st survivors" at chapter 2, but it wan't.
only score switch to A team.

im sorry for my bad explanation and understainding...
my English poor bcoz im just a Japanese. ><

Downtown1 03-17-2009 01:52

Re: [L4D] Score/Team Manager
 
1.0.1 Update released
  • command: sm_swap now takes an unlimited number of players (i.e. "sm_swap joe bob fred smith" will swap them all to opposite teams)
  • bugfix: improve detection when the game automatically swaps teams

---------------

Felycity, I tested your situation with l4d_team_scores 0 with 1.0.1 and I didn't seem to get it (though then again I was only using 1 player). Please let me know if this version helps, if not, then I would ask you go to line 7 and change SCORE_DEBUG_LOG to 1, then send me the logs next time this happens.

Felycity 03-17-2009 01:56

Re: [L4D] Score/Team Manager
 
ok, ill try new version. :)
thank you very much!

Naow 03-17-2009 12:28

Re: [L4D] Score/Team Manager
 
Is it possible to regroup every commands in one admin menu ? :)

Felycity 03-17-2009 13:27

Re: [L4D] Score/Team Manager
 
@Downtown1
today, i tried new version, it seems working well! :up:
ill check more, thank you for your updating.

ChillyWI 03-18-2009 14:16

Re: [L4D] Score/Team Manager
 
Last night we ended up with scrambled teams with this enabled. For stages 2-5 we had 2 people switched from each team. I don't know if the scores got swapped properly.

Would love to see the custom menu code. I'm currently using a different plugin for player switching (it's all manual), and I'd like to ditch it and use yours instead.

Downtown1 03-19-2009 00:51

Re: [L4D] Score/Team Manager
 
Chilly, what settings were you running with? Any other plugins that do automatic team switching? Plugin version 1.0.0 or 1.0.1?

ChillyWI 03-20-2009 21:42

Re: [L4D] Score/Team Manager
 
I must have had the old version since the file sizes were different. Updated. I'll post again if we run into problems, thanks. :)

Downtown1 03-22-2009 01:59

Re: [L4D] Score/Team Manager
 
1.0.2 update released!
  • bugfix: sm_swap wouldn't work with more than 1 player due to a typo

gladbach 03-26-2009 19:50

Re: [L4D] Score/Team Manager
 
Is there any way to stop the infected spawn timer at the beginning of the round? seems like this only happens when using your plugin.

Otherwise, great job!

AM_Soul 03-28-2009 16:54

Re: [L4D] Score/Team Manager
 
Hey just letting you know, the sm_printscores shows the CORRECT scores for each level (to admins), but something with the plugin makes it so that between levels during the load it increases scores for the losing team by a random number, any way to fix this?

Downtown1 04-01-2009 18:53

Re: [L4D] Score/Team Manager
 
Quote:

Originally Posted by gladbach (Post 789844)
Is there any way to stop the infected spawn timer at the beginning of the round? seems like this only happens when using your plugin.

Otherwise, great job!

Are you talking about a spawn delay that only happens when someone gets swapped to the infected team from the survivor team by my plugin?

Quote:

Originally Posted by AM_Soul (Post 791530)
Hey just letting you know, the sm_printscores shows the CORRECT scores for each level (to admins), but something with the plugin makes it so that between levels during the load it increases scores for the losing team by a random number, any way to fix this?

I've never seen this behavior, are you using 1.0.2 and if so how would someone reproduce this?

gladbach 04-02-2009 08:33

Re: [L4D] Score/Team Manager
 
Yes, I assume that is whats happening. With your plugin, the beginning of most rounds usually have a few infected that have to wait the full spawn delay, which makes rushing as a survivor a pretty effective strategy unfortunately.

It would be very useful if the plugin disabled this delay at round start?

Downtown1 04-03-2009 16:07

Re: [L4D] Score/Team Manager
 
Quote:

Originally Posted by gladbach (Post 795377)
Yes, I assume that is whats happening. With your plugin, the beginning of most rounds usually have a few infected that have to wait the full spawn delay, which makes rushing as a survivor a pretty effective strategy unfortunately.

It would be very useful if the plugin disabled this delay at round start?

That might be challenging, since I haven't seen any easy ways yet to force a dead player into ghost mode (just to spawn him completely). I'll certainly put this on my to-do list and add the feature when it's possible.

gladbach 04-03-2009 21:42

Re: [L4D] Score/Team Manager
 
an alternative would be to figure out a way to keep the survivors from moving or opening the door for the spawn timer amount?

bman87 04-03-2009 22:36

Re: [L4D] Score/Team Manager
 
NM

mukla67 04-17-2009 02:03

Re: [L4D] Score/Team Manager
 
so am i right in thinkin that this will automatically unscramble the teams if they get swapped like they occasionally do (e.g say team A is full of one clan named LTHC and team B is full of randoms in the lobby and then after first chapter one of Team A's players gets swapped to Team B and vice versa) without me havin to change any configs so basically if i was to download your files and just put them on my server as in default values pretty much :P if you can answer me this it would be very helpful indeeed :)

gladbach 04-19-2009 02:21

Re: [L4D] Score/Team Manager
 
yes. the only flaw is that sometimes infected players have spawn timers at the beginning of a round so survivors can rush out the door effectively, if they are aware of the issue.

mukla67 04-20-2009 23:45

Re: [L4D] Score/Team Manager
 
you see that spawn timer thing has been happening since the lat update on my server so its no big deal so i dont think its the plugin at fault i think its valve as they are so epically brilliant and all *rolls eyes* but thanks for answering my question none the less mate :)

gladbach 04-23-2009 15:32

Re: [L4D] Score/Team Manager
 
Yes, I think the spawn timer thing was fixed w/ the 21st update to l4d. I disabled this plugin for now, as I am not sure if the team scrambling is still occuring with the various bug fixes made.

has anyone else seen the problem post update with the plugin disabled?

Downtown1 04-27-2009 01:30

Re: [L4D] Score/Team Manager
 
1.0.3 update released!
  • feature: added 'highest score goes survivor first, except on finale' to use this set the cvar l4d_team_order 5

I highly recommend everyone use l4d_team_order 5 if they are running their own non-competitive server! Usually the highest score goes survivor first, which means that if the winning team from maps 1-4 wins the first round on the finale, the game is now over. Whatever the other team does, it doesn't matter because they already lost.

By having the losing team go survivor first on the finale, this will keep the full game going because they still can win the finale as survivors, and then have the potential to stop the other team as infected.

Felycity 04-28-2009 23:05

Re: [L4D] Score/Team Manager
 
hello, thanks for great plugin. :D
i think this is something wrong, so i report.
"!printscores" seems strange.
look at this image.
i was Infected, but only Surviver's scores printed. :oops:
my specification below.

SERVER OS:
Windows Server 2003 R2

MODS RUNNING:
metamod 1.7.1
sourcemod 1.2.1-hg2676

[L4D] Score/Team Manager Setting:
l4d_team_order 0

one more thing, i disabled this plugin for 3 days.
i confirmed there is no team shuffle problem anymore.
but still i want to use this plugin for team management, of cource. :)

Downtown1 05-01-2009 16:46

Re: [L4D] Score/Team Manager
 
Quote:

Originally Posted by Felycity (Post 816642)
hello, thanks for great plugin. :D
i think this is something wrong, so i report.
"!printscores" seems strange.
look at this image.
i was Infected, but only Surviver's scores printed. :oops:
my specification below.

SERVER OS:
Windows Server 2003 R2

MODS RUNNING:
metamod 1.7.1
sourcemod 1.2.1-hg2676

[L4D] Score/Team Manager Setting:
l4d_team_order 0

one more thing, i disabled this plugin for 3 days.
i confirmed there is no team shuffle problem anymore.
but still i want to use this plugin for team management, of cource. :)

Hmm, it does seem like there has been some error. Can you paste your error logs please?

coach 05-01-2009 20:58

Re: [L4D] Score/Team Manager
 
Is there any menu commands added yet?

Downtown1 05-01-2009 22:33

Re: [L4D] Score/Team Manager
 
Not yet, I'll probably add it at the same time I add a menu version of the printscores command.

minos197 05-02-2009 06:31

Re: [L4D] Score/Team Manager
 
Shouldn't the sm_swap command swap player with another player?

Sm_swap player1(source) player2(target)??

How does the the switch currently work if i swap an survivor to a full team of infected??

Downtown1 05-02-2009 14:36

Re: [L4D] Score/Team Manager
 
Swap swaps the player to the other team. So if you specify 2 players from opposite teams (i.e. sm_swap playerA playerB and playerA is on survivors, playerB is on infected) then you get the effect of swapping those 2 players.

If you try to swap to a team that is already full, it puts him to spectate and keeps trying every once in a while to swap him to the full team. So I wouldn't try doing that unless you're going to swap one of the people from the full team to the non-full team right after.

madcap 05-04-2009 14:43

Re: [L4D] Score/Team Manager
 
Just curious if there is any way you could add functionality to directly manipulate scores. Last night the server timed out after 2 rounds. We restarted on the 3rd level but the scores had been reset. It would be nice if an admin could just hand out points to a team as a handicap or something.

Once the functionality exists it would also open up the possibility alternative scoring systems.

HALFeighth 05-04-2009 22:23

Re: [L4D] Score/Team Manager
 
I haven't tried it yet, but I'm curious as to how you would enter player names that contain special characters, or whether you would need to enter a full name - for the swap command.

Also, I've seen people use a plugin with a !swap command that is used in regular teamchat that made the process seem a little easier...

Packhead 05-04-2009 23:52

Re: [L4D] Score/Team Manager
 
I put this in tonight and experienced all sorts of issues... not sure if it something on my boxes or not, but I'm not thinking so...

I've noticed if I load the plugin after a game has started, it will display the correct scores using sm_printscores. Also it will properly keep the teams together. I'm using order #5, so that the last map the normal method is switched. One thing I've noticed about this: at the end of the game, it says the team that loses actually wins.

Also, if the plugin is loaded at startup, and then it sits in hibernation waiting for a lobby to connect, sm_printscores doesn't work, it only prints "Survivors:" and that's it, no scores.

I think the bigger issue is that the team swapping around doesn't seem to work all the time. We played a round tonight where my team was ahead, and the following round we spawned as infected. The game said we were behind (even though I knew we weren't, first map and we knocked them out before they even had a chance to get out of the apartment) and we made it to the safe house -- clearly we won. But then we were infected first the following round...

Just thought I'd contribute. Here's what I've got loaded:

Quote:

admin-flatfile.smx
admin-sql-threaded.smx
adminhelp.smx
adminmenu.smx
advertisements.smx (displays ads at specified times)
antiflood.smx
basechat.smx
basecomm.smx
basecommands.smx
basetriggers.smx
basevotes.smx
clientprefs.smx
funcommands.smx
funvotes.smx
playercommands.smx
pluginmanager.smx (allows load/unload of plugins through GUI in game)
sounds.smx
sourcebans.smx (for sourcebans... lol)
sql-admin-manager.smx
votemanager2.smx (blocks vote commands... basically being used to block admins from being vote kicked)


All times are GMT -4. The time now is 20:14.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.