Jump to content

Copy mission (triggers) from 2.0 to 1.5?


Recommended Posts

Posted

Greetings!

 

So I have a mission in DCS 2.0 that is quite heavy on triggers. Now I'd like to replicate that mission in DCS 1.5, and I am wondering if it is possible to copy all the triggers from one mission and just "paste" them to another?

 

Cheers!

Posted

The solution would be a feature request akin to "merge mission" which would be really helpful in duplicating a lot of already pre created work. Sadly the translation of location of all these things from one area to another isn't something I know how to do, but if anyone here could write something to do it, it would be uboats.

 

Try a kind PM to him and add it to the wishlist for consideration. I'd love this feature.

___________________________________________________________________________

SIMPLE SCENERY SAVING * SIMPLE GROUP SAVING * SIMPLE STATIC SAVING *

Posted

There are a couple of ways to do it, both of which require modifying the mission file directly via opening the .miz in a program like 7zip or winzip and then modifying the "mission" file within.

 

Just to preface, if the triggers don't rely on groups, units, or zones, then this will be a relatively straight forward process. The reason I mention that in the miz file the big difference between the two maps is the location of map origin which is what all of the coordinates for everything is based on. The Caucuses will typically have object coordinate values on the y axis in the 400,000m+. This is due to the map origin being in the Crimea. For Nevada the map origin is more centralized and its way up in the north somewhere. The other big issue is that if triggers rely on an object existing, then if you open the trigger menu up after removing the group, any relevant triggers will be invalid and will automatically be removed.

 

This simply changes the map a mission is saved to. It keeps everything, but the coordinates will all be way off.

 

Step 1: Save a copy of the mission and name it with something so you know which map it is on.

Step 2: Open .miz with 7zip or winzip.

Step 3: Open 'mission' file inside the .miz with notepad ++

Step 4: find the entry and change it from "Nevada" to "Caucasus"

["theatre"] = "Nevada",

Step 5: Save the file to somewhere on your PC, leave it extensionless

Step 6: Drag the saved file into the opened .miz in 7zip or winzip. And overwrite the mission file.

Step 7: Open mission up in 1.5 and realize all the units are placed in really weird locations

 

 

Alternatively this method is literally copying the triggers from one mission into another. If the triggers rely on any groups, units, or zones, then those objects need to be in the mission file.

 

Step 1: Make a mission on 1.5 and open that file up with zip program

Step 2: Open Nevada mission with zip program.

Step 3: Open both mission files in notepad++

 

To make things easy you can go to the top bar on np++, choose language, and select "lua" from the dropdown. This will allow you to collapse tables and it will color code everything.

 

Step 4: On your Nevada mission you need to find two different tables. Each will have subtables within. Find the close "}" bracket associated with that table definition.

["trig"] = 
   {

Step 5: Select the table and copy it.

Step 6: Go to the 1.5 mission file in NP++ and find the same entry

Step 7: Copy over it.

Step 8: Repeat step 4 through 7, this time look for:

["trigrules"] = 
   {

Step 9: Save the file to somewhere on your PC, leave it extensionless

Step 10: Drag the saved file into the opened .miz in 7zip or winzip. And overwrite the mission file.

Step 11: Open mission in 1.5 and hope it all worked.

 

 

I'd recommend the first option since it is easier to do, it just requires more work modifying the mission afterward. The 2nd method... well lets just say it isn't going to work well if you have any triggers that check group, unit, or trigger zones.

  • Like 2

The right man in the wrong place makes all the difference in the world.

Current Projects:  Grayflag ServerScripting Wiki

Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread)

 SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum

  • Recently Browsing   0 members

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