OpenBSD Counter-Strike server
I have heard wispers around the internet that a hlds/counterstrike server on OpenBSD (3.3) is quite possible using linux emulation. Unfortunately when I installed hlds 3.1.1.1 and counter-strike 1.5. I am having problems with it. I call the server with the command line:
./hlds_run -game cstrike -port 27015 +sv_lan 1 +nomaster +maxplayers 20 +map cs_italy +exec server.cfg I get these messages on start up: Auto-restarting the server on crash Console initialized. Protocol version 46 Exe version 3.1.1.1 Exe build: 22:35:19 Apr 29 2003 (2378) Auth Server Server IP address 127.0.0.1:27015 Downloading Security Module from Speakeasy.net ... Completed downloading Security Module from Speakeasy.net Server is in Secure Mode. Error downloading Security Module from Speakeasy.net Server is not Secure. Adding master server 65.73.232.251:27010 Adding master server 65.73.232.253:27010 Adding master server 65.73.232.252:27010 then I get repeating error messages like this one: Unable to open /proc/13550/stat I can see the server from a client on the same LAN but when I try to connect to it I get the error: Cannot connect to server Reason: LAN servers are restricted to local clients only (Class C) These might actually be two unrelated problems, but i don't know. has anyone ever had this experience with a half-life/counter-strike server on OpenBSD? Thanks, |
Hey, I have the exact same problem. HLDS used to work in OpenBSD last I tried, but that was a few versions back and when the redhat emulation was from pre-8.0.
|
I've been having the same problem. HLDS v3.1.1.0 works just fine, but I get that error when I upgrade to v3.1.1.1.
I can connect to my server via the LAN or Internet, though. There is an option that can be set in cstrike/autoexec.cfg or cstrike/server.cfg making a server LAN only. Check those. I'm searching like crazy for a cause and solution for the Unable to open proc/... error. If you want HLDS v3.1.1.0, I have it at http://www.dajoob.com/pub/hlds_l_3110_full.bin [EDIT] I found a solution to the proc error. Just put sv_stats 0 in your server.cfg :) [/EDIT] |
Had the same problem, here's the fix:
Download the kernel sources from your local cvs-mirros and hack src/miscfs/procfs/procfs_vnops.c The entry to chance is, who would have guessed : { DT_REG, N("status"), Pstatus, NULL }, change the status string to stat, recompile your kernel, reboot and you're done. p.s. Don't forget to 'mount_procfs -o linux /proc /proc'. |
Well.... sadly I have no reply, but a question of my own. I'm new to linux and was making a CS server and I'm getting a similar error but not exact. Heres what it looks like...
[server@localhost hlds_l]$ ./hlds_run -game cstrike +exec server.cfg +ip 192.168.0.102 +port 27015 +maxplayers 16 +map de_dust Auto-restarting the server on crash Host_Init Added packfile /home/server/hlds_l/valve/pak0.pak (985 files) Protocol version 46 Exe version 3.1.1.0 Exe build: 14:46:34 Jun 11 2002 (2056) WON Auth Server Executing Admin Mod config file Server IP address 192.168.0.102:27015 Metamod version 1.15 Copyright (c) 2001-2003 Will Day <willday@metamod.org> Metamod comes with ABSOLUTELY NO WARRANTY; for details type `meta gpl'. This is free software, and you are welcome to redistribute it under certain conditions; type `meta gpl' for details. Downloading Security Module from Speakeasy.net ... Error downloading Security Module from Speakeasy.net Server is not Secure. PackFile: /home/server/hlds_l/valve/pak0.pak : models/w_battery.mdl then it keeps going with the PackFile stuff for about 3 whole page screens, then ends with.... PackFile: /home/server/hlds_l/valve/pak0.pak : models/metalplategibs_green.mdl Executing Admin Mod config file "amv_prvt_kick_message" is "0" Adding master server 65.73.232.251:27010 Adding master server 65.73.232.253:27010 Adding master server 65.73.232.252:27010 As I said its not exactally the same but they have there similarities. Haven't tried what you said yet but since I'm new I kinda don't even really know how to do what you said. Plz (if anyone can) try to help me out. |
You don't need to hack the Kernel.
Use hlds_l_3111_update.tar.gz and then hlds_l_3111d_update.tar.gz. The hlds_l_3111d_update.tar.gz fixes the Problem with the /proc problem. I've 3 OpenBSD 3.3 CS-Servers running and it works fine. Paul |
I had the same problem with FreeBSD, and it's very simple.
In linux u have /proc/pid/stat . In *BSD u have /proc/pid/status . So if you want to get it working u got 2 ways. sv_stats off # cfg or u get the last patch 1d available on the web. Stay cool |
Thanks for all your help on thie, guys. For future refence i have made a small howto describing running a CS server on OpenBSD. Have a look at it here:
http://myhome.spu.edu/shriver/OpenBSD-cstrike.html look it over and give me any comments or suggestions. Thanks, |
OK, new problem. My server worked fine on my small LAN at home. I have since then relocated the server to the campus network, a slightly larger domain. Now when users try to connect, they get the :
Cannot connect to server Reason: LAN servers are restricted to local clients only (Class C) I figure this is because the clients are looking at my serve as if it were on the internet, even though it's on the LAN. When i set the server up as a internet server, the clients can't connect for other (key validations reasons :). Is there any way to make the clinets see the server is on the LAN or some way to set the server up to pass key validation so that eveyone can play. p.s. if i can't get this working SOON, Windows will have to be resorted to. Thanks, |
Quote:
|
it would, but most of the guys on the floor will never have that. I mostly am looking for a more permanent fix to the problem i am having when it is set up as a LAN server. Any real help with that?
|
I figured out part of the problem: my campuse network is a class B network. Now i need to know if there is any way to open up the cs server software to allow class b networks to connect.
|
hi all , i have a hlds 3.1.1.1d and server works fine , but this stupid operating system can't make log file in /.../cstrike/logs. I see the log records
on the console... what i need to do ? please help me ! |
I saw this problem too. Because of the emulation, the log files are being written to another location on the disk. Look for your log files in /usr/local/emul/redhat/usr/normal/path/to/cstrike/logs. for instance on my machine it is /usr/local/emul/redhat/usr/steam/hlds_l/cstrike/logs.
If you are using something like psychostats you can change your log directory to read from that location. |
Thank You Harpune. Thank You very much! I found my log files in this location and now Psychostats works perfectly. If I can help you with something , it's will be pleasure for me.
|
All times are GMT -5. The time now is 07:38 PM. |