Raised This Month: $32 Target: $400
 8% 

Set up HLTV on LINUX server


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
RandomDude1
New Member
Join Date: Dec 2021
Old 12-24-2021 , 15:49   Set up HLTV on LINUX server
Reply With Quote #1

I've searched topics, and topics, and topics, and I still cannot figure out how to set up HLTV on my server.

So basically, I've got a server but it's sv_proxies cvar was set to 0, so I set it to 1, run HLTV from my PC to connect to the server and "Sorry, HLTV is not allowed on this server", so I go to reunion and I put my IP on the part that says which IPs can connect to the server using a HLTV proxy, restart it, and I still can't connect. So I figured out that I should install HLTV directly on the server, and let the demos be in the cstrike/demos file. So I search thousands of things, and I still can't, install HLTV.
RandomDude1 is offline
Mordekay
Squirrel of Fortune
Join Date: Apr 2006
Location: Germany
Old 12-25-2021 , 04:24   Re: Set up HLTV on LINUX server
Reply With Quote #2

What is your actual startup command?
__________________

Mordekay is offline
RandomDude1
New Member
Join Date: Dec 2021
Old 12-25-2021 , 05:24   Re: Set up HLTV on LINUX server
Reply With Quote #3

I don't have none related to HLTV, I don't even have the files in FTP.
I tried adding hltv.exe + hltv.cfg from my PC but figured out that wouldn't work because it's on Linux.
RandomDude1 is offline
Mordekay
Squirrel of Fortune
Join Date: Apr 2006
Location: Germany
Old 12-25-2021 , 06:34   Re: Set up HLTV on LINUX server
Reply With Quote #4

If you don't want to answere a simple question, why are you going to wast others time by requesting support?
__________________

Mordekay is offline
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 01-01-2022 , 08:53   Re: Set up HLTV on LINUX server
Reply With Quote #5

Quote:
Originally Posted by DeLiriuM View Post
Make a hltv.lib file and put it where ./hltv_run in located.

The lib file should contain:

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

HLTV.cfg:
__________________
DJEarthQuake is offline
iclassdon
AlliedModders Donor
Join Date: May 2006
Old 01-01-2022 , 15:17   Re: Set up HLTV on LINUX server
Reply With Quote #6

HLTV should already be inside the linux hlds file structure. It's in the main directory where hlds_linux is launched from. You wont find it inside the /cstrike folder. The file is called "hltv". Create a new file called hltv.cfg in that same directory. Then launch the HLTV server with something like this. "./hltv +connect x.x.x.x:27015 -nomaster -nodns -port 27020"

hltv.cfg example. Needs editing.

PHP 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 "HLTV Proxy"

// set HLTV name, how it should appear in game server browsers
// hostname         "My HLTV Proxy"

// 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
delay 30.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    "mypassword"
// proxy's adim password for rcon, commentator etc.
// adminpassword    "mypassword"

// 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" -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
Hope this helps. BTW you should remove that reunion.

Last edited by iclassdon; 01-01-2022 at 17:47.
iclassdon is offline
Send a message via MSN to iclassdon
AllMassive
Senior Member
Join Date: Sep 2004
Location: /dev/urandom
Old 01-09-2022 , 20:10   Re: Set up HLTV on LINUX server
Reply With Quote #7

Quote:
Originally Posted by RandomDude1 View Post
... so I go to reunion and ....
ehem....
AllMassive 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 15:22.


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