From a0e592bf2941e7b78f102e8874b5685d1892fc34 Mon Sep 17 00:00:00 2001 From: ineedbots Date: Sat, 4 Sep 2021 15:24:31 -0600 Subject: [PATCH] Configs --- .gitignore | 5 + deploy.bat | 2 +- main/dedicated.cfg | 310 +++++++++++++++++++++++++++++++++++++++++++++ z_server.bat | 27 ++++ 4 files changed, 343 insertions(+), 1 deletion(-) create mode 100644 main/dedicated.cfg create mode 100644 z_server.bat diff --git a/.gitignore b/.gitignore index c9a90e1..5148588 100644 --- a/.gitignore +++ b/.gitignore @@ -26,6 +26,11 @@ !/README.md +!/main +/main/* +!/main/dedicated.cfg +!/z_server.bat + *.zip *.log diff --git a/deploy.bat b/deploy.bat index 9d97151..bcc78ee 100644 --- a/deploy.bat +++ b/deploy.bat @@ -1,3 +1,3 @@ xcopy pt6_bot_warfare\raw\maps raw\maps\ /Y /I /E /H /C xcopy pt6_bot_warfare\raw\scripts raw\scripts\ /Y /I /E /H /C -xcopy pt6_bot_warfare\raw\bots.txt raw\ /Y /I /H /C +xcopy pt6_bot_warfare\main\dedicated.cfg main\ /Y /I /H /C diff --git a/main/dedicated.cfg b/main/dedicated.cfg new file mode 100644 index 0000000..3b6b1b9 --- /dev/null +++ b/main/dedicated.cfg @@ -0,0 +1,310 @@ +/////////////////////////////////////////////////// +/// PlutoT6 MP Server Configuration file // +/////////////////////////////////////////////////// +// This config best view with Notepad++ OR // +// Other *nix compatible editors of your choice. // +/////////////////////////////////////////////////// +// 0.1 Basic version // +// 0.2 Added map list and map rotation // +// 0.3 Added Colors and B3/Log/RCon section // +// 0.4 Added gametype to map list and rotation // +// 0.5 Added location to map list and rotation // +// 0.6 Added Sharp Shooter and Gun game // +// 0.7 Clean up // +// 0.8 Additional gts -Fry // +// 0.9 Cleaned up the mess Fry merged, // +// added more comments // +// 1.0 Noob friendly -Fry // +// 1.1 Updated for relaunch of PlutoT6 // +// 1.2 Removed gts commands from main cfg -Fry // +////////////////////////////////////////////////// + +// Remove "//" in front of lines to allow the +// server to read them. Anything after "//" is a +// Comment. +////////////////////////////////////////////////// +// GAME TYPE CONFIGURATION // +////////////////////////////////////////////////// +// conf - Kill Confirmed // +// ctf - Capture the Flag // +// dem - Demolition // +// dm - Free-for-all // +// dom - Domination // +// gun - Gun Game // +// hq -Headquaters // +// koth - Hardpoint // +// oic - One in the chamber // +// oneflag - One-Flag CTF // +// sas - Sticks & Stones // +// sd - Search and Destroy // +// shrp - Sharpshooter // +// tdm - Team Deathmatch // +////////////////////////////////////////////////// +// These config files can not be edited and are // +// packed into the .ff files of the game. // +// Please make sure the game types are synced // +// or you might end up with a FFA that needs // +// 7500 kills to be won. YOU HAVE BEEN WARNED! // +////////////////////////////////////////////////// +exec "gamesettings_default.cfg" // Load the default game settings shared by all game modes +exec "gamesettings_dem.cfg" // Load the default tdm settings +set_gametype "dem" // Set the game type to tdm +////////////////////////////////////////////////// + +////////////////////////////////////////////////// +// GENERAL CONFIGURATION // +////////////////////////////////////////////////// +//set g_password "" // Password Protected Game Server (Use "password" to set it on the client before you connect,) +//set sv_maxclients "18" // How many players can join your server. +//set scr_showperksonspawn "1" // Disable the perks on the right side on spawn. +//set scr_deleteexplosivesonspawn "1" // Delete Explosive while getting killed. +//set sv_minPing "0" // Minimum ping needed to the server? (Terribly broken and inaccurate since ages!) +//set sv_maxPing "400" // Maximum ping allowed to the server? (Terribly broken and inaccurate since ages!) +//set scr_disable_cac "1" // Disable Custom Classes? +//set scr_max_rank "0" // Block every player with a level up this value +//set scr_min_prestige "0" // Block every player with a prestige below this value +//set sv_restrictionList "restricted.cfg" // Sets the file name for our restriction system. +//set sv_enableItemRestriction "1" // Enables our custom restriction system. +set sv_allowAimAssist "1" // Allow Aim Assist on gamepads. (0 = Will lock the option on gamepad controls menu.) +set sv_allowDof "0" // Disallows the clients from having DoF to prevent a few DoF related glitches + gains a few frames. (0 = force off DoF on the clients, 1 = let the client decide) +set demo_enabled "1" // Record matches as demo files? 1 = Enabled, 0 = Disabled (Very efficient <5MB per match for a full server) +set sv_sayname "Console" // name server-side 'say' commands show up as +////////////////////////////////////////////////// + +////////////////////////////////////////////////// +// B3, IW4MADMIN, GAME LOG & RCON SETTINGS // +////////////////////////////////////////////////// +set g_logSync "1" +set g_log "logs\games_mp.log" // IMPORTANT! Make sure the filename is unique for each server you clone! +////////////////////////////////////////////////// + +set spawnsystem_allow_non_team_spawns "0" + +set bots_manage_fill "12" +set bots_manage_fill_kick "1" +set bots_team_force "1" +set bot_difficulty "3" + +set scr_teambalance "1" +set g_inactivity "180" +set g_inactivitySpectator "180" + +////////////////////////////////////////////////// +// RESTRICTIONS CONFIGURATION // +////////////////////////////////////////////////// +// BANNED ATTACHMENTS // +////////////////////////////////////////////////// +//restrict_attachment "reflex" // Reflex +//restrict_attachment "steadyaim" // Laser sight +//restrict_attachment "silencer" // Suppressor/Silencer +//restrict_attachment "dualclip" // Fast Mag +//restrict_attachment "holo" // EOTech Sight +//restrict_attachment "grip" // Grip +//restrict_attachment "fastads" // Quickdraw +//restrict_attachment "fmj" // Full Metal Jacket +//restrict_attachment "extbarrel" // Long Barrel +//restrict_attachment "rangefinder" // Target Finder +//restrict_attachment "stalker" // Stock +//restrict_attachment "extclip" // Extended Clip +//restrict_attachment "dualoptic" // Hybrid Optic +//restrict_attachment "sf" // Select Fire +//restrict_attachment "rf" // Rapid Fire +//restrict_attachment "gl" // Grenade Launcher +//restrict_attachment "mms" // Millimeter Scanner +//restrict_attachment "acog" // ACOG Sight +//restrict_attachment "swayreduc" // Ballistics CPU +//restrict_attachment "vzoom" // Variable Zoom +//restrict_attachment "ir" // Dual Band Scope +//restrict_attachment "dw" // Dual Wield +//restrict_attachment "tacknife" // Tactical Knife +//restrict_attachment "stackfire" // Tri-Bolt (Crossbow) + +////////////////////////////////////////////////// +// RESTRICT PERK 1 // +////////////////////////////////////////////////// + +////////////////////////////////////////////////// +// Lightweight // +// Move Faster. Take no damage when falling. // +////////////////////////////////////////////////// +//restrict_item "specialty_movefaster|specialty_fallheight" +////////////////////////////////////////////////// +// Hardline // +// Earn Scorestreaks faster. // +////////////////////////////////////////////////// +//restrict_item specialty_earnmoremomentum +////////////////////////////////////////////////// +// Blind Eye // +// Undetectable by AI controlled air support. // +////////////////////////////////////////////////// +//restrict_item "specialty_nottargetedbyairsupport" +////////////////////////////////////////////////// +// Flak Jacket // +// Take less explosive damage // +////////////////////////////////////////////////// +//restrict_item "specialty_flakjacket" +////////////////////////////////////////////////// +// Ghost // +// Cannnot be detected by enemy UAVs. // +////////////////////////////////////////////////// +//restrict_item "specialty_gpsjammer" +////////////////////////////////////////////////// +// RESTRICT PERK 2 // +////////////////////////////////////////////////// +// Toughness // +// Flinch less when shot. // +////////////////////////////////////////////////// +//restrict_item "specialty_bulletflinch" +////////////////////////////////////////////////// +// Cold Blooded // +// Resistant to targeting systems. // +// No name or red crosshair // +////////////////////////////////////////////////// +//restrict_item "specialty_immunenvthermal|specialty_noname|specialty_immunerangefinder|specialty_nokillstreakreticle|specialty_immunemms|specialty_nomotionsensor" +////////////////////////////////////////////////// +// Fast Hands // +// Swap weapons and use equipment fast. // +// Reset pin grenades. // +////////////////////////////////////////////////// +//restrict_item "specialty_fastweaponswitch|specialty_pin_back|specialty_fasttoss|specialty_fastequipmentuse" +////////////////////////////////////////////////// +// Hardwire // +// Immune to counter-UAV and EMP // +////////////////////////////////////////////////// +//restrict_item "specialty_immunecounteruav|specialty_immuneemp" +////////////////////////////////////////////////// +// Scavenger // +// Refill ammo on people you killed. // +////////////////////////////////////////////////// +//restrict_item "specialty_scavenger" +////////////////////////////////////////////////// +// RESTRICT PERK 3 // +////////////////////////////////////////////////// +// Dexterity // +// Aim faster after sprinting. // +// Mantle and climb faster. // +////////////////////////////////////////////////// +//restrict_item "specialty_fastmantle|specialty_fastladderclimb|specialty_sprintrecovery|specialty_fastmeleerecovery" +////////////////////////////////////////////////// +// Extreme Conditioning // +// Aim faster after sprinting. // +// Mantle and climb faster. // +////////////////////////////////////////////////// +//restrict_item specialty_longersprint +////////////////////////////////////////////////// +// Engineer // +// Reroll & booby trap Care Packages. // +// Show enemy equipment in the world. // +// Delay explosives. // +////////////////////////////////////////////////// +//restrict_item "specialty_showenemyequipment|specialty_delayexplosive" +////////////////////////////////////////////////// +// Tactical Mask // +// Reduces effects of flashbangs,Concussion, // +// Shock Charges. // +////////////////////////////////////////////////// +//restrict_item "specialty_stunprotection|specialty_flashprotection|specialty_proximityprotection" +////////////////////////////////////////////////// +// Dead Silence // +// Move silently and be very sneaky sneaky. // +////////////////////////////////////////////////// +//restrict_item "specialty_quieter" +////////////////////////////////////////////////// +// Awareness // +// Enemy movements are easier to hear. // +////////////////////////////////////////////////// +//restrict_item "specialty_loudenemies" +////////////////////////////////////////////////// + +////////////////////////////////////////////////// +//Wild Card Perks // +////////////////////////////////////////////////// +//restrict_item "bonuscard_perk_1_greed" // Perk 1 Greed - Take a second perk. +//restrict_item "bonuscard_perk_2_greed" // Perk 2 Greed - same as a above. +//restrict_item "bonuscard_perk_3_greed" // Perk 3 Greed - sigh...same as above. +//restrict_item "bonuscard_overkill" // Overkill - Take a primary weapon as your second weapon. +//restrict_item "bonuscard_secondary_gunfighter"// Secondary Gunfighter - Take a 2nd attachment for your second weapon. +//restrict_item "bonuscard_primary_gunfighter" // Primary Gunfighter - Take a 2nd attachment for your second weapon. +//restrict_item "bonuscard_two_tacticals" // Tactician - Take a tactical grenade in place of your lethal grenade. +//restrict_item "bonuscard_danger_close" // Danger Close - Take a second lethal. +////////////////////////////////////////////////// + +////////////////////////////////////////////////// +// MAP ROTATION LIST // +////////////////////////////////////////////////// +// STOCK // +////////////////////////////////////////////////// +// // +// mp_la - Aftermath // +// mp_dockside - Cargo // +// mp_carrier - Carrier // +// mp_drone - Drone // +// mp_express - Express // +// mp_hijacked - Hijacked // +// mp_meltdown - Meltdown // +// mp_overflow - Overflow // +// mp_nightclub - Plaza // +// mp_raid - Raid // +// mp_slums - Slums // +// mp_village - Standoff // +// mp_turbine - Turbine // +// mp_socotra - Yemen // +// // +// Bonus Map: // +// mp_nuketown_2020 - Nuketown 2025 // +// // +////////////////////////////////////////////////// +// REVOLUTION MAP PACK 1 // +////////////////////////////////////////////////// +// // +// mp_downhill - Downhill // +// mp_mirage - Mirage // +// mp_hydro - Hydro // +// mp_skate - Grind // +// // +////////////////////////////////////////////////// +// UPRISING MAP PACK 2 // +////////////////////////////////////////////////// +// // +// mp_concert - Encore // +// mp_magma - Magma // +// mp_vertigo - Vertigo // +// mp_studio - Studio // +// // +////////////////////////////////////////////////// +// VENGEANCE MAP PACK 3 // +////////////////////////////////////////////////// +// // +// mp_uplink - Uplink // +// mp_bridge - Detour // +// mp_castaway - Cove // +// mp_paintball - Rush // +// // +////////////////////////////////////////////////// +// APOCALYPSE MAP PACK 4 // +////////////////////////////////////////////////// +// // +// mp_dig - Dig // +// mp_frostbite - Frost // +// mp_pod - Pod // +// mp_takeoff - Takeoff // +// // +////////////////////////////////////////////////// +////////////////////////////////////////////////// +// Examples for sv_maprotation // +////////////////////////////////////////////////////////////////////////// +// Single Game Mode + Maps: // +//sv_mapRotation "exec tdm.cfg map mp_dig map mp_raid map mp_express" // +// // +// Several Mix Game Modes + Maps: // +//sv_mapRotation "exec tdm.cfg map mp_la exec dm.cfg map mp_dockside" // +////////////////////////////////////////////////////////////////////////// + +////////////////////////////////////////////////// +// Current Rotation (Edit to your liking) // +////////////////////////////////////////////////// + +set sv_maprotation "exec dem.cfg map mp_nuketown_2020 map mp_hijacked" + +//Congratulations. You reached the end of this file. Leave map_rotate down below or else the server will not start after launch... +map_rotate diff --git a/z_server.bat b/z_server.bat new file mode 100644 index 0000000..8aa66ab --- /dev/null +++ b/z_server.bat @@ -0,0 +1,27 @@ +@echo off +::Paste the server key from https://platform.plutonium.pw/serverkeys here +set key= +::RemoteCONtrol password, needed for most management tools like IW4MADMIN and B3. Do not skip if you installing IW4MADMIN. +set rcon_password= +::Name of the config file the server should use. (default: dedicated.cfg) +set cfg=dedicated.cfg +::Name of the server shown in the title of the cmd window. This will NOT bet shown ingame. +set name=T6 Bot Warfare +::Port used by the server (default: 4976) +set port=4980 +::What ip to bind too +set ip=0.0.0.0 +::Only change this when you don't want to keep the bat files in the game folder. MOST WON'T NEED TO EDIT THIS! +set gamepath=%cd% + +title PlutoniumT6 - %name% - Server restarter +echo Visit plutonium.pw / Join the Discord (a6JM2Tv) for NEWS and Updates! +echo Server "%name%" will load "%cfg%" and listen on port "%port%" UDP with IP "%ip%"! +echo To shut down the server close this window first! +echo (%date%) - (%time%) %name% server start. + +cd /D %LOCALAPPDATA%\Plutonium +:server +start /wait /abovenormal bin\plutonium-bootstrapper-win32.exe t6mp "%gamepath%" -dedicated -sv_config "%cfg%" -key "%key%" -net_ip "%ip%" -net_port "%port%" -rcon_password "%rcon_password%" +echo (%date%) - (%time%) WARNING: %name% server closed or dropped... server restarts. +goto server