Taproot Posted July 12, 2013 Posted July 12, 2013 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? [sIGPIC][/sIGPIC]
galevsky06 Posted July 12, 2013 Posted July 12, 2013 (edited) 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 July 12, 2013 by galevsky06
ED Team NineLine Posted July 12, 2013 ED Team Posted July 12, 2013 Pretty sure I read that this is not possible right now... not during a mission anyways. sniped, unless you are just trying to change it due to assigning it wrong when creating a mission :D Forum Rules • My YouTube • My Discord - NineLine#0440• **How to Report a Bug**
galevsky06 Posted July 12, 2013 Posted July 12, 2013 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 ??
Taproot Posted July 12, 2013 Author Posted July 12, 2013 Yeah, I'm getting a ] error or something. Care to give it a shot Galev? Its only 31 kb, so it mailes over real easy. ;) [sIGPIC][/sIGPIC]
Taproot Posted July 12, 2013 Author Posted July 12, 2013 I use winrar, and I have no such problems. really recommend it. When I edit the .lua it gets repacked as .miz [sIGPIC][/sIGPIC]
galevsky06 Posted July 12, 2013 Posted July 12, 2013 I use winrar, and I have no such problems. really recommend it. When I edit the .lua it gets repacked as .miz Send it to me.
Recommended Posts