For more info or questions please join the TGFB Discord : https://discord.gg/CnfVdhTSaw


Installation and Configuration
==============================

Server Setup
------------

This mission is designed to be run on a DCS Dedicated server
The mission might misbehave or performace will be less that optimal if not runned properly
This mission is open source so feel free to edit and share this mission how you would like!

if your playing on singleplayer or with your friends multiplayer
please still use a dedicated server for best expierence!


Persistence (MissionScripting.lua)
----------------------------------

The save system will attempt to store the progress of your campaign inside '[Saved Games]/missions/saves' every 30 or 45 seconds.

In order to allow DCS Scripting Environment to create the save file, the 'MissionScripting.lua' script (located in your DCS install directory '[DCSWorld]\Scripts\MissionScripting.lua') needs to be de-sanitized.

The easiest way to achieve this is replacing this file with the 'MissionScripting.lua' supplied in the campaign .ZIP file.

DCS Updates or Repairs may revert this file, the mission will tell you if it has reverted or if you did something wrong when replacing it :) .


Dynamic Settings (TGFB_Dyn_Settings_x.x.x.lua)
----------------------------------------------

To enable the Dynamic settings of the campaign, first place the supplied 'TGFB_Dyn_Settings_x.x.x.lua' (the x's represent the version and change with each release) inside '[Saved Games]/Missions/Saves'. If the folder doesn't exist, you need to create it.  Pay careful attention to the spelling of the folder names.

Then you need to modify and save the mission in the ME (Mission Editor) inside DCS:
- Open the chosen version in the ME (read 'Campaign Versions' below to decide which version to use)
- Navigate to the 'Triggers' section
- Select the WHITE trigger labeled 'Settings file on/off'
- On the right pane click on the 'Do Script' action
- Change 'S_Dynamic_Settings = true'


Campaign Versions (The new Dynamic slots unified this into one version)
-----------------

Inside the .ZIP file, you will find two versions of the campaign: TGFB_Dynamic, and TGFB_Dynamic_MODDED.  The regular version gives you access to most of the official modules from DCS. The MODDED version adds additional support for the great free community modules UH-60 and HERCULES but lack some other offical modules.

These mods/modules should be downloaded and installed before accessing them, be sure to read their specific installations instructions.

NOTE: The UH-60L and other mods might not work in Multi Player, Single Player appears to work better.

IMPORTANT!: Both mission versions use the same persistence file to save your progress. If you luanch the MODDED version after the regular one has saved progress, or viceversa, you may not be able to enter your units. If you decide to use a different version, please rename or delete the previous saved file (which will be named something like 'TGFB_Save_x.x.x.lua'). This will restart the campaign from scratch.  If you decide to switch version, you also need to repeat the Dynamic Settings portion of the instructions on the Mission Editor.

credits
-------
Dragon (Rafa)
- making this README file

Graded
- Special thanks to Graded for helping with the visuals and advertising!
- https://www.youtube.com/@DCS_Graded

Ciribob
- Simple Slot Block (SSB) script (used in earlier versions)

Mist team

IADS_Skynet team

dzsekeb
- Huge thanks to : dzsekeb for the original Foothold idea!
- https://www.digitalcombatsimulator.com/en/files/3319499/

TGFB Community
- For all the feedback
- bug reporting
- voting on the polls
- helping others with the mission
TGFB Discord : https://discord.gg/CnfVdhTSaw

Quick note on Base Supplies
---------------------------

Bases will have levels from 0/4 to 4/4.  Each level represents 20 units from a coalition inside the area.

There are 2 main ways to resupply a base!

Using AI :
When a base becomes neutral (all units from a coalition are destroyed) its level is 0/4.  If this base is connected to a base with a level higher than 3/4 (this can change depending on stage and amount of players), an AI re-supplier will be sent to capture the base.  Both BLUE and RED bases will attempt to capture the base.

AI will only perform things that NEED to be done for mission progression.  Any further improvements need to be accomplished via CTLD.

CTLD:
When using a UH-1H, Mi-8 or Mi-24p you have access to the F10 | CTLD menu.

Simply take off on a blue base and you gain supplies/units.

By landing in the gray neutral zone of a base you can use F10 | CTLD | "base upgrade" to capture it yourself and gain points!
You can also improve on bases by unloading extra units to increase its level.

NOTES:
- The AI can be a bit finnicky in DCS and sometimes they hover over the base or loop, ... I'm still trying to fix that :/
- If you can't load weapons this means there are enemies near your base that block it (or DCS is wonky :/).  This is a DCS thing and cant be disabled
- If you don't want to deal with those enemies, I would recommend reloading the mission to remove those enemies


Mission development/Hire me
===========================

Would like to have a DCS (scripted) missions to be developed for you?
Im more than happy to help to make your custom mission like this one!

- prices can be arrange on mission/project basis
- large and small missions are fine
- modifying exiting missions
- Willing to do DCS Scripting training for you or others

More info and contact on : tgfb-dcs.com


Interested?
join the TGFB Discord : https://discord.gg/CnfVdhTSaw
and make a ticket there
or contact me on discord 'tobias00723'


Change Log
==========

2.0.0
------
Lots of QOL and bugfixes
(Don't remember them all ngl)

Added Tasking system
Added Fog system


1.9.4F
------

/*Bug fix*/

I fucked up the previous bug fix this is the actual bug fix for (1.9.4F)

1.9.4F
------

/*Bug fix*/

simple bug fix, when a player leaves the welcome message keeps repeating
: https://discord.com/channels/1005908061052997642/1273308656762359848

1.9.4
------

/*Small update*/

Added CH-47F to the CTLD System
Removed the Dyn slots on the normal slot selection screen
updated time and weather


1.9.3F
------

/*BUG FIX UPDATE*/

- https://discord.com/channels/1005908061052997642/1264914099620282418
- https://discord.com/channels/1005908061052997642/1266867823016149114
- https://discord.com/channels/1005908061052997642/1267110297412304966
- https://discord.com/channels/1005908061052997642/1267205805229342794
- https://discord.com/channels/1005908061052997642/1267275168338677841
- previous stated issue : https://discord.com/channels/1005908061052997642/1006199815966834738/1264587574849310792
- PVP overide in settings file not working


1.9.3
-----

Added the Dynamic slots system
Addded CTLD persistance
Added Purchase persistance
Improved the Welcome msg
Improved the UX
Removed SSB_UX.lua
Mission support all aircraft now


1.9.2
-----

Removed all Ka-50 slots (not Ka-50 III)
Added OH-58D Slots


v1.9.1F
-------

Fixed F4E slots
removed some previous slots


v1.9.1
------

Added F4E slots
Updated supplier wp
fixed bug #"Slot blocking reset" 
fixed bug #"Settings file" 
fixed bug #"Jtac lasers not getting destroyed" and #"JTAC target destroyed" 
improved (old)save transfer system to allow new modules to be added without save reset
improved readme file by @rafapolit
updated F16 STN #"edits for miz file" 
fixed some spelling

NOTE : if you cant enter the F4 please try a dedicated server!


v1.9.0
------

Added JTAC
Added option in setting file to change JTAC target range
Mission now can convert old save files to newer version (up to 1.8.2)
(Working on SSB_UX msg only appearing in this mission)


v1.8.2 (balance patch 1)
------------------------

Lowered down all spawn chances
fix a bug where ground events wont spawn after a dcs update


v1.8.2
------
Added more control over cap spawn
Added MB339 and l39za to the miz and mig19p to red
Added modded miz
Added Settings file that can change a lot of shit (i mean it)
Fix a bug where the bases did not count towards the spawn chances
CSAR you can now pickup downed pilots up to 60meter or 196.85 freedom units
Tweaked some chances
Fix a bug where no cap can spawn on enemy ships
added log file entries to debug other users better
