Raised This Month: $12 Target: $400
 3% 

Nemrun for SteamCMD Linux


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 06-17-2013 , 16:06   Nemrun for SteamCMD Linux
Reply With Quote #1

So, a few people have been bugging me to release my updated version of Nemrun for SteamCMD... so here it is.

This is based on Nemrun 1.8.7.

The new (required) parameters are actually the same ones the server uses with its newer -autoupdate support:
-steam_dir - The directory steamcmd lives in. Replaces -steamdir which was for hldsupdatetool.
-steamcmd_script - The steamcmd script to run. Relative paths are treated as relative from the steam_dir.

Note: This includes srcdsupdatecheck from Nemrun 1.8.7.

Edit: I wonder if the reason Nephyrin didn't update this for SteamCMD himself is because he now works for Valve.
Attached Files
File Type: zip nemrun-steamcmd.zip (13.6 KB, 636 views)
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 01-22-2016 at 19:20. Reason: Added link to NemRun 1.8.7
Powerlord is offline
Smarmy
Senior Member
Join Date: Mar 2012
Old 06-17-2013 , 16:35   Re: Nemrun for SteamCMD Linux
Reply With Quote #2

Thanks.
Smarmy is offline
moxie2020
Veteran Member
Join Date: Aug 2011
Old 07-03-2013 , 19:08   Re: Nemrun for SteamCMD Linux
Reply With Quote #3

Quote:
Originally Posted by Powerlord View Post
So, a few people have been bugging me to release my updated version of Nemrun for SteamCMD... so here it is.

This is based on Nemrun 1.8.7.

The new (required) parameters are actually the same ones the server uses with its newer -autoupdate support:
-steam_dir - The directory steamcmd lives in. Replaces -steamdir which was for hldsupdatetool.
-steamcmd_runscript - The steamcmd script to run. Relative paths are treated as relative from the steam_dir.

Note: This includes srcdsupdatecheck from Nemrun 1.8.7.
Thank you again. Totally rocks.
moxie2020 is offline
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 07-11-2013 , 19:25   Re: Nemrun for SteamCMD Linux
Reply With Quote #4

Does anyone have any clue why SteamCMD won't update steam.inf on my servers? (That's plural, it's happening on all three systems). steam.inf won't update with the new version number so nemrun never restarts the servers to update.
__________________
Dr. McKay is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 07-11-2013 , 19:28   Re: Nemrun for SteamCMD Linux
Reply With Quote #5

Quote:
Originally Posted by Dr. McKay View Post
Does anyone have any clue why SteamCMD won't update steam.inf on my servers? (That's plural, it's happening on all three systems). steam.inf won't update with the new version number so nemrun never restarts the servers to update.
No idea. It appears to be working on my Prop Hunt server, although I've noticed that the -cleandownloads option doesn't seem to work any more... I should probably fix that.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 07-11-2013 at 19:33.
Powerlord is offline
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 08-19-2013 , 19:53   Re: Nemrun for SteamCMD Linux
Reply With Quote #6

I just realized that I never gave my solution...

SteamCMD wasn't updating my steam.inf file so nemrun never thought the server was fully updated. To fix it, I had to switch my user-relative path (~/tfserver) to an absolute path (/home/user/tfserver).
__________________

Last edited by Dr. McKay; 08-19-2013 at 19:53.
Dr. McKay is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 11-01-2013 , 10:24   Re: Nemrun for SteamCMD Linux
Reply With Quote #7

Two things:

I just noticed the first post had the command listed as -steamcmd_runscript. It's actually -steamcmd_script.

I also want to post the command lines I use with nemrun_steamcmd to give people an idea of how it works, at least if you use it in its update daemon mode.

For TF2, my update daemon is running like this:

Code:
#!/bin/bash
# Source Dedicated Server Init Script for Nemrun

# Server options
NAME='updater'                          # Server handle for the screen session
STEAM='/home/tf2/tf2'             # Path to STEAM installation
USER='tf2'

