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

[EXTENSION][L4D2] Left4Fix (2.1.0)


Post New Thread Reply   
 
Thread Tools Display Modes
spumer
Senior Member
Join Date: Aug 2011
Old 10-19-2014 , 14:38   Re: [EXTENSION][L4D2] Left4Fix (2.0.0)
Reply With Quote #61

legotoytoy,
It's normal. You have 13 players and score can't divided without error.

You need set per map max score divisible by 13. And remember: max map score is 1024.
In earlier versions of this extension i create a hack, which grow map score depend on given team size (13 in your case). But this not needed in standard cases: 8 and 10 players. This hack also has a simple bug, when you have score more than game expects, the score bar distorted (score lines go out of bounds).
__________________

Last edited by spumer; 10-20-2014 at 23:14.
spumer is offline
legotoytoy
Junior Member
Join Date: Apr 2012
Old 10-23-2014 , 22:15   Re: [EXTENSION][L4D2] Left4Fix (2.0.0)
Reply With Quote #62

Quote:
Originally Posted by spumer View Post
legotoytoy,
It's normal. You have 13 players and score can't divided without error.

You need set per map max score divisible by 13. And remember: max map score is 1024.
In earlier versions of this extension i create a hack, which grow map score depend on given team size (13 in your case). But this not needed in standard cases: 8 and 10 players. This hack also has a simple bug, when you have score more than game expects, the score bar distorted (score lines go out of bounds).
OH!!! I SEE
thank you!!!!
legotoytoy is offline
Machine
Senior Member
Join Date: Apr 2010
Old 10-23-2014 , 23:14   Re: [EXTENSION][L4D2] Left4Fix (2.0.0)
Reply With Quote #63

Any progress on coop score fix?

You said before you needed to know who used a defibrillator. Why not just copy what V10 already uses in his defibrillation fix extension to get the client?
Machine is offline
spumer
Senior Member
Join Date: Aug 2011
Old 10-25-2014 , 00:47   Re: [EXTENSION][L4D2] Left4Fix (2.0.0)
Reply With Quote #64

Machine,
I have more priority tasks right now. No time for coop adaptation. No progress.
__________________
spumer is offline
chatyak
Senior Member
Join Date: Aug 2011
Old 12-13-2014 , 13:04   Re: [EXTENSION][L4D2] Left4Fix (2.0.0)
Reply With Quote #65

Getting an error. If I did something wrong - please let me know. I have a Windows server.

1) Uploaded .dll
2) Uploaded the txt gamedata
3) Created a new autoload file.

Tested in game - seems to be working... but getting this in logs.

Quote:
L 12/13/2014 - 12:00:28: SourceMod error session started
L 12/13/2014 - 12:00:28: [L4FIX] WarpGhost -- Could not find 'CTerrorPlayer_GetPlayerByCharacter' address
L 12/13/2014 - 12:00:28: [L4FIX] Detour -- Could not find address for detour
L 12/13/2014 - 12:003: Error log file session closed.
Metamod:Source version 1.10.4
Built from: https://github.com/alliedmodders/met...commit/e52d2fc
Build ID: 925:e52d2fc


SourceMod Version Information:
SourceMod Version: 1.6.4-dev+4609


[SM] Displaying 14 extensions:
[01] Automatic Updater (1.6.4-dev+4609): Updates SourceMod gamedata files
[02] Webternet (1.6.4-dev+4609): Extension for interacting with URLs
[03] DefibFix Extension (1.0.1): Fixes defibrillator re-revive clone bug (on servers higher than 8 players)
[04] [L4D2] 8+ Players BugFixes (1.0.2): This extension try fix some bugs on server have more than 8 players
[05] Left 4 Downtown 2 Extension (0.5.4.2): Downtown1's extension to perform useful L4D1/L4D2 calls
[06] BinTools (1.6.4-dev+4609): Low-level C/C++ Calling API
[07] Left4Fix (2.0.0 (10 players)): Fix score completion on servers have 8+ players
[08] Top Menus (1.6.4-dev+4609): Creates sorted nested menus
[09] SDK Tools (1.6.4-dev+4609): Source SDK Tools
[10] GeoIP (1.6.4-dev+4609): Geographical IP information
[11] <FAILED> file "geoipcity.ext.dll": The specified module could not be found.
[12] Client Preferences (1.6.4-dev+4609): Saves client preference settings
[13] SQLite (1.6.4-dev+4609): SQLite Driver
[14] SDK Hooks (1.6.4-dev+4609): Source SDK Hooks

