Raised This Month: $ Target: $400
 0% 

[L4D & L4D2] Difficulty Adjustment System (v14.0, 08-06-2018)


Post New Thread Reply   
 
Thread Tools Display Modes
phoenix0001
Senior Member
Join Date: Apr 2010
Location: China
Old 03-02-2018 , 11:23   Re: [L4D & L4D2] Difficulty Adjustment System (v9.0, 01-23-2018)
Reply With Quote #31

sometimes it works, sometimes it doesn't.
9.0 version of this problem will occur, the 8.0 version of this problem occurs very low frequency
I also have this problem, so I replaced the 8.0 version
__________________
I like this BBS sharing of spirit

I come from China, my English is poor
phoenix0001 is offline
Sunyata
Senior Member
Join Date: Nov 2017
Location: Wherever I am
Old 03-17-2018 , 10:57   Re: [L4D & L4D2] Difficulty Adjustment System (v9.0, 01-23-2018)
Reply With Quote #32

Interesting to see that phoenix0001 is also having the same issue as me, and just not me having the issue alone here.

@Mi.Cura
I installed the plugin you suggested for blocking the "difficulty" vote, that plugin works great btw. But I'd thought perhaps that blocking the voting system would somehow solve my issue (as per post 29 above) and that Crasher_3637's plugin would start to work correctly. But it still didn't fix the problem for me.

Can anyone else here give me any pointers/help to solving this problem I'm having -- or is the plugin itself just not coded properly?
Sunyata is offline
Mi.Cura
Veteran Member
Join Date: Dec 2016
Location: Brazil
Old 03-17-2018 , 14:26   Re: [L4D & L4D2] Difficulty Adjustment System (v9.0, 01-23-2018)
Reply With Quote #33

Sometimes it happens on my servers as well.

Perhaps the plugin fails to count players a few times, and the difficulty does not change.

The plugin does not show LOG errors

I would say it works in 90% of the time, sometimes I have to restart the server to get back to working

Even so, it's a very good plugin. very useful.

Last edited by Mi.Cura; 03-17-2018 at 14:30.
Mi.Cura is offline
Sunyata
Senior Member
Join Date: Nov 2017
Location: Wherever I am
Old 03-17-2018 , 14:51   Re: [L4D & L4D2] Difficulty Adjustment System (v9.0, 01-23-2018)
Reply With Quote #34

This plugin has great potential in my view, and as you say, and it's just a pity the plugin fails every so often. I'd say it works roughly 30% of the time for me - that's on both my Linux l4d1 and Windows l4d2 servers.

If I was a coder, I'd have a crack at fixing this plugin myself.
Sunyata is offline
cravenge
Veteran Member
Join Date: Nov 2015
Location: Chocolate Factory
Old 03-18-2018 , 08:34   Re: [L4D & L4D2] Difficulty Adjustment System (v9.0, 01-23-2018)
Reply With Quote #35

Instead of resetting the client count every time a player joins/leaves, why not just hook "round_start" event, create a 1 second repeating timer, and do the plugin's magic there?

Example:
cravenge is offline
Mi.Cura
Veteran Member
Join Date: Dec 2016
Location: Brazil
Old 03-18-2018 , 12:58   Re: [L4D & L4D2] Difficulty Adjustment System (v9.0, 01-23-2018)
Reply With Quote #36

Hello cravenge

Unfortunately I do not know how to do this.
I would have to ask Crasher_3637 to do this, and I do not want to bother with that.

P.S: cravenge: I sent a private message to you, but I did not get a response, did you receive it?
Mi.Cura is offline
Visual77
Veteran Member
Join Date: Jan 2009
Old 03-18-2018 , 14:07   Re: [L4D & L4D2] Difficulty Adjustment System (v9.0, 01-23-2018)
Reply With Quote #37

The problem is probably related to how the plugin counts bots inside bIsHumanSurvivor().

Plugin description: Adjusts difficulty based on the number of clients on the server.

It could be more clarified: Adjusts difficulty based on the number of alive survivors (excluding bots) on the server.

The bIsHumanSurvivor bool should probably be optimized too, it's quite long and has redundency in it. (No need to check IsClientConnected or IsValidEntity

Last edited by Visual77; 03-18-2018 at 16:07.
Visual77 is offline
Psyk0tik
Veteran Member
Join Date: May 2012
Location: Homeless
Old 03-18-2018 , 14:41   Re: [L4D & L4D2] Difficulty Adjustment System (v9.0, 01-23-2018)
Reply With Quote #38

I'll work on this when I find the time. If anyone wants to take a jab at it, that's fine too. I've just been busy with stuff in real life.
__________________
Psyk0tik is offline
Mi.Cura
Veteran Member
Join Date: Dec 2016
Location: Brazil
Old 03-18-2018 , 17:25   Re: [L4D & L4D2] Difficulty Adjustment System (v9.0, 01-23-2018)
Reply With Quote #39

Quote:
Originally Posted by Visual77 View Post
The problem is probably related to how the plugin counts bots inside bIsHumanSurvivor().

Plugin description: Adjusts difficulty based on the number of clients on the server.

It could be more clarified: Adjusts difficulty based on the number of alive survivors (excluding bots) on the server.

The bIsHumanSurvivor bool should probably be optimized too, it's quite long and has redundency in it. (No need to check IsClientConnected or IsValidEntity

The plugin does not consider the BOTS.

When it is working, it adjusts correctly according to the number of survivors.

What happens is that at some point it stops adjusting, even entering more players or leaving, the plugin stop adjust the difficulty.
Mi.Cura is offline
Sunyata
Senior Member
Join Date: Nov 2017
Location: Wherever I am
Old 03-18-2018 , 17:48   Re: [L4D & L4D2] Difficulty Adjustment System (v9.0, 01-23-2018)
Reply With Quote #40

Hi crasher,

If you need me to test your revised plugin anytime - and you don't have enough time to test the code yourself, I can test it out for the bugs and stuff on my servers for you. Just PM me if you do decide to update your script.

Would be much appreciated if you do find time to recode this.
Sunyata 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 22:26.


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