GTFreeFlyer Posted January 24, 2020 Posted January 24, 2020 I'm trying to add .ogg files to the mission folder and they keep disappearing. I rename the .miz to .zip. Then I unzip and add the .ogg to i10n/DEFAULT. Next, I zip it back up and rename to .miz again. I even check the contents of the .zip to make sure the .ogg is in there. When I run the mission, the sound does not play. I have an env.info line of code in my script right under the trigger.action.outSound line, and I see it in the DCS.log file. I know the code is executing it. However, when I go back to the .miz file and unzip it, the .ogg is nowhere to be found! Somehow, when I execute the mission, it is removing the .ogg file. What's going on? I have made sure to completely close down DCS whenever I am renaming the .miz file to .zip and working with it. The process repeats over and over again. Any ideas? My DCS Missions: Band of Buds series | The End of the T-55 Era | Normandy PvP | Host of the Formation Flight Challenge server Supercarrier Reference Kneeboards IRL: Private Pilot, UAS Test Pilot, Aircraft Designer, and... eh hem... DCS Enthusiast
funkyfranky Posted January 24, 2020 Posted January 24, 2020 Any ideas? Put the sound files in another directory, i.e. not "i10n/DEFAULT". Then specify the path to the sound file in the trigger command. Files in "i10n/DEFAULT" are removed but files in other directories are not. God knows why... PS: You don't need to rename the miz to zip every time. Just tell your zip program to treat miz files as zip files. A warrior's mission is to foster the success of others. i9-12900K | RTX 4090 | 128 GB Ram 3200 MHz DDR-4 | Quest 3 RAT - On the Range - Rescue Helo - Recovery Tanker - Warehouse - Airboss
feefifofum Posted January 25, 2020 Posted January 25, 2020 To save space, DCS will delete files not in use so that the average GUI user won't wind up with a 40MB .miz full of unused .WAVs and no way to access them. Since there isn't a trigger referencing your files they are assumed to be junk files by DCS. Create a SOUND TO trigger with conditions that will never be met (i.e. TIME MORE 99999999 or FLAG EQUALS 999, 9999999) and load your files in that way and they should stay put, occasional bug notwithstanding. THE GEORGIAN WAR - OFFICIAL F-15C DLC
GTFreeFlyer Posted January 29, 2020 Author Posted January 29, 2020 Funkyfranky, I tried your method which I really would have preferred but it just wouldn’t work. I tried different folders and different ways of calling the path. No joy. I really would have preferred this method. Feefi, your method worked. I guess the sound files really do want to live in the DEFAULT folder. Before, I only had one trigger in the mission which would call the script. Now I have over 100 triggers just to call the voiceovers to get them loaded. It’s a little messy, but it works. The script can now call the voiceovers as needed. If you are curious about the mission, it’s now running on a dedicated server: Formation Flight Challenge. Give it a shot. I’ll have another forum thread dedicated to it later after I finish a few more things. Formation flying has now been turned into a scored event and a “dance” in the sky. The script will coordinate everyone in the formation, so no comms are required in the public server in order to achieve this teamwork required. My DCS Missions: Band of Buds series | The End of the T-55 Era | Normandy PvP | Host of the Formation Flight Challenge server Supercarrier Reference Kneeboards IRL: Private Pilot, UAS Test Pilot, Aircraft Designer, and... eh hem... DCS Enthusiast
funkyfranky Posted January 29, 2020 Posted January 29, 2020 Funkyfranky, I tried your method which I really would have preferred but it just wouldn’t work. I tried different folders and different ways of calling the path. No joy. I really would have preferred this method. Ah, sorry to hear that. However, the method I suggested works. I use it like this all the time as I simply cannot be bothered to create dozens of triggers for each mission ;) Check out some of my ATIS example missions. Files are at an arbitrary folder inside the miz. A warrior's mission is to foster the success of others. i9-12900K | RTX 4090 | 128 GB Ram 3200 MHz DDR-4 | Quest 3 RAT - On the Range - Rescue Helo - Recovery Tanker - Warehouse - Airboss
GTFreeFlyer Posted January 29, 2020 Author Posted January 29, 2020 Ah, sorry to hear that. However, the method I suggested works. I use it like this all the time as I simply cannot be bothered to create dozens of triggers for each mission ;) Check out some of my ATIS example missions. Files are at an arbitrary folder inside the miz. Good to know there’s a way to make it work. I’ll look into it. Thanks! My DCS Missions: Band of Buds series | The End of the T-55 Era | Normandy PvP | Host of the Formation Flight Challenge server Supercarrier Reference Kneeboards IRL: Private Pilot, UAS Test Pilot, Aircraft Designer, and... eh hem... DCS Enthusiast
A101Wayz Posted January 29, 2020 Posted January 29, 2020 Ah, sorry to hear that. However, the method I suggested works. I use it like this all the time as I simply cannot be bothered to create dozens of triggers for each mission ;) Check out some of my ATIS example missions. Files are at an arbitrary folder inside the miz. You don't have to create dozens of triggers... You just create one trigger that will never fire, and put as many SOUND TO ALL actions as you need. All sounds in one location. They'll stay there whether you use them, or not. Wayz Out Intel Core i9 9900K | ASUS ROG Strix Z390E Gaming MB | G.Skill Ripjaws V 32gb DDR4-3200 | GeForce RTX 2080 Ti | Samsung 970 EVO Plus NVMe HTC Vive Pro VR | Logitech G x56 HOTAS | Logitech G PRO Pedals
Recommended Posts