User Tools

Site Tools


falcon4:campaign:trigger

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
falcon4:campaign:trigger [2007/07/10 18:17] – created trigger initial page snakemanfalcon4:campaign:trigger [2024/07/31 07:44] (current) – links added. snakeman
Line 1: Line 1:
-====== Trigger ======+====== Falcon 4 Campaign Trigger ======
  
-**Trigger files** revisited, directly from Codec:+[[https://www.pmctactical.org/forum/viewforum.php?f=47|Falcon 4.0 Forum]], [[:falcon4|Falcon 4 Home]], [[falcon4:campaign|Falcon 4 Campaign]], [[falcon4:cockpits|Falcon 4 Cockpits]], [[falcon4:database|Falcon 4 Database]], [[falcon4:file_formats|Falcon 4 File Formats]], [[falcon4:srtm|Falcon 4 SRTM Terrain]], [[falcon4:terrain|Falcon 4 Terrain]], [[falcon4:textures|Falcon 4 Textures]], [[falcon4:tools|Falcon 4 Tools]] 
 + 
 +**Falcon 4 Campaign Trigger Files** revisited, directly from Codec:
  
 Trigger files (.tri) Trigger files (.tri)
Line 38: Line 40:
 The following only apply to special initialisations. The following only apply to special initialisations.
  
-Bullseye reference point X position:+Bullseye reference point X position. X-position of relative map point to calculate best new Bullseye position (closest FLOT objective to this point will become new bullseye position):
 <code> <code>
 #BULLSEYE_X [number] #BULLSEYE_X [number]
 </code> </code>
  
-Bullseye reference point Y position:+Bullseye reference point Y position. Y-position of relative map point to calculate best new Bullseye position (closest FLOT objective to this point will become new bullseye position):
 <code> <code>
 #BULLSEYE_Y [number] #BULLSEYE_Y [number]
 </code> </code>
  
-FLOT sort direction; 0 = West-East, 1 = North-South:+FLOT sort direction; 0 = West-East, 1 = North-South. 0: Sort FLOT by X-coordinates (default), 1: Sort FLOT by Y-coordinates:
 <code> <code>
 #FLOT_SORTDIRECTION [number] #FLOT_SORTDIRECTION [number]
 </code> </code>
  
-FLOT distance position:+FLOT distance position. Maximum distance between two FLOT objects (in km) to draw a line:
 <code> <code>
 #FLOT_DRAWDISTANCE [number] #FLOT_DRAWDISTANCE [number]
 +</code>
 +These parameters must be placed in the first setup part between **#TOTAL_EVENTS** and **#ENDINIT**.\\
 +Defaults are:
 +
 +<code>
 +#BULLSEYE_X 512
 +#BULLSEYE_Y 512 (center of Korea, which is original value)
 +#FLOT_SORTDIRECTION 0
 +#FLOT_DRAWDISTANCE 50
 </code> </code>
  
Line 159: Line 170:
 #CHANGE_RELATIONS [team] [with] [rel] #CHANGE_RELATIONS [team] [with] [rel]
 </code> </code>
 +
 +<rel> according to tacedit teams page relations\\
 +0 = none. Used or not?\\
 +1 = Allied\\
 +2 = Friendly\\
 +3 = Neutral\\
 +4 = Hostile\\
 +5 = At War
  
 Set the event number: Set the event number:
Line 199: Line 218:
 #SET_PAK_PRIORITY [team] [camp_id] [number] #SET_PAK_PRIORITY [team] [camp_id] [number]
 </code> </code>
 +
 +Few entries found in AF tri files, the effect these have are unknown at this time.
 +<code>
 +#PARENTRECALCDEPTH 4
 +#FLOT_SORTDISTANCE 20
 +#MINEVALUATEAIRBASEDISTANCE 20
 +</code>
 +
 +
 +====== Mission.dat ======
 +
 +You can use campaign specific mission.dat file selected with trigger file.
 +
 +The init section can now contain
 +<code>
 +#MISSION_DATFILE
 +</code>
 +to specify a campaign-specific mission.dat. If not specified, normal mission.dat is loaded.
 +
 +So for example if save2.tri contains 
 +
 +<code>
 +#TOTAL_EVENTS ...
 +...
 +...
 +#MISSION_DATFILE missionRF
 +...
 +...
 +#ENDINIT
 +</code>
 +(command must be between TOTAL_EVENTS and ENDINIT), then Falcon loads the mission data of
 +
 +<campaign_dir>\missionRF.dat
 +
 +When the other campaigns .tri files don't contain this line, then they default to the normal mission.dat.
 +
 +Note that the ".dat" is NOT to be specified in the trigger file, but the file itself must have this extension.
 +
 +Thus not only each theater but each campaign can have its own mission.dat file now.
 +
 +
 +====== Falcon4.aii ======
 +
 +Falcon4.aii is switched using
 +<code>
 +#FALCON4_AIIFILE
 +</code>
 +in .tri file.
 +
 +The default Falcon4.aii is loaded for all modes first to make sure we have valid values (TE uses some variables from there), and then if campaign, the specific one is loaded, or Falcon4.AII when no one is specified.
 +
falcon4/campaign/trigger.1184091447.txt.gz · Last modified: 2007/07/10 18:17 (external edit)

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki

All PMC web site download services are temporarily suspended until web site yearly fees have been recovered, want to download addons/mods? Then Support PMC.

If you are grateful for all the work PMC has done in the past 25 years, use Support PMC page.