SRCDS Steam group


HL1 & HL2 Booster Library
#1
Smile 
Hello All,

Awhile back I released an open source library called "LibSource". This is nothing more than that library re-written.

For installation and usage instructions, please view the README file.

If you have any questions or need help, please join #SourceKernel on irc.gamesurge.net

Thanks to "Monk" for the initial idea. Also, many thanks to all of you who have contributed to the community.

HL-Booster Download (also attached to this post):
Code:
wget http://www.padgaming.com/sites/default/files/hl-booster.tar.gz

Quick installation intructions:
Code:
tar -zxvf hl-booster.tar.gz
cd hl-booster
make clean
make
make install  (run as root)

Usage:
Code:
LD_PRELOAD=/usr/share/hl-booster/boost.so ./hlds_run ... -pingboost 2 -autoupdate
LD_PRELOAD=/usr/share/hl-booster/boost.so ./srcds_run ...

Kind Regards,
DiSTANT


Attached Files
.gz   hl-booster.tar.gz (Size: 7.36 KB / Downloads: 409)
[Image: banner.php?t=2&bg=002244&amp...p;id=82023]

[Image: banner.php?t=2&bg=002244&amp...p;id=82024]
Reply
#2
n1 ... now there is someone who gives his knowlege ... a niceguy ... not the same other guys which wrotes letters to gameserver companys and want to sell there knowlege for a lot of money (500eur for each) ... one of the guys is regged in this forum i think he knows ...

THANKS!
Reply
#3
Thanks for sharing. I had trouble compiling it on Debian x86_64 and got this error:
Code:
/usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory
make: *** [boost.so] Error 1

I found out that you need the crosscompiling librarys. After installing them it worked:
Code:
apt-get update && apt-get install gcc-4.3-multilib gcc-multilib lib32bz2-1.0 lib32bz2-dev lib32gomp1 lib32z1-dev libbz2-dev libc6-dev-i386 zlib1g-dev

After compiling and installing i tried starting the server. The result:
Code:
ERROR: ld.so: object '/usr/share/hl-booster/boost.so' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/usr/share/hl-booster/boost.so' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/usr/share/hl-booster/boost.so' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/usr/share/hl-booster/boost.so' from LD_PRELOAD cannot be preloaded: ignored.
Reply
#4
i heard

ERROR: ld.so: object '/usr/share/hl-booster/boost.so' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/usr/share/hl-booster/boost.so' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/usr/share/hl-booster/boost.so' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/usr/share/hl-booster/boost.so' from LD_PRELOAD cannot be preloaded: ignored.

that does no matter. look at the fps they should be good. on 64bit systems are this problems.
Reply
#5
Hi,

on make I get this one:

debian:~/hl-booster# make
gcc -fPIC -g -O2 -shared -o boost.so hl-booster.c -m32 -lrt
hl-booster.c:78: error: expected â)â before âusecâ
hl-booster.c: In function âconstructâ:
hl-booster.c:110: warning: incompatible implicit declaration of built-in function âmemsetâ
make: *** [boost.so] Error 1

any idea? please help me Smile
Reply
#6
I looked at the fps. It does not enhance them at all because the preloading command is ignored.
I start with fps_max 0
Reply
#7
nono > i tried the same with an other lib > i got the same ignored command > but i got 4k fps. its a lib problem or something else with 64bit. did you activate hres in the kernel? without them you cant use some commands in the lib.

ulx: did you try

apt-get update && apt-get install gcc-4.3-multilib gcc-multilib lib32bz2-1.0 lib32bz2-dev lib32gomp1 lib32z1-dev libbz2-dev libc6-dev-i386 zlib1g-dev

?
Reply
#8
Are you talking about hlds or srcds? The Kernel is set with hres and tickless
Reply
#9
(10-26-2009, 06:44 PM)Peter_Pan123 Wrote:  ulx: did you try

apt-get update && apt-get install gcc-4.3-multilib gcc-multilib lib32bz2-1.0 lib32bz2-dev lib32gomp1 lib32z1-dev libbz2-dev libc6-dev-i386 zlib1g-dev

?

yep - and it says:

