heh.  Yes, I do know and use this method.  First, let me share a little
implementation history.

Deacon and I have been working through several implementation methods of
multiple servers to find the most optimum.  First, like many others, we
installed completely new versions of HLDS + MOD in seperate directories
like:

d:\games\hlds\27015 (HLDS root)
d:\games\hlds\27015\cstrike (MOD root)
d:\games\hlds\27016 (HLDS root)
d:\games\hlds\27016\tfc (MOD root)
...

This worked, but, it was still a pain to maintain during every patch release
(especially for Deacon who had like 25+ HLDS servers on a single PC).  So,
we figured out a way to install 1 copy of HLDS, but have multiple
subdirectories for each port (which was basically copying each mod directory
into a port named subdirectory.  Here is what that looked like:

d:\games\hlds (HLDS root)
d:\games\hlds\27015\cstrike (MOD root)
d:\games\hlds\27016\tfc (MOD root)
...

In order to implement this method, we changed the -game parameter to:

hlds.exe -port 27015 -noipx -game 27015\cstrike
hlds.exe -port 27016 -noipx -game 27016\tfc

This was still inefficient since we had to upgrade all the MOD directories
during each MOD upgrade.  This was still a headache.  So, we figured out how
to use the other parameters so we can have multiple copies of HLDS launching
with their own .cfg files.  Now, our directories were like:

d:\games\hlds (HLDS root)
d:\games\hlds\cstrike (MOD root)
d:\games\hlds\tfc (MOD root)

With our parameters like:

hlds.exe -port 27015 -noipx -game cstrike +motdfile motd_27015.txt
+mapcyclefile mapcycle_27015.txt +servercfgfile server_27015.cfg +exec
server_27015.cfg

hlds.exe -port 27016 -noipx -game tfc +motdfile motd_27016.txt +mapcyclefile
mapcycle_27016.txt +servercfgfile server_27016.cfg +exec server_27016.cfg

hlds.exe -port 27017 -noipx -game tfc +motdfile motd_27017.txt +mapcyclefile
mapcycle_27017.txt +servercfgfile server_27017.cfg +exec server_27017.cfg

Now, if you need to have 1x settings upon HLDS launch, just create another
.cfg file and add another +exec on the commandline (untested).  We basically
log on all of our servers so we just set the "log on" in the autoexec.cfg
that the hlds uses for all servers.  But, at least each server has it's own
set of other .cfg files.

So, where does that leave us today?  We now do a single installation of HLDS
and of each MOD we use.  I haven't been able to figure out how to specify
different liblist.gam files or even if that is possible.  Also, enhancement
MODs like AdminMOD, ClanMOD, or even NeoTF have their own ways of
implementation which makes our lives a little bit of a challenge.

I will leave you with this though.  Me, along with a group of others are
working on a group of websites that will contain useful information such as
this post in the near future.  UnitedAdmins.com will be folded into the new
network but will be more open and provide better information.  We're also
branching out to support developers and mappers.  So, look for future
announcements on this in the weeks to come.  If you are interested in
joining the project team for these websites, please reply (privately) to me.
Thank you and hopefully this information was useful.

P.S. Although many of you disliked Deacon, he is pretty bright and
knowledgeable, not to mention instrumental in the many hours spent in the
optimization of multiple server hosting.

HoundDawg
http://www.phpGamingSite.com
http://www.unitedadmins.com
http://www.unitedadmins.com/hlbp
----- Original Message -----
From: "Stan Hoeppner" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, October 15, 2001 9:38 PM
Subject: RE: [hlds] Multiple Servers & Different Map Cycles on one box?


> > >How do you run 2 servers on a single box with one ip and
> > using the -port
> > >27015 and -port 27016  from separate shortcuts, but then
> > have them run
> > >separate map cycles?
>
> Duplicating your entire dir structure is a waste of space, AND will cause
a
> performance hit.  Because the files are in different locations, the file
> cache manager (Linux or Winnt/2000) will assume c:\half-life\hlds.exe is
NOT
> the same file as d:\half-life\hlds.exe.  So, even if the former is cached
in
> RAM, the latter is not, and it will have to be loaded from disk, even
though
> an indentical file is already cached in RAM.  This goes for all the map
> files and so on.
>
> So, to answer your question, it is better, from a performance and storage
> perspective, to have 1 copy of the game files set, and tweak your config
> files to allow running multiple servers with different settings.  You'll
> need to do this for both the input files (.cfg's) and for your output
files
> (banned.cfg, for instance).
>
> I know this has been covered before, but as I'm not doing it, I don't
> remember exactly how to pull it off.  I know that it is possible to create
> different versions of autoexec.cfg, server.cfg, mapcycle.txt, and so on.
> You give them a different names, such as autoexec1.cfg, server1.cfg,
> mapcycle1.txt, and so on.  Then, on the target line of the launching
> shortcut (or in the batch file) for each server you want to run, you add a
> dash "-" something string to tell HLDS to use the alternate file names,
> instead of the default names, for the config files.  You specify in the
> command line to HLDS that you're using a different file that the default
it
> will look for, but I can't remember the -xxx strings to do it.
>
> So, on your command lines you'll have something like:
>
> c:\half-life\hlds.exe -game cstrike (this is the 1st server, so use the
> defaults)
> d:\half-life\hlds.exe -game cstrike -port 27016 -xxx autoexec1.cfg -xxx
> server1.cfg etc.
>
> Damnit, I can't remember where I read about it, and I don't think it was a
> post here.  I'm pretty sure HowndDawg knows about this, or might even have
> it in his FAQ.  Is HowndDawg still around??  Anyone have a link to his
FAQ?
>
> Someone help out plz...I've got him half way there.  :)
>
> StanTheMan
> TheHardwareFreak
> www.hardwarefreak.devastation.cc
> [EMAIL PROTECTED]
>
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, October 15, 2001 6:40 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: [hlds] Multiple Servers & Different Map Cycles
> > on one box?
> >
> >
> > I'm doing that right now. I just cloned my HL installation
> > into another
> > directory, changed the shortcut for the second server to look
> > in the new
> > directory and to use port 27014, and that was all it took. I
> > had a spare
> > 60GB drive that Maxtor sent me to replace my brand new failed
> > drive. It was
> > an "oem recertified" - translation - we took someone else's
> > bad hard drive,
> > did a low level and shipped out to you, you poor sucker.
> > Anyhow, I didn't
> > trust the thing, it had scratch marks on the side from being
> > shoved into
> > drive bays again and again, and I just didn't trust the piece
> > of junk. Great
> > for a half-life server though! I'm using maybe 10G of a 60GB
> > hard drive, I
> > have more hard drive then I know what to do with.
> >
> > 63.230.175.147:27015 Ooks Portland/Seattle 1001 Maps Pit of Death!
> > 63.230.175.147:27014 Ooks 1001 Maps Pit of Death ICE Server!
> >
> > >How do you run 2 servers on a single box with one ip and
> > using the -port
> > >27015 and -port 27016  from separate shortcuts, but then
> > have them run
> > >separate map cycles?  Do you have to have a whole separate
> > HLServer and
> > >subfolders setup that each shortcut would separately
> > reference?  Seems like
> > >a lot of wasted MB's...but I could do that.   Thanks
> > >
> >
> >
> > _______________________________________________
> > To unsubscribe, edit your list preferences, or view the list
> > archives, please visit:
> > http://list.valvesoftware.com/mailman/listinfo/hlds
> >
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives,
please visit:
> http://list.valvesoftware.com/mailman/listinfo/hlds
>
>

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please visit:
http://list.valvesoftware.com/mailman/listinfo/hlds

Reply via email to