Jump to content

Home

Could someone help me out!


Stephanm

Recommended Posts

Hai everybody.

 

I don't know a thing about setting up a server, but I just like to play on a dedicated server with some friends of mine. Could someone write a config file and tell me were to place it. I'll give you all the info you need!

 

(don't have a opengl card, so game won't start)

 

program is in default program map

 

want a free for all game, playing on bespin streets, no map cycling

 

25 kills max

 

saber only

 

force powers a jedi master

 

no bots

 

password stephan

 

my computer ip adres = 218.84.6.92

 

hope you smart guys can help me out, I'm desperate!

Link to comment
Share on other sites

Here's an FFA config file that meets your requirements. There are some things you must change (server info) and some things you'll probably want to change (number of players/maxrate). This is just the server.cfg info that you place in the base directory with the assetsx.pk3 files. You'll still need a command line (shortcut) to start the server. It will vary depending on the path to your executable and on whether you use the dedicated binary or the regular multiplayer game. Whichever it is, you need to put the following at the end after the quote:

 

+set dedicated 2 +exec server.cfg

 

Below is the server.cfg

 

// Server Information

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

seta g_motd "My MOTD"

sets Administrator "Admin Name"

sets CPU "My CPU"

sets Clan "My Clan"

sets Email "myemail@mywebsite.com"

sets Connection "OC192" // I wish

sets URL "www.mywebsite.com"

sets Location "wherever"

seta sv_zone "FFA" // 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 "20" // Max number of connected players

seta g_maxGameClients "0" // Max number of non-spectactors. 0 = disabled

seta sv_privateClients "4" // 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)

 

// Logging

seta g_logfile "2" // 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 "1" // Probably similar to g_logfile. Untested.

seta g_statLogFile "stats.log"

 

// Game Settings

seta fraglimit "25" // For FFA - Frags a single player accumulates to end the round.

seta timelimit "0" // Time limit for round if fraglimit. 0 = no limit

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_privateDuel "1" // Allow players to enter private duel (FFA/Holocron Only)

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

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

seta g_forceBasedTeams "0" // If on Rebellion must use light force powers while Empire must use dark force powers

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

seta g_friendlyFire "0" // Can hurt teammates 0=No/1=Yes

seta g_friendlySaber "0" // Can hurt teammates with idle saber 0=No/1=Yes

seta g_doWarmup "1" // Set to enable warmup before round.

seta g_warmup "30" // Warmup before round stats. Must enable g_doWarmup.

seta g_teamAutoJoin "0" // Force players to join a team when entering

seta g_teamForceBalance "1" // Force players to join team with fewer players

seta g_redteam "Empire" // Can customize the name of the red team

seta g_blueteam "Rebellion" // Can customize the name of the blue team

seta g_autoMapCycle "0" // Rotate through maps automatically. Use 0 for custom rotation

seta g_gametype "0" // 0 = FFA

 

// Banning

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

seta g_filterBan "1" // Enable Ban by Ip

 

// Map Rotation

seta d1 "set g_warmup 30; map ffa_bespin; set nextmap vstr d1"

 

vstr d1

Link to comment
Share on other sites

Thanks a lot for a the trouble you had o help me out.

 

I still have a few questions though, if thats allright with you.

 

What to put at Mymod, I don't get that one. What to put at cpu, is that the pc's cpu speed or something? I have a dsl internet connection, what to put at the connection? And finally, what to put at location? Is that my servers ip adres??

Link to comment
Share on other sites

MOTD=Message Of The Day. Put whatever you like in there. You can even make it colored!

Most of the rest of the first section variables (all the sets ones) aren't necessary and won't affect your game if you don't include them. They're pretty much just for advertising whatever info you want about the machine the game is ruinning on, etc.

 

You should copy and paste the above config into Notepad, then save that file as server.cfg (did that already, good). You want to make sure you didn't save it as text (server.cfg.txt). Check the name of the file and just rename it if it's wrong. Next, your dedicated server executable, (I use jkDed.exe) should be in the same folder as the other two game executables (D:\Star Wars JK II Jedi Outcast\GameData). Now put your config file in the \base folder. Should run from there.

 

If that doesn't work, copy and paste your command line in here and we'll go from there.

 

example (I run the server from a batch file located in the same folder as the game executable):

 

:top

jk2Ded.exe +set dedicated 1 +set sv_pure 1 +exec server.cfg

goto top

 

That starts a dedicated LAN server (Internet would be dedicated 2) that restarts itself when it dies.

 

Hope this helps.

Link to comment
Share on other sites

Sneaky G - Open a new text file in Notepad. Copy and paste the script. Save it. Rename the file with a .BAT extension. In windows, the icon should change to a batch file one. If it doesn't, turn off the 'Hide extensions for known filetypes' option in Windows and rename it again. Alternately, you could use 'Save As' in Notepad and change the 'Save as type:' option to 'All Files' instead of 'Text Files' and name the file something like 'jk2start.bat' (sorry, I don't use Notepad for text editing so your wording may vary). To run it, just double click it. Easy cheesey.

 

Stephanm - It's not part of the retail release. Download it from the link on the front page of jediknightii.net. Alternately, you can use the retail MP executable, but you need the CD to run it, even with bot_enable=0 turned on (or off).

Link to comment
Share on other sites

Hi Mertado

 

Thanks for your time.

 

This is how I have set it up

 

I set up folders on the server

 

mkdir\usr\local\games\base

mkdir\usr\local\games\jk2

 

 

In mkdir\usr\local\games\base there is the jk2ded file that was in the linux download zip file.

 

This is named jk2ded does it need to have the .exe extension on the end or will it run as it is?

 

I created a batch file and put it in the same directory as the jk2ded

 

In base is the server.cfg with the settings that were given near the top of this thread.

 

I am using smart FTP

 

Someone mentioned to mark the jk2ded as executable. In the CHMOD properties I have these options

 

OWNER

Read

Write

Execute

 

GROUP

Read

Write

Execute

 

PUBLIC

Read

Write

Execute

 

Which of these options need to be checked for this to work?

 

If I try to execute the batch file from Smart FTP I get this.

I looks like it is trying to execute it locally.

 

C:\Program Files\SmartFTP\Log>jk2Ded.exe +set dedicated 2 +set sv_pure 1 +exec server.cfg 'jk2Ded.exe' is not recognized as an internal or external command,

operable program or batch file.

 

How do I execute it on the server?

 

Thanks

 

Gary

Link to comment
Share on other sites

Just for clarity, you need the windows binary if you're on a window box and the linux binary if you're on a linux box. From what you're saying, it sounds like you're on a windows box but your following the linux instructions. I think that you might go here and get the win binary. Could really make a difference.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...