AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Source Servers (SRCDS) (https://forums.alliedmods.net/forumdisplay.php?f=130)
-   -   Source Dedicated Server for Mac OS X (https://forums.alliedmods.net/showthread.php?t=158240)

DS 06-02-2011 02:48

Source Dedicated Server for Mac OS X
 
14 Attachment(s)
Since Valve has decided not to release SrcDS for OS X, I took things into my own hands.

I noticed that a "dedicated.dylib" binary was included for most available Source engine games. This binary is what handles the logic for dedicated servers. I hoped that I could do something with it and I have -- but not without a lot of hacks.

My primary motivation for this was to make testing easier (for Metamod:Source and SourceMod). I find it nice to be able to develop and test without needing to run the full games on listen servers. This also has the advantage of being able to run inside a virtual machine that lacks the necessary hardware acceleration.

Hopefully someone else out there will find this useful. If you have any problems or questions, feel free to post them.

Download
Requirements
  • macOS 10.9 or later
  • One of the supported games listed below

Supported Games
  • Counter-Strike: Global Offensive
  • Counter-Strike: Source
  • Day of Defeat: Source
  • Day of Infamy
  • Garry's Mod
  • Half-Life Deathmatch: Source
  • Half-Life 2: Deathmatch
  • Insurgency
  • Left 4 Dead
  • Left 4 Dead 2
  • Nuclear Dawn
  • Source SDK Base 2013 Multiplayer Mods
  • Team Fortress 2

Source Code
Special Thanks
  • pRED: Created CDetour
  • psychonic: Checked dyld symbols on version 10.5 and tested under virtual machine
  • Fyren: Pasted some vital output from srcds and gdb on Linux
  • Open Steamworks
  • Udis86 by Vivek Thampi

General Guidelines

There are essentially two options for running a server. You could run it directly from the game's install directory in SteamApps (usually ~/Library/Application Support/Steam/SteamApps/common/<game>). Or you may opt to have a separate copy of the game by copying it either from the SteamApps/common directory or from a SteamCMD install.

Once you have downloaded the package, place the srcds-cli.bundle and srcds.sh files from it into the server's root directory.

Counter-Strike: Source Example
  • Note: The Library folder may be hidden in Finder by default. To get there you can either use Finder's Go menu while holding the Option/Alt key or you can unhide it semi-permanently it by running the following Terminal command:
    Quote:

    chflags nohidden ~/Library
    You may have to reapply this nohidden flag after a macOS update.

Once the files from the package have been extracted/copied, you can run the server by navigating to the server root directory in Terminal:
Quote:

cd ~/Library/Application\ Support/Steam/SteamApps/common/Counter-Strike\ Source/
Then you can start the server by running srcds.sh with the game name, map, and any other options you'd like:
Quote:

./srcds.sh -game cstrike +map de_dust -maxplayers 16 +log on
Example Server Output

Extra Command Line Options of Note
  • -32 : Force the 32-bit version of the dedicated server to run instead of the 64-bit one. This option currently only applies to Day of Infamy.
  • -nosteamupdate : Disable automatic download and updating of Steam libraries. It is highly recommended NOT to use this unless you are having problems or Steam download servers are down.
  • -noupdate : Disable automatic update of srcds binaries. It is highly recommended NOT to use this unless you are having problems or are stuck on "Checking for srcds updates..."
  • -steambeta : Switch to beta branch for Steam libraries. Much like you can switch your Steam client to opt into the beta version, you can also use the beta version of Steam libraries with your server. Unless you having problems or there is something specific you need from the beta version, you probably don't want this either.
Note on Counter-Strike: Global Offensive

The game is now 64-bit on macOS. The latest development builds of Metamod:Source and SourceMod will run on this.

Note on Insurgency

You may use the client install of the game to run a server, but Mac binaries are also included in the dedicated server install. You can download this by using steamcmd with appid 237410. Alternatively, you can get it in the Tools section of the Steam client where it's currently labeled Insurgency Dedicated Server.

Notes on Day of Infamy

Like Insurgency, you may use the client install of the game to run a server, but Mac binaries are also included in the dedicated server install. You can download this using steamcmd and appid 462310.

Also note that a 64-bit version of this now exists and is the one that runs by default. Metamod:Source and SourceMod currently do not run on this, but they should in the near future. So if you need to continue running the 32-bit version, make sure you add -32 to your command line.

asherkin 06-02-2011 02:56

Re: Source Dedicated Server for Mac OS X
 
Nice work DS!

GoD-Tony 06-10-2011 03:35

Re: Source Dedicated Server for Mac OS X
 
Wow this is very nice. You should sticky this in the SRCDS section so it doesn't get lost. :)

DS 06-15-2011 01:34

Re: Source Dedicated Server for Mac OS X
 
I had some time to test this on Lion (10.7) and found that it didn't work at all. There was also a problem when using the latest Steam client beta along with the -steam option on Orange Box/Source 2009 games.

Both problems have now been fixed. The source code and binaries have been updated.

It should also be noted that SourceMod will likely crash when trying to resolve symbols on Lion due to a very similar issue. I hope to have a fix for that tomorrow.
The ResolveSymbol() crash should be fixed as of 1.4-hg3296.

KyleS 06-21-2011 16:50

Re: Source Dedicated Server for Mac OS X
 
Great work!

While I realize this may seem like a silly request, but is there any chance this could be ported to Linux? I'd much rather run as much open source code as I can. While I'd like to do it myself, it would probably result in an unfinished/unstable product.

DS 06-21-2011 17:07

Re: Source Dedicated Server for Mac OS X
 
Quote:

Originally Posted by KyleS (Post 1493081)
While I realize this may seem like a silly request, but is there any chance this could be ported to Linux?

This would be a pretty easy thing to do since there would be no hacks required, but keep in mind, it'd only be a replacement for the srcds_linux binary. So I don't really see much point in it.

It's not as though I re-implemented the dedicated lib or any of the others for OS X. I only made use of the existing libraries with a few hacks thrown in to make it work.

KyleS 06-22-2011 02:51

Re: Source Dedicated Server for Mac OS X
 
I know nothing has been rewritten gamewise. I'm more after inner binary loading instead of using LD_PRELOAD which has some marginal overhead per call.

I love customization :P

neo_gis 07-17-2011 15:45

Re: Source Dedicated Server for Mac OS X
 
thx a lot for this ! saved me the trouble of running srcds through parallels ...

oday91 07-19-2011 11:04

Re: Source Dedicated Server for Mac OS X
 
nice

ajstorey915 08-09-2011 17:59

Re: Source Dedicated Server for Mac OS X
 
I am trying to use this dedicated server by adding to my current Steam CS:S installation and I cannot get it to work correctly. I am running 10.7.

When I try and start the server I get the following error.

##### Sys_Error: Host_Error: IDLLFunctions::DLLInit returned false

DS 08-14-2011 22:02

Re: Source Dedicated Server for Mac OS X
 
Quote:

Originally Posted by ajstorey915 (Post 1529214)
##### Sys_Error: Host_Error: IDLLFunctions::DLLInit returned false

I've not been able to reproduce this on 10.7 (or even 10.6).

However, I did start getting a crash that I don't think is related. I've updated the packages linked in the first post with a fix for that. It might be worth giving that a try.

If that still doesn't work, make sure you've got a recent copy of the engine binaries extracted (the bin directory). Depending on which Steam option you're using (A or B) either make sure the CS:S client has been run recently or extract a fresh set of files from the "multiplayer ob mac binaries" GCF file.

redacted 09-01-2011 04:11

Re: Source Dedicated Server for Mac OS X
 
I'm also getting the same error, trying with option A, all I get is,

./srcds_run -game cstrike -console +map de_dust2
Auto detecting CPU
Using OSX binary.
Server will auto-restart if there is a crash.
Using breakpad minidump system
Using breakpad crash handler

Console initialized.
Game.dll loaded for "Counter-Strike: Source"
Host_Error: IDLLFunctions::DLLInit returned false.


Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
found breakpad via in process memory: '/Applications/Steam.app/Contents/MacOS/osx32/../Frameworks/Breakpad.framework/Versions/A/Resources'
Installing breakpad crash handler

##### Sys_Error: Host_Error: IDLLFunctions::DLLInit returned false.
./srcds_run: line 376: 17970 Bus error $HL_CMD

DS 09-01-2011 14:54

Re: Source Dedicated Server for Mac OS X
 
For Steam options A or B, you need to add -steam to the command line.

Peterpants 10-31-2011 17:39

Re: Source Dedicated Server for Mac OS X
 
I'm trying out option A, and getting the following:

Code:

~/library/Application Support/Steam/SteamApps/xxxxxxxx/team fortress 2 $ ./srcds_run -game tf +map ctf_2fort -steam
Auto detecting CPU
Using OSX binary.
Server will auto-restart if there is a crash.
Failed to get steam client engine interface!
Add "-debug" to the ./srcds_run command line to generate a debug.log to help with solving this problem
Mon Oct 31 16:31:28 CDT 2011: Server restart in 10 seconds
^CMon Oct 31 16:31:31 CDT 2011: Server Quit

Anything significant changed over the past couple months?

I'm running OS X 10.7.2 with both Steam.app and SteamApps installed in their usual places.

I'll move on to option C next, but I figured I'd ask. Thanks so much for putting so much work into this!

DS 11-01-2011 07:39

Re: Source Dedicated Server for Mac OS X
 
Peterpants: Thanks for bringing this to my attention. The packages in the first post have been updated with a fix for this.

Peterpants 11-01-2011 09:55

Re: Source Dedicated Server for Mac OS X
 
Fantastic! Works like a charm. Thank you!

Peterpants 11-01-2011 17:25

Re: Source Dedicated Server for Mac OS X
 
So here's an odd one. Using method A, again, the TF2 server would advertise itself as game "tf" but with the game id set to 310 (in the udp server browser packet I found in a few places hex 36 01, representing 0x136 = 310), not 440 (0x1b8 or b8 01 in the packet) as it should be. As such, TF2 clients could not connect to it, being told they had the wrong game.

I found the ASCII string "310" in srcds_osx, and on a lark changed those three bytes to "440" and voila! TF2 works now.


Thought I'd report what I found, in case it was useful.

DS 11-02-2011 06:44

Re: Source Dedicated Server for Mac OS X
 
The reason 310 is being used is because that's the appid for the Source Dedicated Server tool on Steam. Setting it to 440 (or whatever the game id is) prevents the game client from running at the same time since Steam thinks it's already running. I guess this doesn't matter if you only care about running the server anyways, but some people like myself want to be be to run both for testing plugins or something.

That said, I was pretty sure connecting to the server was working before, but I guess something must have changed. I'll have to look into this more. Thanks for mentioning it!

DS 11-02-2011 07:49

Re: Source Dedicated Server for Mac OS X
 
It looks like I was able to come up with a solution more quickly than I anticipated. Packages have been updated once again. You should be able to run both the server and the client at the same time if you wish, but the correct appid should now be there as well.

There don't seem to be very many users of this, so I'm sorry if it seems like you're a guinea pig. Thanks again for telling me about it! :)

leekaiwei 11-03-2011 14:23

Re: Source Dedicated Server for Mac OS X
 
Can this server be accessed outside of the LAN?

DS 11-03-2011 14:40

Re: Source Dedicated Server for Mac OS X
 
Yes, it should be accessible to the outside world as long as your router or firewall settings allow it.

leekaiwei 11-03-2011 14:46

Re: Source Dedicated Server for Mac OS X
 
Awesome. Thanks I'll give this a try.

leekaiwei 11-03-2011 20:11

Re: Source Dedicated Server for Mac OS X
 
Sorry but I'm still very new to Macs, where do I find my SteamApps folder?

DS 11-04-2011 22:21

Re: Source Dedicated Server for Mac OS X
 
You can find it under /Users/<username>/Library/Application Support/Steam.

If you're using Lion (10.7) though, the Library folder is hidden.

You can unhide this folder by running the following command in Terminal:
chflags nohidden ~/Library

OR

Open Finder's "Go" menu, hold the Option key and click the entry for Library.

leekaiwei 11-05-2011 12:51

Re: Source Dedicated Server for Mac OS X
 
Ahh thanks. Thought it was weird that I couldn't find it. Also, there doesn't seem to be a steamclient.dylib in the GCF file.

asherkin 11-05-2011 12:52

Re: Source Dedicated Server for Mac OS X
 
Quote:

Originally Posted by leekaiwei (Post 1590663)
Also, there doesn't seem to be a steamclient.dylib in the GCF file.

It's in the Steam folder.
steam_api.dylib loads steamclient.dylib from the Steam install.

leekaiwei 11-05-2011 13:55

Re: Source Dedicated Server for Mac OS X
 
Quote:

Originally Posted by asherkin (Post 1590665)
It's in the Steam folder.
steam_api.dylib loads steamclient.dylib from the Steam install.

I still can't find it, even when using the search bar.

Classified 12-06-2011 14:51

Re: Source Dedicated Server for Mac OS X
 
Last login: Tue Dec 6 21:48:32 on ttys002
Mac-Mini:~ Svens$ /Users/Svens/Library/Application\ Support/Steam/SteamApps/mod_raich/counter-strike\ source/srcds_run ; exit;
ERROR: Invalid game type 'tf' sepecified.
Tue Dec 6 21:48:50 EET 2011: Server Failed

logout

[Process completed]

EDIT: SUCCESS! GOT IT WORKING ;)

You have to add -game gamename -map mapname -steam



This happens when i launch it.

Please step-by-step instructions ;)

