Jump to content

Home

A Guide To Set Up a Server + Config


Jman3ooo

Recommended Posts

Here you go. There's a bunch of information only stuff at the top, you can delete it if you want, or use it. I like to provide info about my server to the players. If you have any questions about the settings, just ask. This does not show ALL possible settings, but most of the general ones.

 

// Basic Duel Server Config

// Server Information

seta sv_hostname "Server Name" //As it appears in the server list

seta g_motd "My MOTD"

sets Administrator "Admin Name" // optional

sets CPU "My CPU" // optional

sets Clan "My Clan" // optional

sets Email "myemail@mywebsite.com" // optional

sets Connection "OC192" // I wish (optional)

sets URL "www.mywebsite.com" // optional

sets Location "wherever" // optional

seta sv_zone "DUEL" // For info only

seta g_needpass "0" // 0=No 1=Yes - For info only. Does not password server.

 

// Passwords

seta g_password "" // Leave emtpy for no pass

seta rconPassword "myrconpass" // Used to remote admin server

seta sv_privatePassword "myprivatepass" // Used to access private slots

 

// Basic Server Settings

seta sv_pure "1" // Pure setting enforces pk3 file checks

seta sv_maxRate "10000" // Generally between 5000-10000. Max 25000

seta sv_minPing "0" // This ping or higher to connect. 0 = disabled

seta sv_maxPing "0" // This ping or lower to connect. 0 = disabled

seta sv_floodProtect "1" // Helps keep clients from flooding server

seta sv_maxclients "7" // Max number of connected players

seta sv_privateClients "1" // Number of private slots. Access with sv_privatepassword

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

seta g_allowvote "0" // Allow clients to vote for map/rules changes (0=No/1=Yes)

seta g_dismember "0" // Crashes server if turned on...for now.

seta g_mapAutoCycle "1" // Set to 0 for custom rotation

seta g_gametype "3" // 3 = Duel

 

// Logging

seta g_logfile "0" // 0=None, 1=Buffered, 2=Continuous, 3=Append

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

seta g_logSync "1" // 1=Write complete lines

seta g_statLog "0" // Probably similar to g_logfile. Untested.

seta g_statLogFile "stats.log"

 

// Game Settings

seta fraglimit "1" // Frags a single player accumulates to rotate players

seta duel_fraglimit "8" // Number of times a single player hits the fraglimit to end the round

seta timelimit "20" // Time limit for round if fraglimit not hit

seta g_weaponDisable "65531" // 65531 = saber only

seta g_duelWeaponDisable "65531" // Same as g_weaponDisable, but for duels

seta g_forcePowerDisable "0" // Selectively disable force powers. 32767 = no force

seta g_saberLocking "1" // Allow saber locks to occur

seta g_maxForceRank "7" // Sets number of points players receive for force powers. 7 = Max

seta g_forceRegenTime "200" // Time to regen full force power. Default 200 = ~20 seconds

seta g_spawnInvulnerability "3000" // Time invulnerable after spawn. Default 3000 = 3 seconds

 

// Banning

seta g_banIPs "" // List of IP's to be banned

seta g_filterBan "1" // Enable Ban by Ip

 

map duel_carbon

Link to comment
Share on other sites

Typically, this info goes into a file called server.cfg which should be located in your base directory (along with the pk3 files). You could call the file whatever you want as long as you include it in your startup line like so:

 

(linux)

./jk2ded +set dedicated 2 +exec server.cfg

 

(win)

"C:\Program Files\Lucas Arts\JK2\jk2ded.exe" +set dedicated 2 +exec server.cfg

 

Obviously, your paths will vary, but I think you can figure out the details specific to your situation. Some people may pass more options to the server than this, however these would probably be the minimum. If you want a LAN server, use +set dedicated 1. If you want a listen server, use +set dedicated 0.

Link to comment
Share on other sites

+set dedicated X

 

Where X is....

 

0 = listen server (does not advertise, connect via ip only)

1 = LAN (does not advertise on net, connect via ip or in-game LAN browser)

2 = Internet (advertises to master servers, connect via ip or in-game Internet browser)

 

I would assume the default is listen, but that may not be true.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...