Re: [hlds_linux] daily restarrt manually

2013-02-11 Thread Steven Haigh

On 11/02/2013 6:46 PM, Erik-jan Riemers wrote:

Appreciate the ideas, but this is something that been going on for a long
long time. Normally I am a patient person and I assume they fix stuff at
some point. But since this only impact I believe a certain amount of
people with a specific library set / debian it is hard to troubleshoot I
presume. All my tools rely on rcon to restart / maintain the servers, I do
not want to install clients on every box to simple monitor if they are
hanging or not because they never did that in the past. A hanging server
could just as well be doing a update which takes forever (or perhaps you
have a solution for that too?)


I agree - although mine is on RHEL6.3 (well, Scientific Linux 6.3 to be 
exact). Servers have been hanging on and off since around November 2011 
- but it seems to be much worse lately.


I too would rather just see the server fixed - even if its as simple as 
static binaries.


___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlds_linux


Re: [hlds_linux] daily restarrt manually

2013-02-11 Thread Essay Tew Phaun
If we're talking about the 100% CPU hang then I recently got a gdb log of
it and sent it to MikeS. I'm on CentOS 6.3.

On Mon, Feb 11, 2013 at 2:59 AM, Steven Haigh net...@crc.id.au wrote:

 On 11/02/2013 6:46 PM, Erik-jan Riemers wrote:

 Appreciate the ideas, but this is something that been going on for a long
 long time. Normally I am a patient person and I assume they fix stuff at
 some point. But since this only impact I believe a certain amount of
 people with a specific library set / debian it is hard to troubleshoot I
 presume. All my tools rely on rcon to restart / maintain the servers, I do
 not want to install clients on every box to simple monitor if they are
 hanging or not because they never did that in the past. A hanging server
 could just as well be doing a update which takes forever (or perhaps you
 have a solution for that too?)


 I agree - although mine is on RHEL6.3 (well, Scientific Linux 6.3 to be
 exact). Servers have been hanging on and off since around November 2011 -
 but it seems to be much worse lately.

 I too would rather just see the server fixed - even if its as simple as
 static binaries.


 __**_
 To unsubscribe, edit your list preferences, or view the list archives,
 please visit:
 https://list.valvesoftware.**com/cgi-bin/mailman/listinfo/**hlds_linuxhttps://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlds_linux

___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlds_linux


Re: [hlds_linux] Overlapping port usage when running multiple servers on one machine

2013-02-11 Thread Rudy Bleeker
I've attached the bash script that I've used and improved upon for
years now to start my TF2 servers. It assumes there's a servercfgfile
named server_portnumber.cfg that contains the settings specific for
that instance, for example your server identity and logdir. It starts
the first server on port 27015 and works it's way up in increments of
10.

Using the -strictportbind option just makes the server quit (and
restart over and over if autoupdate is set) if one or more of the
ports it wants to use is unavailable, instead of just picking a higher
portnumber. For that reason I stopped using it, since I let the server
assign all other ports by itself.

If anyone has any comments, questions or suggestions about my script
feel free to ask.

On Sun, Feb 10, 2013 at 6:11 AM, Landon Orr lando...@gmail.com wrote:
 Alright, so I've disabled sourcetv and set the client port, that seems to
 have cleared it up. I'm working on a script that will start multiple
 servers, and have the server's ports be in intervals of 5. Here's the
 command I'm using to start them, it's been working great so far but let me
 know if you guys have any suggestions.

 ./srcds_run -game tf -autoupdate -steambin /home/tf2user/hlds/steam
 -maxplayers 32 -port 27015 -nohltv +clientport 27115 +map mvm_coaltown
 +servercfgfile mvmserver1.cfg +motdfile mvmmotd.txt +mapcyclefile
 mvmmapcycle.txt

 I specify the maplist, mapcycle and motd files as I have different configs
 for MvM.



 On Sat, Feb 9, 2013 at 10:06 PM, Nomaan Ahmad n0man@gmail.com wrote:

 You can put it in the startup like: +tv_port 27021

 On 10 February 2013 04:49, Sam White s...@zamnet.co.uk wrote:

  I believe it's tv_port
 
  On 10 February 2013 04:15, Joel Zhang know.thine.en...@gmail.com
 wrote:
 
   I am pretty sure there is a parameter for changing source TV's port as
   well, but I can't remember offhand which.
   On Feb 9, 2013 7:25 PM, [BT]Black V bt.bla...@gmail.com wrote:
  
Isn't there a strict port command too?
On 10 Feb 2013 15:47, Andreas Grimm l...@gmx.net wrote:
   
 You can add -nohltv to your start parameters if you don't use
  source
tv.
 Then the gameserver doesn't bind additional ports.

  - Andreas

 -Original Message-
 From: hlds_linux-boun...@list.valvesoftware.com
 [mailto:hlds_linux-boun...@list.valvesoftware.com] On Behalf Of
  Steve
 Dudenhoeffer
 Sent: Sunday, February 10, 2013 3:38 AM
 To: Half-Life dedicated Linux server mailing list
 Subject: Re: [hlds_linux] Overlapping port usage when running
  multiple
 servers on one machine

 tv_port defaults to 27020

 On Sat, Feb 9, 2013 at 9:17 PM, Giovanni Harting 
 chefeification...@gmail.com wrote:

  There are some port that the game tries to bound automaticly,
 maybe
there
  are some cvars to control that 
 
  For all command line specific, look here:
 
 


   
  
 
 https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicat
 ed_Server
 
 
  2013/2/10 Landon Orr lando...@gmail.com
 
   So that specified one of the ports, however when I run the
  server,
