PDA

View Full Version : HLTV and Linux, again


Mosalar
03-12-2005, 12:38 PM
I've searched, and I've read, but the problems described here don't apply to me, so I will ask in hope of some help. I want to run hltv for the purposes of recording only. I will be running it on the same machine & account as my gameserver. I've seen many ways and techniques, this for one.
vim hltv_run

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

chmod +x hltv_run

Is this a proper script? I guess I'd just like someone who uses this setup (local machine/record only) to give me some pointers in the right direction. Any help is appreciated.

NitOxYs
03-12-2005, 12:45 PM
Before you run the hltv, you must input this command
export LD_LIBRARY_PATH=".:$LD_LIBRARY_PATH"

Do not change it, then do

nohup ./hltv -ip xxx.xxx.xxx.xxx -port 27021 -autoupdate

NitOxYs
03-12-2005, 12:47 PM
Oh by the way, check your HLTV.CFG , make sure record 1 is there, or you wont be able to record. You need hlsw, you can get it from hlsw.net , to record. you just put your ip in, expand the rcon portion of hlsw, input your admin password in the rcon password and in rcon input space you do record "nameoffile"

Mosalar
03-12-2005, 12:48 PM
Thanks for the quick reply, but, do I need the port var if I don't plan to broadcast?
And this is what I have in my hltv.cfg,
name "Budz_Admin"
connect 69.9.169.2:27015
delay 0
maxclients 0
nomaster 1
record 1
autoretry 1


echo hltv.cfg loaded.

It is not reconnecting at mapchange, did I do something wrong?

NitOxYs
03-12-2005, 12:50 PM
Id say yes

NitOxYs
03-12-2005, 12:52 PM
You got to have a hltv.cfg, I can copy one of mine from my game installations. But, the hltv.cfg should be in the first part of the steam installtion with hlds_amd.. and so on

Mosalar
03-12-2005, 12:55 PM
Soory for the confusion, I edited my previous post with my cfg content. :)

NitOxYs
03-12-2005, 12:59 PM
lol Ill post mine
// 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 "YOUR GAMENAME HERE"

// set HLTV name, how it should appear in game server browsers
hostname "The Awesome Rabbit"

// set maximum number of clients
maxclients 10

// 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
delay 180

// 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 6500
rate 10000
updaterate 20

// 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 "random"

// proxy's adim password for rcon, commentator etc.
adminpassword "random"
// if you want people to have to enter a pswd to watch hltv set the following
spectatorpassword ""
// proxypassword ""

// 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 Expired Shadow HLTV. Visit #RGS in gamesurge.com" 5 -1 0.85 66669999

// hltv.tga will be shown instead of the default HLTV logo in spectator GUI
//bannerfile "theill.tga" // doesn't seem to be working properly, causes crashes

// 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"

blockvoice 0

echo hltv.cfg loaded.

echo connecting to server
//Specifies the IP:Port of the Server
connect 69.9.180.60:27016

NitOxYs
03-12-2005, 01:00 PM
Oh you dont need record 1, it should allow you too by default

Mosalar
03-12-2005, 01:04 PM
Ok, I have everything working properly, except, it still gets dropped at mapchange, ideas?

NitOxYs
03-12-2005, 01:06 PM
It should reconnect, unless youchange the connecting password, it does take a little whilte for it to come back. If not just go into hlsw and do reconnect. -autoupdate should do the trick, if not -autoreconnect (However I dont know if -autoreconnect is a syntax)

Mosalar
03-12-2005, 01:31 PM
autoreconnect is not an option, but autoretry is enabled, and still gets dropped. Meanwhile, the winblowz brother, has no problem staying connected.Arggghhhhh