INFO How to make an HLDS Dedicated Server for MS:C

Sabre

New Adventurer
MSC Developer
RiP
Joined
Aug 24, 2004
Messages
4,545
Reaction score
1
Age
35
Location
SoCal
I guess I'll have to brush the dust off my AMX then...I liked AMXX :(
 

Thothie

Administrator
Staff member
Administrator
Moderator
MSC Archivist
Joined
Apr 8, 2005
Messages
16,342
Reaction score
326
Location
lost
I'm hoping we'll be able to move away from AMX entirely, and have all those functions build into MSC, but MiB is having some hangups with the File I/O still.
 

The Man In Black

Administrator
Staff member
Administrator
Moderator
RiP
Joined
Jul 9, 2006
Messages
6,904
Reaction score
71
I have the most important part of it done - the File Input. If you want, we could finish the system and get Writing working later. I don't see writing being anything more than a convenience, really. (Chat logs, ingame admin adding, etc)
 

Thothie

Administrator
Staff member
Administrator
Moderator
MSC Archivist
Joined
Apr 8, 2005
Messages
16,342
Reaction score
326
Location
lost
Picadilly said:
Thothie, how do yo do it?

Today your server was full and everyone was spamming spells on Lodagond-1 without regard for safety or bodily harm. In the midst of the chaos I noticed something odd. When your server gets really overloaded, it lags waaaay out, but it doesn't crash! Our server doesn't really lag much, but it crashes hundreds of times per day.

This is the restarter log from the Vista AMD Turion X2 laptop:

Code:
[8:58:58 PM] Launching HLDS...
[9:33:16 PM] AutoRestarting Paused.
[9:33:18 PM] HLDS terminated.
[9:33:18 PM] HLDS closed, but auto restart is paused.
Uncheck 'Pause AutoRestarting' to enable HLDS restarting.
[9:37:28 PM] Launching HLDS...
[10:19:45 PM] HLDS terminated.
[10:19:46 PM] HLDS closed, but auto restart is paused.
Uncheck 'Pause AutoRestarting' to enable HLDS restarting.
[10:19:51 PM] AutoRestart Unpaused: Re-launching.
[10:19:51 PM] Launching HLDS...
[7:40:59 AM] AutoRestarting Paused.
[7:41:04 AM] HLDS terminated.
[7:41:04 AM] HLDS closed, but auto restart is paused.
Uncheck 'Pause AutoRestarting' to enable HLDS restarting.
[7:41:13 AM] AutoRestart Unpaused: Re-launching.
[7:41:13 AM] Launching HLDS...
[7:42:12 AM] HLDS terminated.
[7:42:12 AM] Launching HLDS...
[11:59:45 AM] HLDS Has Locked. Terminating.
[11:59:45 AM] HLDS terminated.
[11:59:45 AM] Launching HLDS...
[1:51:17 PM] HLDS Has Locked. Terminating.
[1:51:17 PM] HLDS terminated.
[1:51:17 PM] Launching HLDS...
[3:26:36 PM] HLDS Has Locked. Terminating.
[3:26:36 PM] HLDS terminated.
[3:26:36 PM] Launching HLDS...
[11:10:53 PM] HLDS terminated.
[11:10:54 PM] Launching HLDS...
[5:52:23 PM] HLDS Has Locked. Terminating.
[5:52:23 PM] HLDS terminated.
[5:52:23 PM] Launching HLDS...
[6:11:38 PM] HLDS Has Locked. Terminating.
[6:11:38 PM] HLDS terminated.
[6:11:38 PM] Launching HLDS...
[6:15:40 PM] HLDS Has Locked. Terminating.
[6:15:41 PM] HLDS terminated.
[6:15:41 PM] Launching HLDS...
[6:31:53 PM] HLDS Has Locked. Terminating.
[6:31:53 PM] HLDS terminated.
[6:31:53 PM] Launching HLDS...
[11:22:54 PM] HLDS Has Locked. Terminating.
[11:22:54 PM] HLDS terminated.
[11:22:54 PM] Launching HLDS...
[11:37:05 PM] HLDS Has Locked. Terminating.
[11:37:05 PM] HLDS terminated.
[11:37:05 PM] Launching HLDS...

This may not be a fair assasment, as for some reason or other, the laptop server has not gotten as much traffic as the main rig did. I dunno it's lagging, or what, but I don't see any such complaints in the log.

In anycase, it goes down about every 3 to 6 hours, sometimes repeatedly in a short time when someone doesn't realize they are crashing the server with rapid reconneccts. This is more or less consistant with my desktop's performance.

Like the desktop, the laptop is fairly stripped, but there's a lot of things you simply can't turn off in Vista. So I'd suggest it maybe just a matter of optimizing your rig proper.
 

Picadilly

New Adventurer
The True Followers of the Lost
Joined
Jan 10, 2007
Messages
176
Reaction score
0
Location
Taipei
Well here's a quick update on what I've done.

1.) I took your advice and switched from AMXX to AMX. With the new voting system, I'm not really sure if I needed to do that or not...

2.) Switched from Server Checker to Thothie's HLDS Restarter on AMX heartbeat mode.

