Jump to content

Recommended Posts

  • 4 weeks later...
Posted
2022/8/7 PM9点33分,Miguel21说:

Hi,
we start slowly to install some scripts like this.
mist and CTLD are already installed, I have to make room for the F10 menu and it will work.
However, you have to activate them in the conf_mod

To add others, it's not very complicated but you have to tinker with some files

you have to put the file(s) in the folder
Mods\tech\DCE\ScriptsMod.NG\Mission Scripts

Then add 2 lines in the file MAIN_NextMission.lua
look for example how the Fuel_Check.lua script is added:

1st line (about line number 243)
AddFileTrigger("Fuel_Check.lua")
if you need a precise timing, use the function
AddFileTriggerTempo(filename, time, predicate0, ActionPredicate0)

like for example mist with 2 seconds
AddFileTriggerTempo("mist.lua", 2, "triggerOnce", { [1] = {["Predicate"] = "a_do_script_file"}})

2nd line (about line 663)
miz:zipAddFile("l10n/DEFAULT/Fuel_Check.lua", "../../ScriptsMod."..versionPackageICM.."/Mission Scripts/Fuel_Check.lua")

Translated with www.DeepL.com/Translator (free version)

Hi, hello! Where is the function AddFileTriggerTempo obtained? Can it be used directly in the task script?

Posted
On 5/19/2025 at 9:46 AM, Miguel21 said:

these are actually old campaigns, but the messages that appear are more for the campaignMaker, here, if you accept 2 or 3 errors, the mission will be generated, right?

Yes, it will be generated but it is not fully functioning, the progress is not working and all missions show a core of 50 and nothing is saved, I will try the Iran Iraq War Campaign

Posted
On 6/16/2025 at 2:50 AM, Qazplm said:

Hi, hello! Where is the function AddFileTriggerTempo obtained? Can it be used directly in the task script?

ouha, you're bringing out a 3 year old post? not bad 🙂

the AddFileTriggerTempo() function is in the MAIN_NextMission.lua file (about line 327)

timing is the function's second argument
I've given you an example of the integration of 3 files with this system

 

 

function AddFileTriggerTempo(filename, time, predicat0, ActionPredicate0)
...
end


AddFileTriggerTempo("CG_ArtySpotter.lua", 2, "triggerOnce", { [1] = {["Predicate"] = "a_do_script_file"}})

if mission_ini.load_mist then
    AddFileTriggerTempo("mist.lua", 2, "triggerOnce", { [1] = {["Predicate"] = "a_do_script_file"}})    -- modification M60 CTLD
end
if mission_ini.load_CTLD then
    AddFileTriggerTempo("CTLD.lua", 4, "triggerOnce", { [1] = {["Predicate"] = "a_do_script_file"}})    -- modification M60 CTLD
end
 