it's
   still trying to use 27020, which is in use. Is it possible to
   specify
  that
   one as well?
  
  
   On Sat, Feb 9, 2013 at 7:03 PM, Joel Zhang 
know.thine.en...@gmail.com
   wrote:
  
The parameter is -port 27025, for example.
On Feb 9, 2013 6:00 PM, Landon Orr lando...@gmail.com
  wrote:
   
 Currently I'm trying to host multiple servers on one
 machine.
It's
 a
   very
 beefy machine, two 16-core AMD processors and 64 gigs of
   memory,
so
  I'd
 like to run quite a bit of servers, 30+ if possible.
 However,
   I'm
   running
 into an issue when I spin up more than fiver servers or so.
   Right
 now
   I'm
 having issues with ports overlapping, as in the servers try
  to
  request
   a
 port but it's already in use. For the first five they would
   just
 use
   the
 next port up. However, it seems that a server uses two
 ports
 (correct
   me
if
 I'm wrong) 27015 and 27020. After five servers, the next
  server
 tries
   to
 use 27015, it's in use so it tries 27020 and then it gives
  up.

 I know when you use the srcds_run command, there is a way
 to
 specify
   the
 port to use, but I can't remember the command. Also, how
 many
ports
  do
   I
 have to specify? Just two, or are there more than that?
 ___
 To unsubscribe, edit your list preferences, or view the
 list
  archives,
 please visit:

https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlds_linux

___
  

Re: [hlds_linux] daily restarrt manually

2013-02-11 Thread Steven Haigh

On 12/02/2013 1:39 AM, Essay Tew Phaun wrote:

If we're talking about the 100% CPU hang then I recently got a gdb log of
it and sent it to MikeS. I'm on CentOS 6.3.


Yep, thats the one...

___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlds_linux


Re: [hlds_linux] Counter-Strike 1.6 beta server update

2013-02-11 Thread Alfred Reynolds
We have another update, changes are:
- fixed hltv demos being corrupted
- fixed downloading of custom sprays from users
- increased max rate to 100k (sv_min/maxrate still apply and defaults for them 
are unchanged)
- changed timing function to call clock_gettime(), this should cause more 
stable frame rates


As a reminder the plan is to make this the public release later this week, and 
that update will be required.

-Original Message-
From: hlds-boun...@list.valvesoftware.com 
[mailto:hlds-boun...@list.valvesoftware.com] On Behalf Of Alfred Reynolds
Sent: Friday, February 08, 2013 3:03 PM
To: h...@list.valvesoftware.com; Half-Life dedicated Linux server mailing list 
(hlds_linux@list.valvesoftware.com); hlds_annou...@list.valvesoftware.com
Subject: Re: [hlds] Counter-Strike 1.6 beta server update

We have another update, changes are:
- fixed hltv being unable to record demos under Linux
- fixed dedicated servers listing as a listen server
- (partially) fixed hltv listing on the master servers (you need a client 
update plus we need to do a server update to totally fix this)



-Original Message-
From: hlds-boun...@list.valvesoftware.com 
[mailto:hlds-boun...@list.valvesoftware.com] On Behalf Of Alfred Reynolds
Sent: Thursday, February 07, 2013 10:41 AM
To: Half-Life dedicated Linux server mailing list 
(hlds_linux@list.valvesoftware.com); h...@list.valvesoftware.com; 
hlds_annou...@list.valvesoftware.com
Subject: Re: [hlds] Counter-Strike 1.6 beta server update

We have another update, changes are:
- fixed hltv failing to launch


-Original Message-
From: hlds_linux-boun...@list.valvesoftware.com 
[mailto:hlds_linux-boun...@list.valvesoftware.com] On Behalf Of Alfred Reynolds
Sent: Friday, February 01, 2013 2:07 PM
To: h...@list.valvesoftware.com; Half-Life dedicated Linux server mailing list 
(hlds_linux@list.valvesoftware.com); hlds_annou...@list.valvesoftware.com
Subject: Re: [hlds_linux] Counter-Strike 1.6 beta server update

We have released an update to this beta. This update includes 1.6 server 
changes so you should update.

Fixes include:
- Fixed failing to launch on old OS distributions (I am looking at you FreeBSD 
emu layer)
- Fixed flashbang causing mp_fadetoblack to be ignored



-Original Message-
From: hlds-boun...@list.valvesoftware.com 
[mailto:hlds-boun...@list.valvesoftware.com] On Behalf Of Alfred Reynolds
Sent: Thursday, January 31, 2013 1:39 PM
To: Half-Life dedicated Linux server mailing list 
(hlds_linux@list.valvesoftware.com); h...@list.valvesoftware.com; 
hlds_annou...@list.valvesoftware.com
Subject: Re: [hlds] Counter-Strike 1.6 beta server update

We have released an update to this beta. This update includes some good CS 1.6 
server changes so you should update.

Fixes include:
- Fixed rotating objects stopping after some period in a map
- Fixed potential upload exploit that let a client put a new file on your 
server (they could not touch/replace existing files)
- Fixed respawn bug in CS 1.6 if you died from drowning


I've got more CS 1.6 fixes planned, we are keeping track of the bugs over at 
https://github.com/ValveSoftware/steam-for-linux/issues so report things you 
want fixed (and features within reason).

- Alfred

-Original Message-
From: hlds_linux-boun...@list.valvesoftware.com 
[mailto:hlds_linux-boun...@list.valvesoftware.com] On Behalf Of Alfred Reynolds
Sent: Monday, January 28, 2013 3:29 PM
To: h...@list.valvesoftware.com; hlds_annou...@list.valvesoftware.com; 
Half-Life dedicated Linux server mailing list 
(hlds_linux@list.valvesoftware.com)
Subject: [hlds_linux] Counter-Strike 1.6 beta server

We have begun testing of Half-Life and Counter-Strike 1.6 on OSX and Linux. In 
support of this we have updated the dedicated server and converted it to using 
the new Steampipe system. You can access the new version via Steampipe right 
now, it remains network compatible with older clients.

To access the beta please follow the steamcmd instructions on our developer 
wiki, https://developer.valvesoftware.com/wiki/SteamCMD, Counter-Strike 1.6 
dedicated server is currently available as appid 90 (and will continue to use 
this appid after full release).

The changes in this version are numerous (and some fixes are still in progress, 
I am looking at you redirect servers). Under Linux we have moved forward to 
GCC 4.6 (from 2.95, heh) and are using a newer OS toolchain, so please do test 
these binaries on your machine.

- Alfred

___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlds_linux

___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlds

___
To unsubscribe, edit your list preferences, or view the 

Re: [hlds_linux] Counter-Strike 1.6 beta server update

2013-02-11 Thread px
Hello, Alfred.

Taking about frame rate, in this article
https://support.steampowered.com/kb_article.php?ref=5386-HMJI-5162
stated:
If  you  set sys_ticrate (HLDS) or fps_max (SRCDS) to 1000, most Intel
CPUs  running  on  Intel  chipsets  will run the full 1000fps (plus or
minus  a  few).  AMD  CPUs  and  Intel  CPUs  on non Intel motherboard
chipsets may only run at 500FPS with a setting of 1000.

Can this limit be removed?

 We have another update, changes are:
 - fixed hltv demos being corrupted
 - fixed downloading of custom sprays from users
 - increased max rate to 100k (sv_min/maxrate still apply and defaults for 
 them are unchanged)
 - changed timing function to call clock_gettime(), this should cause more 
 stable frame rates


 As a reminder the plan is to make this the public release later
 this week, and that update will be required.

 -Original Message-
 From: hlds-boun...@list.valvesoftware.com
 [mailto:hlds-boun...@list.valvesoftware.com] On Behalf Of Alfred Reynolds
 Sent: Friday, February 08, 2013 3:03 PM
 To: h...@list.valvesoftware.com; Half-Life dedicated Linux server
 mailing list (hlds_linux@list.valvesoftware.com);
 hlds_annou...@list.valvesoftware.com
 Subject: Re: [hlds] Counter-Strike 1.6 beta server update

 We have another update, changes are:
 - fixed hltv being unable to record demos under Linux
 - fixed dedicated servers listing as a listen server
 - (partially) fixed hltv listing on the master servers (you need a
 client update plus we need to do a server update to totally fix this)



 -Original Message-
 From: hlds-boun...@list.valvesoftware.com
 [mailto:hlds-boun...@list.valvesoftware.com] On Behalf Of Alfred Reynolds
 Sent: Thursday, February 07, 2013 10:41 AM
 To: Half-Life dedicated Linux server mailing list
 (hlds_linux@list.valvesoftware.com); h...@list.valvesoftware.com;
 hlds_annou...@list.valvesoftware.com
 Subject: Re: [hlds] Counter-Strike 1.6 beta server update

 We have another update, changes are:
 - fixed hltv failing to launch


 -Original Message-
 From: hlds_linux-boun...@list.valvesoftware.com
 [mailto:hlds_linux-boun...@list.valvesoftware.com] On Behalf Of Alfred 
 Reynolds
 Sent: Friday, February 01, 2013 2:07 PM
 To: h...@list.valvesoftware.com; Half-Life dedicated Linux server
 mailing list (hlds_linux@list.valvesoftware.com);
 hlds_annou...@list.valvesoftware.com
 Subject: Re: [hlds_linux] Counter-Strike 1.6 beta server update

 We have released an update to this beta. This update includes 1.6
 server changes so you should update.

 Fixes include:
 - Fixed failing to launch on old OS distributions (I am looking at you 
 FreeBSD emu layer)
 - Fixed flashbang causing mp_fadetoblack to be ignored



 -Original Message-
 From: hlds-boun...@list.valvesoftware.com
 [mailto:hlds-boun...@list.valvesoftware.com] On Behalf Of Alfred Reynolds
 Sent: Thursday, January 31, 2013 1:39 PM
 To: Half-Life dedicated Linux server mailing list
 (hlds_linux@list.valvesoftware.com); h...@list.valvesoftware.com;
 hlds_annou...@list.valvesoftware.com
 Subject: Re: [hlds] Counter-Strike 1.6 beta server update

 We have released an update to this beta. This update includes some
 good CS 1.6 server changes so you should update.

 Fixes include:
 - Fixed rotating objects stopping after some period in a map
 - Fixed potential upload exploit that let a client put a new file
 on your server (they could not touch/replace existing files)
 - Fixed respawn bug in CS 1.6 if you died from drowning


 I've got more CS 1.6 fixes planned, we are keeping track of the
 bugs over at https://github.com/ValveSoftware/steam-for-linux/issues
 so report things you want fixed (and features within reason).

 - Alfred

 -Original Message-
 From: hlds_linux-boun...@list.valvesoftware.com
 [mailto:hlds_linux-boun...@list.valvesoftware.com] On Behalf Of Alfred 
 Reynolds
 Sent: Monday, January 28, 2013 3:29 PM
 To: h...@list.valvesoftware.com;
 hlds_annou...@list.valvesoftware.com; Half-Life dedicated Linux
 server mailing list (hlds_linux@list.valvesoftware.com)
 Subject: [hlds_linux] Counter-Strike 1.6 beta server

 We have begun testing of Half-Life and Counter-Strike 1.6 on OSX
 and Linux. In support of this we have updated the dedicated server
 and converted it to using the new Steampipe system. You can access
 the new version via Steampipe right now, it remains network compatible with 
 older clients.

 To access the beta please follow the steamcmd instructions on our
 developer wiki, https://developer.valvesoftware.com/wiki/SteamCMD,
 Counter-Strike 1.6 dedicated server is currently available as appid
 90 (and will continue to use this appid after full release).

 The changes in this version are numerous (and some fixes are still
 in progress, I am looking at you redirect servers). Under Linux
 we have moved forward to GCC 4.6 (from 2.95, heh) and are using a
 newer OS toolchain, so please do test these binaries on your machine.

 - Alfred

 

Re: [hlds_linux] Overlapping port usage when running multiple servers on one machine

2013-02-11 Thread Jesse Molina


Here is an example start command for TF2.  This assumes you want to 
stack all of your servers on a single IP, which is what I do:


./srcds_linux -game tf -ip 1.2.3.4 +clientport 27017 +hostport 27117 
+tv_port 27217 -steamport 26017 +replay_port 27417 -strictportbind 
-pidfile /whatever/server.pid -maxplayers 26 +map cp_dustbowl


IMPORTANT: Order of arguments matters.  +map must be last.

Where

CLIENTPORT=27017
HOSTPORT=27117
TVPORT=27217
STEAMPORT=26017
REPLAYPORT=27417



IMPORTANT:  For this example above, I used 17 for the last two digits on 
the assigned daemon ports.  You MUST stagger your ports by 2, due to a 
bug with STEAMPORT where it will take whatever you give it and +1.


In other words, only use all odd numbers (1, 3, 5, 7,...).  This gives 
you the opportunity to stack up to 50 servers on a single IP.


For example, I specified the STEAMPORT above to be 26017, but it will 
actually use 26018.


Note the use of -strictportbind, which means the srcds_run process 
will exit if ports are already in use.  However, the srcds_linux script 
will auto-restart the process by default.  You may wish to disable 
autorestart, or replace the srcds_linux script with your own script.




Under this scheme, here is what a set of iptables rules might look like:

-A filt_in_srcds -p tcp -m tcp --dport 27100:27199 --tcp-flags 
FIN,SYN,RST,ACK SYN -m state --state NEW -j ACCEPT
-A filt_in_srcds -p udp -m udp --dport 26000:26099 -m state --state NEW 
-j ACCEPT
-A filt_in_srcds -p udp -m udp --dport 27000:27099 -m state --state NEW 
-j ACCEPT
-A filt_in_srcds -p udp -m udp --dport 27100:27199 -m state --state NEW 
-j ACCEPT
-A filt_in_srcds -p udp -m udp --dport 27200:27299 -m state --state NEW 
-j ACCEPT
-A filt_in_srcds -p udp -m udp --dport 27400:27499 -m state --state NEW 
-j ACCEPT

-A filt_in_srcds -j RETURN


Have fun.



Landon Orr wrote:

Currently I'm trying to host multiple servers on one machine. It's a very
beefy machine, two 16-core AMD processors and 64 gigs of memory, so I'd
like to run quite a bit of servers, 30+ if possible. However, I'm running
into an issue when I spin up more than fiver servers or so. Right now I'm
having issues with ports overlapping, as in the servers try to request a
port but it's already in use. For the first five they would just use the
next port up. However, it seems that a server uses two ports (correct me if
I'm wrong) 27015 and 27020. After five servers, the next server tries to
use 27015, it's in use so it tries 27020 and then it gives up.

I know when you use the srcds_run command, there is a way to specify the
port to use, but I can't remember the command. Also, how many ports do I
have to specify? Just two, or are there more than that?
___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlds_linux



--
# Jesse Molina
# Mail = je...@opendreams.net
# Cell = 1-602-323-7608



___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlds_linux


Re: [hlds_linux] Overlapping port usage when running multiple servers on one machine

2013-02-11 Thread Jesse Molina


No attachments allowed.  Use pastbin and share your script that way.



Rudy Bleeker wrote:

I've attached the bash script that I've used and improved upon for
years now to start my TF2 servers. It assumes there's a servercfgfile
named server_portnumber.cfg that contains the settings specific for
that instance, for example your server identity and logdir. It starts
the first server on port 27015 and works it's way up in increments of
10.

Using the -strictportbind option just makes the server quit (and
restart over and over if autoupdate is set) if one or more of the
ports it wants to use is unavailable, instead of just picking a higher
portnumber. For that reason I stopped using it, since I let the server
assign all other ports by itself.

If anyone has any comments, questions or suggestions about my script
feel free to ask.

On Sun, Feb 10, 2013 at 6:11 AM, Landon Orr lando...@gmail.com wrote:

Alright, so I've disabled sourcetv and set the client port, that seems to
have cleared it up. I'm working on a script that will start multiple
servers, and have the server's ports be in intervals of 5. Here's the
command I'm using to start them, it's been working great so far but let me
know if you guys have any suggestions.

./srcds_run -game tf -autoupdate -steambin /home/tf2user/hlds/steam
-maxplayers 32 -port 27015 -nohltv +clientport 27115 +map mvm_coaltown
+servercfgfile mvmserver1.cfg +motdfile mvmmotd.txt +mapcyclefile
mvmmapcycle.txt

I specify the maplist, mapcycle and motd files as I have different configs
for MvM.



On Sat, Feb 9, 2013 at 10:06 PM, Nomaan Ahmad n0man@gmail.com wrote:


You can put it in the startup like: +tv_port 27021

On 10 February 2013 04:49, Sam White s...@zamnet.co.uk wrote:


I believe it's tv_port

On 10 February 2013 04:15, Joel Zhang know.thine.en...@gmail.com

wrote:



I am pretty sure there is a parameter for changing source TV's port as
well, but I can't remember offhand which.
On Feb 9, 2013 7:25 PM, [BT]Black V bt.bla...@gmail.com wrote:


Isn't there a strict port command too?
On 10 Feb 2013 15:47, Andreas Grimm l...@gmx.net wrote:


You can add -nohltv to your start parameters if you don't use

source

tv.

Then the gameserver doesn't bind additional ports.

  - Andreas

-Original Message-
From: hlds_linux-boun...@list.valvesoftware.com
[mailto:hlds_linux-boun...@list.valvesoftware.com] On Behalf Of

Steve

Dudenhoeffer
Sent: Sunday, February 10, 2013 3:38 AM
To: Half-Life dedicated Linux server mailing list
Subject: Re: [hlds_linux] Overlapping port usage when running

multiple

servers on one machine

tv_port defaults to 27020

On Sat, Feb 9, 2013 at 9:17 PM, Giovanni Harting 
chefeification...@gmail.com wrote:


There are some port that the game tries to bound automaticly,

maybe

there

are some cvars to control that 

For all command line specific, look here:












https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicat

ed_Server



2013/2/10 Landon Orr lando...@gmail.com


So that specified one of the ports, however when I run the

server,

it's

still trying to use 27020, which is in use. Is it possible to

specify

that

one as well?


On Sat, Feb 9, 2013 at 7:03 PM, Joel Zhang 

know.thine.en...@gmail.com

wrote:



The parameter is -port 27025, for example.
On Feb 9, 2013 6:00 PM, Landon Orr lando...@gmail.com

wrote:



Currently I'm trying to host multiple servers on one

machine.

It's

a

very

beefy machine, two 16-core AMD processors and 64 gigs of

memory,

so

I'd

like to run quite a bit of servers, 30+ if possible.

However,

I'm

running

into an issue when I spin up more than fiver servers or so.

Right

now

I'm

having issues with ports overlapping, as in the servers try

to

request

a

port but it's already in use. For the first five they would

just

use

the

next port up. However, it seems that a server uses two

ports

(correct

me

if

I'm wrong) 27015 and 27020. After five servers, the next

server

tries

to

use 27015, it's in use so it tries 27020 and then it gives

up.


I know when you use the srcds_run command, there is a way

to

specify

the

port to use, but I can't remember the command. Also, how

many

ports

do

I

have to specify? Just two, or are there more than that?
___
To unsubscribe, edit your list preferences, or view the

list

archives,

please visit:


https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlds_linux



___
To unsubscribe, edit your list preferences, or view the list

archives,

please visit:


https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlds_linux



___
To unsubscribe, edit your list preferences, or view the list

archives,

please visit:


https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlds_linux



___
To unsubscribe, edit your list preferences, or view 

Re: [hlds_linux] Counter-Strike 1.6 beta server update

2013-02-11 Thread AnAkIn
Considering anything over 100 is pointless, why would you want this?


2013/2/11 px p...@i.kiev.ua

 Hello, Alfred.

 Taking about frame rate, in this article
 https://support.steampowered.com/kb_article.php?ref=5386-HMJI-5162
 stated:
 If  you  set sys_ticrate (HLDS) or fps_max (SRCDS) to 1000, most Intel
 CPUs  running  on  Intel  chipsets  will run the full 1000fps (plus or
 minus  a  few).  AMD  CPUs  and  Intel  CPUs  on non Intel motherboard
 chipsets may only run at 500FPS with a setting of 1000.

 Can this limit be removed?

  We have another update, changes are:
  - fixed hltv demos being corrupted
  - fixed downloading of custom sprays from users
  - increased max rate to 100k (sv_min/maxrate still apply and defaults
 for them are unchanged)
  - changed timing function to call clock_gettime(), this should cause
 more stable frame rates


  As a reminder the plan is to make this the public release later
  this week, and that update will be required.

  -Original Message-
  From: hlds-boun...@list.valvesoftware.com
  [mailto:hlds-boun...@list.valvesoftware.com] On Behalf Of Alfred
 Reynolds
  Sent: Friday, February 08, 2013 3:03 PM
  To: h...@list.valvesoftware.com; Half-Life dedicated Linux server
  mailing list (hlds_linux@list.valvesoftware.com);
  hlds_annou...@list.valvesoftware.com
  Subject: Re: [hlds] Counter-Strike 1.6 beta server update

  We have another update, changes are:
  - fixed hltv being unable to record demos under Linux
  - fixed dedicated servers listing as a listen server
  - (partially) fixed hltv listing on the master servers (you need a
  client update plus we need to do a server update to totally fix this)



  -Original Message-
  From: hlds-boun...@list.valvesoftware.com
  [mailto:hlds-boun...@list.valvesoftware.com] On Behalf Of Alfred
 Reynolds
  Sent: Thursday, February 07, 2013 10:41 AM
  To: Half-Life dedicated Linux server mailing list
  (hlds_linux@list.valvesoftware.com); h...@list.valvesoftware.com;
  hlds_annou...@list.valvesoftware.com
  Subject: Re: [hlds] Counter-Strike 1.6 beta server update

  We have another update, changes are:
  - fixed hltv failing to launch


  -Original Message-
  From: hlds_linux-boun...@list.valvesoftware.com
  [mailto:hlds_linux-boun...@list.valvesoftware.com] On Behalf Of Alfred
 Reynolds
  Sent: Friday, February 01, 2013 2:07 PM
  To: h...@list.valvesoftware.com; Half-Life dedicated Linux server
  mailing list (hlds_linux@list.valvesoftware.com);
  hlds_annou...@list.valvesoftware.com
  Subject: Re: [hlds_linux] Counter-Strike 1.6 beta server update

  We have released an update to this beta. This update includes 1.6
  server changes so you should update.

  Fixes include:
  - Fixed failing to launch on old OS distributions (I am looking at you
 FreeBSD emu layer)
  - Fixed flashbang causing mp_fadetoblack to be ignored



  -Original Message-
  From: hlds-boun...@list.valvesoftware.com
  [mailto:hlds-boun...@list.valvesoftware.com] On Behalf Of Alfred
 Reynolds
  Sent: Thursday, January 31, 2013 1:39 PM
  To: Half-Life dedicated Linux server mailing list
  (hlds_linux@list.valvesoftware.com); h...@list.valvesoftware.com;
  hlds_annou...@list.valvesoftware.com
  Subject: Re: [hlds] Counter-Strike 1.6 beta server update

  We have released an update to this beta. This update includes some
  good CS 1.6 server changes so you should update.

  Fixes include:
  - Fixed rotating objects stopping after some period in a map
  - Fixed potential upload exploit that let a client put a new file
  on your server (they could not touch/replace existing files)
  - Fixed respawn bug in CS 1.6 if you died from drowning


  I've got more CS 1.6 fixes planned, we are keeping track of the
  bugs over at https://github.com/ValveSoftware/steam-for-linux/issues
  so report things you want fixed (and features within reason).

  - Alfred

  -Original Message-
  From: hlds_linux-boun...@list.valvesoftware.com
  [mailto:hlds_linux-boun...@list.valvesoftware.com] On Behalf Of Alfred
 Reynolds
  Sent: Monday, January 28, 2013 3:29 PM
  To: h...@list.valvesoftware.com;
  hlds_annou...@list.valvesoftware.com; Half-Life dedicated Linux
  server mailing list (hlds_linux@list.valvesoftware.com)
  Subject: [hlds_linux] Counter-Strike 1.6 beta server

  We have begun testing of Half-Life and Counter-Strike 1.6 on OSX
  and Linux. In support of this we have updated the dedicated server
  and converted it to using the new Steampipe system. You can access
  the new version via Steampipe right now, it remains network compatible
 with older clients.

  To access the beta please follow the steamcmd instructions on our
  developer wiki, https://developer.valvesoftware.com/wiki/SteamCMD,
  Counter-Strike 1.6 dedicated server is currently available as appid
  90 (and will continue to use this appid after full release).

  The changes in this version are numerous (and some fixes are still
  in progress, I am looking at you redirect 

Re: [hlds_linux] Counter-Strike 1.6 beta server update

2013-02-11 Thread John
That isn't accurate anyhow. AMD CPUs can run at 1000 just fine. On 
Linux, it takes having hires timers, which every modern kernel supports; 
on Windows, it requires Win2k8+ and having HPET enabled.


Also important to note is that sys_ticrate must actually be set higher 
than 1000 in order to obtain a realized FPS of 1000. You could use 0 or 
1, for instance.


-John

On 2/11/2013 2:29 PM, AnAkIn wrote:

Considering anything over 100 is pointless, why would you want this?


2013/2/11 px p...@i.kiev.ua


Hello, Alfred.

Taking about frame rate, in this article
https://support.steampowered.com/kb_article.php?ref=5386-HMJI-5162
stated:
If  you  set sys_ticrate (HLDS) or fps_max (SRCDS) to 1000, most Intel
CPUs  running  on  Intel  chipsets  will run the full 1000fps (plus or
minus  a  few).  AMD  CPUs  and  Intel  CPUs  on non Intel motherboard
chipsets may only run at 500FPS with a setting of 1000.

Can this limit be removed?



___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlds_linux


[hlds_linux] L4D2 Worshop and server optimization questions

2013-02-11 Thread Michael Strickland
 As the subject would imply, I am not sure about how to get L4D2 workshop
campaigns on my dedicated server.  Also I was curious as to how the -fork
flag helps as I have not seen it reduce the consumed memory. Lastly, I was
curious if there is anything I can do to keep my servers high in the
matchmaking list.
Thanks in advance,
Michael
___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlds_linux


Re: [hlds_linux] Overlapping port usage when running multiple servers on one machine

2013-02-11 Thread Rudy Bleeker
As Jesse pointed out attachments aren't allowed on the list, so here
it is inline. Indenting and linewrapping will probably screw it up,
but you're smart people so you'll figure it out ;-)

#!/bin/bash

## Set umask to give replay files the correct permissions
umask 0022

## Set the shell to evaluate patterns case-insensitive
shopt -s nocasematch

## First locate the screen program
SCREEN=`which screen`

## Determine where on the filesystem we are
BASE_DIR=`pwd`
SERVER_BIN=$BASE_DIR/srcds_linux
SERVER_SCRIPT=$BASE_DIR/srcds_run
DEFAULT_PORT=27015 ## This is the default SRCDS port

PS3=Please choose a gamemode from the list: 

## Some extra options we want to pass on to the server
OPTIONS=-replay -nohltv # -strictportbind

## Check if the SRCDS binary actually exists
## and is executable for the current user
if [[ ! -x ${SERVER_BIN} ]]  [[ ! -x ${SERVER_SCRIPT} ]]
then
echo SRCDS installation missing or not executable, exiting
exit 1
fi

gamemenu () {
case ${gamemode} in
ar*)
GAMEMODE=arena
;;
a*d*|att*)
GAMEMODE=ad
;;
c*t*f*)
GAMEMODE=ctf
;;
c*p*)
GAMEMODE=cp
;;
k*o*t*h*)
GAMEMODE=koth
;;
m*v*m*|m*u*)
GAMEMODE=mvm
;;
p*l*)
GAMEMODE=pl
;;
s*d*)
GAMEMODE=sd
;;
ha*|ev*)
GAMEMODE=halloween
;;
*)
GAMEMODE=vanilla
;;
esac
}