The server is an AMD 3800+ (939) with 2 gigs DDR400 RAM. One thing I figured out with MSC is that AMD's handle it a lot better, probably due to AMD's ability to handle floating-point code VS. Intel (at least in the CPU generation comparable to the 939).

The server itself has a totally fresh XP Pro install (SP2) and is totally dedicated to MSC.

The biggest culprit of crashes is still the infamous ed_alloc, which I expect.
The thing that drives me nuts the most is when HLDS just suddenly closes and reopens, without warning or error message. It's as though it has a mind of its own and just does it whenever it wants to without warning or error message, almost like an involuntary map change.

Overall, the server seems to get as many edict errors as before (which is a lot). The crashes without errors seem to have calmed down a bit, though I can't be sure, since we have been playing all new maps lately and it's hard to compare.
 

TROOP EXTREME

New Adventurer
Joined
Jan 23, 2008
Messages
20
Reaction score
0
Age
49
Location
US-Iowa
EntMod

please remove this mod from your downloads

i was not sure what it was

but when i turnd it on and started my server

it said it was a cheat or something

i do dont want to have cheats and i hope this is not something bad

since it said it was a cheat and i dont need bad marks on my servers

thank you
 

Thothie

Administrator
Staff member
Administrator
Moderator
MSC Archivist
Joined
Apr 8, 2005
Messages
16,342
Reaction score
326
Location
lost
Entmod should not be in our downloads anywhere. It is a cheat program.
 

Shinitenshi

New Adventurer
Joined
Mar 4, 2008
Messages
132
Reaction score
0
Age
38
You wouldn't happen to have Dedicated Server files for Linux now would you? >.>
 

CrazyMonkeyDude

New Adventurer
MSC Developer
RiP
Joined
Jun 29, 2007
Messages
2,619
Reaction score
2
Age
35
I'm pretty sure that this game is not playable in Linux, or at least not hostable on it. I b'lieve Blasto121 muttering something about the game not being compatible with it, or another common hoster.

Either way, Steam isn't compatible with the latest version of WINE, so, unless that's changed in the last few months (I haven't tried steam on Ubuntu using WINE in a while, nor have I even checked for updates), you shouldn't be able to even PLAY on linux, much less host.
 

Shinitenshi

New Adventurer
Joined
Mar 4, 2008
Messages
132
Reaction score
0
Age
38
Nah I don't want to play it on Linux Just make a server. To make a server you don't need wine installed just Terminal and Dedicated server files of course :) but am guessing this game hasn't come out with LInux ded files.
 

Thothie

Administrator
Staff member
Administrator
Moderator
MSC Archivist
Joined
Apr 8, 2005
Messages
16,342
Reaction score
326
Location
lost
Sadly, no. We do not have a linux DS.
 

Shinitenshi

New Adventurer
Joined
Mar 4, 2008
Messages
132
Reaction score
0
Age
38
Ok well I need to make it so it logs onto FZ but the link it gives me for contact is not working who should i contact? I wil be up 24/7 hopefully u can get back to me asap.


For some reason my MSC isnt loading up in console but if i use the HLDS GUI it works just fine. here my command file and it just sits there but doesnt actually load the game.

hlds.exe -game msc -map edana -maxplayers 9 -port 27015 -console

Says
Steam Auth Servers
Server IP blah blah blah

and just sits there! I type status and replies "Can't "Status" Server Not connected" blah!
 

icuownage

New Adventurer
Joined
Mar 30, 2008
Messages
36
Reaction score
0
my server is up and running good, i have a problem though, how do i turn off vac? as my friend is vac banned and i want him to play on my server. as well as how do i make myself a admin, and can i like giv my self powers, like items necus some items will be not gettable i think. other than that this is a very good guide and i hope you help me
 

Mikkel

New Adventurer
MSC Developer
The Pirates of Dreadwind
Joined
Feb 13, 2007
Messages
1,000
Reaction score
0
Age
32
Location
Denmark
icuownage said:
my server is up and running good, i have a problem though, how do i turn off vac? as my friend is vac banned and i want him to play on my server. as well as how do i make myself a admin, and can i like giv my self powers, like items necus some items will be not gettable i think. other than that this is a very good guide and i hope you help me

-insecure in properties

right click on MSC - Press properties - Set launch options - "-insecure"
 

icuownage

New Adventurer
Joined
Mar 30, 2008
Messages
36
Reaction score
0
umm wat msc, the 1 in my steam folder, the folder that is in my HLDS folder or the one that goes onto amx 1
 

icuownage

New Adventurer
Joined
Mar 30, 2008
Messages
36
Reaction score
0
w8 is this to get admin, or to get rid of vac, as i really want admin 2 and wen i click on the amx mod thing and try to make me a admin, i fill in my details on it and it still says i have no admin auth :S, but that thing that the link is on isnt working for me, but if vac cant be turned of wivout that, is ther a earlier version that may work?
 

Durak

New Adventurer
Joined
Jan 13, 2006
Messages
289
Reaction score
0
icuownage said:
w8 is this to get admin, or to get rid of vac, as i really want admin 2 and wen i click on the amx mod thing and try to make me a admin, i fill in my details on it and it still says i have no admin auth :S, but that thing that the link is on isnt working for me, but if vac cant be turned of wivout that, is ther a earlier version that may work?

