Theater developmental notes - Events definition (".TRI" files)
-
Here is a Short TUT\Explanation I guess…of the TRI file…due to someone pressing me…LOL.
//Green are my comment’sTrigger files revisited, directly from Codec:
Trigger files (.tri)
Syntax: Comments start with a / and the rest of the line is ignored.
Keywords are:
How many events there are in total:
#TOTAL_EVENTS [number]
//This shoud equal the Number of event’s in your Tri File,also to see the event’s as they are in your CAM file you would need to start it and quit it,then use the AutoSave.cam to continue(renamed Save0 in TacEdit),yes you will have to reset the time’s,unit’s,objective’s,persistent’s,political’s…delete Package’s,reset requester’s…etc.Then follows an initialisation section that has the following fields. This is read at the start of a new campaign. Section ends with the ENDINIT
This event is set:
#SET_EVENT [event#]//You can also “Set” this in TacEdit under123Events,but that can cause loopingThis event is cleared (not set):
#RESET_EVENT [event#]Redundant, use to set the campaign tempo:
#SET_TEMPO [number]//Set in .cam fileRedundant, use to read a teams priority file:
#CHANGE_PRIORITIES [teamno] [number]//Set in .pri nowThe following only apply to special initialisations.//Pre-SP\RP day’s I think or moved to .aii per code
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):
#BULLSEYE_X [number]
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):#BULLSEYE_Y [number]
FLOT sort direction; 0 = West-East, 1 = North-South. 0: Sort FLOT by X-coordinates (default), 1: Sort FLOT by Y-coordinates:#FLOT_SORTDIRECTION [number]
FLOT distance position. Maximum distance between two FLOT objects (in km) to draw a line:#FLOT_DRAWDISTANCE [number]
These parameters must be placed in the first setup part between #TOTAL_EVENTS and #ENDINIT.
Defaults are:#BULLSEYE_X 512
#BULLSEYE_Y 512 (center of Korea, which is original value)
#FLOT_SORTDIRECTION 0
#FLOT_DRAWDISTANCE 50End of initialisation section:
#ENDINITThe remaining parts can occur anywhere in the file
End of the trigger file - everything else is ignored:
#ENDSCRIPTA family of tests for certain conditions chosen from the following:
#IFTrue if event number has been fired (set in the EVT camp sub file):
#IF_EVENT_PLAYED [event]True if friendly/enemy team has ground task manager priorityObjective set to [number]:
#IF_MAIN_TARGET [F|E] [number]True if team friendly/enemy camp_id primary objective has ground_assigned set:
#IF_TROOPS_COMMITTED [F|E] [camp_id]True if the team controls the list of objectives. With type of ‘A’ it must own all the objectives in the list, else Type ‘O’ it must own any of them (and/or logic):
#IF_CONTROLLED [team] [type] [obj list] // Most commonly used EndgameTrue if team has initiative level greater/less than or equal to the number given:
#IF_INITIATIVE [team] [G|L] [number]True if the team has current stats of greater/less than or equal to the number:
#IF_SUPPLY [team] [G|L] [number]True if the player option for enemy ground experience is greater/less than or equal to the number:
#IF_PLAYER_DIFFICULTY [G|L] [number]True if the friendly/enemy team controls more than number objectives://PRI indicates a Primary Objective
#IF_PRI_CONTROLLED_LT [F|E] [number]True if team has ground action offensive type set:
#IF_ON_OFFENSIVE [team]True if force ratio is of the right ratio. - type is A for current aircraft, G for current ground vehicles, N for current # of ships, anything else is aircraft + ground The number is calculated for the given team and the opposite team. Then the ratio is (team # * 10) / (opposite number) which to be true must be greater/less than or equal to the number:
#IF_FORCE_RATIO [type] [team] [opposite] [G|L] [number]True if this many hours have elapsed since the last major campaign event:
#IF_BORDOM_HOURS [hours]If G is present, true if the current campaign day is ]= the number, else true if less that or equal:
#IF_CAMPAIGN_DAY [G|L] [number]With a G, true if the team has reinforcements ]= number. Else less than or equal:
#IF_REINFORCEMENT [team] [G|L] [number]True if a random number is less than the given number, which is between 0 and 100:
#IF_RANDOM_CHANCE [number]True if the given condition above is false #ENDIF - closes the:
#ELSEPlay the given movie number:
#IF #PLAY_MOVIE [num]Change the relations between team and with to the given relation state. If relation is Allied, then the teams merge:
#CHANGE_RELATIONS [team] [with] [rel]
<rel>according to tacedit teams page relations
0 = none. Used or not?//seem’s same as Neutral
1 = Allied
2 = Friendly
3 = Neutral
4 = Hostile
5 = At WarSet the event number:
#DO_EVENT [num]Move the initiative by amount from the fromteam to the toteam:
#SHIFT_INITIATIVE [fromteam] [toteam] [amount]Clear number event:
#RESET_EVENT [number]End the campaign with the given type:
#END_GAME [type]Update the last major event to now://I think should match NoPlayerPlay in .cfg.aii.not sure
#RESET_BORDOM_TIMEOUTNo longer used:// yup
#CHANGE_PRIORITIESSupply level for team is set to at least s, fuel is set to at least f and replacements set to at least r://way to set an Endgame for an Attrition Scenario
#SET_MINIMUM_SUPPLIES [team] ~~[f]For primary objective camp_id, set the teams ground and air priority to the number. This also sets the primary objective flag scripted_priority:
#SET_PAK_PRIORITY [team] [camp_id] [number]Few entries found in AF tri files, the effect these have are unknown at this time.
#PARENTRECALCDEPTH 4//How far out the Code look’s from Controlled Parent and recalc’s controlled objective’s I think
#FLOT_SORTDISTANCE 20//don’t think it’s used
#MINEVALUATEAIRBASEDISTANCE 20//Out to the .aii//I never got the following to work correctly in FF,most of the supporting Code was struck out…maybe someday
Mission.dat
You can use campaign specific mission.dat file selected with trigger file.
The init section can now contain
#MISSION_DATFILE
to specify a campaign-specific mission.dat. If not specified, normal mission.dat is loaded.So for example if save2.tri contains
#TOTAL_EVENTS …
…
…
#MISSION_DATFILE missionRF
…
…
#ENDINIT
(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
#FALCON4_AIIFILE
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.
This is from PMC but it was also on the Delphi forum,year’s ago, so pee off!!!
Hope it help’s abit……
demer</campaign_dir>~~</rel> -
Thanks a lot, demer, things began to be a little more clear now…
-
Someone can put an example of a file TRI.
And since they are activated.Thank you
-
If you have BMS installed they are in your X:\Falcon BMS 4.32\Data\Campaign Save>Korea>Korea2>Korea3>Korea4 folders.
They are named save0.tri/save1.tri/save2.tri and open with Wordpad or Notepad.
RAM22
-
@RAM22:
If you have BMS installed they are in your X:\Falcon BMS 4.32\Data\Campaign Save>Korea>Korea2>Korea3>Korea4 folders.
They are named save0.tri/save1.tri/save2.tri and open with Wordpad or Notepad.
RAM22
Ok
But as the active in a TEThanks
-
There are no trigger files for TE’s.
TE’s are scripted solely by the placement of units, ground and air.
RAM22
-
Thks
-
Guys regarding SET_PAK_PRIORITY in the tri file:
After executing it should the change in priority be reflected in in the PAK screen? Because I’m not seeing changes there compared to before the event. The priorities there remain as originally defined in the cam file in the value field. Also, the [number] parameter this command accepts should go from 0 to 100 or something else? In the cam file value of less than 81 is not a primary objective. -
Guys regarding SET_PAK_PRIORITY in the tri file:
After executing it should the change in priority be reflected in in the PAK screen?NO
-
While examining saved campaign files with Mission Commander I noticed PAK priorities are actually displayed in the political tab. They are set to anywhere from 0 to 100 by the campaign engine, so I guess values lower than 81 are safe also for the trigger files.
-
just one critic, is possible change the green color of the letter? My eyes are a little red lol
-
just mark the letters with the mouse.
Cheers,
LS -
Nice one
-
While examining saved campaign files with Mission Commander I noticed PAK priorities are actually displayed in the political tab. They are set to anywhere from 0 to 100 by the campaign engine, so I guess values lower than 81 are safe also for the trigger files.
Only Cities\Towns can OWN PAK priorities\parenting >80 (actually 81 due to the fact that the code starts at 0 and then counts to 80, so 0+80 = 81 ) You CAN change this in the .aii file if for some reason you need some minor objectives to kick events for gameplay. Again it would have to be a city or town to work. You would need to reset Parent’s in TacEdit and then SAVE and EXIT for it to pick it up. Oooppss!! You need to be in link edit in TacEdit…;)
If you have a small theater like Panama,Battle for Sinai or Guam, that may come in handy to promote the War, if done correctly. But in larger theaters like Aegean,Balkans and Korea this is counterproductive IMHO.demer
-
Only Cities\Towns can OWN PAK priorities\parenting >80 (actually 81 due to the fact that the code starts at 0 and then counts to 80, so 0+80 = 81 ) You CAN change this in the .aii file if for some reason you need some minor objectives to kick events for gameplay. Again it would have to be a city or town to work. You would need to reset Parent’s in TacEdit and then SAVE and EXIT for it to pick it up. Oooppss!! You need to be in link edit in TacEdit…;)
If you have a small theater like Panama,Battle for Sinai or Guam, that may come in handy to promote the War, if done correctly. But in larger theaters like Aegean,Balkans and Korea this is counterproductive IMHO.
demer
tHAnKs FoR CLaRIfiCAtIOn.
-
tHAnKs FoR CLaRIfiCAtIOn.
Your welcome……:mrgreen:
@Lukas and “Joe Public” .
I know at times (probably most times) that my post’s seem a bit misleading at best and/or sarcastic at worse, when we don’t “Get It”.
The intent of my post’s are to inspire y’all to seek the solutions on your own.
FALCON, over the years, has become a “Hard Row to Hoe”, for me, so to say.
BUT the BMS Team has done some outstanding CODE work that promises to continue into the next decade.
Therefore, I am excited to to see what we CAN do with the Bi’attchdemer
-
well demer your posts are a extra valuable asset for us newbs on the area but some times finding your way to the solution is a pain in the ass not to mention misleading and ending to giving up.
We all know sources are the:
1. PCM wiki and Forum.
2. Frugals forum.
3. Global Falcon forum.
4. BMS forum.The 3d one is gone.
Frugals and PCM forum info is way scattered and u have to search and search and search losing more time to search then working on the project, also info is outdated in some cases.
PCM wiki is the one and only valid source but also there many things point to the forum in general and info is outdated.
BMS forum also info is scattered, well I try some to gather them in my HotList but I don’t think this is the solution.I believe u get the point.
An example: I was looking for the addcopy function u posted for way much time and I gave up. Then when u posted the document that got me on track and since then I was able to help in my squad theater development.
-
well demer your posts are a extra valuable asset for us…
+1
I read(or am trying to read) all your posts as well…no problem with sarcasm -
Perfection requires mastery of the tools, and there Demer is a good help as old expirienced guy. Sometimes he “misled” me unintentionally and i wasted alot of time figuring things out otherwise, but his heart to help is appreciated anyways.
-
Your welcome……:mrgreen:
@Lukas and “Joe Public” .
I know at times (probably most times) that my post’s seem a bit misleading at best and/or sarcastic at worse, when we don’t “Get It”.
The intent of my post’s are to inspire y’all to seek the solutions on your own.
FALCON, over the years, has become a “Hard Row to Hoe”, for me, so to say.
BUT the BMS Team has done some outstanding CODE work that promises to continue into the next decade.
Therefore, I am excited to to see what we CAN do with the Bi’attchdemer
Ask me the questions bridge keeper… I’m not afraid!
EDIT: it was just sarcastic, I’ve nothing against demer!