FAQ DCE (Cef & Miguel'version)

In case of problem with a mission generated by CEF's DCEs, please post as many elements as possible:

  • - the mission + the tacview + a screenshot of the bug window + Give the name of the campaign + version of the scriptsMod
Posted
12小时前,Miguel21说:

ouha, you're bringing out a 3 year old post? not bad 🙂

the AddFileTriggerTempo() function is in the MAIN_NextMission.lua file (about line 327)

timing is the function's second argument
I've given you an example of the integration of 3 files with this system

 

 

function AddFileTriggerTempo(filename, time, predicat0, ActionPredicate0)
...
end


AddFileTriggerTempo("CG_ArtySpotter.lua", 2, "triggerOnce", { [1] = {["Predicate"] = "a_do_script_file"}})

if mission_ini.load_mist then
    AddFileTriggerTempo("mist.lua", 2, "triggerOnce", { [1] = {["Predicate"] = "a_do_script_file"}})    -- modification M60 CTLD
end
if mission_ini.load_CTLD then
    AddFileTriggerTempo("CTLD.lua", 4, "triggerOnce", { [1] = {["Predicate"] = "a_do_script_file"}})    -- modification M60 CTLD
end
 

Thank you. Is this function a function of DCS? Or is it from MIST or MOOSE?

Posted
8分钟前,Qazplm说:

Thank you. Is this function a function of DCS? Or is it from MIST or MOOSE?

I don't understand either. It looks as if the function is set to trigger, once, continuously, with condition changes,...... Is it this function? I'm looking for a function that can determine the position after the player clicks the switch through the task script. Can it do it?

Posted
5 hours ago, Qazplm said:

I don't understand either. It looks as if the function is set to trigger, once, continuously, with condition changes,...... Is it this function? I'm looking for a function that can determine the position after the player clicks the switch through the task script. Can it do it?

it's a function of DCE for DCE ^^

if you just want to find the player's position, it all depends on the context.

You want a script that has nothing to do with DCE, right?
And then, what do you want to do with this position?

FAQ DCE (Cef & Miguel'version)

In case of problem with a mission generated by CEF's DCEs, please post as many elements as possible:

  • - the mission + the tacview + a screenshot of the bug window + Give the name of the campaign + version of the scriptsMod
Posted

because it's “enough” to use this kind of function, taken from DCS,

getPosition(), which gives x and y positions
getPoint(), which gives x and z positions

with something like this:

                           
    local flightGroup = Group.getByName(afacFlightName)
                                if flightGroup then
                                    local unitsAFAC = flightGroup:getUnits()
                                    local unitAFAC = unitsAFAC[1]

                                    if unitAFAC and unitAFAC:isExist() then
                                        local afacPos = unitAFAC:getPoint()
                                        local unit_Pos = unit:getPoint()

                                        local distance = math.sqrt((afacPos.x - unit_Pos.x)^2 + (afacPos.z - unit_Pos.z)^2)


etc...

FAQ DCE (Cef & Miguel'version)

In case of problem with a mission generated by CEF's DCEs, please post as many elements as possible:

  • - the mission + the tacview + a screenshot of the bug window + Give the name of the campaign + version of the scriptsMod
  • 3 weeks later...
Posted

Hi all.

I have successfully installed and played TF-71Blue.

Now trying to start TF80s Blue.  Keep getting "Need modules for load mission: EA_6B SH-3D A-6E"

Anyone know how to accomplish this?

Thanks

Need modules for load mission EA 6B SH 3D A 6E.jpg

Posted

Thanks PBO-CEF.

 

Using the links, I got the A-6 and EA-6B. 

However, the SH-3D only has a PNG file in the folder.

Is there another equivalent i can install?

 

SH-3D screenshot.jpg

Posted

I used the default unzip with windows and it didnt show all the other files. 

With winrar, it all appeared the same as your screenshot.

All working now.  Thank you.

Posted

Hello,

Thank you for your work!

- In the TF-71 campaign it is necessary to destroy SA-10 sites with AGM 84H slam ER, while they are all systematically intercepted. Is there a method to effectively use AGM 84H against SA-10 sites?

I've set up the campaign as described in the document (I hope). I'm playing solo in F18, and after greeting, I'm stuck with the "waiting for personnel" message. Any ideas on the problem? (Apart from the keyboard and the seat :D)
 

DCS 2.9.17.12034

Posted
15 hours ago, kips said:

Hello,

Thank you for your work!

- In the TF-71 campaign it is necessary to destroy SA-10 sites with AGM 84H slam ER, while they are all systematically intercepted. Is there a method to effectively use AGM 84H against SA-10 sites?

I've set up the campaign as described in the document (I hope). I'm playing solo in F18, and after greeting, I'm stuck with the "waiting for personnel" message. Any ideas on the problem? (Apart from the keyboard and the seat :D)
 

DCS 2.9.17.12034

I will try this campaign again to see what the problem can be …😉

For Sa-10 the best solution should be saturation and SEAD (human SEAD should work better)

[/url]All known Dynamic Campaign Engine Campaigns

Last DCE news : Crisis in PG - Iran-Iraq War - TF-71 - TF80s - War over Beirut ...

 

Posted (edited)
On 7/13/2025 at 10:09 AM, kips said:

I've set up the campaign as described in the document (I hope). I'm playing solo in F18, and after greeting, I'm stuck with the "waiting for personnel" message. Any ideas on the problem? (Apart from the keyboard and the seat :D)
 

DCS 2.9.17.12034

I was able to start this campain without problem ... can you show me what screen you have to begin the campaign ? 

Here is mine  

 image.png

Do you use the DCE Manager ?

 

Edited by PB0_CEF

[/url]All known Dynamic Campaign Engine Campaigns

Last DCE news : Crisis in PG - Iran-Iraq War - TF-71 - TF80s - War over Beirut ...

 

Posted

Thank you for your feedback. To start the campaign, I had to disable deck crew in the DCS super carrier configuration. Because I was still stuck after performing the salute.

Yes, of course, I used DCE Manager as indicated in the campaign documentation.

I reset the campaign, and I don't have the same information as you in the screenshot.

 

1.jpg

2.jpg

3.jpg

4.jpg

5.jpg

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...