#############################################################################
#                       YOU NEED TO CHANGE BELOW VALUES                     #
#       until you see a note like this saying you don't have to anymore!    #
#############################################################################

# CONFIG FOR MAPDEV VERSION 0.6

# By default the mapdirectory for autoload with the console.
# This is the (system) command thats run and showed in the console on startup!
# Disabled = our $initcmd = "";     => Will show blank "console" at startup.
# NOTE: You must use double \\ for this variable!
our $initcmd = "dir C:\\WOLFMAP\\";           # Change if you want 

# Location of GTK RADIANT 1.5
# (program will still work if not specified, just wont launch this when asked)
# NOTE: You must use double \\ for this variable!           # MUST CHANGE, probably
our $radex15   = ("C:\\WOLFMAP\\div\\GtkRadiant.exe");

# Location of GTK RADIANT 1.4
# (program will still work if not specified, just wont launch this when asked)
# NOTE: You must use double \\ for this variable!           # MUST CHANGE, probably
our $radex14   = ("");

# Configuration
# Change this to your game.
# Alternatives: <quake3|wolf|et|etut|ef|jk2|ja|sof2|tenebrae|qfusion>
our $game    = "et";

# Change this to your game dir. e.g. C:/WolfDev
# (The directory where ET.exe is
# NOTE: Seperate installations for playing and mapping is always recommended.
our $gamedir = "C:\\WOLFMAP";           # MUST CHANGE

# Change these below to the configs you want your server\game to load on startup.
# NOTE: This is etpro\configs\file.config configs, not server.cfg configs, aka only for use with ETPRO.
# +config dinidev
our $config  = "+config dinidev";       # MUST CHANGE

# Player .cfg file  
# Dinius.cfg 
our $playerconfig   = "player";         # MUST CHANGE

# Server .cfg file
# Server.cfg
our $serverconfig   = "server";         # MUST CHANGE

# Change this to the location of q3map2.exe # MUST CHANGE
our $q3map2  = "C:/WOLFAMP/div/q3map2.exe";

# IMPORTANT # Change if you're running server # IMPORTANT #
our $ip = "192.168.21.102";

# Extended GUI
# Adds an extra bar at top, with gammagen + shortcuts
# and an extra button next to "goplay"
# 1 to enable, 0 to disable
our $extended = 1;

# The prog to start
our $extprog = "C:/WolfDev/hax/jumpbot.exe";
# Start server together with the prog?
our $extserv = 1;

# Program to edit the files with
our $editprog = "notepad.exe";

#############################################################################
#       YOU DO NOT NEED TO CHANGE THE BELOW VALUES, UNLESS YOU WANT TO!     #
#############################################################################
# Directories
# Maybe you need to change these to work with other games.. (e.g. @ q3's 'etmain' => baseq3)
my $basedir     = $gamedir  .   "/etmain";
my $textures    = $basedir  .   "/textures";
my $mapdir      = $basedir  .   "/maps";
my $scripts     = $basedir  .   "/scripts";
my $moddir      = $gamedir  .   "/tjmod";
my $backupdir   = $mapdir   .   "/backups";


#############################################################################
# Touch these => Fail,,, unless ofc you know what you're doing server-wise:o
# These arent important to change.
# Name of your Game executable. If $game = et, then no need to change.
our $exe     = "ET.exe";

# Change this to whatever startup parameters you want. Most relevant is changing "+exec Dinius" to the name of YOUR .cfg file!
our $parm    = "+set fs_basepath $gamedir +set fs_homedir $gamedir +set fs_game tjmod +set sv_pure 0 +exec $playerconfig";

# RUN SERVER?
our $runserv = 1;

# Name of your Server executable. If $game = et, then no need to change.
our $sexe    = "ETDED.exe";

# Startup parameters for server, no change really needed. NEED TO KEEP +map or +devmap at the end though!
our $sparm   = "+set fs_basepath $gamedir +set fs_homedir $gamedir +set sv_pure 0 +set g_gametype 2 +set fs_game tjmod +exec server +devmap";


#########################################################################
#       CHANGE BELOW SETTINGS FOR CUSTOM Q3MAP2 BUILD PARAMETERS!       #
#########################################################################
# Touch these => Fail,,, unless ofc you know what you're doing q3map2-wise :P
# The initial q3map2 parameters to use for all compilations.
our $initial = "\"$q3map2\" -fs_basepath \"$gamedir\" -game $game";

# NEED TO KEEP \"$mapdir at the end!!!
# "Vis" build button runs $meta and then $vis
# "Light" build button runs $meta, then $vis, then $light
# "Final" build button runs $final_1-3
our $meta    = "$initial -v -meta                       \"$mapdir/";
our $vis     = "$initial -v -vis -fast -saveprt         \"$mapdir/";
our $light   = "$initial -v -light -fast 				\"$mapdir/";

our $final_1 = "$initial -v -meta -mv 1024 -mi 6144											\"$mapdir/";
our $final_2 = "$initial -v -vis -saveprt -fast     										\"$mapdir/";
our $final_3 = "$initial -v -light -fast -samples 2 -filter -external -lightmapsize 256 -shade		\"$mapdir/";

# Decompile parameters
our $decompile = "$initial -convert -format map \"$mapdir";

#########################################################################
# AUTOPK3 Settings

# The default briefing text@ arena files
our $arena_briefing = "^zwww.^7Trickjump^z.me***";

# Default text to write in the template .script files
our $scriptcontent = "
game_manager
{
    spawn
    {
        wm_axis_respawntime 1
        wm_allied_respawntime 1
        wm_set_round_timelimit 0
    }
}
";


# Touch this => Fail,,, Unless ofc you know what you're doing perl-wise^^
1;