Jump to content

Recommended Posts

Posted

Hi

 

is there a way of adding countries after creating a mission (or switching sides of blue and red)?

It looks like after I did the selection at the new mission creation, it is locked.

 

Thanks,

[sIGPIC]

[/sIGPIC]

Posted

It can be done but it takes some lua editing with notepad++.

 

I wouldn't recommend it unless you really know what you are doing and work from a copy in case you corrupt the original mission.

 

Basically each country has a unique ID number.

 

I usually create a new mission with the country I want then check the mission lua file to see what ID number it is.

 

For example Syria is ID 47. Then I edit the old mission to add the new country reference.

 

There are two places you need to add it. One is in the Coalition list section:

 

        ["red"] = 
       {
           [1] = 18,
           [2] = 47,
           [3] = 19,
           [4] = 1,
           [5] = 0,
       }, -- end of ["red"]

 

The second is the section where the aircraft and vehicle details are:

        ["red"] = 
       {
           ["bullseye"] = 
           {
               ["y"] = 371700,
               ["x"] = 11557,
           }, -- end of ["bullseye"]
           ["nav_points"] = 
           {
           }, -- end of ["nav_points"]
           ["name"] = "red",
           ["country"] = 
           {
               [1] = 
               {
                   ["id"] = 18,
                   ["name"] = "Abkhazia",
               }, -- end of [1]
               [2] = 
               {
                   ["id"] = 47,
                   ["name"] = "Syria",
                   ["plane"] = 
                   {

 

As I said, work from a copy as it's really easy to make a typo and ruin your mission. Good luck.

  • Like 1

F-15C-User-Bar-ACM.v2.jpg

MapleFlagMissions - Read Our Blog for Updates

Posted (edited)

Where is the mission lua? All I have is the miz file, and it is not really readable with notepad.

 

Thank you

Edited by Body Farm

[sIGPIC]

[/sIGPIC]

Posted
Where is the mission lua? All I have is the miz file, and it is not really readable with notepad.

 

Thank you

 

Its an archive file, so open a miz with winrar or 7zip. Inside each miz are the files that make up the mission. One file is called mission which contains pretty much everything, this is the file you need to edit.

  • Like 1

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

Posted
Are you going to update your MOD for 1.5/2.0?

 

It would be great if you could. Hopefully it will make it into the ME someday.

 

Well the official feature request still exists, so I hope they implement it. As for the mod itself, its pretty low on my priority list. Though I've got an idea rattling around that could do the same thing, just differently.

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

  • 2 years later...
  • Recently Browsing   0 members

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