STEAM_DIR='../steamcmd'
STEAMCMD_SCRIPT='tf2update.txt'
SHARED_SCREENS='tf2'
cd $STEAM

screen -d -m -U -S $NAME ./nemrun-steamcmd \
-nemlog "runlogs/updater_%Y%m%d%H%M%S.log" \
-cleandownloads 10 -autoupdate -steam_dir $STEAM_DIR \
-steamcmd_script $STEAMCMD_SCRIPT -sharedscreens $SHARED_SCREENS -updatefirst \
\
-game tf -updatedaemon
My game server is running like this:

Code:
#!/bin/bash
# Source Dedicated Server Init Script for Nemrun

# Server options
NAME='tf2'                              # Server handle for the screen session
DAEMON='srcds_run'                      # The server daemon
STEAM='/path/to/server'            # Path to STEAM installation
USER='tf2'

# Game options
IP='1.2.3.4'                             # IP of the server
PORT='27015'                            # Port number to use
MAP='plr_hightower_event'                 # Initial map to start
MAPCYCLE='mapcycle_halloween.txt'
GAME='tf'                               # Game type (tf|cstrike|valve|hl2mp)
SIZE='24'                               # Maximum number of players
CONFIGFILE='server-halloween.cfg'        # Config file to use in cfg directory
SOURCEMOD='addons/sourcemod-halloween'
MOTDFILE='motd-halloween'

cd $STEAM

# Server options string
OPTS="-game $GAME +map $MAP -ip $IP -port $PORT \
    +maxplayers $SIZE +sv_pure 1 +mapcyclefile $MAPCYCLE \
    +servercfgfile $CONFIGFILE -strictportbind +sm_basepath $SOURCEMOD \
    +motdfile ${MOTDFILE}.txt +motdfile_text ${MOTDFILE}_text.txt \
    -replay"

screen -d -m -U -S $NAME ./nemrun-steamcmd \
-nemlog "runlogs/tf2_%Y%m%d%H%M%S.log" \
-corefile "cores/tf2_%Y%m%d%H%M%S.core" \
\
$OPTS
Note that cleandownloads is actually broken at the moment... I need to take the time to fix it at some point.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 11-01-2013 at 10:28.
Powerlord is offline
Blackglade
Senior Member
Join Date: Jul 2012
Location: NYC
Old 11-12-2013 , 19:57   Re: Nemrun for SteamCMD Linux
Reply With Quote #8

Is this still supported (meaning does it work) and err does it have all the features that the original Nemrun with running multiple servers off 1 installation and auto updating...?

Last edited by Blackglade; 11-12-2013 at 19:58.
Blackglade is offline
eric0279
AlliedModders Donor
Join Date: May 2007
Old 07-09-2014 , 22:09   Re: Nemrun for SteamCMD Linux
Reply With Quote #9

Hi,

where is emailTheAdmins.sh and notifyadmins.sh?
eric0279 is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 07-10-2014 , 09:52   Re: Nemrun for SteamCMD Linux
Reply With Quote #10

Quote:
Originally Posted by Blackglade View Post
Is this still supported (meaning does it work) and err does it have all the features that the original Nemrun with running multiple servers off 1 installation and auto updating...?
Not sure how I never replied to this, but this should still be operational and I still use it on my Linux TF2 server.

Quote:
Originally Posted by eric0279 View Post
Hi,

where is emailTheAdmins.sh and notifyadmins.sh?
Those have never actually been shipped with NemRun... you actually have to write them yourself.

There are reasons for this...
1. notifyadmins.sh doesn't specify how to contact the admins.
2. emailTheAdmins.sh would need to be written differently depending on how your server is set up... if it has a sendmail binary (installed by most mail servers) it could use that, but otherwise it'd have to talk SMTP directly with a remote mail server.

Also, just because it has a .sh extension doesn't strictly mean it's a shell script... it could be written in perl or python and passed the perl/python interpreter on the first line (the shebang line).
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
Reply


Thread Tools
Display Modes

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 05:45.


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