Jump to content

Home

Adding a second server to the same PC


Aerys

Recommended Posts

Is there anything I need to know other than just using a different port #?

 

I tried starting up a second dedicated server but the first stopped talking to the master server and the second never appeared in the list.

 

I also couldn't see either server in my client's local list.

 

I have a small lan sitting behind a LinkSys router which is forwarding 28070-28080 to the PC running the server(s).

Link to comment
Share on other sites

Depending on your exact setup, you'll probably want to either have two separate folder structures for each or clean out and lock (read only) the jk2mpconfig.cfg. You could, alternatively, make sure each config is 100% complete so that none of the setting "bleed" over from one to the other.

Link to comment
Share on other sites

Well, it's not a filesharing problem. The trick is that any setting not specifically set in the server.cfg is picked up from the jk2mpconfig.cfg. So, if you set, for example, a motd for one and not the other, the second will "inherit" the motd from the first.

Link to comment
Share on other sites

  • 3 weeks later...

I added a Duel server to my IP today in addition to an FFA server. First I had problems with the server I started first picking up commands from the second server. The cfg files have identical variables set to the appropriate values. For example my Duel server switched to an FFA game after the first map, and my FFA server loaded duel maps. Pretty funny, but fustrating.

 

I've tried cleaning out and making jk2mpconfig.cfg read-only. Now my second server won't start. Msgs similar to this:

 

--- Common Initialization Complete ---

Winsock Initialized

Opening IP socket: localhost:28070

WARNING: UDP_OpenSocket: bind: WSAEADDRINUSE

Opening IP socket: localhost:28071

Hostname: !

IP: 24.61.!.!

Working directory: C:\Program Files\LucasArts\Star Wars JK II Jedi Outcast\GameData

execing jk2ded_no2.cfg

g_gametype will be changed upon restarting.

Unknown command "1"

usage: set <variable> <value>

Hitch warning: 30767019 msec frame time

 

Now I'm back to one server working properly and a read/write jk2mpconfig.cfg.

 

Has anyone got this to work? Help...

Link to comment
Share on other sites

////////////////////

// Server Config //

//////////////////

 

// set net_port 28070

 

seta sv_hostname "Saber Only ^1[ASS][JM]"

seta g_motd "^7Visit ^1http://24.61.63.78 ^7To View Your Playing Stats"

seta rconpassword "!"

seta sv_master1 "masterjk2.ravensoft.com"

seta sv_master2 ""

seta sv_master3 ""

seta sv_master4 ""

seta sv_master5 ""

 

// Enable IP banning

//seta g_filterban "1"

//seta g_banIPs ""

 

////////////////////

// Game Settings //

//////////////////

 

seta g_gametype 0 // 0=FFA, 1=Holocron, 2=Jedi Master, 3=Duel, 5=Team FFA, 7=CTF, 8=Capture the Ysalimari

seta timelimit 20

seta fraglimit 20

// seta duel_fraglimit 10

seta g_password "" // For Private Game

seta g_doWarmup 0

seta g_warmup 0

seta g_allowvote 0

seta g_maxForceRank 7

seta g_ghostRespawn 3

seta g_forcerespawn 0

seta g_weaponrespawn 10

seta g_adaptrespawn 1

seta g_timeouttospec 70

seta g_forceRegenTime 115 // 200 is default

seta g_spawnInvulnerability 2000 // 3000 ms default invulerability

seta g_privateDuel 1 // allows the issueing of private duel challenges

//seta g_gravity 800

seta sv_minPing 0

seta sv_maxPing 0

seta sv_maxclients 11

seta sv_minclients 2

seta sv_privateClients 1 // Number of private slots.

seta sv_timeout 900 // Time (in seconds) server waits for packet before disconnecting clients

seta sv_maxrate 6000

seta sv_floodprotect 1 // Recomend you disable

seta sv_pure 1

seta sv_cheats 0

seta sv_allowDownload 0 // 1 = allows players to download maps and skins

seta cl_allowDownload 0 // 1 = allows playes to download maps and skins

seta cg_deferPlayers 0 // 1 = Delays the loading of new player models

 

// Weapon Settings

seta g_weaponDisable 65531 // 0 = Nothing is disabled. 65531 = Lightsaber only.

seta g_duelWeaponDisable 65531

// 1 No Weapon (not used)

// 2 Stun Baton

// 4 Sabre (doesn't work)

// 8 Bryar Pistol

// 16 Stormtrooper Rifle

// 32 Disruptor

// 64 Bowcaster

// 128 Repeater

// 256 DEMP Gun

// 512 Flechette Rifle

// 1024 Rocket Launcher

// 2048 Thermal Detonators

// 4096 Trip Mines

// 8192 Detonator Packs

 

// Force Settings

seta g_forcePowerDisable 0

seta g_maxForceRank 7

// 1 Heal [light]

// 2 Jump

// 4 Speed

// 8 Push

// 16 Pull

// 32 Mind Trick [light]

// 64 Grip [dark]

// 128 Lightning [dark]

// 256 Dark Rage [dark]

// 512 Protect [light]

// 1024 Absorb [light]

