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

[L4D1 & L4D2] Vote difficulty + (no black screen)


Post New Thread Reply   
 
Thread Tools Display Modes
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 09-21-2020 , 18:58   Re: [L4D] Vote difficulty (no black screen)
Reply With Quote #11

For further reference, use Spider instead.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]

Last edited by Dragokas; 09-21-2020 at 18:59.
Dragokas is offline
bacongrease
New Member
Join Date: Sep 2020
Old 09-22-2020 , 13:09   Re: [L4D] Vote difficulty (no black screen)
Reply With Quote #12

It works! Thank you!!
bacongrease is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 11-26-2021 , 15:07   Re: [L4D1 & L4D2] Vote difficulty (no black screen)
Reply With Quote #13

Updated.

Quote:
1.12 (26-Nov-2021)
- Added missing NOTIFY flag to ConVar version.
- New ConVar "z_difficulty_ex" (read only!) - allows for other plugins to track extended game difficulty name string voted via this plugin. Pre-defined values are:
* Easy
* Normal
* Hard
* Hard+
* Impossible
* Impossible+
- Removed #PRIVATE_STUFF
- Added data/votedifficulty_vote_block.txt file allowing to block users from using vote functionality by name and SteamId.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
CrazMan
Member
Join Date: Jun 2022
Old 06-20-2022 , 11:38   Re: [L4D1 & L4D2] Vote difficulty + (no black screen)
Reply With Quote #14

Good day.
I have a question for you. Is it possible to do something so that the variables that are on the screen are not displayed in the chat? And somehow it confused me.

CrazMan is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 06-25-2022 , 07:58   Re: [L4D1 & L4D2] Vote difficulty + (no black screen)
Reply With Quote #15

Possible, but the solution is too heavy (need to include Cvars parser, I don't want to).
It's better to use custom plugin to prevent those messages from appearing.

E.g. write in configs something like that:

Code:
sm_suppressconvar ammo_smg_max disabled
sm_cvar ammo_smg_max 200
sm_suppressconvar ammo_smg_max enabled
together with [ANY] ConVar Suppression

or use something like [ANY] Suppress Manager
__________________
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 11-13-2022 , 15:32   Re: [L4D1 & L4D2] Vote difficulty + (no black screen)
Reply With Quote #16

Updated.

Quote:
1.13 (29-Nov-2021)
- Able to change difficulty when lobby is reserved (thanks to Silvers).

1.14 (13-Nov-2022)
- Added ConVar "sm_votedifficulty_default_set" - Do we need to set default difficulty when the server get restarted? (1 - Yes, 0 - No)
- Added ConVar "sm_votedifficulty_default_difficulty" - Default difficulty to use when the server get restarted
- Fixed warnings in SM 1.11.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
apples1949
Junior Member
Join Date: Apr 2021
Old 11-24-2022 , 00:06   Re: [L4D1 & L4D2] Vote difficulty + (no black screen)
Reply With Quote #17

Quote:
Originally Posted by Dragokas View Post
Updated.
Code:
L 11/24/2022 - 12:49:36: SourceMod error session started
L 11/24/2022 - 12:49:36: Info (map "c4m1_milltown_a") (file "/home/L4D2-apple1/left4dead2/addons/sourcemod/logs/errors_20221124.log")
L 11/24/2022 - 12:49:36: [SM] Exception reported: Invalid convar handle 0 (error 4)
L 11/24/2022 - 12:49:36: [SM] Blaming: another/l4d_votedifficulty.smx
L 11/24/2022 - 12:49:36: [SM] Call stack trace:
L 11/24/2022 - 12:49:36: [SM]   [0] ConVar.IntValue.get
L 11/24/2022 - 12:49:36: [SM]   [1] Line 589, C:\Users\apples1949\Desktop\l4dplugins\1.11\l4d_votedifficulty.sp::Handler_PostVoteAction
L 11/24/2022 - 12:49:36: [SM]   [2] Line 560, C:\Users\apples1949\Desktop\l4dplugins\1.11\l4d_votedifficulty.sp::Handle_VoteDifficulty
L 11/24/2022 - 12:57:22: Error log file session closed.
I spent some time checking this cvar of z_difficulty_locked, which only exists in L4D1.

Last edited by apples1949; 11-24-2022 at 00:15. Reason: Additional notes
apples1949 is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 11-25-2022 , 17:56   Re: [L4D1 & L4D2] Vote difficulty + (no black screen)
Reply With Quote #18

Fixed.

Quote:
1.15 (26-Nov-2022)
- Fixed ConVar "z_difficulty_locked" does not exist in L4D2.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
GerPunisher_
Junior Member
Join Date: Mar 2022
Old 01-21-2023 , 02:38   Re: [L4D1 & L4D2] Vote difficulty + (no black screen)
Reply With Quote #19

Code:
L 01/21/2023 - 07:30:00: SourceMod error session started
L 01/21/2023 - 07:30:00: Info (map "l4d_hospital05_rooftop") (file "/home/container/left4dead/addons/sourcemod/logs/errors_20230121.log")
L 01/21/2023 - 07:30:00: [SM] Exception reported: Language phrase "impossible" not found (arg 4)
L 01/21/2023 - 07:30:00: [SM] Blaming: l4d_votedifficulty.smx
L 01/21/2023 - 07:30:00: [SM] Call stack trace:
L 01/21/2023 - 07:30:00: [SM]   [0] VFormat
L 01/21/2023 - 07:30:00: [SM]   [1] Line 750, H:\_To_games\Left4Dead_2\My_mods\Admin-Security\vd\addons\sourcemod\scripting\l4d_votedifficulty.sp::CPrintToChatAll
L 01/21/2023 - 07:30:00: [SM]   [2] Line 670, H:\_To_games\Left4Dead_2\My_mods\Admin-Security\vd\addons\sourcemod\scripting\l4d_votedifficulty.sp::Handler_PostVoteAction
L 01/21/2023 - 07:30:00: [SM]   [3] Line 466, H:\_To_games\Left4Dead_2\My_mods\Admin-Security\vd\addons\sourcemod\scripting\l4d_votedifficulty.sp::VoteDifficulty
L 01/21/2023 - 07:30:00: [SM]   [4] Line 365, H:\_To_games\Left4Dead_2\My_mods\Admin-Security\vd\addons\sourcemod\scripting\l4d_votedifficulty.sp::CheckVote
L 01/21/2023 - 07:31:37: Error log file session closed.
GerPunisher_ is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 01-21-2023 , 03:59   Re: [L4D1 & L4D2] Vote difficulty + (no black screen)
Reply With Quote #20

It's a Valve/SourceMod bug. Please, report here: #1745

I'll do an attempt of a temporarily fix.

Updated.
Quote:
1.16 (21-Jan-2023)
- fix for SourceMod bug, when first letter get replaced with lower-case, e.g. sDifficulty = "impossible", instead of "Impossible"
(perhaps, SM uses bugged Valve KeyValues system to store menu items data, or just uses Valve menu data directly)
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]

Last edited by Dragokas; 01-21-2023 at 04:01.
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 18:16.


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