Raised This Month: $203 Target: $400
 50% 

L4D/L4D2 Tickrate Enabler


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Spirit_12
Veteran Member
Join Date: Dec 2012
Location: Toronto, CA
Old 07-22-2017 , 14:36   L4D/L4D2 Tickrate Enabler
Reply With Quote #1

Tickrate Enabler 1.4 by ProdigySim

Description

Enables the "-tickrate" switch to be used from the command line to set the game's tickrate.

Patches Boomer Vomit behavior to fix an issue where vomit range scaled inversely with tickrate. Supports both Windows and Linux installs.

Removes global upper-limits on the max client data rate (was 30000), and removes the (30k) limits on rate control cvars:


Code:
 - sv_maxrate
 - sv_minrate
 - net_splitpacket_maxrate
Instructions

HTML Code:
 - Place tickrate_enabler folder in your server's addons folder.

 - Place tickrate_enabler.vdf (L4D2) or tickrate_enabler_l4d1.vdf (L4D1) in your server's addons folder.

 - Add "-tickrate <desired_tickrate>" to your server's launch parameters. e.g. -tickrate 100

 - Make sure the following convar settings are properly set in server.cfg or otherwise:
    * sv_maxupdaterate 100 
    * sv_maxcmdrate 100 
    * fps_max 150 
       // higher than 100 recommended, as ticks calculated seems to dip otherwise. sv_maxrate 0 
       // 0 = unlimited, but you can also set this manually. Default is 30k for 30tick, use math. 
       // Setting higher sv_minrate can be used to force users to use higher data rates.

 - Note that fps_max and sv_maxrate are hidden variables on most scenarios.

 - Done. Enjoy 100 tick L4D2 gameplay.

Changelog / TODO

HTML Code:
1.4: No revision, just a recompile.

    Big thanks to Lux for updated offset. 
    Compatible with the June 15, 2021 update.

1.4: Contributed by $atanic $pirit

    Fixed L4D2 CVomit::UpdateAbility Windows offsets.
    Fixed l4d Linux offsets.(Thanks to epzminion.) 

1.3:

    Fixed L4D1 CVomit::UpdateAbility linux offsets.

1.2: thanks to vintik

    Fixed maxrate patching on Windows (L4D1+2)
    Added an extra maxrate patch on Linux that probably does nothing.

1.1:

    Patches 2 hard coded max rate limits
    Removes CVar Max on sv_max/minrate, net_splitpacket_maxrate
    Some code reorganization

1.0:

    Patches boomer vomit to behave properly on modified high tickrates
    Code cleaner perhaps

0.1:

    -tickrate only pseudo-release
TODO:

- Investigate other bugs
- Remove 30K rate limit from HLTV clients.

Credits / License

tickrate_enabler is copyright Michael "ProdigySim" Busby 2012

Parts of this project contain GPLv3 code adapted from SourceMod (Allied Modders L.L.C.) and Left4Downtown2 (Igor Smirnov et. al.).

This entire project is released under the AlliedModders modified GPLv3.



Note: The Hardcode 60 zip contains the hardcoded 60 tickrate. This can be used on servers where direct command line access is not possible. By default this will run the servers at 60.

Note: This is not my plugin, I've just fixed the Windows offset for it. I'm going by V1SoR's previous reply on the topic. If anyone has any problems with it, then feel free to take it down.

Quote:
Originally Posted by V1SoR View Post
I don't know why this needs a separate thread, but if the moderators don't mind, go ahead. You have my permission, just mention somwhere that you're not an author or a contributor, and specify the nicknames of those who are.
Updated Source: https://github.com/Satanic-Spirit/Tickrate-Enabler
Original Source: https://bitbucket.org/ProdigySim/l4d2_tickrate_enabler
Attached Files
File Type: zip tickrate_enabler_hardcode_60.zip (67.9 KB, 1772 views)
File Type: zip Tickrate_Enabler.zip (338.0 KB, 941 views)
__________________

Last edited by Spirit_12; 06-15-2021 at 20:37.
Spirit_12 is offline
Spirit_12
Veteran Member
Join Date: Dec 2012
Location: Toronto, CA
Old 07-23-2017 , 16:41   Re: L4D/L4D2 Tickrate Enabler
Reply With Quote #2

Update: (Thanks to epzminion.)

- Fixed l4d Linux offsets.
- Fixed linux builds.
__________________

