Raised This Month: $319 Target: $400
 79%   Almost there!

Source Dedicated Server for Mac OS X


Post New Thread Reply   
 
Thread Tools Display Modes
printf
Junior Member
Join Date: Apr 2013
Old 06-01-2014 , 20:31   Re: Source Dedicated Server for Mac OS X
Reply With Quote #151

Thank you very much! It seems that it was some very simple offset issues! xD
Spoiler
printf is offline
printf
Junior Member
Join Date: Apr 2013
Old 06-17-2014 , 20:26   Re: Source Dedicated Server for Mac OS X
Reply With Quote #152

Where should I report these? I keep getting crashes on occasion, although less frequently:
Code:
Caught signal 11 (Segmentation fault: 11). Invalid memory access of 0x72617473 from 0x12c085a6.
Backtrace:
#0   srcds_osx                           0x0000236e _Z13crash_handleriP9__siginfoPv + 206
#1   libsystem_c.dylib                   0x9437e94b _sigtramp + 43
#2   sourcemod.2.css.dylib               0x12c085a6 _Z16FakeNativeRouterPN10SourcePawn14IPluginContextEPKiPv + 86
#3   ???                                 0x0060d6d7 0x0 + 6346455
/Users/buildbot/buildslave_steam/steam_rel_client_osx/build/src/common/steamservice.cpp (50) : Assertion Failed: m_hServiceLib == NULL
Assert( Assertion Failed: m_hServiceLib == NULL ):/Users/buildbot/buildslave_steam/steam_rel_client_osx/build/src/common/steamservice.cpp:50
printf is offline
DS
SourceMod Developer
Join Date: Sep 2004
Location: WI, USA
Old 06-18-2014 , 03:13   Re: Source Dedicated Server for Mac OS X
Reply With Quote #153

It's not immediately clear to me what the problem is, so I'm going to need you to get a core dump this time.
  1. Download and install the attached special debug build of SourceMod.

  2. Verify that core dumps are enabled on your system by running the following command: sysctl kern.coredump

    If core dumps are allowed, then the output should be similar to this:
    Code:
    $ sysctl kern.coredump
    kern.coredump: 1
    If this says 0 instead, then run: sudo sysctl -w kern.coredump=1

  3. Verify that the /cores directory is writable by the user that will run srcds_osx. You can check this by running: ls -ld /cores

    This should show which user and group owns the directory and the permissions on it. By default, it's owned by root and the admin group with read/write permissions for both. If the user that is running srcds is in the admin group, then you shouldn't have to alter permissions and can skip ahead to step 4.

    If this is not the case, however, then please run: sudo chmod o+w /cores

    This will give write access to all users. If you are in doubt about any of this, you should probably run the above command anyways to ensure the core dumps can be written to this location.

  4. As the user you intend to use for srcds, run the following command (in a bash shell): ulimit -c unlimited

    This will make sure you get a full core dump rather than a truncated one.

  5. From the same shell as step 4, run srcds as you normally would and make sure the "-nobreakpad" option is added.

  6. After the server crashes, send the core dump.

    The dump file should be created in /cores and will be named core.xxx, where xxx will be the process id number for srcds that crashed. This will be a rather large file, so compressing it in a zip or bz2 file is highly recommended.

    Since there may potentially be sensitive information contained in the file, either send this core dump to me at [email protected] or upload it somewhere and send me a link via e-mail or a private message on the forum.
Attached Files
File Type: zip sourcemod-ds-debug-mac.zip (3.71 MB, 67 views)

Last edited by DS; 06-18-2014 at 03:32.
DS is offline
ikir
Junior Member
Join Date: Jun 2014
Old 06-20-2014 , 14:46   Re: Source Dedicated Server for Mac OS X
Reply With Quote #154

Hi DS, first of all thanks so much for your awesome work! I just registered here to ask a couple of question since i want to create a Insurgency server for my friend on my Mac mini. I would love to run it without Steam. What do you mean with
Quote:
copy the Frameworks directory to your server's root directory (NOT bin).
When you say root, do you mean the folder we create with the server files?

Where i must put .cfg files? Thanks
can you "print" an example of files and folders for server without steam?

Do you accept donations? I would love to have this server to run next week, and if you have time to help i would love to say thank you with a donation.

Last edited by ikir; 06-20-2014 at 18:14.
ikir is offline
DS
SourceMod Developer
Join Date: Sep 2004
Location: WI, USA
Old 06-20-2014 , 23:39   Re: Source Dedicated Server for Mac OS X
Reply With Quote #155