## Start the gamemode specified on the command line or as a user selection
if [[ -z $1 ]]
then
echo Possible gamemodes on this server are:
# select gamemode in arena attack-defend capture-the-flag
controlpoints king-of-the-hill mann-vs-machine payload
special-delivery halloween vanilla
select gamemode in Arena Attack/Defend Capture the Flag Control \
Points King of the Hill Mann vs. Machine Payload Special \
Delivery Halloween Vanilla
do gamemenu
   break
done
else
gamemode=$1
gamemenu
fi

## Autoupdate defaults to NO, since we don't want multiple update
## processes running on the server installation at the same time.
## Autoupdate also prevents the PID file from being removed properly
## at server shutdown because of the automatic restart.
echo -n Update the server before starting? [y/N]: 
read -n 1 -s -t 3 update
update=${update:=no}
echo ${update}

if [[ $update == y* ]] #|| [[ -z $update ]]
then
OPTIONS=-autoupdate $OPTIONS
fi

## We want to check for running instances, select an available portnumber,
## then add the -replayserverdir $port variable so replays won't overwrite
## eachother, and also register a unique server ID with the master servers
## and put logs in a seperate folder for each running instance
port=${DEFAULT_PORT}

while [ -e ${BASE_DIR}/${port}.pid ]
do
port=$((${port} + 10 ))
done