And yeah, i am trying to use it for half-life 2 deathmatch

hasan.hossain44 01-08-2012 13:31

Re: Source Dedicated Server for Mac OS X
 
It is very useful for me.

al1alu 01-29-2012 13:21

Re: Source Dedicated Server for Mac OS X
 
Perfect! I love to my tests.

Quote:

MacBook-de-Ali:counter-strike source mrsal3h$ ./srcds_run -steam -game cstrike +map de_dust
Auto detecting CPU
Using OSX binary.
Server will auto-restart if there is a crash.
Using breakpad minidump system
Using breakpad crash handler

Console initialized.
Game.dll loaded for "Counter-Strike: Source"
Setting breakpad minidump AppID = 240
Forcing breakpad minidump interfaces to load
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
found breakpad via in process memory: '/Applications/Steam.app/Contents/MacOS/osx32/../Frameworks/Breakpad.framework/Versions/A/Resources'
Installing breakpad crash handler
maxplayers set to 32
No '-replayserverdir' parameter found - using default replay folder.
Replay: Creating thread pool...succeeded.
Replay: Starting thread pool with 4 threads...succeeded.
Cleaning files from temp dir, "/Users/mrsal3h/Library/Application Support/Steam/SteamApps/al1alu/counter-strike source/cstrike/replay/server/tmp/" ...no files removed.
Unknown command "r_decal_cullsize"
WARNING: Port 27015 was unavailable - bound to port 27017 instead
WARNING: Port 27005 was unavailable - bound to port 27006 instead
WARNING: Port 27020 was unavailable - bound to port 27021 instead
Network: IP 192.168.0.111, mode MP, dedicated Yes, ports 27017 SV / 27006 CL
:D