Quote:
Originally Posted by ikir View Post
When you say root, do you mean the folder we create with the server files?
Yes, that is exactly what I mean.

For example, suppose that you're putting the server files in a folder named "insurgency" in your home directory. So when I say "server root", I would mean /Users/<your username>/insurgency. The Frameworks folder would go inside /Users/<your username>/insurgency and the extra Steam files (steamclient.dylib, etc) would go inside /Users/<your username>/insurgency/bin.

Does this clear things up for you? If not, maybe the output below might fill in some gaps.

Server Root
Bin Folder

Quote:
Originally Posted by ikir View Post
Where i must put .cfg files?
The .cfg files are in <server root>/insurgency/cfg. There is an example server config file named "server.cfg.example" that could be used to start from. You'd have to copy or rename it to "server.cfg" for it be executed by the server though, of course.

Quote:
Originally Posted by ikir View Post
Do you accept donations?
If you really feel like I have helped, sure. You could donate to my PayPal address: Protonic86 (at) gmail (dot) com

In any case, please let me know if this has helped you or if you need further help with this.

Last edited by DS; 06-21-2014 at 02:15.
DS is offline
ikir
Junior Member
Join Date: Jun 2014
Old 06-21-2014 , 06:33   Re: Source Dedicated Server for Mac OS X
Reply With Quote #156

Yes thanks so much for help i will try tomorrow! You're very kind and competent and i'm happy to make a little donation early next week! Inside Frameworks i have just one file but it should be right.

I've opened normal Steam ports on my router and also 27016 for server

Last edited by ikir; 06-21-2014 at 12:56.
ikir is offline
ikir
Junior Member
Join Date: Jun 2014
Old 06-21-2014 , 10:03   Re: Source Dedicated Server for Mac OS X
Reply With Quote #157

Up and running! I will have for sure many questions in next days :-P Ps: i've already donated!

UPDATE:
I can't see the server over internet
Code:
mac-mini-di-ikir:Insurgency server OSX ikir$ ./srcds_run -game insurgency -maxplayers 12 -nohltv -ip 192.168.1.100 -port 27016 -map ministry_coop
WARNING: No map specified! Defaulting to market
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.
#Loaded 2172 VPK file hashes from /Users/ikir/Desktop/Insurgency server OSX/insurgency/insurgency_materials.vpk for pure server operation.
#Loaded 2172 VPK file hashes from /Users/ikir/Desktop/Insurgency server OSX/insurgency/insurgency_materials.vpk for pure server operation.
#Loaded 14 VPK file hashes from /Users/ikir/Desktop/Insurgency server OSX/insurgency/insurgency_misc.vpk for pure server operation.
#Loaded 14 VPK file hashes from /Users/ikir/Desktop/Insurgency server OSX/insurgency/insurgency_misc.vpk for pure server operation.
#Loaded 219 VPK file hashes from /Users/ikir/Desktop/Insurgency server OSX/insurgency/insurgency_models.vpk for pure server operation.
#Loaded 219 VPK file hashes from /Users/ikir/Desktop/Insurgency server OSX/insurgency/insurgency_models.vpk for pure server operation.
#Loaded 2 VPK file hashes from /Users/ikir/Desktop/Insurgency server OSX/insurgency/insurgency_particles.vpk for pure server operation.
#Loaded 2 VPK file hashes from /Users/ikir/Desktop/Insurgency server OSX/insurgency/insurgency_particles.vpk for pure server operation.
#Loaded 1800 VPK file hashes from /Users/ikir/Desktop/Insurgency server OSX/insurgency/insurgency_sound.vpk for pure server operation.
#Loaded 1800 VPK file hashes from /Users/ikir/Desktop/Insurgency server OSX/insurgency/insurgency_sound.vpk for pure server operation.
#Game.dll loaded for "Insurgency"
#CGameEventManager::AddListener: event 'server_pre_shutdown' unknown.
#CGameEventManager::AddListener: event 'game_newmap' unknown.
#CGameEventManager::AddListener: event 'round_start' unknown.
#CGameEventManager::AddListener: event 'round_end' unknown.
Server is hibernating
ConVarRef cl_mychangelist 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.dylib.
maxplayers set to 12
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
found breakpad via in process memory: '/Users/ikir/Desktop/Insurgency server OSX/Frameworks/Breakpad.framework/Versions/A/Resources'
Installing breakpad crash handler
Unknown command "joy_name"
Unknown command "joy_advanced"
Unknown command "joy_accelmax"
Unknown command "joy_accelscale"
Unknown command "joy_advaxisx"
Unknown command "joy_advaxisy"
Unknown command "joy_advaxisz"
Unknown command "joy_advaxisr"
Unknown command "joy_advaxisu"
Unknown command "joy_advaxisv"
Unknown command "joy_autoaimdampen"
Unknown command "joy_autoaimdampenrange"
Unknown command "joy_autosprint"
Unknown command "joy_circle_correct"
Unknown command "joy_diagonalpov"
Unknown command "joy_display_input"
Unknown command "joy_forwardsensitivity"
Unknown command "joy_forwardthreshold"
Unknown command "joy_inverty"
Unknown command "joy_invertx"
Unknown command "joy_lowend"
Unknown command "joy_lowmap"
Unknown command "joy_movement_stick"
Unknown command "joy_pitchsensitivity"
Unknown command "joy_pitchthreshold"
Unknown command "joy_response_look"
Unknown command "joy_response_move"
Unknown command "joy_sidesensitivity"
Unknown command "joy_sidethreshold"
Unknown command "joy_yawsensitivity"
Unknown command "joy_yawthreshold"
Unknown command "joyadvancedupdate"
Unknown command "joystick"
Unknown command "+jlook"
Network: IP 192.168.1.100 mode MP, dedicated Yes, ports 27016 SV / 27005 CL
---- Host_NewGame ----
trusted_keys.txt not present; pure server using only base trusted key list
Error! Variable "%compilewater" is multiply defined in material "maps/mogadishu/water_test"!
Error! Variable "%compilewater" is multiply defined in material "maps/mogadishu/water_test"!
Error! Variable "%compilewater" is multiply defined in material "maps/mogadishu/water_test"!
#######################################
Map market missing stringtable dictionary, don't ship this way!!!
Run with -stringtables on the command line or convar
stringtable_alwaysrebuilddictionaries enabled to build the string table
#######################################
Host_NewGame on map market
Executing 'server.cfg' config file
Loading theater file 'default' on server
exec: couldn't exec skill1.cfg
PrecacheScriptSound 'Error' failed, no such sound script entry
Can't init ins_team_parameters
Gamerules: entering state 'GR_STATE_PREGAME'
Loaded 3 control points
Initializing Steam libraries for secure Internet server
[S_API FAIL] SteamAPI_Init() failed; ipcserver init failed .
SteamID:  0, universe Public
Setting breakpad minidump AppID = 222880
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
Logging into anonymous gameserver account.
SteamID:  90090899885910024, universe Public
Connection to Steam servers successful.
   Public IP is 151.67.88.169.
