0xDEADBEEF Posted January 19, 2016 Posted January 19, 2016 Hi guys! I'm just entering the scripting thing and I didn't manage to get a search result on this topic. So, i just found out, in order to have the script updated, you have to reassign the doscriptfile trigger. I'm looking for a way around. So far I understand that the .miz is a zipfile which contains the scripts. Updating the "doscriptfile" updates the script in the .miz-zip. My idea is to just have a button in my task bar, which when I click would update the scriptfile in the .miz-zip. So I edit the .lua outside the .miz, click my macro command and have it update the .miz-file with the new scripts. This way I could just reload the mission ... My problem is, i've spent the past 10 years on OS-X, so I got no real clue how to do this in Win10, but I figure chances are high somebody did this already? any help appreciated! beef
MasterZelgadis Posted January 20, 2016 Posted January 20, 2016 Perhaps you could do this via AutoIT scripting, it's a freeware script environment "Sieh nur, wie majestätisch du durch die Luft segelst. Wie ein Adler. Ein fetter Adler." http://www.space-view.net
HiJack Posted January 20, 2016 Posted January 20, 2016 In mission editor, locate the Trigger type with the script loading and delete the action "Do script file()" that loads the script. Save the mission. Load the newly saved mission and recreate the Action "Do script file()" selecting the new script (use a version number on the script file also, for example, myscript_v_1.1.lua) and make sure you change version every time you change the script.
0xDEADBEEF Posted January 20, 2016 Author Posted January 20, 2016 In mission editor, locate the Trigger type with the script loading and delete the action "Do script file()" that loads the script. Save the mission. Load the newly saved mission and recreate the Action "Do script file()" selecting the new script (use a version number on the script file also, for example, myscript_v_1.1.lua) and make sure you change version every time you change the script. oh look, there's a more complicated way to do it :D I found a way that works well for me, on my second screen i got the explorer with the script-file open, next to it winrar with the mission-scriptfolder open. When I'm finished testing I load another mission so the mission is not open. I do my changes, safe them, drag the script file into the zip, reload the mission and im good to go. Loading takes about 10-15 seconds, which is not comfortable but bearable. ;)
Pikey Posted January 20, 2016 Posted January 20, 2016 DCS likes to corrupt files if you play with them whilst in ME, I think thats the general advice above. I've had it happen a lot. Editing scripts and dropping them right in is fair enough if its a script you work on. Alternatively use Witchcraft and do your LUA editing in the same mission live. it wasn't exactly clear form the OP what your need was, if you were updating many miz to the same version script or just one script updating. Either way getting a smooth workflow for this is always time consuming! ___________________________________________________________________________ SIMPLE SCENERY SAVING * SIMPLE GROUP SAVING * SIMPLE STATIC SAVING *
Steggles Posted January 20, 2016 Posted January 20, 2016 oh look, there's a more complicated way to do it :D I found a way that works well for me, on my second screen i got the explorer with the script-file open, next to it winrar with the mission-scriptfolder open. When I'm finished testing I load another mission so the mission is not open. I do my changes, safe them, drag the script file into the zip, reload the mission and im good to go. Loading takes about 10-15 seconds, which is not comfortable but bearable. ;) I've thought about that, but never tried it. Glad it works, I'll be using that technique too now. -16AGR- 16th Air Guards Regiment is always looking for pilots - http://www.16agr.com EWRS - Early Warning Radar Script Specs: Gigabyte Sniper Z5-S Intel i5-4670k 3.4GHz OC'd 3.9GHz w/ Thermaltake 120mm Water 3.0 Pro Liquid CPU Cooler 16GB RAM Gigabyte GTX 1080 TM Hotas Warthog: SN: 06976 Saitek Pro Flight Combat Rudder Pedals TrackIR5 with TrackClipPro & Oculus Rift 2x 28" 4k UHD Monitors (3840x2160 each) + 1280x1024
Recommended Posts