SourceForts

SourceForts (http://www.sourceforts2.com/boards/)
-   Help & Support (http://www.sourceforts2.com/boards/f13/)
-   -   Multiple Errors Creating SF Dedicated Linux Server (http://www.sourceforts2.com/boards/f13/multiple-errors-creating-sf-dedicated-linux-server-14232.html)

sr8472 02-20-2012 11:59 AM

Multiple Errors Creating SF Dedicated Linux Server
 
Hi All!

I'm wondering if someone might be able to provide any help on setting up a dedicated sourceforts server on Linux.

I've followed:
SourceForts - A Half-Life 2 Modification
http://www.sourcefortsmod.com/boards...edi-13743.html

as well as various other tutorials. I'm at the stage where I can create and connect to a HL2MP server, but sourceforts is still giving me troubles. :(

I run the command:
Code:

./srcds_run -console -game sourceforts +map sf_crete +maxplayers 16 +exec server.cfg
and I get the following (shortened) terminal output:
Code:

Auto detecting CPU
Using default binary: ./srcds_linux
Server will auto-restart if there is a crash.
Running a benchmark to measure system clock frequency...
Finished RDTSC test. To prevent the startup delay from this benchmark, set the environment variable RDTSC_FREQUENCY to 2261.000000 on this system. This value is dependent upon the CPU clock speed and architecture and should be determined separately for each server. The use of this mechanism for timing can be disabled by setting RDTSC_FREQUENCY to 'disabled'.
Using breakpad minidump system
Using breakpad crash handler

Console initialized.
ConVarRef mat_dxlevel doesn't point to an existing ConVar
Game.dll loaded for "Half-Life 2 Deathmatch"
Setting breakpad minidump AppID = 320
Forcing breakpad minidump interfaces to load
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
Installing breakpad exception handler for appid(320)/version(4833)
CSoundEmitterSystem::AddSoundsFromFile:  No such file scripts/level_sounds_e3_c17.txt

... more missing/failed to load components ...

Failed to load $include VMT file (materials/METAL/METALROOF006A.vmt)
Failed to load $include VMT file (materials/METAL/METALROOF006A.vmt)
Model models/props_combine/weaponstripper.mdl not found and models/error.mdl couldn't be loadedModel models/props_combine/weaponstripper.mdl not found and models/error.mdl couldn't be loaded
PreMinidumpCallback: updating dump comment
Uploading dump (in-process) [proxy '']
/tmp/dumps/crash_20120220062135_1.dmp
success = yes
response:  CrashID=bp-7517da4f-7dc8-4825-bf3a-e4a592120220

Add "-debug" to the ./srcds_run command line to generate a debug.log to help with solving this problem
Mon Feb 20 06:21:36 EST 2012: Server restart in 10 seconds


I've probably done something stupid (or rather missed out a vital command)... Help me SourceForts forums, you're my only hope!

Az 02-20-2012 01:35 PM

this is way old: SourceForts - A Half-Life 2 Modification
but the 2nd link should work. what's your folder structure?

sr8472 02-20-2012 06:26 PM

Thanks for getting back to me Az.

You're right, the second link is the one that works. After your response I decided to follow it word for word from scratch. I must have missed a step or been using the wrong srcds_run command.

It now starts the server, but seems to completely ignore my +exec server.cfg (it does say "Executing dedicated server config file", but doesn't have the name test server like I've told it to when searching for servers on SF).

When I try to join the server it tells me that "Your version does not match the servers".

If you have any further advice for a n00b I'd welcome it.

Az 02-20-2012 07:09 PM

Hey
you don't need to have +exec server.cfg, the server.cfg is loaded automatically when the server starts.

The server name is changed in the build.cfg and combat.cfg (when the phase is toggled, the build.cfg or combat.cfg is loaded)

sr8472 02-20-2012 07:56 PM

Thanks Az for your help in getting the server up and running. :) It does run so I'll have a play with the rest. I don't suppose there's anywhere with any detailed documentation? I expect I'll just have to hack around and see how far I get.

Errors still present:
- I have a load of missing textures
- I get the message "your version does not match the servers, please restart the game" (I presume is linked to Az's comment about the Linux Binaries needing fixed: http://www.sourcefortsmod.com/boards...0-a-13736.html )

You can bypass the version does not match error by connecting using the in-game console by pressing "`" and typing connect followed by our server's IP address eg:
Code:

connect 123.123.123.123

For those wanting to setup a dedicated SourceForts server on Linux (I'm running Debian, but it's basically the same for any distro) should follow Az's post here:
http://www.sourcefortsmod.com/boards...edi-13743.html


The steps I took to install the server and get it working are outlined below, but are essentially the same as the link above.

1. Login to the server as Root (or a user with sudo access), using putty if you're on windows

2. I wanted to keep my steam server seporate from the rest of the server so created a new user:
Code:

useradd steam_server
3. I then created a new home directory for that user, to store all the game files
Code:

mkdir /home/steam_server
4. Since I want everything to be contained in that folder I'll change directory to it.
Code:

cd /home/steam_server
5. I then started following Az's guide linked above. Download the hlds update tool from steam:
Code:

wget http://www.steampowered.com/download/hldsupdatetool.bin

6. Change the permissions of the downloaded file to allow it to be executed.
Code:

chmod 755 hldsupdatetool.bin
OR
Code:

chmod +x hldsupdatetool.bin
7. Run the program, when prompted type "yes" to accept the terms and conditions
Code:

./hldsupdatetool.bin
8. run the steam installer
Code:

./steam
9. Install the game engines required...
Code:

./steam -command update -game "episode1" -dir .
Code:

./steam -command update -game "hl2mp" -dir .
10. Important
For those as blind as me, it's important that you copy the hl2mp directory out of the orange box folder. I'll demonstrate using absolute paths, just so it's blindingly obvious:
Code:

cp -R /home/steam_server/orangebox/hl2mp /home/steam_server/
This is copying recursively (as in the folder and all sub directories) the hl2mp folder and putting it in the home directory of the user I created called steam_server.


11. ownership and permissions
Before testing the server, I'd strongly recommend changing the ownership of the steam_server home folder. At the moment, the command
Code:

ls -la /home/steam_server
will return a list of files with ownership set as root (I've picked a single folder out of the list to demonstrate, you'll have lots of entires appear:
Code:

drwxr-xr-x 13 root root    4096 Feb 19 16:42 hl2m
I want steam_server to own the files, not root so I run:
Code:

chown steam_server:steam_server /home/steam_server -R
This makes steam_server the owner and group-owner of everything under the steam_server directory.
[EDIT]
12. switch user to the steam_server account, don't run the thing as root!
Code:

su steam_server
[/EDIT]

13. Test the server. The command I use to get it going is:
Code:

./srcds_run -console -game sourceforts +map sf_crete +maxplayers 16
14. Change the server name by editing the sourceforts/cfg/build.cfg and sourceforts/cfg/combat.cfg files as Az has said above.


All times are GMT +1. The time now is 04:33 AM.

Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.6.0