## Check if there is an identity file for the server instance we're about
## to start and print a warning if it doesn't
if [ ! -r ${BASE_DIR}/tf/cfg/server_${port}.cfg ]
then
echo Server identity file not found, configuration
echo is not optimal for Quickplay matchmaking
CONFIGFILE=server.cfg
else
CONFIGFILE=server_${port}.cfg
fi

echo Starting the server ${SERVER_SCRIPT}
  on port ${port} in 5 seconds, last chance to abort by pressing CTRL-C
sleep 5

## Reset the shell to evaluate patterns case-sensitive again
shopt -u nocasematch

$SCREEN -A -U -d -m -S tf2-${port}-${GAMEMODE} -t TeamFortress2 \
${SERVER_SCRIPT} ${OPTIONS} -port ${port} -pidfile \
${BASE_DIR}/${port}.pid -replayserverdir ${port} +servercfgfile \
${CONFIGFILE} +exec ${GAMEMODE}.cfg +randommap

On Mon, Feb 11, 2013 at 11:23 PM, Jesse Molina je...@opendreams.net wrote:

 No attachments allowed.  Use pastbin and share your script that way.




 Rudy Bleeker wrote:

 I've attached the bash script that I've used and improved upon for
 years now to start my TF2 servers. It assumes there's a servercfgfile
 named server_portnumber.cfg that contains the settings specific for
 that instance, for example your server identity and logdir. It starts
 the first server on port 27015 and works it's way up in increments of
 10.

 Using the -strictportbind option just makes the server quit (and
 restart over and over if autoupdate is set) if one or more of the
 ports it wants to use is unavailable, instead of just picking a higher
 portnumber. For that reason I stopped using it, since I let the server
 assign all other ports by itself.

 If anyone has any comments, questions or suggestions about my script
 feel free to ask.

 On Sun, Feb 10, 2013 at 6:11 AM, Landon Orr lando...@gmail.com wrote:

 Alright, so I've disabled sourcetv and set the client port, that seems to
 have cleared it up. I'm working on a script that will start multiple
 servers, and have the server's ports be in intervals of 5. Here's the
 command I'm using to start them, it's been working great so far but let
 me
 know if you guys have any suggestions.

 ./srcds_run -game tf -autoupdate -steambin /home/tf2user/hlds/steam
 -maxplayers 32 -port 27015 -nohltv +clientport 27115 +map mvm_coaltown
 +servercfgfile mvmserver1.cfg +motdfile mvmmotd.txt +mapcyclefile
 mvmmapcycle.txt

 I specify the maplist, mapcycle and motd files as I have different
 