shadow321337 02-20-2012 14:11

Re: Source Dedicated Server for Mac OS X
 
I'm trying to get this to work on OS X 10.7 Lion with Left 4 Dead 2. I have the server up and running, but it tends to crash a lot. It crashes every time you finish a level in a campaign. This is making it impossible to actually complete a campaign. It's also giving me a whole bunch of errors for missing files and such. I took the files from the 'common' folder in SteamApps, so it should contain all the files, right?

Also when I'm in a game, part-way through it will start giving the following error over and over until either the server crashes or a new map is loaded:

Quote:

threadtools.cpp (2683) : Assertion Failed: Failed to create thread (error 0xc)
Here is the console log that I get. [Edit: I updated it to show more information.]
Quote:

$ ./srcds_run
WARNING: No map specified! Defaulting to c1m1_hotel
Auto detecting CPU
Using OSX binary.
Server will auto-restart if there is a crash.
#Using breakpad minidump system
Using breakpad crash handler
#
#Console initialized.
#Game.dll loaded for "Left 4 Dead 2"
Server is hibernating
ConVarRef test_progression_loop doesn't point to an existing ConVar
[S_API FAIL] SteamAPI_Init() failed; ipcserver init failed .
[S_API FAIL] SteamAPI_Init() failed; unable to locate a running instance of Steam, or a local steamclient.dll.
Parent cvar in server.dll not allowed (spit_scaling_min_scale)
Game supporting (2) split screen players
maxplayers set to 18
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
Unknown command "mat_bloom_scalefactor_scalar"
Network: IP 192.168.1.3, mode MP, dedicated Yes, ports 27015 SV / 0 CL
---- Host_NewGame ----
Host_NewGame on map c1m1_hotel
L 02/20/2012 - 14:12:20: -------- Mapchange to c1m1_hotel --------
HTM MP enabler unable to enable respawn command
Executing dedicated server config file
Initializing Director's script
Couldn't find any entities named fire13_timer, which point_template fire13_template is specifying.
Couldn't find any entities named fire13_clip, which point_template fire13_template is specifying.
Couldn't find any entities named fire13_smoke, which point_template fire13_template is specifying.
Couldn't find any entities named fire13_fog_volume, which point_template fire13_template is specifying.
Couldn't find any entities named fire14_timer, which point_template fire14_template is specifying.
Couldn't find any entities named fire14_clip, which point_template fire14_template is specifying.
Couldn't find any entities named fire14_smoke, which point_template fire14_template is specifying.
Couldn't find any entities named fire14_fog_volume, which point_template fire14_template is specifying.
Couldn't find any entities named fire15_timer, which point_template fire15_template is specifying.
Couldn't find any entities named fire15_clip, which point_template fire15_template is specifying.
Couldn't find any entities named fire15_smoke, which point_template fire15_template is specifying.
Couldn't find any entities named fire15_fog_volume, which point_template fire15_template is specifying.
Couldn't find any entities named fire16_timer, which point_template fire16_template is specifying.
Couldn't find any entities named fire16_clip, which point_template fire16_template is specifying.
Couldn't find any entities named fire16_smoke, which point_template fire16_template is specifying.
Couldn't find any entities named fire16_fog_volume, which point_template fire16_template is specifying.
Couldn't find any entities named sound, which point_template fire_ballroom_07-template is specifying.
Couldn't find any entities named fire03-sound, which point_template fire03-template is specifying.
Couldn't find any entities named fire04-sound, which point_template fire04-template is specifying.
Couldn't find any entities named fire10-sound, which point_template fire10-template is specifying.
Couldn't find any entities named fire27-sound, which point_template fire27-template is specifying.
Couldn't find any entities named fire28-sound, which point_template fire28-template is specifying.
Couldn't find any entities named fire_ballroom_02-sound, which point_template fire_ballroom_02-template is specifying.
Couldn't find any entities named fire_ballroom_01-sound, which point_template fire_ballroom_01-template is specifying.
Couldn't find any entities named fire_ballroom_03-sound, which point_template fire_ballroom_03-template is specifying.
Couldn't find any entities named fire_ballroom_04-sound, which point_template fire_ballroom_04-template is specifying.
Couldn't find any entities named fire_ballroom_05-sound, which point_template fire_ballroom_05-template is specifying.
Couldn't find any entities named fire_ballroom_06-sound, which point_template fire_ballroom_06-template is specifying.
Couldn't find any entities named fire_ballroom_07-particles, which point_template fire_ballroom_07-template is specifying.
Couldn't find any entities named fire_ballroom_07-point1, which point_template fire_ballroom_07-template is specifying.
Couldn't find any entities named fire_ballroom_07-point3, which point_template fire_ballroom_07-template is specifying.
Couldn't find any entities named fire_ballroom_07-point5, which point_template fire_ballroom_07-template is specifying.
Couldn't find any entities named fire_ballroom_07-point6, which point_template fire_ballroom_07-template is specifying.
Couldn't find any entities named fire_ballroom_07-hurt, which point_template fire_ballroom_07-template is specifying.
Couldn't find any entities named fire_ballroom_07-sound, which point_template fire_ballroom_07-template is specifying.
Couldn't find any entities named fire_ballroom_08-sound, which point_template fire_ballroom_08-template is specifying.
Couldn't find any entities named fire_ballroom_09-sound, which point_template fire_ballroom_09-template is specifying.
Couldn't find any entities named fire_ballroom_10-sound, which point_template fire_ballroom_10-template is specifying.
Couldn't find any entities named fire_ballroom_11-sound, which point_template fire_ballroom_11-template is specifying.
Couldn't find any entities named inferno02-sound, which point_template inferno02-template is specifying.
prop_door_rotating has Door model (models/props_downtown/metal_door_112_dm03_01.mdl) with no door_options! Verify that SKIN is valid, and has a corresponding options block in the model QC file
prop_door_rotating has Door model (models/props_downtown/metal_door_112_dm03_01.mdl) with no door_options! Verify that SKIN is valid, and has a corresponding options block in the model QC file
WARNING: orator at 454 5671 2684 missing modelname
Attempting to precache model, but model name is NULL
Commentary: Loading commentary data from maps/c1m1_hotel_commentary.txt.
Initializing Director's script
[S_API FAIL] SteamAPI_Init() failed; ipcserver init failed .
Failed to load Steam Service
ServiceStart: failed to start
Setting breakpad minidump AppID = 550
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
Unknown command "sv_unlag"
Unknown command "sv_maxunlag"
Connection to Steam servers successful.
VAC secure mode is activated.
-> Reservation cookie 1860000372c78cb: reason ReplyReservationRequest
KQ: Error reading KQ:Bad file descriptor
---- Host_NewGame ----
Host_NewGame on map c1m1_hotel
L 02/20/2012 - 14:12:28: -------- Mapchange to c1m1_hotel --------
Executing dedicated server config file
Initializing Director's script
Couldn't find any entities named fire13_timer, which point_template fire13_template is specifying.
Couldn't find any entities named fire13_clip, which point_template fire13_template is specifying.
Couldn't find any entities named fire13_smoke, which point_template fire13_template is specifying.
Couldn't find any entities named fire13_fog_volume, which point_template fire13_template is specifying.
Couldn't find any entities named fire14_timer, which point_template fire14_template is specifying.
Couldn't find any entities named fire14_clip, which point_template fire14_template is specifying.
Couldn't find any entities named fire14_smoke, which point_template fire14_template is specifying.
Couldn't find any entities named fire14_fog_volume, which point_template fire14_template is specifying.
Couldn't find any entities named fire15_timer, which point_template fire15_template is specifying.
Couldn't find any entities named fire15_clip, which point_template fire15_template is specifying.
Couldn't find any entities named fire15_smoke, which point_template fire15_template is specifying.
Couldn't find any entities named fire15_fog_volume, which point_template fire15_template is specifying.
Couldn't find any entities named fire16_timer, which point_template fire16_template is specifying.
Couldn't find any entities named fire16_clip, which point_template fire16_template is specifying.
Couldn't find any entities named fire16_smoke, which point_template fire16_template is specifying.
Couldn't find any entities named fire16_fog_volume, which point_template fire16_template is specifying.
Couldn't find any entities named sound, which point_template fire_ballroom_07-template is specifying.
Couldn't find any entities named fire03-sound, which point_template fire03-template is specifying.
Couldn't find any entities named fire04-sound, which point_template fire04-template is specifying.
Couldn't find any entities named fire10-sound, which point_template fire10-template is specifying.
Couldn't find any entities named fire27-sound, which point_template fire27-template is specifying.
Couldn't find any entities named fire28-sound, which point_template fire28-template is specifying.
Couldn't find any entities named fire_ballroom_02-sound, which point_template fire_ballroom_02-template is specifying.
Couldn't find any entities named fire_ballroom_01-sound, which point_template fire_ballroom_01-template is specifying.
Couldn't find any entities named fire_ballroom_03-sound, which point_template fire_ballroom_03-template is specifying.
Couldn't find any entities named fire_ballroom_04-sound, which point_template fire_ballroom_04-template is specifying.
Couldn't find any entities named fire_ballroom_05-sound, which point_template fire_ballroom_05-template is specifying.
Couldn't find any entities named fire_ballroom_06-sound, which point_template fire_ballroom_06-template is specifying.
Couldn't find any entities named fire_ballroom_07-particles, which point_template fire_ballroom_07-template is specifying.
Couldn't find any entities named fire_ballroom_07-point1, which point_template fire_ballroom_07-template is specifying.
Couldn't find any entities named fire_ballroom_07-point3, which point_template fire_ballroom_07-template is specifying.
Couldn't find any entities named fire_ballroom_07-point5, which point_template fire_ballroom_07-template is specifying.
Couldn't find any entities named fire_ballroom_07-point6, which point_template fire_ballroom_07-template is specifying.
Couldn't find any entities named fire_ballroom_07-hurt, which point_template fire_ballroom_07-template is specifying.
Couldn't find any entities named fire_ballroom_07-sound, which point_template fire_ballroom_07-template is specifying.
Couldn't find any entities named fire_ballroom_08-sound, which point_template fire_ballroom_08-template is specifying.
Couldn't find any entities named fire_ballroom_09-sound, which point_template fire_ballroom_09-template is specifying.
Couldn't find any entities named fire_ballroom_10-sound, which point_template fire_ballroom_10-template is specifying.
Couldn't find any entities named fire_ballroom_11-sound, which point_template fire_ballroom_11-template is specifying.
Couldn't find any entities named inferno02-sound, which point_template inferno02-template is specifying.
prop_door_rotating has Door model (models/props_downtown/metal_door_112_dm03_01.mdl) with no door_options! Verify that SKIN is valid, and has a corresponding options block in the model QC file
prop_door_rotating has Door model (models/props_downtown/metal_door_112_dm03_01.mdl) with no door_options! Verify that SKIN is valid, and has a corresponding options block in the model QC file
WARNING: orator at 454 5671 2684 missing modelname
Attempting to precache model, but model name is NULL
Commentary: Loading commentary data from maps/c1m1_hotel_commentary.txt.
Initializing Director's script
[S_API FAIL] SteamAPI_Init() failed; ipcserver init failed .
Failed to load Steam Service
ServiceStart: failed to start
Forcing breakpad minidump interfaces to load
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
Unknown command "sv_unlag"
Unknown command "sv_maxunlag"
Server waking up from hibernation
Client "shadow321337" connected (192.168.1.2:27005).
Invalid counterterrorist spawnpoint at (1735.1,1184.0,1184.0)
Invalid counterterrorist spawnpoint at (1698.3,1184.0,1184.0)
Invalid counterterrorist spawnpoint at (1750.6,1184.0,1184.0)
Invalid counterterrorist spawnpoint at (1762.1,1184.0,1184.0)
Invalid counterterrorist spawnpoint at (1699.3,1184.0,1184.0)
Invalid counterterrorist spawnpoint at (1742.4,1184.0,1184.0)
Invalid counterterrorist spawnpoint at (1693.5,1184.0,1184.0)
Invalid counterterrorist spawnpoint at (2608.0,1184.0,1184.0)
Invalid counterterrorist spawnpoint at (2539.3,1184.0,1184.0)
Invalid counterterrorist spawnpoint at (2560.1,1184.0,1184.0)
Invalid counterterrorist spawnpoint at (2514.1,1184.0,1184.0)
Invalid counterterrorist spawnpoint at (2440.0,1184.0,1184.0)
Invalid counterterrorist spawnpoint at (1859.7,1184.0,1184.0)
Invalid counterterrorist spawnpoint at (1797.5,1184.0,1184.0)
Invalid counterterrorist spawnpoint at (1772.1,1184.0,1184.0)
Invalid counterterrorist spawnpoint at (2144.0,2656.0,2656.0)
Invalid counterterrorist spawnpoint at (2072.0,2656.0,2656.0)
Invalid counterterrorist spawnpoint at (908.8,2817.0,2817.0)
Invalid counterterrorist spawnpoint at (2303.4,2816.0,2816.0)
String Table dictionary for soundprecache should be rebuilt, only found 9753 of 16368 strings in dictionary
String Table dictionary for Scenes should be rebuilt, only found 6769 of 13243 strings in dictionary
ConVarRef mat_hdr_manual_tonemap_rate doesn't point to an existing ConVar
Connection to Steam servers successful.
VAC secure mode is activated.
NextBot tickrate changed from 0 (0.000ms) to 3 (0.100ms)
Initiating Reserved Wanderers
Couldn't find any entities named fire13_timer, which point_template fire13_template is specifying.
Couldn't find any entities named fire13_clip, which point_template fire13_template is specifying.
Couldn't find any entities named fire13_smoke, which point_template fire13_template is specifying.
Couldn't find any entities named fire13_fog_volume, which point_template fire13_template is specifying.
Couldn't find any entities named fire14_timer, which point_template fire14_template is specifying.
Couldn't find any entities named fire14_clip, which point_template fire14_template is specifying.
Couldn't find any entities named fire14_smoke, which point_template fire14_template is specifying.
Couldn't find any entities named fire14_fog_volume, which point_template fire14_template is specifying.
Couldn't find any entities named fire15_timer, which point_template fire15_template is specifying.
Couldn't find any entities named fire15_clip, which point_template fire15_template is specifying.
Couldn't find any entities named fire15_smoke, which point_template fire15_template is specifying.
Couldn't find any entities named fire15_fog_volume, which point_template fire15_template is specifying.
Couldn't find any entities named fire16_timer, which point_template fire16_template is specifying.
Couldn't find any entities named fire16_clip, which point_template fire16_template is specifying.
Couldn't find any entities named fire16_smoke, which point_template fire16_template is specifying.
Couldn't find any entities named fire16_fog_volume, which point_template fire16_template is specifying.
Couldn't find any entities named sound, which point_template fire_ballroom_07-template is specifying.
Couldn't find any entities named ds-f3ceilingF1-DECAL, which point_template ds-f3ceilingF1-template is specifying.
Couldn't find any entities named ds-f3ceilingF2-DECAL, which point_template ds-f3ceilingF2-template is specifying.
Couldn't find any entities named ds-f3ceilingF3-DECAL, which point_template ds-f3ceilingF3-template is specifying.
Couldn't find any entities named ds-f3ceilingF4-DECAL, which point_template ds-f3ceilingF4-template is specifying.
Couldn't find any entities named ds-f3ceilingF5-DECAL, which point_template ds-f3ceilingF5-template is specifying.
Couldn't find any entities named ds-f3ceilingF6-DECAL, which point_template ds-f3ceilingF6-template is specifying.
Couldn't find any entities named fire03-sound, which point_template fire03-template is specifying.
Couldn't find any entities named fire04-sound, which point_template fire04-template is specifying.
Couldn't find any entities named fire10-sound, which point_template fire10-template is specifying.
Couldn't find any entities named fire27-sound, which point_template fire27-template is specifying.
Couldn't find any entities named fire28-sound, which point_template fire28-template is specifying.
Couldn't find any entities named fire_ballroom_02-sound, which point_template fire_ballroom_02-template is specifying.
Couldn't find any entities named fire_ballroom_01-sound, which point_template fire_ballroom_01-template is specifying.
Couldn't find any entities named fire_ballroom_03-sound, which point_template fire_ballroom_03-template is specifying.
Couldn't find any entities named fire_ballroom_04-sound, which point_template fire_ballroom_04-template is specifying.
Couldn't find any entities named fire_ballroom_05-sound, which point_template fire_ballroom_05-template is specifying.
Couldn't find any entities named fire_ballroom_06-sound, which point_template fire_ballroom_06-template is specifying.
Couldn't find any entities named fire_ballroom_07-particles, which point_template fire_ballroom_07-template is specifying.
Couldn't find any entities named fire_ballroom_07-point1, which point_template fire_ballroom_07-template is specifying.
Couldn't find any entities named fire_ballroom_07-point3, which point_template fire_ballroom_07-template is specifying.
Couldn't find any entities named fire_ballroom_07-point5, which point_template fire_ballroom_07-template is specifying.
Couldn't find any entities named fire_ballroom_07-point6, which point_template fire_ballroom_07-template is specifying.
Couldn't find any entities named fire_ballroom_07-hurt, which point_template fire_ballroom_07-template is specifying.
Couldn't find any entities named fire_ballroom_07-sound, which point_template fire_ballroom_07-template is specifying.
Couldn't find any entities named fire_ballroom_08-sound, which point_template fire_ballroom_08-template is specifying.
Couldn't find any entities named fire_ballroom_09-sound, which point_template fire_ballroom_09-template is specifying.
Couldn't find any entities named fire_ballroom_10-sound, which point_template fire_ballroom_10-template is specifying.
Couldn't find any entities named fire_ballroom_11-sound, which point_template fire_ballroom_11-template is specifying.
Couldn't find any entities named inferno02-sound, which point_template inferno02-template is specifying.
prop_door_rotating has Door model (models/props_downtown/metal_door_112_dm03_01.mdl) with no door_options! Verify that SKIN is valid, and has a corresponding options block in the model QC file
prop_door_rotating has Door model (models/props_downtown/metal_door_112_dm03_01.mdl) with no door_options! Verify that SKIN is valid, and has a corresponding options block in the model QC file
WARNING: orator at 454 5671 2684 missing modelname
Attempting to precache model, but model name is NULL
Initializing Director's script
Initiating Reserved Wanderers
ConVarRef mat_hdr_manual_tonemap_rate doesn't point to an existing ConVar
threadtools.cpp (2683) : Assertion Failed: Failed to create thread (error 0xc)
threadtools.cpp (2683) : Assertion Failed: Failed to create thread (error 0xc)
threadtools.cpp (2683) : Assertion Failed: Failed to create thread (error 0xc)
threadtools.cpp (2683) : Assertion Failed: Failed to create thread (error 0xc)
threadtools.cpp (2683) : Assertion Failed: Failed to create thread (error 0xc)
threadtools.cpp (2683) : Assertion Failed: Failed to create thread (error 0xc)
threadtools.cpp (2683) : Assertion Failed: Failed to create thread (error 0xc)
threadtools.cpp (2683) : Assertion Failed: Failed to create thread (error 0xc)
threadtools.cpp (2683) : Assertion Failed: Failed to create thread (error 0xc)

