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

[L4D1 & L4D2] Map changer with rating system


Post New Thread Reply   
 
Thread Tools Display Modes
liaoyia
New Member
Join Date: Jan 2022
Old 02-25-2022 , 20:23   Re: [L4D1 & L4D2] Map changer with rating system
Reply With Quote #161

Quote:
Originally Posted by Dragokas View Post
I know, thank you.
This is new technology. I decided to approve using MapChanger project.
Need to convert Localizer's Loc_GetPhrase to async, and combine multi-language phrases cache DB queries to a single.
Will do, when time comes.
At the moment, it should work as is without noticable discomfort.
My server uses 3.0, and the server crashes and restarts all the time
liaoyia is offline
liaoyia
New Member
Join Date: Jan 2022
Old 02-25-2022 , 20:34   Re: [L4D1 & L4D2] Map changer with rating system
Reply With Quote #162

Quote:
Originally Posted by Dragokas View Post
Updated.
My server cannot use 3.0. It will cause the server to restart all the time
I use the latest version of the platform
liaoyia is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 02-26-2022 , 01:28   Re: [L4D1 & L4D2] Map changer with rating system
Reply With Quote #163

liaoyia, can you delete these lines and re-check?
Code:
	PrecachePhrasesKV(g_kv);
	PrecachePhrasesKV(g_kvdef);
Also, do you use SSD?
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
NoroHime
Veteran Member
Join Date: Aug 2016
Location: bed
Old 03-05-2022 , 14:16   Re: [L4D1 & L4D2] Map changer with rating system
Reply With Quote #164

a little question for dev, what difference about using const on string buffer? does it help for memory alloc?
__________________
NoroHime is offline
NoroHime
Veteran Member
Join Date: Aug 2016
Location: bed
Old 03-05-2022 , 14:35   Re: [L4D1 & L4D2] Map changer with rating system
Reply With Quote #165

actually many scene is player finished a campaign, mapchanger change to campaigns they havent that custom map then server idle one day long until some players can join, could we need a option to reset to specify campaign when server empty?
__________________

Last edited by NoroHime; 03-05-2022 at 14:38.
NoroHime is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 03-06-2022 , 03:37   Re: [L4D1 & L4D2] Map changer with rating system
Reply With Quote #166

Quote:
Originally Posted by NoroHime View Post
actually many scene is player finished a campaign, mapchanger change to campaigns they havent that custom map then server idle one day long until some players can join, could we need a option to reset to specify campaign when server empty?
There is no black list at the moment. The only way to prevent change campaign to a rare one is removing it from the server.
Also, there is no SM function allowing to chech whether player installed the map. See the discussion.

Quote:
Originally Posted by NoroHime View Post
a little question for dev, what difference about using const on string buffer? does it help for memory alloc?
Local static is preserving the buffer, so during the second calls engine does not alloc/write memory again and save some performance. However, you should be carefull and don't use such string type variables in FormatEx and recursive calls due to overflow.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
NoroHime
Veteran Member
Join Date: Aug 2016
Location: bed
Old 03-06-2022 , 06:07   Re: [L4D1 & L4D2] Map changer with rating system
Reply With Quote #167

well,that mean to optimize performance string buffer need const and static both?
__________________
NoroHime is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 03-06-2022 , 06:34   Re: [L4D1 & L4D2] Map changer with rating system
Reply With Quote #168

Quote:
Originally Posted by NoroHime View Post
well,that mean to optimize performance string buffer need const and static both?
There is no relation between "const" and "performance".
You prepend "const" when you want to ensure the variable's value will not be modified. Often, it is used to emphasize some important global values.
Also, it is no sense to prepend "const" to string variable type. It is still remains writable. You can easily verify it on your own. I dunno, why authors sometimes used such syntax in old plugins.
As about globally declared "static", they have different meaning - you already have answer from Bacardi here.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]

Last edited by Dragokas; 03-06-2022 at 06:38.
Dragokas is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 03-06-2022 , 08:42   Re: [L4D1 & L4D2] Map changer with rating system
Reply With Quote #169

Quote:
Originally Posted by NoroHime View Post
could we need a option to reset to specify campaign when server empty?
See also: [ANY] Restart Empty Server (or Map)
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
NoroHime
Veteran Member
Join Date: Aug 2016
Location: bed
Old 03-06-2022 , 13:34   Re: [L4D1 & L4D2] Map changer with rating system
Reply With Quote #170

Quote:
Originally Posted by Dragokas View Post
There is no relation between "const" and "performance".
You prepend "const" when you want to ensure the variable's value will not be modified. Often, it is used to emphasize some important global values.
Also, it is no sense to prepend "const" to string variable type. It is still remains writable. You can easily verify it on your own. I dunno, why authors sometimes used such syntax in old plugins.
As about globally declared "static", they have different meaning - you already have answer from Bacardi here.
thanks your patience answer,sorry I have an extra annoying question
sometime server install too many custom map then server announce message "too many missions installed,no advertise for some map"
Are there any solution or block way for these errors?
__________________
NoroHime 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 13:08.


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