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

[L4D1 & L4D2] Map changer with rating system


Post New Thread Reply   
 
Thread Tools Display Modes
AK978
Senior Member
Join Date: Jun 2018
Old 01-30-2022 , 08:09   Re: [L4D1 & L4D2] Map changer with rating system
Reply With Quote #141

void FinaleMapChange()
{
.
.
.
L4D_ChangeLevel(sMapName);
LogToFileEx(g_sLog, "自動更換地圖為 %s", sMapName);
}

log:
L 01/30/2022 - 07:02:02: 自動更換地圖為 l4d2_bts01_forest
L 01/30/2022 - 11:25:07: 自動更換地圖為 l4d_tbm_1
L 01/30/2022 - 18:43:59: 自動更換地圖為 BlackMesa_Undertow_01
L 01/30/2022 - 199:13: 自動更換地圖為 BlackMesa_Undertow_01
L 01/30/2022 - 199:13: 自動更換地圖為 BlackMesa_Undertow_01
L 01/30/2022 - 20:28:11: 自動更換地圖為 BlackMesa_Undertow_01

can filter run map?

Last edited by AK978; 01-30-2022 at 08:15.
AK978 is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 01-30-2022 , 08:24   Re: [L4D1 & L4D2] Map changer with rating system
Reply With Quote #142

You mean: exclude some maps from map cycle?
__________________
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 01-30-2022 , 08:30   Re: [L4D1 & L4D2] Map changer with rating system
Reply With Quote #143

Quote:
Originally Posted by AK978 View Post
void FinaleMapChange()
{
.
.
.
L4D_ChangeLevel(sMapName);
LogToFileEx(g_sLog, "自動更換地圖為 %s", sMapName);
}

log:
L 01/30/2022 - 07:02:02: 自動更換地圖為 l4d2_bts01_forest
L 01/30/2022 - 11:25:07: 自動更換地圖為 l4d_tbm_1
L 01/30/2022 - 18:43:59: 自動更換地圖為 BlackMesa_Undertow_01
L 01/30/2022 - 199:13: 自動更換地圖為 BlackMesa_Undertow_01
L 01/30/2022 - 199:13: 自動更換地圖為 BlackMesa_Undertow_01
L 01/30/2022 - 20:28:11: 自動更換地圖為 BlackMesa_Undertow_01
Looks like some bug. Can you provide a list of custom maps you using?
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
AK978
Senior Member
Join Date: Jun 2018
Old 01-30-2022 , 08:37   Re: [L4D1 & L4D2] Map changer with rating system
Reply With Quote #144

don't random select duplicate map.
ex: if you play yama map don't auto change yama map again.

My English is bad,only use google translate.



map list:
Attached Files
File Type: txt MapChanger.l4d2.txt (31.5 KB, 60 views)
File Type: txt MapChanger_info.txt (2.3 KB, 45 views)

Last edited by AK978; 01-30-2022 at 08:43.
AK978 is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 01-30-2022 , 09:54   Re: [L4D1 & L4D2] Map changer with rating system
Reply With Quote #145

Ahh, I see. No problem. I understand.

Do you have ConVar: l4d_mapchanger_fin_map_random "1" ?

Yes, make sense to prevent duplicates. I'll do in the next release.
__________________
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-30-2022 at 09:55.
Dragokas is offline
AK978
Senior Member
Join Date: Jun 2018
Old 01-30-2022 , 10:13   Re: [L4D1 & L4D2] Map changer with rating system
Reply With Quote #146

// Choose the next map of custom campaign randomly? (1 - Yes, 0 - No)
// -
// Default: "1"
l4d_mapchanger_fin_map_random "1"


if( sMapName[0] == 0 )
{
g_aMapOrder.GetString(0, sMapName, sizeof(sMapName));// search default maps
}

// Display default maps menu items? (1 - Yes, 0 - No)
// -
// Default: "1"
l4d_mapchanger_allow_default "0"

search default maps?


thank you for your help.

Last edited by AK978; 01-30-2022 at 10:22.
AK978 is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 01-30-2022 , 22:10   Re: [L4D1 & L4D2] Map changer with rating system
Reply With Quote #147

Quote:
Originally Posted by AK978 View Post
PHP Code:
    if( sMapName[0] == )
    {
        
g_aMapOrder.GetString(0sMapNamesizeof(sMapName));// search default maps
    

No. I would say:
PHP Code:
// fallback to default map if no suitable custom map found, e.g. deleted 
__________________
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 01-31-2022 , 02:17   Re: [L4D1 & L4D2] Map changer with rating system
Reply With Quote #148

Updated.

Quote:
2.21 (31-Jan-2022)
- [Cycle] Previously played custom campaigns are no more added to random map cycle (thanks to @AK978 for suggestion).
- [Fix] Fixed bug with potential double map change.
- [Fix] Prevented sm_mapnext command from following "select random map" settings.
- [New] Added ConVars to control whether specific native votes are allowed to use (by default: all disabled for security reason):
> "l4d_native_vote_allow_change_mission" - Allow to use native votes to change mission? (0 - No, replace by MapChanger menu; 1 - Yes)
> "l4d_native_vote_allow_change_chapter" - Allow to use native votes to change chapter? (0 - No, replace by MapChanger menu; 1 - Yes).
> "l4d_native_vote_allow_restart_game" - Allow to use native votes to restart game? (0 - No, replace by MapChanger menu; 1 - Yes).
> "l4d_native_vote_allow_return_lobby" - Allow to use native votes to return to lobby? (0 - No, replace by MapChanger menu; 1 - Yes).
* Now, you can remove recommended ConVars "sv_vote_issue_*" from server.cfg, because they are included in plugin.
- [Menu] Preserves selected menu page when you click "Back" button.
- [Parser] Improved "clear" of map title numbering.
- [Speed] Optimizations:
* Buffer size for campaign title has decreased: 128 => 64.
* Lot of hardcoded buffer sizes have replaced by "const".
@AK978, filter (block list) will be presented in the next release.
__________________
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-31-2022 at 02:18.
Dragokas is offline
AK978
Senior Member
Join Date: Jun 2018
Old 01-31-2022 , 02:35   Re: [L4D1 & L4D2] Map changer with rating system
Reply With Quote #149

thanks.
AK978 is offline
strikeraot
Senior Member
Join Date: Dec 2018
Location: Viet Nam
Old 02-05-2022 , 05:57   Re: [L4D1 & L4D2] Map changer with rating system
Reply With Quote #150

PHP Code:
// 0 - Don't change finale map (drop to lobby); 1 - instant on vehicle leaving; 2 - instant on finale win; 4 - Wait till credits screen appear; 8 - Wait till credits screen ends (values can be combined)
l4d_mapchanger_finale_change_type "12" 
what is this Cvar stand for? Can you explain it, if i set it with 8, so when the survivor vote for another map while they playing the last map, they must wait the credits screen end before the map automatically changed?
strikeraot 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:46.


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