(This is the point where that line repeats itself over and over rapidly.)

DS 02-20-2012 15:29

Re: Source Dedicated Server for Mac OS X
 
shadow: The majority of those error messages are actually normal. You'll see them on a Windows or Linux dedicated server too. However, the "Failed to create thread" error along with the crashing certainly is not.

I don't have an L4D2 install in front of me at the moment to confirm what might be happening here, but do you have steamclient.dylib, libtier0_s.dylib, and libvstdlib_s.dylib copied to your bin directory? (This part might not have been too clear). You can copy them from the Steam installation at: /Applications/Steam.app/Contents/MacOS/osx32

Alternatively, you could try adding '-steam' to the command line where it should automatically be able to find those libraries (but Steam would have to running in this case).

Let me know if either these fixes the problem. If not, I'll try to take a deeper look at it when time permits.

shadow321337 02-20-2012 16:06

Re: Source Dedicated Server for Mac OS X
 
I had the 3 .dylib files in the left4dead2 directory. I just moved them to the bin directory and there was no change.
I appreciate the help! This has been killing me for the last two days trying to fix.

plunkett 02-21-2012 10:47

Re: Source Dedicated Server for Mac OS X
 
Hi im sorry but im a complete twat when it comes to stuff like this, could i have a guide how to get a server for garrys mod, me and my friend just want to play a game of garrys mod and its driving us mental (both mac)

