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

[L4D1 & L4D2] Map changer with rating system


Post New Thread Reply   
 
Thread Tools Display Modes
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 09-06-2021 , 00:38   Re: [L4D1 & L4D2] Map changer with rating system
Reply With Quote #71

Quote:
Originally Posted by in2002 View Post
Custom name can refer to this Plugins method
https://forums.alliedmods.net/showthread.php?t=308708
Well, it looks like ACS uses vpk file name for translation alias identification.
I don't really happy with that, because name can be easily changed.
However, it is the most obvious way to use by server administrator. If I take names directly from gamemaps site, it can make sense.
Other question is about aliases for translation of chapter names within campaign.
I think I can use the following convention:
for city17.vpk:
- "city17" - for campaign alias
- "city17-1", "city17-2", "city17-3" ... for chapter aliases
Any suggestions?
__________________
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-06-2021 at 00:39.
Dragokas is offline
in2002
Member
Join Date: Apr 2021
Location: Taiwan
Old 09-06-2021 , 02:55   Re: [L4D1 & L4D2] Map changer with rating system
Reply With Quote #72

Quote:
Originally Posted by Dragokas View Post
Well, it looks like ACS uses vpk file name for translation alias identification.
I don't really happy with that, because name can be easily changed.
However, it is the most obvious way to use by server administrator. If I take names directly from gamemaps site, it can make sense.
Other question is about aliases for translation of chapter names within campaign.
I think I can use the following convention:
for city17.vpk:
- "city17" - for campaign alias
- "city17-1", "city17-2", "city17-3" ... for chapter aliases
Any suggestions?
ACS only changes the event name
Did not change to the chapter name so detailed

ACS originally grabbed the name from vpk
Then modify from txt
Attached Images
File Type: jpg vpk.jpg (95.6 KB, 92 views)
in2002 is offline
in2002
Member
Join Date: Apr 2021
Location: Taiwan
Old 09-11-2021 , 08:20   Re: [L4D1 & L4D2] Map changer with rating system
Reply With Quote #73

Plugins are working well on my server
All 85 maps can be identified
I hope there are parameters to decide whether to open the chapter selection
in2002 is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 09-11-2021 , 13:42   Re: [L4D1 & L4D2] Map changer with rating system
Reply With Quote #74

Updated.

Quote:
2.9 (11-Sep-2021)
- Added ConVar "l4d_mapchanger_show_chapter_list" - default:1 - Show the list of chapters within campaign? (1 - Yes, 0 - No) (on in2002 request)
- Added ConVar "l4d_mapchanger_finale_change_type" - default:12 (on sxtszx and ricksfishin requests)
* 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)
- Changed priority of "Name" / "DisplayTitle" keys selection in attempt to fix Precinct84 campaing title name (thanks to Neki93 for report).
Please, check does all custom maps title name has display correctly.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
in2002
Member
Join Date: Apr 2021
Location: Taiwan
Old 09-11-2021 , 16:06   Re: [L4D1 & L4D2] Map changer with rating system
Reply With Quote #75

Quote:
Originally Posted by Dragokas View Post
Updated.

Please, check does all custom maps title name has display correctly.
There is a problem with the title of this map

https://steamcommunity.com/sharedfil.../?id=121275675
in2002 is offline
in2002
Member
Join Date: Apr 2021
Location: Taiwan
Old 09-11-2021 , 16:16   Re: [L4D1 & L4D2] Map changer with rating system
Reply With Quote #76

Want to help add a Traditional Chinese description to the code
The result was too many words in 155 lines and failed.
l4d_mapchanger_finale_change_type this
Other new features are normal
Attached Files
File Type: sp Get Plugin or Get Source (MapChanger.sp - 117 views - 63.8 KB)
in2002 is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 09-11-2021 , 16:46   Re: [L4D1 & L4D2] Map changer with rating system
Reply With Quote #77

Quote:
Originally Posted by in2002 View Post
There is a problem with the title of this map

https://steamcommunity.com/sharedfil.../?id=121275675
Well, this is how the author named it:
Quote:
"Name" "detourahead"
"DisplayTitle" "$DetourAhead_Title"
I'm not familiar with such type of links: $name
If anybody has an idea how is it work, let me know, please.

Anyway, I'll try to provide a separate ability for manual translation via phrases file which has a priority over vpk's mission.txt file.

Quote:
Originally Posted by in2002 View Post
Want to help add a Traditional Chinese description to the code
The result was too many words in 155 lines and failed.
l4d_mapchanger_finale_change_type this
Other new features are normal
Thanks. I never saw somebody translate ConVar description. However, that's an interesting feature.
I'm going to move strings to the translation file in the next version.
__________________
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-11-2021 at 16:48.
Dragokas is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 09-12-2021 , 04:06   Re: [L4D1 & L4D2] Map changer with rating system
Reply With Quote #78

in2002, there is one significant problem with adding multi-translation to ConVar description strings.
It is a language selection.
By default language is based on user request (command).
However, ConVar descriptions are printed in .cfg files so the best I can - to use a server default language which is located in core.cfg file.
However, almost nobody changes the language there.
Even more, I don't recommend to change the language there, because most translations will be broken.
So, this feature is just becomes useless, unless we have some idea how to select the desired language in convenient way to use by ConVar description translation in .cfg file.
__________________
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-12-2021 , 04:17   Re: [L4D1 & L4D2] Map changer with rating system
Reply With Quote #79

Updated.

Quote:
2.10 (12-Sep-2021)
- Give preference to "Name" key in missions.txt if "DisplayTitle" starts from the link "$name" which I don't know how to de-reference at the moment.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
in2002
Member
Join Date: Apr 2021
Location: Taiwan
Old 09-12-2021 , 04:39   Re: [L4D1 & L4D2] Map changer with rating system
Reply With Quote #80

Quote:
Originally Posted by Dragokas View Post
in2002, there is one significant problem with adding multi-translation to ConVar description strings.
It is a language selection.
By default language is based on user request (command).
However, ConVar descriptions are printed in .cfg files so the best I can - to use a server default language which is located in core.cfg file.
However, almost nobody changes the language there.
Even more, I don't recommend to change the language there, because most translations will be broken.
So, this feature is just becomes useless, unless we have some idea how to select the desired language in convenient way to use by ConVar description translation in .cfg file.
It’s okay, I know it’s hard to do this feature
I usually use line breaks to add translation instructions
It’s just that this time too much text failed
in2002 is offline
Reply



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 03:15.


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