Jump to content

lf a .lua guru


Taproot

Recommended Posts

Hi.

 

I have a small "mission" where I want the Ukraine to change sides from red to blue.

 

I need it done asap.

 

Can you help?

 

Unzip the .miz file that you renamed to .zip, edit the mission file with standard text editor, and swap Ukrainian side.

 

BEWARE !!! due to bad design, you need to do the change into 2 locations:

 

Change the coalitions definition:

 

mission = 
{
     .............
   ["coalitions"] = 
   {
       ["blue"] = 
       {
           [1] = 18,
           [2] = 11,
           [3] = 8,
           [4] = 13,
           [5] = 5,
           [6] = 16,
           [7] = 6,
           [8] = 15,
           [9] = 20,
           [10] = 12,
           [11] = 19,
           [12] = 9,
           [13] = 10,
           [14] = 3,
           [15] = 4,
           [16] = 2,
           [17] = 1,  <<<<<<<<<<<<<<<<<<< Ukaine ID =1 
       }, -- end of ["blue"]
       ["red"] = 
       {
           [1] = 0,
       }, -- end of ["red"]
   }, -- end of ["coalitions"]
 

 

Then, move the units definition (units are defined for one given country.... inside one coalition again :doh: ):

 

mission = 
{
      .............
   ["coalition"] = 
   {
       ["blue"] = 
       {
           ["bullseye"] = 
           {
               ["y"] = 617414,
               ["x"] = -291014,
           }, -- end of ["bullseye"]
           ["nav_points"] = 
           {
           }, -- end of ["nav_points"]
           ["name"] = "BLUE",
           ["country"] = 
           {
               [1] = 
               {
                   ["id"] = 18,
                   ["name"] = "Abkhazia",
               }, -- end of [1]
               [2] = 
               {
                   ["id"] = 11,
                   ["name"] = "Belgium",
               }, -- end of [2]
               [3] = 
              .........4, 5, 6 etc........................
               [16] = 
               {
                   ["id"] = 2,
                   ["name"] = "USA",
               }, -- end of [16]
               [17] = 
               {
                   ["id"] = 1,
                   ["plane"] = 
                            .............                   <<<<<<<<<<<< units definition for Ukraine      
                   }, -- end of ["plane"]
                   ["name"] = "Ukraine",
               }, -- end of [17]
           }, -- end of ["country"]
       }, -- end of ["blue"]
       ["red"] = 
       {
           ["bullseye"] = 
           {
               ["y"] = 371700,
               ["x"] = 11557,
           }, -- end of ["bullseye"]
           ["nav_points"] = 
           {
           }, -- end of ["nav_points"]
           ["name"] = "RED",
           ["country"] = 
           {
               [1] = 
               {
                   ["id"] = 0,
                   ["name"] = "Russia",
               }, -- end of [1]

           }, -- end of ["country"]
       }, -- end of ["red"]
   }, -- end of ["coalition"]
     .............
} -- end of mission

 

Once done, save the edited mission file, then copy/paste it into the .zip mission folder.

Rename it as .miz

Try to edit it into ME, to validate your changes.


Edited by galevsky06
Link to comment
Share on other sites

Could I ask another question about not exactly the same topic ?

 

I am not a Windows expert, and feel frustrated about something: when the mission file is done, you have to create again the archive and change its extension.

 

Can you explain me why I cannot compress the unzipped folder with 7zip ? If I try, DCS will hang on while loading the new .miz file !

 

What I have to do is opening the .zip folder with Windows Explorer, then copy/paste my mission file, to avoid zipping with external tool. Any idea ??

Link to comment
Share on other sites

  • Recently Browsing   0 members

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