Jump to content

Home

Two Servers on One Box?!?!?!?!


Hanging P

Recommended Posts

Posted

Is this possible?

 

I've currently got a 12 player ffa server running.

 

I was thinking it would be cool to also have a 4 person duel server running too. The question is, is there a way to run two seperate dedicated servers off of one box?

 

Obviously I'd have to give the second server a different port (ex- 28071). Also, I was thinking I might have to install the game twice in different areas so that each server's files wouldn't confuse one another.

 

Then there is the problem of the cd to run the server?

 

Ideas? Questions? Answers? thanks

Posted

What type of box (win/linux) are you running? If the answer is linux, I'd just create separate user and make sure they are in the same group as your other jk2 user. Then, create a new startup script that utilizes a different port in the orginal directory and have at it. That way you get the processes separated but only need one instance of the directory and files. If you'd rather keep them both processes under the same user, you'll just need to make sure that you have a separate config file that renames the log file.

 

I'd expect the situation to be similar under windows...except that you don't create another user, but make the changes in either log file location or name and pass a different port to the application on startup.

Posted

Yeah, i was thinking about doing that...just trying it with two seperate launch icons.

 

I want to try it, but i'm worried that **** will start blowing up.

 

But seriously, my main concern is the need for a cd.

 

I'll give it a try and let you guys know if it works, if anyone else is interested in doing the same thing.

Posted

i run two jk2 servers on one box, one duel and the other ctf...

 

./jk2ded +exec server.cfg

 

./jk2ded +set net_port 28071 +exec server2.cfg

 

 

to have each one log to its own log file add the following line to server.cfg:

seta g_log "game-1.log"

 

and the following line to server2.cfg:

seta g_log "game-2.log"

 

 

/stem

Posted

Based on his reply, it sure sounds like he's running on a win box. Thus, his command line would look slightly different. Along the lines of:

 

"C:\Program Files\LucasArts\Star Wars JK II Jedi Outcast\GameData\jk2Ded.exe +exec server1.cfg

 

"C:\Program Files\LucasArts\Star Wars JK II Jedi Outcast\GameData\jk2Ded.exe" +set net_port 28071 +exec server2.cfg

 

The changes to the log file settings in each server.cfg would still be required as previously noted. ;)

Posted

Yeah, I've got it working.

 

I actually put the net_port line in the respective cfgs.

 

But I don't think you have to. I'm pretty sure it automatically give the 2nd server you launch the 28071 port by default. I launched my ffa server (whos port is set to 28070) second, and the port came up as 28071.

 

So therefore, whatever server is launched first will get the 28071 port, then the next will get 28071 automatically, and so on.

Posted

Yes, by design the app will "scan" the a range of ports until it finds one open. Generally, I prefer to assign the ports...just so I'm sure which one they used. ;) Glad to hear that you got them up and running.

Posted

Are you behind a firewall? How long did you wait, occasionally it can take while for the servers to show up in the list. Can players still connect via ip? Do you see it sending the heartbeat in the console?

Posted

I'm behind a linksys 4 port router.

 

They're both up now, but only the 12 player ffa comes up on the master list. But there were people playing on both of them at the same time.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...