Raised This Month: $32 Target: $400
 8% 

[L4D1 & L4D2] Map changer with rating system


Post New Thread Reply   
 
Thread Tools Display Modes
ururu
Junior Member
Join Date: Dec 2020
Location: japan
Old 09-20-2021 , 06:26   Re: [L4D1 & L4D2] Map changer with rating system
Reply With Quote #91

Quote:
I don't understand the sense of such vote.
Whether you answered yes, or no, in both cases some random map will be selected.
I'm assuming something like this:

After the finale starts (or somewhere in play?), The plugin randomly selects multiple maps to be used in the current game mode. (For example, select 4-5 maps from all maps, including default and custom.)
Then create a vote and include "don't vote" in addition to the map choices.
At this point, the vote list should look like this:

Choose the next map!
1: don't vote
2: dead center
3: something
4: something
5: something
6: something
...

The advantage of this vote is that players can know in advance which map to move to before switching to the next map, and although the choices themselves are random(cuz these selected by plugins), but they can choose a map they like to some extent.

and for example if your plugin have rtv feature or map_nominate feature, it will be a plugin like mapchooser plugin.

Anyway, the custom map auto-parse function you created is very very great!!
ururu is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 09-20-2021 , 12:08   Re: [L4D1 & L4D2] Map changer with rating system
Reply With Quote #92

Good, I see. I can do, when I'll have more time.

Quote:
Originally Posted by ururu View Post
and for example if your plugin have rtv feature or map_nominate feature, it will be a plugin like mapchooser plugin.
I am not familiar. What is rtv?

Quote:
Originally Posted by ururu View Post
Anyway, the custom map auto-parse function you created is very very great!!
Thanks, I tried my best.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
Psyk0tik
Veteran Member
Join Date: May 2012
Location: Homeless
Old 09-20-2021 , 12:20   Re: [L4D1 & L4D2] Map changer with rating system
Reply With Quote #93

Quote:
Originally Posted by Dragokas View Post
I am not familiar. What is rtv?
It's a command from rockthevote.smx which is a stock SM plugin. It allows X players to decide together if they want to vote for the next map before the server changes the map.
__________________
Psyk0tik is offline
ururu
Junior Member
Join Date: Dec 2020
Location: japan
Old 09-20-2021 , 12:29   Re: [L4D1 & L4D2] Map changer with rating system
Reply With Quote #94

Quote:
I am not familiar. What is rtv?
Psyk0tik said.

when a player chats with rtv, the plugin counts the number of rtvs, and when the number of people speaking reaches the set number, the plugin immediately creates the next map vote.(managing this number as a percentage gives more flexibility as players who join later will also be added to the total number.)

after this, there are two patterns of operation, if the map has not been decided, decide the next map.
if the map has been decided, plugin will move to the next map immediately.
ururu is offline
ururu
Junior Member
Join Date: Dec 2020
Location: japan
Old 09-24-2021 , 00:51   Re: [L4D1 & L4D2] Map changer with rating system
Reply With Quote #95

just quick share, I used "!maps" to move to the second chapter or finale of one map and started the round, and no one was able to revive when survivors was wiped out.
I saw this when I played alone and I'm not sure if it happens when there are other players.

easy reproduction method:
1: type !maps
2: choose one of the 2chapter ~ finale from the map
3: when started, type !slay @all (or !slay @me, when alone)
4: all survivors remains dead after the screen goes dark

in the first chapter of the map, this issue does not occur

Last edited by ururu; 09-24-2021 at 00:52. Reason: updated
ururu is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 09-24-2021 , 04:53   Re: [L4D1 & L4D2] Map changer with rating system
Reply With Quote #96

This plugin has nothing to do with survivor resurrection.
It is a problem of a game itself or some 3rd-party plugins.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
ururu
Junior Member
Join Date: Dec 2020
Location: japan
Old 09-24-2021 , 05:29   Re: [L4D1 & L4D2] Map changer with rating system
Reply With Quote #97

Quote:
This plugin has nothing to do with survivor resurrection.
It is a problem of a game itself or some 3rd-party plugins.
This is a video to check the operation: https://streamable.com/mhh4d4

I checked with only the default Plugin and MapChanger loaded.
It does not recover when i move to finale with "!maps", but it is normal when i move to finale with "!map".
And, there was also the difference between having something like Motd? regarding the server at the start and not having it.
So I'm sure it's not the effect of other plugins, but as you say it could be a flaw in the game.

Well, most of the time I don't skip the first chapter and play, so it's not a big deal, but I thought I'd share it just in case.

Last edited by ururu; 09-24-2021 at 05:32. Reason: updated
ururu is offline
ururu
Junior Member
Join Date: Dec 2020
Location: japan
Old 09-24-2021 , 05:31   Re: [L4D1 & L4D2] Map changer with rating system
Reply With Quote #98

for reference, the environment is as follows:
* Server is Linux
* SourceMod Version: 1.11.0.6746
ururu is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 09-24-2021 , 11:17   Re: [L4D1 & L4D2] Map changer with rating system
Reply With Quote #99

Thank you, you were right.
It seems nobody has a normal way to change the map without leaks in the Left 4 Dead 2 game at the moment.
I used Proper Changelevel walkaround which causes a described bug.
Going to revert the change map method to default ForceChangeLevel until we'll find a better solution.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 09-24-2021 , 11:41   Re: [L4D1 & L4D2] Map changer with rating system
Reply With Quote #100

Updated.

Quote:
2.11 (24-Sep-2021)
- Switched change map method back to using ForceChangeLevel (in L4D2) instead of CDirector::OnChangeChapterVote due to causing "all survivors dead" bug:
* observed when a single player used !slay @me on c1m4_atrium map (thanks to ururu for reporting)
* the reversion will cause possible memory leaks (same with sm_map command), so more frequent server reboots are recommended.
* hopefully, somebody finds a normal way to change map in L4D2 game.
- Removed reserve method for delayed changing map via "changelevel" to prevent possible bugs.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas 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 20:37.


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