TP_Fritz Posted February 20, 2019 Posted February 20, 2019 (edited) I recently built a multiplayer dogfight mission where there were quite a few Subtitle messages that were designed to pop up and alert the pilots to the location of a train they were assigned to protect was. The Subtitles worked as expected; however, in testing, I had determined that - should the pilot(s) be involved in a fight - it was possible that they could miss the pop ups. To deal with that, I thought about the possibility of adding a short, half-second burst of static (as an MP3 sound file) that would play roughly a second before the Subtitle message. I threw together a quick test mission to try this idea out and get the timing just right. Unfortunately, I ran into an issue I was never able to solve. Initially, I had the design like so: Check Zone -----> Timer (2s) -----> Media Translator (play MP3 Sound file) | Timer (2s) -----> Subtitle Msg That worked... but it only worked once. For all the rest of the Subtitles where this occurred (as the object triggering the Check Zones moved through each Zone), the sound would not play again. So I tried setting it up so that there was a Media Translator that stopped all media before each Media Translator that played sound: Check Zone -----> Timer (2s) -----> Media Translator (stop media) | Timer (2s) -----> Media Translator (play MP3 Sound file) | Timer (2s) -----> Subtitle Msg and then one that set it up so that a Media Translator stopped all media after the sound played: Check Zone -----> Timer (2s) -----> Media Translator (play MP3 Sound file) | Timer (2s) -----> Media Translator (stop media) | Timer (2s) -----> Subtitle Msg In all these situations, the MP3 sound would play once - the very first time it was called - but then never play again. I was never able to figure out why this was happening, so I eventually abandoned the idea of playing a sound file and hoped for the best. The question here is, basically, twofold - is there a method that has to be followed to allow sounds to play that is different than the method I used? And, in my case, I was using the same sound file (static.mp3)... could it be that calling the same sound file called by an earlier Media Translator is the problem? Edited February 20, 2019 by TP_Fritz
Sketch Posted February 20, 2019 Posted February 20, 2019 (edited) Quote Check Zone ----->Timer (10ms) -----> Media Translator (stop ALL media - just in case a media file hung up for some reason) ↓ Timer (2s) -----> Media Translator (play MP3 Sound file) ↓ Timer (10ms) -----> Media Translator (stop ALL media - to stop the media file) ↓ Timer (2s) -----> Subtitle Msg Try the above ^^ See here for another post on how I created my media group. Edited February 20, 2019 by [TWB]Sketch
Alonzo Posted February 20, 2019 Posted February 20, 2019 I found that any MP3 file would only play once, but different MP3 files would still play. I'll try Sketch's solution as a fix. On this topic I wanted to add a whole bunch of voice acting to my missions, but while I had a lot of people saying they'd help out actually getting from good intentions to real recordings has been slow. This method seems like it would work -- some sort of audio cue to indicate an important message. This is a burst of static -- what other things might make sense? A little burst of morse code, a generic clip of radio traffic (random, sometimes English, America, German, Russian...) ? Any other ideas?
Sketch Posted February 20, 2019 Posted February 20, 2019 36 minutes ago, Alonzo said: I found that any MP3 file would only play once, but different MP3 files would still play. I'll try Sketch's solution as a fix. On this topic I wanted to add a whole bunch of voice acting to my missions, but while I had a lot of people saying they'd help out actually getting from good intentions to real recordings has been slow. This method seems like it would work -- some sort of audio cue to indicate an important message. This is a burst of static -- what other things might make sense? A little burst of morse code, a generic clip of radio traffic (random, sometimes English, America, German, Russian...) ? Any other ideas? Some ideas.... In Rocket Training, I have a randomly chosen mp3 play anytime the player hits a tank. It'll say things like, "Owie!", "You scratched my paint!", and stuff like that... Rocket Training In Supply Runner, I have a randomly chosen airfield that the player has to land at after they take off.... When the airfield is chosen, then I have a random mp3 play that basically says "go to X airfield", in various fashion. When the player gets close to the landing airfield, I have another random mp3 play that basically says "We see that you're at the correct airfield, land at runway X", again in various ways. Then when the player lands, I have the ATC give a random "thumbs up on the landing" mp3. Then another random mp3 plays telling the player to "taxi to X location". Then when the player gets to X location, I have a random mp3 play as the supply trucks get to the player's plane. When the trucks get to the player's plane, I have a random "We're loading cargo into your plane" mp3 play, along with random grunting and loading noise. After a few minutes, the ACT plays another random mp3 saying something like, "You're clear to taxi to runway X" Once the player taxi's to the correct runway, then the ACT plays another random mp3 saying "You're clear to take off" Then another randomly chosen airfield is selected, and the process repeats. Supply Runner You can see a video of how Supply Runner looks here -> 2
Alonzo Posted February 21, 2019 Posted February 21, 2019 That is super cool! When are you doing a $10 paid mission series then? ?
Sketch Posted February 21, 2019 Posted February 21, 2019 27 minutes ago, Alonzo said: That is super cool! When are you doing a $10 paid mission series then? Probably never. Time and money.... Time and money. ?
JG4_Deciman Posted February 20, 2020 Posted February 20, 2020 Hi there Any solution for this 'mp3 played only once' problem? I've tried all solutions and nothing helped. All sounds are played once only (multiplayer hosted by dserver) Same mission (as singleplayer): Sounds are played as often as I trigger them... Deci
JG4_Deciman Posted February 21, 2020 Posted February 21, 2020 Ok, some testings later I know how the problem occurs, but I don't know WHY... Created a very small mp-mission. Just an airfield to spawn and a repeating action doing the following: media stop 100ms delay play sound (soundfile 20 seconds long) after 3 seconds -> media stop delay 20 seconds start from the beginning. The sound started playing, stopped after 3 seconds, and was started again on the next run. Same in my big mission... First run: The sound started playing, was played to the end (!) and was newer played again. Next step added a subtitle shown when the timer triggering 'media stop' fired up. Subtitle showed up, media continued playing. following runs: Subtitle was shown, but no media playing... So it seems, the 'media stop' is bugged or broken at least in my mission... Deci
JG4_Deciman Posted February 21, 2020 Posted February 21, 2020 (edited) Ok, next test... Tried my 'mini' mission (Lapino winter and just the audio part) with my dserver -> working Copied the entire working group into my mission (Rheinland spring with much other things) and tested with my dserver -> NOT working So it's either the rheinland map or the priotity of the 'media stop' is set too low inside the dserver (or il-2 itself?) I can confirm the 'media stop' was triggered in both missions (subtitle showed up) I can confirm the media stopped in the 'mini' mission and was played again next time it was started I can confirm the media did NOT stop in the 'big' mission and was never played again. That is a BUG, located in 'media stop'... Deci Edited February 21, 2020 by JG4_Deciman
TP_Fritz Posted February 21, 2020 Author Posted February 21, 2020 Good info there. Have you by chance tried your working group on all of the maps one at a time and starting with a clean map? I wonder if it could be some sort of issue with other MCUs in a mission with lots of objects. I'll try that myself tonight when I get home.
JG4_Deciman Posted February 22, 2020 Posted February 22, 2020 Ok, I think I've located it... Whenever you have a unit with AI set to 'player' the media is NOT stopped by the trigger. I had 1 plane inside my mission to test it in SP mode, too (which is much faster for testing complex logical creations as you can use time compression) Deci
marcost Posted January 16, 2021 Posted January 16, 2021 @Sketch any chance you could re-upload the supply runner mission, the link above is dead? Thanks M
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now