Raised This Month: $ Target: $400
 0% 

HLTV in linux


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ghostofmybrain
Veteran Member
Join Date: Mar 2010
Old 06-26-2010 , 23:33   HLTV in linux
Reply With Quote #1

Has anybody set up an HLTV server in linux? I've looked around and can't find any good explanations of how to do it.
ghostofmybrain is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-27-2010 , 01:26   Re: HLTV in linux
Reply With Quote #2

Quote:
Originally Posted by ghostofmybrain View Post
Has anybody set up an HLTV server in linux? I've looked around and can't find any good explanations of how to do it.
Yes. Simple. Set up hltv.cfg. Run hltv_run.
__________________

Last edited by fysiks; 06-27-2010 at 01:29.
fysiks is offline
ghostofmybrain
Veteran Member
Join Date: Mar 2010
Old 06-27-2010 , 12:12   Re: HLTV in linux
Reply With Quote #3

Run it how? ./hltv_run doesn't work. I'm trying to run it from the same directory as I run ./hlds_run, but ./hltv_run just gives the error "./hltv_run: No such file or directory"
ghostofmybrain is offline
DeLiriuM
Senior Member
Join Date: Dec 2006
Old 06-27-2010 , 12:23   Re: HLTV in linux
Reply With Quote #4

Make a hltv.lib file and put it where ./hltv_run in located.

The lib file should contain:

Quote:
#/bin/sh
export LD_LIBRARY_PATH=".:$LD_LIBRARY_PATH"
if
[ -x ./hltv ]; then
./hltv $@
fi

chmod +x ./hltv.lib
Than run the HLTV with ./hltv.lib +connect ... -ip .... -port +exec hltv.cfg +record ...

HLTV.cfg:

Quote:
delay 90.0
maxclients 255
rate 25000
maxrate 25000
updaterate 100
chatmode 0
nomaster 1
name "My HLTV"
hostname "My HLTV"
autoretry 1
blockvoice 1
publicgame 1
maxqueries 100
logfile 1
slowmotion 0

adminpassword xxxx
serverpassword xxx
offlinetext "HLTV: Game is delayed - Waiting for transmission! stay tuned!"
signoncommands "voice_scale 2; voice_overdrive 16; volume 0.1; echo Voice adjusted for HLTV"

loopcmd 1 25 localmsg "blablabla" 5 -1 0.85 FFA000FF
loopcmd 4 150 msg " - www.youradverthere.com - " 8 0.02 0.5 FFA000FF
loopcmd 5 150 msg "blablabla" 9 0.02 0.53 FFA000FF
loopcmd 6 150 msg "Hosted by www.youradverthere.com" 10 0.02 0.56 FFA000FF
loopcmd 7 60 localmsg "- www.youradverthere.com - " 61 1 1 FFFFFFFF
__________________
DeLiriuM is offline
ghostofmybrain
Veteran Member
Join Date: Mar 2010
Old 06-27-2010 , 12:33   Re: HLTV in linux
Reply With Quote #5

Quote:
+connect ...
What do I put in that ... after connect? That doesn't make sense.

Also, I think you meant to put "chmod +x ./hltv.lib " outside of the hltv.lib file, right? Your formatting makes it look like it should be inside.



I ran the following
Code:
./hltv.lib +connect 72.51.60.29:27015 +exec hltv.cfg
and I get continuous challenges of the server but no entry.

Code:
Challenging 72.51.60.29:27015 (1/3)
Challenging 72.51.60.29:27015 (2/3)
Challenging 72.51.60.29:27015 (3/3)
WARNING! Server::Challenge: Timeout after 3 retries
Automatic connection rety...
Challenging 72.51.60.29:27015 (1/3)
Challenging 72.51.60.29:27015 (2/3)
Challenging 72.51.60.29:27015 (3/3)

This is what my hltv.cfg looks like

Code:
// HLTV Proxy configuration file

// HLTV proxy runs this file on start up
// This file should only be edited if you want to broadcast a game

// set HLTV proxy name as shown in score board
name "Absurd Minds' HLTV 2"

// set HLTV name, how it should appear in game server browsers
hostname 		"Absurd Minds' HLTV 2"

//HLTV Slots (DO NOT CHANGE THIS)
maxclients "20"

// set offline info text clients will see as reject reason if HLTV isn't broadcasting yet
offlinetext "Sorry, game is delayed. Please try again later."

// delays broadcasting for 30 seconds (this is standard for league type matches)
delay 120.0

// allow 3.5 KByte/sec as client rate. This is good a value
// for internet broadcasts. On LAN you may set this value to 10000
maxrate 3500

// log HLTV console in proxy.log 
// logfile 1		

// local chatting for HLTV spectators enabled
chatmode 1

// if game server is password protected, enable this line
serverpassword	""

// proxy's adim password for rcon, commentator etc.
adminpassword	"*****"

// show message for 5 seconds each 60 seconds in center of X axis (-1) and
// above help text bar (0.85). Color given as hexadecimal RGBA .
loopcmd 1 60 localmsg "You're watching HLTV. Visit www.valvesoftware.com" 5 -1 0.85 FFA000FF

// hltv.tga will be shown instead of the default HLTV logo in spectator GUI
// bannerfile "hltv.tga"

