MadDog-IC Posted October 6, 2015 Posted October 6, 2015 When converting from old DCSW v1.2.16 or earlier missions to OB v1.5 that have mist scripts within them that play sounds with the "trigger.action.outSound()" command, the sound files that are associated with those command will not be saved in the new mission format when the Mission Editor saves. Even if you copy over the missing files and inject directly into .miz file, they will be deleted if you edit mission and resave. I don't know how to program mist, but have done mission file comparisons from old to new versions and see multiply files that are missing. ie: Used mission: Asset extraction 1.24.miz as test Part Code example: if pushingToEgress then stopPush = generateWaypoints(assetUnit, assetUnit, 'stopPush') trigger.action.outText("This is Delta squad. Um - we're not on board yet. Return to the extraction zone for dust off.", 40) trigger.action.outSound('StopPushToExtraction.ogg') mist.goRoute(verifyGroup, stopPush) mist.goRoute(assetGroup, stopPush) pushingToEgress = false end Missing Files used by complete script: AssetVerificationComplete.ogg DeltaSupportRequest.ogg ExtractComplete.ogg ResumePushToExtraction.ogg StartPushToAsset.ogg StartPushToExtraction.ogg StopPushToExtraction.ogg Regards, Ian. Asus p877v-pro, Intel I7 3770k 4.2ghz, 32gb Ripjaw X ram, Nvidia RTX-2070 Super, Samsung 32" TV, Saitek x52 pro Joystick and Combat rudder pedals, TrackIR 5, Win8.1 x64 with SSD and SSHD protected by (Avast AV). DCS Tech Support.
Blooze Posted October 6, 2015 Posted October 6, 2015 Try placing the ogg files in the saved games/DCS openbeta folder. [sIGPIC][/sIGPIC]
Grimes Posted October 6, 2015 Posted October 6, 2015 Yeah, that isn't really a mist issue, its a "how the mission editor handles embedded files" issue. Basically any sound file referenced via a script has to be added by a trigger or any other method by the mission editor and you can't simply drag and drop files in the miz archive. If you do drop a file in the miz archive and then save the mission afterward then the mission editor will "purge" any non-referenced file. To fix it just make a simple trigger, Mission Start> Random 0%> Sound To Whatever(StopPushToExtraction.ogg). For each missing file, clone the action to play the sound file and add the other missing files. Also update mist to the latest release version as it is required due to mission file format changes. Sounds should then play correctly. 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
MadDog-IC Posted October 6, 2015 Author Posted October 6, 2015 Thanks for the reply, good solution, will give that a go. Already did the mist update to 4.0.55 Asus p877v-pro, Intel I7 3770k 4.2ghz, 32gb Ripjaw X ram, Nvidia RTX-2070 Super, Samsung 32" TV, Saitek x52 pro Joystick and Combat rudder pedals, TrackIR 5, Win8.1 x64 with SSD and SSHD protected by (Avast AV). DCS Tech Support.
Blooze Posted October 7, 2015 Posted October 7, 2015 I got a fresh install of Asset Extraction and loaded it into the 1.2.16 ME but did not see any triggers that called for the playing of these sound files, AssetVerificationComplete.ogg DeltaSupportRequest.ogg ExtractComplete.ogg ResumePushToExtraction.ogg StartPushToAsset.ogg StartPushToExtraction.ogg StopPushToExtraction.ogg Could that mean that they never would have been activated in the original mission when flown in the 1.2.16 build? If so then could it also be that 1.5 eliminated any sound files that were not of value? [sIGPIC][/sIGPIC]
MadDog-IC Posted October 7, 2015 Author Posted October 7, 2015 I got a fresh install of Asset Extraction and loaded it into the 1.2.16 ME but did not see any triggers that called for the playing of these sound files, AssetVerificationComplete.ogg DeltaSupportRequest.ogg ExtractComplete.ogg ResumePushToExtraction.ogg StartPushToAsset.ogg StartPushToExtraction.ogg StopPushToExtraction.ogg Could that mean that they never would have been activated in the original mission when flown in the 1.2.16 build? If so then could it also be that 1.5 eliminated any sound files that were not of value? This is what I thought originally, but those sounds are not called by standard triggers, they are called by the custom "SpawnVerifyTeam.lua" script used for the helo rescue, that is were the part script code in my original message is from. Asus p877v-pro, Intel I7 3770k 4.2ghz, 32gb Ripjaw X ram, Nvidia RTX-2070 Super, Samsung 32" TV, Saitek x52 pro Joystick and Combat rudder pedals, TrackIR 5, Win8.1 x64 with SSD and SSHD protected by (Avast AV). DCS Tech Support.
Grimes Posted October 8, 2015 Posted October 8, 2015 I recall the 1.2 mission editor wouldn't always "clean out" non-referenced files when you saved the mission. So you could manually edit the miz file and add sounds in as desired for script use. Sometimes if you added a newer version of a file under a different name (via triggers) the old file would still remain. The newer mission editor code apparently only allows files that are referenced, otherwise it deletes them. Also it keeps the root of the .miz clean and puts everything into a subfolder now. 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
Recommended Posts