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

[L4D2] Improved Automatic Campaign Switcher (ACS) [v2.3.0 (20201024)]


Post New Thread Reply   
 
Thread Tools Display Modes
Mystik Spiral
Senior Member
Join Date: Oct 2020
Location: Orlando, FL
Old 11-23-2020 , 01:39   Re: [L4D2] Improved Automatic Campaign Switcher (ACS) [v2.3.0 (20201024)]
Reply With Quote #141

Quote:
Originally Posted by Wolfyy View Post
Somehow the automatically created cfg doesn't work for me.
Whatever I write in it doesn't change anything.
So I have acs_voting_ad_mode "0.000000" but this vote menu always opens. That's why only dead center is played on my server.
I can neither find a way to turn off this vote menu nor a way to change the frequency of the "!chmap" advertisement in second, which is very annoying because !chmap is off anyway.
There is also "Enables players to vote for the next map or campaign" on 0 but everyone can still vote for dead center.
I would be very grateful if someone had an idea how I can change that.
If you don't want the vote menu, try setting...

acs_next_map_ad_mode "0"
acs_voting_ad_mode "0"
acs_voting_system_enabled "0"
Mystik Spiral is offline
Wolfyy
Junior Member
Join Date: Nov 2020
Old 12-16-2020 , 06:12   Re: [L4D2] Improved Automatic Campaign Switcher (ACS) [v2.3.0 (20201024)]
Reply With Quote #142

Quote:
Originally Posted by Mystik Spiral View Post
If you don't want the vote menu, try setting...

acs_next_map_ad_mode "0"
acs_voting_ad_mode "0"
acs_voting_system_enabled "0"
I have exactly these but doesnt work. I have tried on onother server. There is the same problem wich makes the campaignswitcher sadly useless.
Wolfyy is offline
Krufftys Killers
Senior Member
Join Date: Jan 2014
Old 01-12-2021 , 22:37   Re: [L4D2] Improved Automatic Campaign Switcher (ACS) [v2.3.0 (20201024)]
Reply With Quote #143

Started getting this error
Code:
L 01/12/2021 - 17:48:50: [SM] Call stack trace:
L 01/12/2021 - 17:48:50: [SM]   [1] Line 1983, acs.sp::findVoteWinner
L 01/12/2021 - 17:48:50: [SM]   [2] Line 2048, acs.sp::SetTheCurrentVoteWinner
L 01/12/2021 - 17:48:50: [SM]   [3] Line 1311, acs.sp::Event_PlayerDisconnect
L 01/12/2021 - 17:49:10: [SM] Exception reported: Tracker stack is out of bounds
L 01/12/2021 - 17:49:10: [SM] Blaming: acs.smx
L 01/12/2021 - 17:49:10: [SM] Call stack trace:
L 01/12/2021 - 17:49:10: [SM]   [1] Line 1983, acs.sp::findVoteWinner
L 01/12/2021 - 17:49:10: [SM]   [2] Line 2048, acs.sp::SetTheCurrentVoteWinner
L 01/12/2021 - 17:49:10: [SM]   [3] Line 1311, acs.sp::Event_PlayerDisconnect
L 01/12/2021 - 17:49:29: Error log file session closed.

Last edited by DarkDeviL; 01-31-2021 at 00:42. Reason: Added CODE tags
Krufftys Killers is online now
Wolfyy
Junior Member
Join Date: Nov 2020
Old 02-14-2021 , 03:10   Re: [L4D2] Improved Automatic Campaign Switcher (ACS) [v2.3.0 (20201024)]
Reply With Quote #144

I had such big problems with this great campaign switcher or that it has not assumed a changed value in the cfg.
Now I have found this great plugin and since then not only the two DC campaigns are played on my server because the public voting is finaly off. 🤩
https://forums.alliedmods.net/showthread.php?t=307804
Wolfyy is offline
Mystik Spiral
Senior Member
Join Date: Oct 2020
Location: Orlando, FL
Old 02-23-2021 , 17:38   Re: [L4D2] Improved Automatic Campaign Switcher (ACS) [v2.3.0 (20201024)]
Reply With Quote #145

