Body Farm Posted January 13, 2016 Posted January 13, 2016 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]
Sabre-TLA Posted January 13, 2016 Posted January 13, 2016 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. 1 MapleFlagMissions - Read Our Blog for Updates
Body Farm Posted January 15, 2016 Author Posted January 15, 2016 (edited) Where is the mission lua? All I have is the miz file, and it is not really readable with notepad. Thank you Edited January 15, 2016 by Body Farm [sIGPIC][/sIGPIC]
Grimes Posted January 15, 2016 Posted January 15, 2016 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. 1 The right man in the wrong place makes all the difference in the world. Current Projects: Grayflag Server, Scripting Wiki Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread) SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum
Body Farm Posted January 15, 2016 Author Posted January 15, 2016 :doh: Thank you very much guys! :thumbup: [sIGPIC][/sIGPIC]
Sabre-TLA Posted January 15, 2016 Posted January 15, 2016 Hey Grimes, 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. Thanks. MapleFlagMissions - Read Our Blog for Updates
Grimes Posted January 16, 2016 Posted January 16, 2016 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 Server, Scripting Wiki Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread) SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum
VoodooVinny Posted February 23, 2018 Posted February 23, 2018 I know this is an old topic, but no one on here pointed out the ME-MOD which I have used it now with 1.5.7 Release, 1.5.8 Release, 2.1 Alpha, 2.2 Alpha, and even the 2.5 Beta. So if people find themselves looking to change the countries of their coalition after creating their mission, this thing works wonders... https://forums.eagle.ru/showthread.php?t=141475&highlight=change+countries
Recommended Posts