Re: [hlds_linux] Counter-Strike 1.6 beta server update

2013-02-11 Thread Ejziponken -

What is sv_maxrate defaults? If its 30k then how will 100k change that? :S

 From: alf...@valvesoftware.com
 To: h...@list.valvesoftware.com; hlds_linux@list.valvesoftware.com; 
 hlds_annou...@list.valvesoftware.com
 Date: Mon, 11 Feb 2013 21:20:21 +
 Subject: Re: [hlds_linux] Counter-Strike 1.6 beta server update
 
 We have another update, changes are:
 - fixed hltv demos being corrupted
 - fixed downloading of custom sprays from users
 - increased max rate to 100k (sv_min/maxrate still apply and defaults for 
 them are unchanged)
 - changed timing function to call clock_gettime(), this should cause more 
 stable frame rates
 
 
 As a reminder the plan is to make this the public release later this week, 
 and that update will be required.
 
 -Original Message-
 From: hlds-boun...@list.valvesoftware.com 
 [mailto:hlds-boun...@list.valvesoftware.com] On Behalf Of Alfred Reynolds
 Sent: Friday, February 08, 2013 3:03 PM
 To: h...@list.valvesoftware.com; Half-Life dedicated Linux server mailing 
 list (hlds_linux@list.valvesoftware.com); hlds_annou...@list.valvesoftware.com
 Subject: Re: [hlds] Counter-Strike 1.6 beta server update
 
 We have another update, changes are:
 - fixed hltv being unable to record demos under Linux
 - fixed dedicated servers listing as a listen server
 - (partially) fixed hltv listing on the master servers (you need a client 
 update plus we need to do a server update to totally fix this)
 
 
 
 -Original Message-
 From: hlds-boun...@list.valvesoftware.com 
 [mailto:hlds-boun...@list.valvesoftware.com] On Behalf Of Alfred Reynolds
 Sent: Thursday, February 07, 2013 10:41 AM
 To: Half-Life dedicated Linux server mailing list 
 (hlds_linux@list.valvesoftware.com); h...@list.valvesoftware.com; 
 hlds_annou...@list.valvesoftware.com
 Subject: Re: [hlds] Counter-Strike 1.6 beta server update
 
 We have another update, changes are:
 - fixed hltv failing to launch
 
 
 -Original Message-
 From: hlds_linux-boun...@list.valvesoftware.com 
 [mailto:hlds_linux-boun...@list.valvesoftware.com] On Behalf Of Alfred 
 Reynolds
 Sent: Friday, February 01, 2013 2:07 PM
 To: h...@list.valvesoftware.com; Half-Life dedicated Linux server mailing 
 list (hlds_linux@list.valvesoftware.com); hlds_annou...@list.valvesoftware.com
 Subject: Re: [hlds_linux] Counter-Strike 1.6 beta server update
 
 We have released an update to this beta. This update includes 1.6 server 
 changes so you should update.
 
 Fixes include:
 - Fixed failing to launch on old OS distributions (I am looking at you 
 FreeBSD emu layer)
 - Fixed flashbang causing mp_fadetoblack to be ignored
 
 
 
 -Original Message-
 From: hlds-boun...@list.valvesoftware.com 
 [mailto:hlds-boun...@list.valvesoftware.com] On Behalf Of Alfred Reynolds
 Sent: Thursday, January 31, 2013 1:39 PM
 To: Half-Life dedicated Linux server mailing list 
 (hlds_linux@list.valvesoftware.com); h...@list.valvesoftware.com; 
 hlds_annou...@list.valvesoftware.com
 Subject: Re: [hlds] Counter-Strike 1.6 beta server update
 
 We have released an update to this beta. This update includes some good CS 
 1.6 server changes so you should update.
 
 Fixes include:
 - Fixed rotating objects stopping after some period in a map
 - Fixed potential upload exploit that let a client put a new file on your 
 server (they could not touch/replace existing files)
 - Fixed respawn bug in CS 1.6 if you died from drowning
 
 
 I've got more CS 1.6 fixes planned, we are keeping track of the bugs over at 
 https://github.com/ValveSoftware/steam-for-linux/issues so report things you 
 want fixed (and features within reason).
 
 - Alfred
 
 -Original Message-
 From: hlds_linux-boun...@list.valvesoftware.com 
 [mailto:hlds_linux-boun...@list.valvesoftware.com] On Behalf Of Alfred 
 Reynolds
 Sent: Monday, January 28, 2013 3:29 PM
 To: h...@list.valvesoftware.com; hlds_annou...@list.valvesoftware.com; 
 Half-Life dedicated Linux server mailing list 
 (hlds_linux@list.valvesoftware.com)
 Subject: [hlds_linux] Counter-Strike 1.6 beta server
 
 We have begun testing of Half-Life and Counter-Strike 1.6 on OSX and Linux. 
 In support of this we have updated the dedicated server and converted it to 
 using the new Steampipe system. You can access the new version via Steampipe 
 right now, it remains network compatible with older clients.
 
 To access the beta please follow the steamcmd instructions on our developer 
 wiki, https://developer.valvesoftware.com/wiki/SteamCMD, Counter-Strike 1.6 
 dedicated server is currently available as appid 90 (and will continue to use 
 this appid after full release).
 
 The changes in this version are numerous (and some fixes are still in 
 progress, I am looking at you redirect servers). Under Linux we have 
 moved forward to GCC 4.6 (from 2.95, heh) and are using a newer OS toolchain, 
 so please do test these binaries on your machine.
 
 - Alfred
 
 ___
 To unsubscribe, 

Re: [hlds_linux] L4D2 Worshop and server optimization questions

2013-02-11 Thread ics
L4D2 does't support the CSGO method of adding campaigns to servers, so 
you have to download them yourself and then move to gameserver addons 
directory. Or wget them to the server, if you find any location that 
offers direct download.


-ics

Michael Strickland kirjoitti:

  As the subject would imply, I am not sure about how to get L4D2 workshop
campaigns on my dedicated server.  Also I was curious as to how the -fork
flag helps as I have not seen it reduce the consumed memory. Lastly, I was
curious if there is anything I can do to keep my servers high in the
matchmaking list.
Thanks in advance,
Michael
___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlds_linux



___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlds_linux