E: Couldn't find package gcc-4.3-multilib ... all other packages have been installed.
Reply
#10
tickless + hpet +lib = no différence .
2.6.26.8 rt 16 32 bits
Reply
#11
(10-26-2009, 04:22 PM)Peter_Pan123 Wrote:  n1 ... now there is someone who gives his knowlege ... a niceguy ... not the same other guys which wrotes letters to gameserver companys and want to sell there knowlege for a lot of money (500eur for each) ... one of the guys is regged in this forum i think he knows ...

THANKS!

What's the persons name who is trying to 'sell' a lib? I don't blame people for trying to make money. Why should people write free code that allows others to make money without giving them credit? heh.
http://leaf.dragonflybsd.org/~gary

“The two most common elements in the universe are hydrogen and stupidity.”








Reply
#12
I tried another way:
I deleted the above listed packages and edited the Makefile:
Code:
$(CC) $(CFLAGS) -o $@ $(OPEN_HLBOOSTER) -m64 -lrt
Now it finally trys to load but gets other errors too...:
Code:
-------------------------------------------------
Loading...
HL-Booster Library by DiSTANT <distant@padgaming.com>
http://www.padgaming.com
irc.gamesurge.net #SourceKernel
Priority: REGULAR
Memory: UNLOCKED
-------------------------------------------------

Auto detecting CPU
./srcds_run: line 237: test: too many arguments
./srcds_run: line 240: test: too many arguments
Using default binary.
Server will auto-restart if there is a crash.
Could not locate steam binary:./steam, ignoring.
ERROR: ld.so: object '/usr/share/hl-booster/boost.so' from LD_PRELOAD cannot be preloaded: ignored.

So i tried it with the scrds_i486 and having also this error
Reply
#13
(10-26-2009, 08:04 PM)Terrorkarotte Wrote:  I tried another way:
I deleted the above listed packages and edited the Makefile:
Code:
$(CC) $(CFLAGS) -o $@ $(OPEN_HLBOOSTER) -m64 -lrt
Now it finally trys to load but gets other errors too...:
Code:
-------------------------------------------------
Loading...
HL-Booster Library by DiSTANT <distant@padgaming.com>
http://www.padgaming.com
irc.gamesurge.net #SourceKernel
Priority: REGULAR
Memory: UNLOCKED
-------------------------------------------------

Auto detecting CPU
./srcds_run: line 237: test: too many arguments
./srcds_run: line 240: test: too many arguments
Using default binary.
Server will auto-restart if there is a crash.
Could not locate steam binary:./steam, ignoring.
ERROR: ld.so: object '/usr/share/hl-booster/boost.so' from LD_PRELOAD cannot be preloaded: ignored.

So i tried it with the scrds_i486 and having also this error

This is due to the printf in the constructor. If you just delete the constructor method, it should fix your problem.
(10-26-2009, 05:42 PM)Peter_Pan123 Wrote:  i heard

ERROR: ld.so: object '/usr/share/hl-booster/boost.so' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/usr/share/hl-booster/boost.so' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/usr/share/hl-booster/boost.so' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/usr/share/hl-booster/boost.so' from LD_PRELOAD cannot be preloaded: ignored.

that does no matter. look at the fps they should be good. on 64bit systems are this problems.

Peter is right, these can be ignored. This tells me that you are on 64-bit and it is trying to pull in functions it can't use because it is a 32-bit process.
All,

This library was not designed to get rid of FPS drops. It's only purpose is to use more precise timing for the engine. That said, if you take the time to study the engine and the way it calls the kernel, a lot can be done with this code to make FPS more stable.

Thank you to all the people who are testing the code. If I need to make any modifications, please let me know.

DiSTANT
[Image: banner.php?t=2&amp;bg=002244&amp...p;id=82023]

[Image: banner.php?t=2&amp;bg=002244&amp...p;id=82024]
Reply
#14
monk: sorry monk i dont want to tell the name. but i got an email about this, that he would give me a self coded lib for 500eur. he said the code ist compiled and not opensource. but its crazy ...

DiSTANT: but you can reach 1000fps? not 994 or something else?
Reply
#15
Ok lets say i ignore the errors and look at the max fps i get. I can not see any change. It is stuck at ~950fps
I am using hpet and tickless system.
I also tried deleting the constuctor part.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)