Pyroflash Posted November 23, 2011 Posted November 23, 2011 So, how do I edit the mission file in order to create missions that have parameters outside the normally allowed ones? e.g. QNH of 20,000 If you aim for the sky, you will never hit the ground.
nomdeplume Posted November 23, 2011 Posted November 23, 2011 (edited) The .miz file is actually a zip archive which contains certain files that the simulator looks for. The bulk of the mission information is contained in a text file called "mission" (no extension) inside it. You can extract it using 7-zip or WinZIP or rename the .miz to a .zip and use the zip capabilities built-in to the Windows shell. Edit the file using notepad++ or some other text editor (not sure if Notepad will break these files, but there's plenty of better editors available). The file is actually a Lua script which defines a bunch of data structures which are used by the game engine. Just have a look through it and find the section with the weather settings. You might need to try saving the mission with a few different settings and looking at the resulting mission file each time to work out how it's saved (I've not looked at the weather part specifically). Once you've made your change, overwrite the 'mission' file in the .miz with your updated one and try loading it. Just keep in mind that, even if you do it right, there's no guarantee the sim will 'correctly' handle unusual values. You might want to try to manually editing the file to include different but 'valid' settings in order to verify your procedure is correct, before moving on to more exotic values. Edited November 23, 2011 by nomdeplume 1
Pyroflash Posted November 23, 2011 Author Posted November 23, 2011 (edited) Thanks mate! And yeah, I just tried opening it with regular Notepad. It does indeed break it. But, N++ so, yeah whatever. Edited November 23, 2011 by Pyroflash If you aim for the sky, you will never hit the ground.
Iceman2011 Posted November 23, 2011 Posted November 23, 2011 Did you see some weird characters there? If you did then you can't edit with text editor - if it's just text then by all means (about lua files, personally haven't seen anything else than text files)
Recommended Posts