// 2048 Team Heal

// 4096 Team Energize

// 8192 Drain [dark]

// 16384 Seeing

 

/////////////////////

// Saber Settings //

///////////////////

 

//seta g_friendlyfire 1 // Protects teammates from saber attack

//seta g_friendlySaber 1 // Protect teammates from idle saber

seta cg_dismember 2 // 2 = Full dismemberment; 1 = Legs, arms, etc.

seta g_dismember 200 // 1 to 100 Probability

seta g_saberLocking 1 // 0/1 (Off/On)

seta g_saberDmgVelocityScale 1 // Knockback -Range Unknown

seta g_saberTraceSaberFirst 1 // 0/1 (Off/On) "1.03 style" for more saber blocking

seta g_saberInterpolate 1 // Don't change

 

///////////////////

// File Logging //

/////////////////

 

seta g_logfile 3 // 0=None

seta g_log "games.log" // Default location is ~/.jkii/base/

seta g_logSync 1 // 1=Write complete lines

seta g_statLog 1 // Probably similar to g_logfile. Untested.

seta g_statLogFile "stats.log"

 

///////////////////

// BOT Settings //

/////////////////

 

seta bot_nochat 1 // 0 = bot chat on, 1 = bot chat off

seta bot_enable 1

seta bot_minplayers 2

seta bot_fastchat 0

seta bot_grapple 0

// seta bot_thinktime 50

seta g_spSkill 1

 

///////////////////

// Map Rotation //

/////////////////

 

// duel_bay, duel_carbon, duel_jedi, duel_pit, duel_academy, duel_bespin, duel_temple, duel_hangar,

 

duel_training, // ffa_bespin, ffa_deathstar, ffa_imperial, ffa_ns_hideout, ffa_ns_streets, ffa_raven,

 

ffa_yavin

// ffa_carbonfreeze, map_canyon_oasis

// ctf_bespin, ctf_imperial, ctf_ns_streets, ctf_yavin

 

seta g_autoMapCycle 0

seta streets "map ffa_ns_streets ; set nextmap vstr hideout"

seta hideout "map ffa_ns_hideout ; set nextmap vstr imperial"

seta imperial "map ffa_imperial ; set nextmap vstr bespin"

seta bespin "map ffa_bespin ; set nextmap vstr yavin"

seta yavin "map ffa_Yavin ; set nextmap vstr streets"

vstr streets

 

////////////////////////////////////////////////////////////////////////////////

// Optional Duel Map Rotatation via "vstr duel_carbon" : Returns to Streets //

//////////////////////////////////////////////////////////////////////////////

 

seta duel_carbon "map duel_carbon ; set fraglimit 0 ; set timelimit "10" ; set nexmap vstr duel_temple"

seta duel_temple "map duel_temple ; set fraglimit 0 ; set timelimit "10" ; set nexmap vstr duel_training"

seta duel_training "map duel_training ; set fraglimit 0 ; set timelimit "10" ; set nexmap vstr streets"

Link to comment
Share on other sites

////////////////////

// Server Config //

//////////////////

 

// set net_port 28070

 

seta sv_hostname "Saber Only ^1[ASS][JM] ^7Duel"

seta g_motd "^7Visit ^1http://24.61.63.78 ^7To View Your Playing Stats"

seta rconpassword "!"

seta sv_master1 "masterjk2.ravensoft.com"

seta sv_master2 ""

seta sv_master3 ""

seta sv_master4 ""

seta sv_master5 ""

 

// Enable IP banning

//seta g_filterban "1"

//seta g_banIPs ""

 

////////////////////

// Game Settings //

//////////////////

 

seta g_gametype 3 // 0=FFA, 1=Holocron, 2=Jedi Master, 3=Duel, 5=Team FFA, 7=CTF, 8=Capture the Ysalimari

seta timelimit 20

seta fraglimit 1

seta duel_fraglimit 10

seta g_password "123456" // For Private Game

seta g_doWarmup 0

seta g_warmup 0

seta g_allowvote 1

seta g_maxForceRank 7

seta g_ghostRespawn 3

seta g_forcerespawn 0

seta g_weaponrespawn 10

seta g_adaptrespawn 1

seta g_timeouttospec 70

seta g_forceRegenTime 115 // 200 is default

seta g_spawnInvulnerability 2000 // 3000 ms default invulerability

seta g_privateDuel 1 // allows the issueing of private duel challenges

//seta g_gravity 800

seta sv_minPing 0

seta sv_maxPing 0

seta sv_maxclients 11

seta sv_minclients 2

seta sv_privateClients 1 // Number of private slots.

seta sv_timeout 900 // Time (in seconds) server waits for packet before disconnecting clients

seta sv_maxrate 7000

seta sv_floodprotect 1 // Recomend you disable

seta sv_pure 1

seta sv_cheats 0

seta cl_allowDownload 0 // 1 = allows playes to download maps and skins

seta cg_deferPlayers 0 // 1 = Delays the loading of new player models

 

// Weapon Settings

seta g_weaponDisable 65531 // 0 = Nothing is disabled. 65531 = Lightsaber only.