DS 02-26-2012 01:30

Re: Source Dedicated Server for Mac OS X
 
Quote:

Originally Posted by shadow321337 (Post 1654149)
I had the 3 .dylib files in the left4dead2 directory. I just moved them to the bin directory and there was no change.
I appreciate the help! This has been killing me for the last two days trying to fix.

I finally had some time to look into this. I managed to reproduce the problem exactly as you had shown. I did notice that if Steam was running in the background the problems went away.

It turns out I underestimated the importance of a particular library. So the solution is to also copy libsteam.dylib from your Steam install (/Applications/Steam.app/Contents/MacOS/osx32) and put it into the bin directory along with the other files that were copied.

I'll update the opening post with this info as well. Thanks for bringing this problem to my attention!

Powerlord 03-06-2012 18:16

Re: Source Dedicated Server for Mac OS X
 
A note you may find interesting... Valve released a Linux HLDS (GoldSrc) server version yesterday that accidentally included an OSX version of the hltv binary instead of the Linux version...

So, maybe an officially supported version of HLDS and SrcDS for OSX are coming soon?

soreloser 05-06-2012 12:07

Re: Source Dedicated Server for Mac OS X
 
Is there any new developments here? Is there a more detaied install information somewhere?

soreloser 05-12-2012 10:29