Last edited by chatyak; 12-13-2014 at 13:13.
chatyak is offline
chatyak
Senior Member
Join Date: Aug 2011
Old 12-13-2014 , 19:04   Re: [EXTENSION][L4D2] Left4Fix (2.0.0)
Reply With Quote #66

Quote:
Originally Posted by spumer View Post
legotoytoy, yes.
Left4Fix 2.0.0 (13 players) in attachment
I have a question about the extra .dll files you have created (10v10, 13v13, etc..)

Does this mean that it supports up to 13vs13.... or ONLY 13vs13?

I run a server with 4vs4 up to 11vs11+ (number can vary each night).

Should I just use the 13vs13 dll that way I am covered?

I downloaded files from main post
chatyak is offline
spumer
Senior Member
Join Date: Aug 2011
Old 12-15-2014 , 06:53   Re: [EXTENSION][L4D2] Left4Fix (2.0.0)
Reply With Quote #67

Ok, i think windows gamedata broken after latest update. Thanks for pointing me out.

Earlier i start write the wiki doc about score calculation system in L4D2 [#]. But has no time to finish him.
If give a straightforward answer: variable is possible, but not implemented. Why? I have some motivation to this:
1. It's not a first priority feature when you start writting new extension
2. Score can't grow infinity, max map score is 1024 (2^10, 10 bits for this value)
3. It's buggy, because score calculated ONLY for ALIVE players, and based on they max count. Say, i die at middle of map, and earn a lot of points. Now, some new players join to server and for all ALIVE players score calculated with new max count value. And now they points "border" (max value) always less than my, less than my CURRENT score (i'm still dead).

max_plr_score = MAX_MAP_SCORE / MAX_PLR_COUNT;
e.g.: 800 / 10 = 80. 80 points is max points value which player can earn at the end. (for 10 players)
800 / 4 = 200. If i die at the middle, i earn 100! points, and score won't be calculated for me, because i'm dead.
I can't reproduce score recalculation for dead players, because this is game restriction.

I recommend you use version for max possible player count on your server.
__________________

Last edited by spumer; 09-24-2016 at 12:43.
spumer is offline
chatyak
Senior Member
Join Date: Aug 2011
Old 12-15-2014 , 17:33   Re: [EXTENSION][L4D2] Left4Fix (2.0.0)
Reply With Quote #68

Quote:
Originally Posted by spumer View Post
Ok, i think windows gamedata broken after latest update. Thanks for pointing me out.

Earlier i start write the wiki doc about score calculation system in L4D2 [#]. But has no time to finish him.
If give a straightforward answer: variable is possible, but not implemented. Why? I have some motivation to this:
1. It's not a first priority feature when you start writting new extension
2. Score can't grow infinity, max map score is 1024 (2^5, 5 bits for this value)
3. It's buggy, because score calculated ONLY for ALIVE players, and based on they max count. Say, i die at middle of map, and earn a lot of points. Now, some new players join to server and for all ALIVE players score calculated with new max count value. And now they points "border" (max value) always less than my, less than my CURRENT score (i'm still dead).

max_plr_score = MAX_MAP_SCORE / MAX_PLR_COUNT;
e.g.: 800 / 10 = 80. 80 points is max points value which player can earn at the end. (for 10 players)
800 / 4 = 200. If i die at the middle, i earn 100! points, and score won't be calculated for me, because i'm dead.
I can't reproduce score recalculation for dead players, because this is game restriction.

I recommend you use version for max possible player count on your server.
Great. Thanks. I will use version I have now as it works well!

Thank you
chatyak is offline
spumer
Senior Member
Join Date: Aug 2011
Old 12-19-2014 , 07:48   Re: [EXTENSION][L4D2] Left4Fix (2.0.0)
Reply With Quote #69

chatyak, i verified 2137 signatures, and Windows version is not broken.
Looks like some installed plugin or extension use the same function and patch(change) it.

Try use following signature:
PHP Code:
"CTerrorPlayer_GetPlayerByCharacter"
{
    
"library" "server"
    "linux" "@_ZN13CTerrorPlayer20GetPlayerByCharacterE21SurvivorCharacterType"
    "windows" "\x2A\x2A\x2A\x2A\x2A\x08\x83\xEC\x08\x83\xF8\x08\x75\x06\x33\xC0"
    
/* ? ? ? ? ? 08 83 EC 08 83 F8 08 75 06 33 C0 */

__________________
spumer is offline
chatyak
Senior Member
Join Date: Aug 2011
Old 12-21-2014 , 21:48   Re: [EXTENSION][L4D2] Left4Fix (2.0.0)
Reply With Quote #70

I will try this and replace in l4fixsig.txt - will reply back
chatyak 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:58.


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