seta g_duelWeaponDisable 65531

// 1 No Weapon (not used)

// 2 Stun Baton

// 4 Sabre (doesn't work)

// 8 Bryar Pistol

// 16 Stormtrooper Rifle

// 32 Disruptor

// 64 Bowcaster

// 128 Repeater

// 256 DEMP Gun

// 512 Flechette Rifle

// 1024 Rocket Launcher

// 2048 Thermal Detonators

// 4096 Trip Mines

// 8192 Detonator Packs

 

// Force Settings

seta g_forcePowerDisable 0

seta g_maxForceRank 7

// 1 Heal [light]

// 2 Jump

// 4 Speed

// 8 Push

// 16 Pull

// 32 Mind Trick [light]

// 64 Grip [dark]

// 128 Lightning [dark]

// 256 Dark Rage [dark]

// 512 Protect [light]

// 1024 Absorb [light]

// 2048 Team Heal

// 4096 Team Energize

// 8192 Drain [dark]

// 16384 Seeing

 

/////////////////////

// Saber Settings //

///////////////////

 

//seta g_friendlyfire 1 // Protects teammates from saber attack

//seta g_friendlySaber 1 // Protect teammates from idle saber

seta cg_dismember 2 // 2 = Full dismemberment; 1 = Legs, arms, etc.

seta g_dismember 200 // 1 to 100 Probability

seta g_saberLocking 1 // 0/1 (Off/On)

seta g_saberDmgVelocityScale 1 // Knockback -Range Unknown

seta g_saberTraceSaberFirst 1 // 0/1 (Off/On) "1.03 style" for more saber blocking

seta g_saberInterpolate 1 // Don't change

 

///////////////////

// File Logging //

/////////////////

 

seta g_logfile 3 // 0=None

seta g_log "games_no2.log" // Default location is ~/.jkii/base/

seta g_logSync 1 // 1=Write complete lines

seta g_statLog 1 // Probably similar to g_logfile. Untested.

seta g_statLogFile "stats_no2.log"

 

///////////////////

// BOT Settings //

/////////////////

 

seta bot_nochat 1 // 0 = bot chat on, 1 = bot chat off

seta bot_enable 1

seta bot_minplayers 2

seta bot_fastchat 0

seta bot_grapple 0

// seta bot_thinktime 50

seta g_spSkill 1

 

///////////////////

// Map Rotation //

/////////////////

 

// duel_bay, duel_carbon, duel_jedi, duel_pit, duel_academy, duel_turbine, duel_bespin, duel_temple, duel_hangar, duel_training, Echo_Base_Duel

// ffa_bespin, ffa_deathstar, ffa_imperial, ffa_ns_hideout, ffa_ns_streets, ffa_raven, ffa_yavin

// ffa_carbonfreeze, map_canyon_oasis

// ctf_bespin, ctf_imperial, ctf_ns_streets, ctf_yavin

 

seta carbon "map duel_carbon ; set nextmap vstr pit"

seta pit "map duel_pit ; set nextmap vstr academy"

seta academy "map duel_academy ; set nextmap vstr training"

seta training "map duel_training ; set nextmap vstr carbon"

// Set the start map

vstr d1

 

==================

This is the server that won't run.

oh, and here are my shortcut command lines:

For the FFA:

"C:\Program Files\LucasArts\Star Wars JK II Jedi Outcast\GameData\jk2mp.exe" +set dedicated 2 +exec jk2ded.cfg

 

For the Duel:

"C:\Program Files\LucasArts\Star Wars JK II Jedi Outcast\GameData\jk2mp.exe" +set dedicated 2 +exec jk2ded_no2.cfg

Link to comment
Share on other sites

Have you thought about running jk2ded.exe(you'll have to download it) rather than jk2mp?

 

We run about 5-10 servers depending on player size per box at I-LAN, and we don't run into any problems at all.

 

Mind you, there is nobody playing on the machines, and they all have their own IP address. But that's not a big deal, just makes it easier for customers.

 

As well, we copy over the install files, so each server has it's own directory, rather than sharing directories. If you have the space on your hard drive for that, I reccomend doing that.

 

If you need assistance setting up the two servers, I can help. Also, feel free to e-mail me with any questions if you need a speedy reply.

 

tim@ilangame.com

Link to comment
Share on other sites

I agree with wicked--you should try running the dedicated server binary rather than the mp game, because there's a lot more overhead involved. I can tell by the size of the hitch warning that your cpu is getting hammered. There's clearly an error in your config, but I haven't spotted it just yet. You might go with something simpler and see if that works--at least to test. Then add things in sections.

Link to comment
Share on other sites

Matrix, I am in dire need of help. JK2 related, but not Server related.

 

I am at my wits end. My boss can't figure out the problem and neither can I.

 

Rather than go into detail about it here, I've already posted it in the technical help forum.

 

If you would be so kind as to e-mail me, I would be most appreciative. I could send you a Voodoo 5 as payment, it would make a good paper weight for you. ;)

 

tim@ilangame.com

or

darthwicked@corruptiveminds.com

 

Either way, if you could please get in touch with me, you are about my last hope at this point.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...