Assigned anonymous gameserver Steam ID [A:1:892463112(4402)].
VAC secure mode is activated.
I noted this:
"[S_API FAIL] SteamAPI_Init() failed; ipcserver init failed"

Last edited by ikir; 06-21-2014 at 12:55.
ikir is offline
DS
SourceMod Developer
Join Date: Sep 2004
Location: WI, USA
Old 06-21-2014 , 12:58   Re: Source Dedicated Server for Mac OS X
Reply With Quote #158

Ah, good to see you got it running.

If you've got it going now, obviously "insurgency2" is the correct folder to copy. But I'd like to clarify that it does not have to be named that if you don't want it to be. In my example, I just named it "insurgency". That particular folder can be named whatever you want.

As for ports, yes, it is the normal ones. Unless you decide to change it with the "-port" option, you should only need to open port 27015 UDP to make the server accessible over the Internet. The same port for TCP could also be opened if you want to use RCON.
DS is offline
DS
SourceMod Developer
Join Date: Sep 2004
Location: WI, USA
Old 06-21-2014 , 13:00   Re: Source Dedicated Server for Mac OS X
Reply With Quote #159

Oh, saw your edit now. Since you're using port 27016, make sure that port for UDP is forwarded on your router.

And the "[S_API FAIL] SteamAPI_Init() failed; ipcserver init failed" error is harmless. It should continue to work regardless of that.
__________________
エル・プサイ・コングルゥ

Last edited by DS; 06-21-2014 at 13:02.
DS is offline
ikir
Junior Member
Join Date: Jun 2014
Old 06-21-2014 , 13:26   Re: Source Dedicated Server for Mac OS X
Reply With Quote #160

Eh eh yes i've edited my old post to make it easier to you, i fixed all the problems and now the server is running :-D I'm very happy.
I fixed by using -hostport 27016 instead of -host 27016 i don't why but i've searched in internet and i'm not the only one with this issue. Now i must learn hot to edit to my pleasure the cfg files. Ah if a new versions of insurgency come out, do i need to replace the insurgency folder right? Thanks mate
ikir 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 13:56.


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