// these commands will be executed on connecting spectator client and may be used
// to adjust settings for HLTV (for example voice parameters)
signoncommands "voice_scale 2; voice_overdrive 16; volume 0.5; echo Voice adjusted for HLTV"


echo hltv.cfg loaded.

//Game Server Connection Info - enter the game server ip and port in the following format by adding a new line below the example shown. Then start your HLTV server
connect 72.51.60.29:27015

Last edited by ghostofmybrain; 06-27-2010 at 12:41.
ghostofmybrain is offline
DeLiriuM
Senior Member
Join Date: Dec 2006
Old 06-27-2010 , 13:08   Re: HLTV in linux
Reply With Quote #6

+connect means to which server the HLTV should connect. -ip and -port are the IP and PORT assigned FOR THE hltv.

You sure the server has sv_proxies 1?
__________________
DeLiriuM is offline
ghostofmybrain
Veteran Member
Join Date: Mar 2010
Old 06-27-2010 , 14:09   Re: HLTV in linux
Reply With Quote #7

Quote:
You sure the server has sv_proxies 1?
Yeah, I've connected my hosted HLTV to it plenty of times. I'm just trying to figure out how to run it on my own so I don't have to rebuy it next month.

EDIT: I even tried just now stopping my regular HLTV and connecting it to the server the hosted HLTV was just connected to (with the exact same hltv.cfg, too) and it still gave me the same error.

Quote:
port are the IP and PORT assigned FOR THE hltv.
Ohhhh, I see.

Last edited by ghostofmybrain; 06-27-2010 at 14:13.
ghostofmybrain is offline
ghostofmybrain
Veteran Member
Join Date: Mar 2010
Old 06-28-2010 , 17:25   Re: HLTV in linux
Reply With Quote #8

I see what I did.

I tried using port 27020 for my HLTV, and I guess my server hosting company doesn't allow that port to connect. When I changed it to 27021 (which is what my hosted HLTV has) it connected.
ghostofmybrain is offline
ghostofmybrain
Veteran Member
Join Date: Mar 2010
Old 06-28-2010 , 21:20   Re: HLTV in linux
Reply With Quote #9

Nowadays when I connect, it will give me a continuous error:

Code:
No challenge for your address.

>
No challenge for your address.

>
No challenge for your address.
The HLTV is still showing up on the server, though.

But now, I tried to see if people could connect to the server, but when I forwarded port 27021 in my router, it suddenly brought back the initial problem. Continuously challenging the server and not succeeding at connecting.
ghostofmybrain is offline
ghostofmybrain
Veteran Member
Join Date: Mar 2010
Old 06-29-2010 , 00:41   Re: HLTV in linux
Reply With Quote #10

I just tried entirely reinstalling my server, and this is what I"m getting now:

Command line:
Code:
./hltv -port 27021 +exec hltv.cfg
Error message:
Code:
Challenging 72.51.60.29:27015 (1/3)
Challenging 72.51.60.29:27015 (2/3)
Challenging 72.51.60.29:27015 (3/3)
WARNING! Server::Challenge: Timeout after 3 retries
Automatic connection rety...
Challenging 72.51.60.29:27015 (1/3)
Challenging 72.51.60.29:27015 (2/3)
Challenging 72.51.60.29:27015 (3/3)
hltv.cfg
Code:
// HLTV Proxy configuration file

// HLTV proxy runs this file on start up
// This file should only be edited if you want to broadcast a game

// set HLTV proxy name as shown in score board
name "Absurd Minds' HLTV 2"

// set HLTV name, how it should appear in game server browsers
hostname 		"Absurd Minds' HLTV 2"

//HLTV Slots (DO NOT CHANGE THIS)
maxclients "20"

// set offline info text clients will see as reject reason if HLTV isn't broadcasting yet
offlinetext "Sorry, game is delayed. Please try again later."

// delays broadcasting for 30 seconds (this is standard for league type matches)
delay 120.0

// allow 3.5 KByte/sec as client rate. This is good a value
// for internet broadcasts. On LAN you may set this value to 10000
maxrate 3500

// log HLTV console in proxy.log 
// logfile 1		

// local chatting for HLTV spectators enabled
chatmode 1

// if game server is password protected, enable this line
serverpassword	""

// proxy's adim password for rcon, commentator etc.
adminpassword	"*****"

// show message for 5 seconds each 60 seconds in center of X axis (-1) and
// above help text bar (0.85). Color given as hexadecimal RGBA .
loopcmd 1 60 localmsg "You're watching HLTV. Visit www.valvesoftware.com" 5 -1 0.85 FFA000FF

// hltv.tga will be shown instead of the default HLTV logo in spectator GUI
// bannerfile "hltv.tga"

// these commands will be executed on connecting spectator client and may be used
// to adjust settings for HLTV (for example voice parameters)
signoncommands "voice_scale 2; voice_overdrive 16; volume 0.5; echo Voice adjusted for HLTV"


echo hltv.cfg loaded.

//Game Server Connection Info - enter the game server ip and port in the following format by adding a new line below the example shown. Then start your HLTV server
connect 72.51.60.29:27015
How the heck was it working earlier, but as soon as I forward the port in my router so people can connect to the HLTV it stops being able to connect to the server?
ghostofmybrain 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 10:27.


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