Mikkel said:
icuownage said:
my server is up and running good, i have a problem though, how do i turn off vac? as my friend is vac banned and i want him to play on my server. as well as how do i make myself a admin, and can i like giv my self powers, like items necus some items will be not gettable i think. other than that this is a very good guide and i hope you help me

-insecure in properties

right click on MSC - Press properties - Set launch options - "-insecure"

That's how you get rid of VAC. You right click on MSC in the steam games window.

You're probably setting up AMX wrong if you can't get admin. Admin won't let you cheat for items. The last I heard you shouldn't be using AMX because it causes one of the errors. There is some sort of adminmod integrated into MS now (I think?).

Mikkel linked to a program that helps run dedicated servers since you didn't specify whether you're running a listen or dedicated server.
 

icuownage

New Adventurer
Joined
Mar 30, 2008
Messages
36
Reaction score
0
ok, well anywayz, i wasnt wanting to cheat for items, i only wanted to get em because someitems ar not so easy to get on my own, but i dont care about that no more as i have asked for the fn pass and if i dont get it i will jus not host the server no more
 

Mikkel

New Adventurer
MSC Developer
The Pirates of Dreadwind
Joined
Feb 13, 2007
Messages
1,000
Reaction score
0
Age
32
Location
Denmark
I now assume he is running a HLDS seeing he is posting in the "How to make an HLDS Dedicated Server for MS:C"-thread
 

Shinitenshi

New Adventurer
Joined
Mar 4, 2008
Messages
132
Reaction score
0
Age
38
Aight man its really easy just read the instruction online lol here a little hint if you have amx or amxx installed correctly then just go into:

addons > amxmodx (or amx) > configs > users.ini

This works if your using the same machine, a "listen" server.
Code:
"loopback" "" "abcdefghijklmnopqrstu" "de"

If your using dedicated then add by steam id like this:
Code:
"STEAM_0:0:123456" "" "abcdefghijklmnopqrstu" "ce"

If you don't know how to get your steam id just join a server and type "status" in console and a list of players with steam ids will pop up find yours and replace the one on the example i gave you. If you aren't using amxx or amx then i don't think there is a way to communicate or be admin with the server other than manually typing in commands into the machines console.

users.ini file:
Code:
; Users configuration file
; File location: $moddir/addons/amxmodx/configs/users.ini

; Line starting with ; is a comment

; Access flags:
; a - immunity (can't be kicked/baned/slayed/slaped and affected by other commmands)
; b - reservation (can join on reserved slots)
; c - amx_kick command
; d - amx_ban and amx_unban commands
; e - amx_slay and amx_slap commands
; f - amx_map command
; g - amx_cvar command (not all cvars will be available)
; h - amx_cfg command
; i - amx_chat and other chat commands
; j - amx_vote and other vote commands
; k - access to sv_password cvar (by amx_cvar command)
; l - access to amx_rcon command and rcon_password cvar (by amx_cvar command)
; m - custom level A (for additional plugins)
; n - custom level B
; o - custom level C
; p - custom level D
; q - custom level E
; r - custom level F
; s - custom level G
; t - custom level H
; u - menu access
; z - user (no admin)

; Account flags:
; a - disconnect player on invalid password
; b - clan tag
; c - this is steamid/wonid
; d - this is ip
; e - password is not checked (only name/ip/steamid needed)

; Password:
; Add to your autoexec.cfg: setinfo _pw "<password>"
; Change _pw to the value of amx_password_field

; Format of admin account:
; <name|ip|steamid> <password> <access flags> <account flags>

; Examples of admin accounts:
; "STEAM_0:0:123456" "" "abcdefghijklmnopqrstu" "ce"
; "123.45.67.89" "" "abcdefghijklmnopqrstu" "de"
; "My Name" "my_password" "abcdefghijklmnopqrstu" "a"

"loopback" "" "abcdefghijklmnopqrstu" "de"

Hope this helps
 

Jelly

Adventurer
MSC Developer
RiP
Joined
Nov 25, 2005
Messages
1,909
Reaction score
15
Age
32
Location
You are here --> X
AMX and/or AMXX dislikes MS:C and vice versa. Thus almost nobody uses them. It is likely to screw something up. :wink:
 

Shinitenshi

New Adventurer
Joined
Mar 4, 2008
Messages
132
Reaction score
0
Age
38
Jelly said:
AMX and/or AMXX dislikes MS:C and vice versa. Thus almost nobody uses them. It is likely to screw something up. :wink:
Ya it does, I have used the amxx Thothie has on his webpage and worked fine for me you can check it out if you want.

Master Sword : Continued:Server Utilities
http://www.thothie.com/ms/
 

Thothie

Administrator
Staff member
Administrator
Moderator
MSC Archivist
Joined
Apr 8, 2005
Messages
16,342
Reaction score
326
Location
lost
Currently, it encourages the client 255 msg bug, so I'd avoid it. The built in admin system encourages less, but even that is problematic. *sigh*
 
Top