Raised This Month: $143 Target: $400
 35% 

[L4D1 & L4D2] Map changer with rating system


Post New Thread Reply   
 
Thread Tools Display Modes
3ipKa
Member
Join Date: Jul 2013
Location: Western Siberia
Old 04-11-2023 , 05:43   Re: [L4D1 & L4D2] Map changer with rating system
Reply With Quote #241

Hi, Dragokas. I noticed one thing with campaign names. For example, "25 To Life" becomes "To Life" or "7 Hours Later II" becomes "Hours Later Ii" and etc.
3ipKa is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 04-11-2023 , 08:43   Re: [L4D1 & L4D2] Map changer with rating system
Reply With Quote #242

Hi, 3ipKa.
There is a rule, stripping all consecutive numbers, e.g.:
if MapChanger see:

1 MapA
2 MapB
3 MapC
or
1. MapA
2. MapB
3. MapC

in internal map config

if firstly strip to first letter before substitution in menus, to prevent something like:

1. 1. MapA
2. 2. MapB
3. 3. MapC

in menus, because menus has own enumeration.

If you have other ideas how to make better rule to differentiate "enumeration" from "real name":

1 MapA
2 MapB
3 MapC
4 MapD
5 MapE
6 MapF
7 Hours Later

please, share your thoughts.
__________________
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 04-16-2023 , 07:03   Re: [L4D1 & L4D2] Map changer with rating system
Reply With Quote #243

Updated.

Quote:
3.7 (16-Apr-2023)
- Fixed campaign titles displayed with stripped numbers.
- Added listener for ConVar "l4d_mapchanger_servername_short".
@3ipKa, figured out, the above rule was a case for map titles, not for campaign titles. For campaign name it was unintentional.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
shinubee
Junior Member
Join Date: Mar 2022
Old 04-17-2023 , 01:11   Re: [L4D1 & L4D2] Map changer with rating system
Reply With Quote #244

When the DisplayTitle of a custom map is Simplified Chinese, characters will not be displayed
shinubee is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 04-17-2023 , 09:37   Re: [L4D1 & L4D2] Map changer with rating system
Reply With Quote #245

@shinubee, all characters or just the Chinese part?
This is known Valve KeyValues bug. See.

I'll try to use my own parser instead next time, but not soon.
Also, please provide the map name, so I can use it as a reference in future.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]

Last edited by Dragokas; 04-17-2023 at 09:37.
Dragokas is offline
shinubee
Junior Member
Join Date: Mar 2022
Old 04-17-2023 , 10:03   Re: [L4D1 & L4D2] Map changer with rating system
Reply With Quote #246

just the Chinese part,Map 生还之锋-重制版(fos_remake V6) or 洞穴之旅5-鬼(cave tour5)
use version 2.21 displays well

Last edited by shinubee; 04-17-2023 at 10:06.
shinubee is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 04-17-2023 , 10:43   Re: [L4D1 & L4D2] Map changer with rating system
Reply With Quote #247

hmm, it seems floating bug in that case.
I removed Chinese letters in newest versions by intention, because in some cases that causes menus not worked at all.
Thanks for letting me know.
__________________
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 04-18-2023 , 16:51   Re: [L4D1 & L4D2] Map changer with rating system
Reply With Quote #248

As addition to the above Valve bug:

Created a topic:
How to create a tree? (KeyValues re-implementation)

People with analytical and mathematical knowledge are welcomed to discussion.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
Mika Misori
Senior Member
Join Date: Sep 2022
Old 05-10-2023 , 07:57   Re: [L4D1 & L4D2] Map changer with rating system
Reply With Quote #249

Quote:
Originally Posted by Dragokas View Post
...
When there is a vote to return to the lobby, all players are just thrown into the main menu of the game, and in the logs appears this error:
Code:
L 05/09/2023 - 12:21:41: SourceMod error session started
L 05/09/2023 - 12:21:41: Info (map "c5m3_cemetery") (file "/game/left4dead2/addons/sourcemod/logs/errors_20230509.log")
L 05/09/2023 - 12:21:41: [SM] Exception reported: Invalid index 0 (count: 0)
L 05/09/2023 - 12:21:41: [SM] Blaming: MapChanger.smx
L 05/09/2023 - 12:21:41: [SM] Call stack trace:
L 05/09/2023 - 12:21:41: [SM]   [0] ArrayList.GetString
L 05/09/2023 - 12:21:41: [SM]   [1] Line 2081, H:\_To_games\Left4Dead_2\My_mods\MapChanger\MapChanger\MapChanger_3.X\scripting\MapChanger.sp::GotoNextMap
L 05/09/2023 - 12:21:41: [SM]   [2] Line 459, H:\_To_games\Left4Dead_2\My_mods\MapChanger\MapChanger\MapChanger_3.X\scripting\MapChanger.sp::OnDisconnectToLobby
Config:
l4d_mapchanger_finale_change_type 8
l4d_native_vote_allow_return_lobby 1

I just want to make the lobby return vote work and have the map change to the next map after all the credits are over.
Mika Misori is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 05-10-2023 , 08:59   Re: [L4D1 & L4D2] Map changer with rating system
Reply With Quote #250

For some reason the code falled to emergency routine which is also failed: the mission list was completely empty.
Is this a first time you met such an issue when you're returning to the lobby?
__________________
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 11:58.


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