Last edited by Spirit_12; 07-24-2017 at 01:42.
Spirit_12 is offline
Skorpyo
Junior Member
Join Date: Sep 2017
Old 09-05-2017 , 08:47   Re: L4D/L4D2 Tickrate Enabler
Reply With Quote #3

I'm currently having some difficulty getting this plugin to work on a Windows server. The command line has the -tickrate command set, and I added the rate settings to the server.cfg. I have also tested executing them as sm_cvar's. I tried restarting the server with them set to sm_cvar commands as well. The tickrate_enabler.dll is confirmed to be installed on the server. Everything appears to be correct on the server side of things, however the rates remain locked at 30.2. Any idea on what could have went wrong?
Skorpyo is offline
Spirit_12
Veteran Member
Join Date: Dec 2012
Location: Toronto, CA
Old 09-05-2017 , 09:50   Re: L4D/L4D2 Tickrate Enabler
Reply With Quote #4

Does plugins_print show it to be loaded in? Also, what is the output of sm_cvar sv_maxupdaterate and sm_cvar sv_maxcmdrate ?
__________________
Spirit_12 is offline
Skorpyo
Junior Member
Join Date: Sep 2017
Old 09-05-2017 , 15:22   Re: L4D/L4D2 Tickrate Enabler
Reply With Quote #5

Quote:
Originally Posted by Spirit_12 View Post
Does plugins_print show it to be loaded in? Also, what is the output of sm_cvar sv_maxupdaterate and sm_cvar sv_maxcmdrate ?
It appears to be just not loading the plugin, the plugins list does not show the tickrate enabler as being active, when I type "sm plugins list". Nor does it show any errors. Near the end of the log when the server starts, a "basecommands.smx" entry for each rate command is shown, as "changed cvar" (and then the appropriate values)
Skorpyo is offline
epzminion
AlliedModders Donor
Join Date: Jan 2011
Old 09-05-2017 , 16:42   Re: L4D/L4D2 Tickrate Enabler
Reply With Quote #6

Quote:
Originally Posted by Skorpyo View Post
It appears to be just not loading the plugin, the plugins list does not show the tickrate enabler as being active, when I type "sm plugins list". Nor does it show any errors. Near the end of the log when the server starts, a "basecommands.smx" entry for each rate command is shown, as "changed cvar" (and then the appropriate values)
This is not a Sourcemod plugin. It won't appear in your "sm plugins list". Type plugin_print in console as Spirit_12 mentioned, and it will appear in that list if loaded:
Code:
Loaded plugins:
---------------------
0:      "Metamod:Source 1.10.7-dev"
1:      "Tickrate_Enabler 1.4, ProdigySim"
---------------------
If it is loaded correctly and you're still not exceeding 30 fps, then check the cvars Spirit_12 mentioned. Also check the value of fps_max. I think it defaults to 30.
epzminion is offline
HarryPotter
Veteran Member
Join Date: Sep 2017
Location: TW
Old 09-21-2017 , 08:24   Re: L4D/L4D2 Tickrate Enabler
Reply With Quote #7

Well, I change ubuntu to 14.04 and version is (6312) (500) , still can not load.

I guess it's virtual machine problem, it does not allow computer to distribute more then half of CPU cores on VM.
I will test server and tickrate in real linux system computer.
thanks for helping me anyway.
HarryPotter is offline
Spirit_12
Veteran Member
Join Date: Dec 2012
Location: Toronto, CA
Old 09-21-2017 , 14:17   Re: L4D/L4D2 Tickrate Enabler
Reply With Quote #8

I don't think virtual or real machine has anything to do with it. Do you have ambuild2 installed? Try to compile it on your end and see if that works.
__________________
Spirit_12 is offline
HarryPotter
Veteran Member
Join Date: Sep 2017
Location: TW
Old 09-22-2017 , 21:05   Re: L4D/L4D2 Tickrate Enabler
Reply With Quote #9

uhhh, I'm sry, what is ambuild2 ? :/
HarryPotter is offline
Spirit_12
Veteran Member
Join Date: Dec 2012
Location: Toronto, CA
Old 09-23-2017 , 04:19   Re: L4D/L4D2 Tickrate Enabler
Reply With Quote #10

Ambuild2 is the preferred framework for compiling extensions. I was just gonna recommend you to compile it on your system and see if it works that way. You probably are missing one of the required packages on the system.
__________________
Spirit_12 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:17.


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