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
Supported Games
Source Code Special Thanks
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
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:
Quote:
Example Server Output
Extra Command Line Options of Note
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. |
Re: Source Dedicated Server for Mac OS X
Nice work DS!
|
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. :)
|
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. The ResolveSymbol() crash should be fixed as of 1.4-hg3296. |
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. |
Re: Source Dedicated Server for Mac OS X
Quote:
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. |
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 |
Re: Source Dedicated Server for Mac OS X
thx a lot for this ! saved me the trouble of running srcds through parallels ...
|
Re: Source Dedicated Server for Mac OS X
nice
|
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 |
All times are GMT -4. The time now is 15:50. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.