View Full Version : Run 2 or more dedi server from one PC
Pacient.cz
06-06-2009, 04:40 AM
We have to say that its great that CPU/Memory requiarments for FC-2 server was so dramtically reduced. This is one of the best news after patch.
But I suppose that it was done in goal to allow users /clans run more then one server from one pc. So can someone give us information how to do it ? We tried several things like renamed-duplicate dedicated_server.cfg to dedicated_server1.cfg then set there different config for serverlauncher target as -server1.cfg, we even tried to make copy of FCSerevrlauncher.exe,rename it and run it with different target settings, but nothing works. http://forums.ubi.com/images/smilies/compsmash.gif
We were able to run two servers, but both of them read same config file, so for example we are not able run one server for CTD and the second one for Uprising.
Any idea ? http://forums.ubi.com/groupee_common/emoticons/icon_rolleyes.gif
thafuriousone
06-06-2009, 05:17 AM
Originally posted by Pacient.cz:
We have to say that its great that CPU/Memory requiarments for FC-2 server was so dramtically reduced. This is one of the best news after patch.
This was done because no game server host would touch this game and host a "true" dedicated server for anyone unless they were to fork over 100$/slot http://forums.ubi.com/groupee_common/emoticons/icon_smile.gif.
Agent00Kevin
06-06-2009, 07:54 AM
I have done this, Pacient, by starting a server, then copy-pasting anohter .cfg from a notepad document placed on my desktop. I then save the new dedcated_server.cfg file and launch it. It has the new map rotation and game mode.
I hear there is a way to lauch the server with any .cfg file you want from the bin folder, but Im in the dark as to how that works. I cant type anything in there unless I make a new text document.
cyberbum
06-06-2009, 07:57 AM
If you add to the .exe commandline, "-dedicated <absolute path to config file>", that should do the trick.
Be careful of paths with spaces, you'll have to enclose those in quotes:
C:\Program Files\FC2ServerLauncher.exe -dedicated "C:\Folder With Spaces\dedicated.cfg"
thafuriousone
06-06-2009, 07:58 AM
no the server launcher is a stand alone and cant be changed once launch other then remotely through the game or a remote client.
Yes theoretically you can run more then 1 dedi on the same box.
start the launcher
it will run currant dedicated_server.cfg file
now replace that cfg file with a new one with different settings
start another dedi server
this new server will load up the new replaced cfg file.
I HIGHLY RECOMMEND NOT DOING THIS ON A PERSONAL COMPUTER http://forums.ubi.com/groupee_common/emoticons/icon_smile.gif.
Pacient.cz
06-06-2009, 02:35 PM
Thnaks for replies guys, I will try out and if that cyberbum recommendation would works, I will let you know http://forums.ubi.com/groupee_common/emoticons/icon_wink.gif
DD-Huntor
06-06-2009, 08:25 PM
Servers are personal computers and in most cases people with personal computers have faster and more capable machines that server running systems. All depends on how much you want to spend. ;-)
JET-WTF
06-06-2009, 08:35 PM
Originally posted by DD-Huntor:
Servers are personal computers and in most cases people with personal computers have faster and more capable machines that server running systems. All depends on how much you want to spend. ;-)
Advertise yours ya nut! Just because you own a server company doesnt mean you arnt allowed to advertise Mr. Primetech.
Pacient.cz
06-07-2009, 01:51 AM
Well I finally able to make it works, even not all is as we wish. For example different gamemod including HC on and off was ok, but name of servers was same, even we had a different server names on those two dedicated_server.cfg files.
So first FarCryServerLauncher had an original target settings to the dedicated_server.cfg and it looks like this :
<span class="ev_code_YELLOW">"C:\Program Files (x86)\Ubisoft\Far Cry 2\bin\FC2ServerLauncher.exe" -server1.cfg </span>
It runs CTD
Second FarCryServerLauncher has got absolute path to second server settings file dedicated_server1.cfg
<span class="ev_code_YELLOW">"C:\Program Files (x86)\Ubisoft\Far Cry 2\bin\FC2ServerLauncher.exe" -C: \Users \fccz \Documents \My Games \Far Cry 2 \Server \dedicated_server1.cfg</span>
We try experiment with that and let you know.
Then there is also question, if those both servers would use same pbsv.cfg file and then if would be possible use pbweb tool and so one. http://forums.ubi.com/groupee_common/emoticons/icon_rolleyes.gif
TuG.Beaver
06-07-2009, 12:54 PM
Having looked at the dedicated_log.txt created when running a local test server, you can see all the different settings being done when the server starts.
Just a brief scan gave me the following interesting line:
Setting onlineEnginePort : 9000
As I could find no mention of a setting to set the IP used, I am therefore guessing that changing the port in this line in different configs may allow 2 servers run (on diff ports) on the same machine - I'll have to do some testing to see.
Also, to run 2 different servers I'd make 2 copies of the FC2 install folder - i.e. FC2-1 & FC2-2 with 2 diff configs and running on separate ports....
If I get time later this evening, i'll do it on our dedicated box.
Doderik1966
06-08-2009, 12:15 PM
Well after reading this thread I decided to give it a try, since I have a few configs lined up. I first doubleclicked my regular DM server config and had it started up. After it was waiting in the lobby I started up my DM Hardcore config and that started up without a problem as well. Both running on my secondary singlecore P4 3.2Ghz PC http://forums.ubi.com/images/smilies/winky.gif
Then I joined them from my other primary PC through the serverbrowser, no problem. Both were visible with a different name like in my configs. Ofcourse I could not test both servers being joined at the same time (have mercy on my poor singlecore server). Don't know if a crash would be eminent than, since apparantly only one log is being used.
Now that I am typing this I decided to doubleclick both serverconfigs at the same time and even than they startup without a problem. One ends up at MY_IP:9005, the other at MY_IP:9007, quite nice.
I think I will post how I arrange and start my configs in the other dedicated server thread for those interested.
Pacient.cz
06-08-2009, 11:51 PM
Yes Doderic, please post it right here soon http://forums.ubi.com/groupee_common/emoticons/icon_wink.gif
thafuriousone
06-09-2009, 02:56 AM
Originally posted by DD-Huntor:
Servers are personal computers and in most cases people with personal computers have faster and more capable machines that server running systems. All depends on how much you want to spend. ;-)
LOL that is an ignorant statement, sorry LOL.
Doderik1966
06-09-2009, 09:19 AM
Originally posted by Pacient.cz:
Yes Doderic, please post it right here soon http://forums.ubi.com/groupee_common/emoticons/icon_wink.gif
I have put it in this thread http://forums.ubi.com/eve/foru...696/m/5311059947/p/4 (http://forums.ubi.com/eve/forums/a/tpc/f/1821007696/m/5311059947/p/4) .
After cloning and adjusting some configs and accompanying shortcuts, it's just a matter of doubleclicking the shortcut of choice.
The procedure is more or less described in the dedicated server readme file, but by somebody who probably has never started up one...
If it's not clear I could make a PDF with illustrating screenshots.
Agent00Kevin
06-12-2009, 08:45 AM
Ok, so I got a lot of disconnects including myself, so it wasnt people quittiong, with the multiple server on 1 PC. It could be a port thing, but I went with a new and much more stable way.
Since I have multiple hard drives and 2 terabytes of space between them, I went into my F: drive and updated Fc2 there, as it was a backup. I made a shortcut for that drive's server, and put it on the desktop. I included a custom dedi file of coure as well. Now I just click on the appropriate shortcut, and the dedis take off, each running on a seperate hard drive. I start one up, and let it get into the lobby yo make sure all ports are occupied that it is going to use. Then, I load up the F: drive server, and it chooses different ports.
So far it has been stable, as the other ways of running 2 on one PC seemed a bit unstable as one would like to stop working eventually.
I am thinking that 2 completely different hard drives is the key to successfully running 2 dedis on one box, though it could be something Ive done wrong, left out, or just my OS.
thafuriousone
06-12-2009, 10:50 AM
Originally posted by Agent00Kevin:
Ok, so I got a lot of disconnects including myself, so it wasnt people quittiong, with the multiple server on 1 PC. It could be a port thing, but I went with a new and much more stable way.
Since I have multiple hard drives and 2 terabytes of space between them, I went into my F: drive and updated Fc2 there, as it was a backup. I made a shortcut for that drive's server, and put it on the desktop. I included a custom dedi file of coure as well. Now I just click on the appropriate shortcut, and the dedis take off, each running on a seperate hard drive. I start one up, and let it get into the lobby yo make sure all ports are occupied that it is going to use. Then, I load up the F: drive server, and it chooses different ports.
So far it has been stable, as the other ways of running 2 on one PC seemed a bit unstable as one would like to stop working eventually.
I am thinking that 2 completely different hard drives is the key to successfully running 2 dedis on one box, though it could be something Ive done wrong, left out, or just my OS.
YAR i run 5 dedis on my 2.8 P4 single core / 2 gig PC2700 ram / 20gig standard 5400RPM HD / Geforce 5200go 32meg video Laptop!!!
Come play on my crappy servers http://forums.ubi.com/groupee_common/emoticons/icon_smile.gif i mean uber PC (personal computer) http://forums.ubi.com/groupee_common/emoticons/icon_smile.gif.
HAHA sorry just being a nutt http://forums.ubi.com/groupee_common/emoticons/icon_smile.gif.....
Agent00Kevin
06-12-2009, 05:23 PM
Originally posted by thafuriousone:
<BLOCKQUOTE class="ip-ubbcode-quote"><div class="ip-ubbcode-quote-title">quote:</div><div class="ip-ubbcode-quote-content">Originally posted by Agent00Kevin:
Ok, so I got a lot of disconnects including myself, so it wasnt people quittiong, with the multiple server on 1 PC. It could be a port thing, but I went with a new and much more stable way.
Since I have multiple hard drives and 2 terabytes of space between them, I went into my F: drive and updated Fc2 there, as it was a backup. I made a shortcut for that drive's server, and put it on the desktop. I included a custom dedi file of coure as well. Now I just click on the appropriate shortcut, and the dedis take off, each running on a seperate hard drive. I start one up, and let it get into the lobby yo make sure all ports are occupied that it is going to use. Then, I load up the F: drive server, and it chooses different ports.
So far it has been stable, as the other ways of running 2 on one PC seemed a bit unstable as one would like to stop working eventually.
I am thinking that 2 completely different hard drives is the key to successfully running 2 dedis on one box, though it could be something Ive done wrong, left out, or just my OS.
YAR i run 5 dedis on my 2.8 P4 single core / 2 gig PC2700 ram / 20gig standard 5400RPM HD / Geforce 5200go 32meg video Laptop!!!
Come play on my crappy servers http://forums.ubi.com/groupee_common/emoticons/icon_smile.gif i mean uber PC (personal computer) http://forums.ubi.com/groupee_common/emoticons/icon_smile.gif.
HAHA sorry just being a nutt http://forums.ubi.com/groupee_common/emoticons/icon_smile.gif..... </div></BLOCKQUOTE>
Cant help but take that personally. You have no clue what kind of PC I run, and I will take pictures of my beautiful rig and show you how much of an.....well I cant finish that statement dince Id definitely get banned.
Here is the simple truth:
The Dedicated server only runs on one core, as do most applications still.
Pit an Intel Q6600 (quad core) against an Intel E8500 (dual core) and guess what: 99% of the time the dual core will win. Why you ask? Because the clock speed of the Duo is higher than the quad core. Since most applications only use one core (including the dedi) the higher clock speed s what matters most of the time. A P4 single core with HT @ 3.2 Ghz would actualluy perform better at running a dedi (if thats all you are doing with it) than a 2.5 quad, and thats the simple facts.
I may not be a master of Windows, but I build PC's as a hobby for things as simple as basic internet access for people at a good price or a gaming rig that is financially responsible while handling almost any game on decent settings.
Believe it or not, I had Crysis running pretty darn good on a P4 3.2 HT and a 8600 GTS OC gpu. (of course there was overlocking...) Except the part where there were tons of the aliens flying around in the sky near the end. That was a bit much for that poor ol rig.
So, when I look at my Nvidia Monitor, My ASUS monitor, or even my flippin windows task mgr, and see running 3 servers on 1 pc is only taking 40% CPU (on ONE core and not even CLOSE to maximum frequency) 45% RAM (and I took out a couple gigs, only running 2 now) and GET THIS: 0.29 % of a 100mbps connection.
Do the math. The new server launcher takes nearly nothing to run. Now, to quote a rant of mine, 14 Year old Billy with his mommy's Wal-Mart PC CAN indeed host matches, and do it well.
Also, if my server was crap as you imply, why would I be busy nearly all of the time, with regulars and new names alike.
I suppose its cuz they got used to playing on a laggy, crappy server, right?
Geez.
thafuriousone
06-12-2009, 10:13 PM
LOL i love you kev, you sure put a smile to my face every time http://forums.ubi.com/groupee_common/emoticons/icon_smile.gif.
Yes i know the logic on processing as well as the difference between an actual server compared to a PC.
But then again i can see it is very hard for you to see a joke within text then some http://forums.ubi.com/groupee_common/emoticons/icon_smile.gif. One day you will see the "joke" in my text when i post them,,,maybe......
Doderik1966
06-13-2009, 03:29 AM
The only joke I see is someone discouraging people to host their own personal dedicated server in several different threads.. I cannot understand why. Is there no such thing as freedom of hosting ?!
Go ahead and host your own player match, just adjust your maximum amount of players to the capabilities of your rig and more important limitations of your broadband connection.
Have fun ! http://forums.ubi.com/images/smilies/88.gif