Raised This Month: $12 Target: $400
 3% 

[L4D & L4D2] Vote Mode (2.2) [25-Sep-2023]


Post New Thread Reply   
 
Thread Tools Display Modes
Mr. Man
Veteran Member
Join Date: Mar 2011
Location: Huh?
Old 06-15-2022 , 13:15   Re: [L4D & L4D2] Vote Mode (1.7) [15-Jan-2022]
Reply With Quote #51

Very odd... I am on SM 1.10 and just tried changing modes in a barebone SM server and it's not changing the modes for me. Any logs or errors I can try to provide for you?
__________________
Mr. Man is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 06-15-2022 , 15:07   Re: [L4D & L4D2] Vote Mode (1.7) [15-Jan-2022]
Reply With Quote #52

Quote:
Originally Posted by Mr. Man View Post
Very odd... I am on SM 1.10 and just tried changing modes in a barebone SM server and it's not changing the modes for me. Any logs or errors I can try to provide for you?
When you do: sm_cvar mp_gamemode "mutation7"
in server console, does it say "Invalid mp_gamemode value 'mutation7', keeping old value 'coop'."?

Maybe "sv_gametypes" value is preventing this because it's not in the allowed list, set the cvar to ""?
__________________

Last edited by Silvers; 06-15-2022 at 15:13.
Silvers is offline
Mr. Man
Veteran Member
Join Date: Mar 2011
Location: Huh?
Old 06-15-2022 , 17:39   Re: [L4D & L4D2] Vote Mode (1.7) [15-Jan-2022]
Reply With Quote #53

Quote:
Originally Posted by Silvers View Post
When you do: sm_cvar mp_gamemode "mutation7"
in server console, does it say "Invalid mp_gamemode value 'mutation7', keeping old value 'coop'."?

Maybe "sv_gametypes" value is preventing this because it's not in the allowed list, set the cvar to ""?
When I execute

Code:
sm_cvar mp_gamemode "mutation7"
it returns
Code:
[SM] Changed cvar "mp_gamemode" to "mutation7".
My sv_gametypes is set to: "survival,coop,realism" as it's a coop focused server.

Edit: just checked with sv_gametypes left blank and result is the same.
__________________

Last edited by Mr. Man; 06-16-2022 at 11:09.
Mr. Man is offline
in2002
Member
Join Date: Apr 2021
Location: Taiwan
Old 06-16-2022 , 14:21   Re: [L4D & L4D2] Vote Mode (1.7) [15-Jan-2022]
Reply With Quote #54

Add Traditional Chinese
Attached Files
File Type: txt votemode.phrases.txt (703 Bytes, 57 views)
__________________
in2002 is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 06-16-2022 , 17:00   Re: [L4D & L4D2] Vote Mode (1.7) [15-Jan-2022]
Reply With Quote #55

Quote:
Originally Posted by Mr. Man View Post
Edit: just checked with sv_gametypes left blank and result is the same.
Have you tried any others? What about bleedout? Everyone should have temporary health. What is the value of "l4d_votemode_restart"?


Quote:
Originally Posted by in2002 View Post
Add Traditional Chinese
Thanks!
__________________
Silvers is offline
Mr. Man
Veteran Member
Join Date: Mar 2011
Location: Huh?
Old 06-16-2022 , 19:17   Re: [L4D & L4D2] Vote Mode (1.7) [15-Jan-2022]
Reply With Quote #56

Quote:
Originally Posted by Silvers View Post
Have you tried any others? What about bleedout? Everyone should have temporary health. What is the value of "l4d_votemode_restart"?
Value was never changed from the default of 1. And yes, have tried other modes and upon map restart nothing's changed.
__________________
Mr. Man is offline
Alex101192
Senior Member
Join Date: Aug 2018
Old 11-27-2022 , 17:59   Re: [L4D & L4D2] Vote Mode (1.7) [15-Jan-2022]
Reply With Quote #57

Hey silver, got back to l4d2 and decided to host a server where all mutations and modes can played. Unfortunately I came across an issue with the mutations United We Stand CO-OP and United We Stand Realism.

If I start these mutations on the dedicated by joining it from the mutation lobby, the mutation loads as expected and works perfectly. However, if you are playing any other mode that isn't one of the 3 United We Stand, and you switch to either The Coop or the realism version of United We Stand using this plugin ingame, out of the 8 bots, 4 of them are basically not playable.

They act like the passing bots, meaning they can't be controlled and just stay in their area shooting infecteds that get close. Interestingly enough, the music that's supposed to play at the start of campaign is also not playing, and the safe area itself doesn't seem to be recognized as such with no music when exiting it.

I haven't tried to see if, once you get to the second map, the mutation resets itself. Even if it does, the first level is still broken. I also want to mention that this doesn't happen with the survival version of United We Stand. That one you can load with this plugin and everything works as expected.

While I was writing this comment, however, an idea came to my mind. Because when you load united we stand from another united we stand it loads correctly, what if I tried to load with the plugin the exact same coop/realism united we stand for a second time after having loaded in?

So I voted the same mutation and it loaded correctly. So to fix the issue you can just make the plugin reload unitedcoop and unitedrealism after they are loaded and the game starts. Without this second reload 4 bots are not playing.

Last edited by Alex101192; 11-28-2022 at 03:28.
Alex101192 is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 11-28-2022 , 04:11   Re: [L4D & L4D2] Vote Mode (1.7) [15-Jan-2022]
Reply With Quote #58

Are you using l4d_votemode_restart "1" method?
__________________
Silvers is offline
Alex101192
Senior Member
Join Date: Aug 2018
Old 11-28-2022 , 06:01   Re: [L4D & L4D2] Vote Mode (1.7) [15-Jan-2022]
Reply With Quote #59

Quote:
Originally Posted by Silvers View Post
Are you using l4d_votemode_restart "1" method?
Yes.
Alex101192 is offline
Alex101192
Senior Member
Join Date: Aug 2018
Old 11-28-2022 , 06:09   Re: [L4D & L4D2] Vote Mode (1.7) [15-Jan-2022]
Reply With Quote #60

I think a good way you can fix this is by first detecting whether players are playing unitedcoop and unitedrealism. Then check if the survivor team is made of 8 survivors, if not, execute sm_forcemode modename based on which one of the 2 is being played.

I tried onmapstart and it just resulted in an endless restart after each and every restart. Counting the survivors however should work, because while you see all the survivors there, only 4 of these are actually playable survivor bots, as the teamspanel is only showing the first 4, meaning the survivor team should be made of 4 units.

The other 4 cannot be shot (shots go right through them), do not appear in the player hud nor are listed in the teamspanel plugin. I think they are effectively not counted in the survivor team number so counting the team number should effectly execute the command and only restart when the mode is actually broken, as opposed to either doing on a loop like my case, or while not in a loop still restarting when it's not broken.

Last edited by Alex101192; 11-28-2022 at 06:11.
Alex101192 is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:52.


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