Re: Source Dedicated Server for Mac OS X
 
I have been working on option A as this seems to be the first spot to test/try and i am at a stand still. i have placed the files in the correct area and all I get is;

Last login: Sat May 12 07:19:03 on ttys000 server:~ dummel$ /Users/dummel/Library/Application\ Support/Steam/SteamApps/dummel/srcds_run ; exit; /Users/dummel/Library/Application Support/Steam/SteamApps/dummel/srcds_run: line 1: -game: command not found
ERROR: Invalid game type 'tf' sepecified.
Sat May 12 07:19:42 PDT 2012: Server Failed

logout

[Process completed]

my srcds_run file starts out like this;

-game cstrike +map de_dust -steam
#!/bin/sh
#
# Copyright (c) 2004, Valve LLC. All rights reserved.
#
# a wrapper script for the main Source engine dedicated server binary.
# Performs auto-restarting of the server on crash. You can
# extend this to log crashes and more.

not sure how else to make this work, any help would be greatly appreciated!

DS 05-12-2012 11:01

Re: Source Dedicated Server for Mac OS X
 
1 Attachment(s)
You don't really need to edit the srcds_run file. You run it from the command line and add your server options there. (Any tutorials or documentation about running a Linux server is probably relevant.)

Just open the Terminal application and enter these two commands to take you the directory with the files and run the server:
Code:

cd ~/Library/Application Support/Steam/SteamApps/dummel

./srcds_run -game cstrike +map de_dust -steam

You should then get output similiar to the image below:
Attachment 103505

soreloser 05-12-2012 11:43

Re: Source Dedicated Server for Mac OS X
 
awesome, thank you for the reply!


All times are GMT -4. The time now is 17:26.

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