# Server starter/restarter and crash checker for Jedi Knight:Jedi Academy script configurarion.
# Edit this file based on your server properties.
# Manual configuration is required or the script may not work correctly.
# Also, the configurations below are case sensitive, so watch out for what you type.

# DO NOT EDIT LINES WHICH CONTAINS "#" AT THE BEGINNING.

# Date code for autodownload.

versionc="20052010" # NEVER CHANGE THIS LINE OR AUTODOWNLOAD WILL BREAK.

# **********************************************************************

# General configuration (MANDATORY):

# READ THIS CAREFULLY.

# I highly recommend changing the name of your server binary if the user where you are running has more than one JKA Server.
# Some of the checks are made in the process name. So, if several servers are running a linuxjampded at the same user for example, it will surely conflict and break the script.
# For users running a dedicated server in the same Windows box where they play the game, i also recommend changing the name. In this case, make a copy of jamp.exe, rename it to something like jamp2.exe and put it again in the GameData folder.
# You could also try this http://jediknight3.filefront.com/file/UNOFFICIAL_Patch_for_JA_101_Dedicated_Servers;41652 for both Windows and Linux.

# Your GameData folder where your binary jamp (jamp.exe or otherwise) is located. (DO NOT ADD A \ AT THE END.)

dir="C:\Arquivos de programas\LucasArts\Star Wars Jedi Knight Jedi Academy\GameData"

# The folder where all the script files are located. (DO NOT ADD A \ AT THE END.)

filesdir="C:\Arquivos de programas\LucasArts\Star Wars Jedi Knight Jedi Academy\GameData\JAScript"

# The name of your Windows username which will run the jamp process.

user="roberto"

# Name of the jamp binary file.

process="jamp.exe"

# Game/MOD name for use in the jamp command line +set fs_game.

game="MBII"

# Sever's configurarion file for use in the jamp command line +exec.

cfg="server.cfg"

# Server's IP for use in the jamp command line +set net_ip. Leave it empty unless your box has more than one IP.

ip=""

# Server's port for use in the jamp command line +set net_port. Change this if you plan on using a port other than the default 29070.

port="29070"

# Dynamic Rotation configurarion:

# Dynamic Rotation makes possible different rotations in each day of the week, to a total of seven.
# The rotation will be checked at process start and at times based on the script restart time set. When the script check found another day and the server is already running, the rotation will be set and the server killed for reinitialization.
# If enabled, the rotations must be added at drotation.cfg.
# 0 = Disabled, 1 = Enabled.

drotation="0"

# Log file for unfinalized crash records.

log="logcrash.txt"

# Time (in seconds) between server status checks. The script will be restarted after that time.

seconds="300"

# NMap Configuration (LAN/WAN).

# JKA Server`s IP for nmap only (LAN/WAN).

nip="200.179.40.131"

# JKA Server`s port for nmap only.

nport="29070"

# Type of UDP Status check. 
# 1 = No Spoofing, use for non local IPs (IP stored within a router for example). 
# 2 = Local Spoofing, use for local IPs (Recommended for dynamic IPs, LAN only server, or WAN local IPs).

check="1"

# **********************************************************************

# NMap Local Spoof configuration (Configuration required only if using check="2" check method):

# You will need to type nmap -iflist first.
# Example of the nmap -iflist command:

# ************************INTERFACES************************
# DEV  (SHORT) IP/MASK         TYPE     UP MAC
# eth0 (eth0)  192.168.1.2/24  ethernet up 00:1E:8C:AD:09:75
# eth1 (eth1)  5.134.190.147/8 ethernet up 00:23:C3:86:BE:93
# lo0  (lo0)   127.0.0.1/8     loopback up

# In this case my device is eth0, and my local IP Range is 192.168.1.0 to 192.168.1.255 (mask /24).

# Device where your local IP is located. To check it out type nmap -iflist.

device="eth0"

# Fake IP for local Spoofing. You must use an available IP, or else it might conflict with another machine using this IP(Not required for local WAN IPs). You also must use a local IP in range. To check it out type nmap -iflist.

ips="192.168.1.20"

# **********************************************************************

# Autodownload for updating the script files and downloading required files. Autodownload will happen when you execute Updater.bat, if autodownload is disabled it will show the mirrors for the full version instead.
# 0 = Disabled, 1 = Enabled.

autodownload="1"