This plugin has been working for me in Coop mode for quite a while. However, when I play the exact same standard (not custom) maps but in custom Mutation mode (specifically "NightmareDifficulty), ACS still loads but does NOT show vote menu for finale and does NOT switch campaigns. Everytime any map loads I get a large set of these errors repeating in the error log...

Code:
L 02/23/2021 - 15:37:03: SourceMod error session started
L 02/23/2021 - 15:37:03: Info (map "c8m5_rooftop") (file "E:\l4d2_server\left4dead2\addons\sourcemod\logs\errors_20210223.log")
L 02/23/2021 - 15:37:03: [SM] Exception reported: Tracker stack is out of bounds
L 02/23/2021 - 15:37:03: [SM] Blaming: acs.smx
L 02/23/2021 - 15:37:03: [SM] Call stack trace:
L 02/23/2021 - 15:37:03: [SM]   [1] Line 1983, \\NEO\l4d2_ds\left4dead2\addons\sourcemod\scripting\acs.sp::findVoteWinner
L 02/23/2021 - 15:37:03: [SM]   [2] Line 2048, \\NEO\l4d2_ds\left4dead2\addons\sourcemod\scripting\acs.sp::SetTheCurrentVoteWinner
L 02/23/2021 - 15:37:03: [SM]   [3] Line 1311, \\NEO\l4d2_ds\left4dead2\addons\sourcemod\scripting\acs.sp::Event_PlayerDisconnect
L 02/23/2021 - 15:37:24: [SM] Exception reported: Tracker stack is out of bounds
L 02/23/2021 - 15:37:24: [SM] Blaming: acs.smx
L 02/23/2021 - 15:37:24: [SM] Call stack trace:
L 02/23/2021 - 15:37:24: [SM]   [1] Line 1983, \\NEO\l4d2_ds\left4dead2\addons\sourcemod\scripting\acs.sp::findVoteWinner
L 02/23/2021 - 15:37:24: [SM]   [2] Line 2048, \\NEO\l4d2_ds\left4dead2\addons\sourcemod\scripting\acs.sp::SetTheCurrentVoteWinner
L 02/23/2021 - 15:37:24: [SM]   [3] Line 1311, \\NEO\l4d2_ds\left4dead2\addons\sourcemod\scripting\acs.sp::Event_PlayerDisconnect
L 02/23/2021 - 15:37:50: [SM] Exception reported: Array index out-of-bounds (index -1, limit 4)
L 02/23/2021 - 15:37:50: [SM] Blaming: l4d2_mission_manager.smx
L 02/23/2021 - 15:37:50: [SM] Call stack trace:
L 02/23/2021 - 15:37:50: [SM]   [1] Line 327, l4d2_mission_manager.sp::LMM_GetMapList
L 02/23/2021 - 15:37:50: [SM]   [2] Line 449, l4d2_mission_manager.sp::Native_FindMapIndexByName
L 02/23/2021 - 15:37:50: [SM]   [4] LMM_FindMapIndexByName
L 02/23/2021 - 15:37:50: [SM]   [5] Line 251, \\NEO\l4d2_ds\left4dead2\addons\sourcemod\scripting\acs.sp::ACS_GetCycleIndexFromMapName
L 02/23/2021 - 15:37:50: [SM]   [6] Line 536, \\NEO\l4d2_ds\left4dead2\addons\sourcemod\scripting\acs.sp::ShowMissionChooser
L 02/23/2021 - 15:37:50: [SM]   [7] Line 1925, \\NEO\l4d2_ds\left4dead2\addons\sourcemod\scripting\acs.sp::VoteMenuDraw
L 02/23/2021 - 15:37:50: [SM]   [8] Line 1904, \\NEO\l4d2_ds\left4dead2\addons\sourcemod\scripting\acs.sp::Timer_DisplayVoteAdToAll
UPDATE: After posting the excerpt above I noticed something weird... that is not the path to my running server.

The running server is at \\NEO\\l4d2_server
My old server which is not running is located under \\NEO\\l4d2_ds

I'll try recompiling the plugin and post my results.
__________________

Last edited by Mystik Spiral; 02-23-2021 at 17:42.
Mystik Spiral is offline
Mystik Spiral
Senior Member
Join Date: Oct 2020
Location: Orlando, FL
Old 02-23-2021 , 18:27   Re: [L4D2] Improved Automatic Campaign Switcher (ACS) [v2.3.0 (20201024)]
Reply With Quote #146

Found and fixed the issue, basically that l4d2_mission_manager did not recognize the custom mutation Nightmare Difficulty as a valid game mode. I added the following lines just before the unknown entry at the bottom of the game mode check in function Native_GetCurrentGameMode.

Code:
else if(StrEqual(strGameMode, "nightmaredifficulty", false)) //Nightmare Difficulty
   gamemode = LMM_GAMEMODE_COOP;
I will create a GitHub pull request, but in the meantime, here is the source.

UPDATE: My code was three commits old, so better to wait for new official release instead of using the one attached to this post. I did a new fork for the GitHub pull request so it is current.
Attached Files
File Type: sp Get Plugin or Get Source (l4d2_mission_manager.sp - 68 views - 35.9 KB)
__________________

Last edited by Mystik Spiral; 02-23-2021 at 18:46.
Mystik Spiral is offline
Mystik Spiral
Senior Member
Join Date: Oct 2020
Location: Orlando, FL
Old 02-23-2021 , 18:44   Re: [L4D2] Improved Automatic Campaign Switcher (ACS) [v2.3.0 (20201024)]
Reply With Quote #147

Created pull request to add support for Nightmare Difficulty mutation, which you can find here...
https://steamcommunity.com/sharedfil.../?id=759369306
__________________
Mystik Spiral is offline
Mystik Spiral
Senior Member
Join Date: Oct 2020
Location: Orlando, FL
Old 02-23-2021 , 22:22   Re: [L4D2] Improved Automatic Campaign Switcher (ACS) [v2.3.0 (20201024)]
Reply With Quote #148

Quote:
Originally Posted by Krufftys Killers View Post
Started getting this error
Code:
L 01/12/2021 - 17:48:50: [SM] Call stack trace:
L 01/12/2021 - 17:48:50: [SM]   [1] Line 1983, acs.sp::findVoteWinner
L 01/12/2021 - 17:48:50: [SM]   [2] Line 2048, acs.sp::SetTheCurrentVoteWinner
L 01/12/2021 - 17:48:50: [SM]   [3] Line 1311, acs.sp::Event_PlayerDisconnect
L 01/12/2021 - 17:49:10: [SM] Exception reported: Tracker stack is out of bounds
L 01/12/2021 - 17:49:10: [SM] Blaming: acs.smx
L 01/12/2021 - 17:49:10: [SM] Call stack trace:
L 01/12/2021 - 17:49:10: [SM]   [1] Line 1983, acs.sp::findVoteWinner
L 01/12/2021 - 17:49:10: [SM]   [2] Line 2048, acs.sp::SetTheCurrentVoteWinner
L 01/12/2021 - 17:49:10: [SM]   [3] Line 1311, acs.sp::Event_PlayerDisconnect
L 01/12/2021 - 17:49:29: Error log file session closed.
@Krufftys Killers,

Take a look at my posts 145 and 146. It appears you are having the same problem I did, though I don't know what game mode you were trying to use. You should be able to fix it by adding the game mode string to the same event I did, then recompile and you are good to go.
__________________

Last edited by Mystik Spiral; 02-23-2021 at 22:23. Reason: corrected post #s
Mystik Spiral is offline
Mystik Spiral
Senior Member
Join Date: Oct 2020
Location: Orlando, FL
Old 02-24-2021 , 09:52   Re: [L4D2] Improved Automatic Campaign Switcher (ACS) [v2.3.0 (20201024)]
Reply With Quote #149

@rikka0w0,

It would be a nice enhancement to have an optional new cfg file (acs_gamemodes.cfg?) that contained a formatted list of game modes that the plugin would read. Any entries there would be added to the game mode checks in the Native_GetCurrentGameMode function. This would allow any custom game mode to be supported simply by adding its name to the new cfg file.
__________________
Mystik Spiral is offline
Proaxel
Member
Join Date: Oct 2014
Old 02-24-2021 , 12:42   Re: [L4D2] Improved Automatic Campaign Switcher (ACS) [v2.3.0 (20201024)]
Reply With Quote #150

A colleague of mine is running a custom campaigns only server. He's got only custom campaigns showing up in the vote menu, but if no one votes for anything the server switches to official campaigns when the current one is finished.

Is there a way to change the default campaign if no one votes? Would it be a good idea to just delete all vanilla maps out of the server files?
Proaxel 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 09:40.


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