Replaced heist track audio causing crashes
Avatar

I recently replaced the tracks for the original PDTH Stone Cold, double checked I got the right formatting and codec compared to a vanilla file, but every time the song is supposed to play for any reason I get this crash:

Application has crashed: access violation

-------------------------------

Callstack:

         payday2_win32_release  (???)     zip_get_name                                        
         payday2_win32_release  (???)     zip_get_name                                        
         payday2_win32_release  (???)     zip_get_name                                        
         payday2_win32_release  (???)     zip_get_name                                        
         payday2_win32_release  (???)     zip_get_name                                        
         payday2_win32_release  (???)     zip_get_name                                        
         payday2_win32_release  (???)     zip_get_name                                        
         payday2_win32_release  (???)     zip_get_name                                        
         payday2_win32_release  (???)     zip_get_name                                        
         payday2_win32_release  (???)     zip_get_name                                        
         payday2_win32_release  (???)     zip_get_name                                        
         payday2_win32_release  (???)     zip_get_name                                        
                      KERNEL32  (???)     BaseThreadInitThunk                                 
                         ntdll  (???)     RtlInitializeExceptionChain                         
                         ntdll  (???)     RtlGetAppContainerNamedObjectPath                   
                           ???  (???)     ???                                                 


-------------------------------

Current thread: <Unknown>

I admittedly don't do much audio modding but considering my file structure looks identical to some other music replacement mods on here I'm at a loss of what's gone wrong. Other than malformed file structure and file formatting, is there any common issue when making a mod like this?

AudioOverrides
Avatar

try playing other custom tracks, if it happens for all of them what i did to fix it was remove all my mods and add them back in before running the game again (you lose items associated with mods if you run it without the mods installed). im not sure what exactly causes it, but another way to do it is delete mods one by one to see which ones causing the problem

Avatar

Thanks, though I do believe I'm dealing with a bug specific to the mod I've created. It only ever crashes with it installed when I listen to the song "Stone Cold" (the one I intended to modify), and removing the mod OR swapping to a different song prevents this crash, so at the very least I know what's causing the crash, but not how to fix my mod doing that. Also, let me be clear this isn't a custom track, but file replacement for a vanilla one (because vanilla stone cold isn't worth listening to imo).

Interestingly, on the rare occasion it doesn't crash my game, I've found that of the 4 modified files, the assault loop plays fine and causes no issues. Meanwhile, I highly suspect something is wrong with the control loop and assault intro files. I did notice both of them appear to be a larger file size than their vanilla counterpart, so maybe it's RAM related and I need to compress them a little.
The only other idea I have is it could also be caused by how much louder these modded files inherently are? Like they're peaking my headphones or something and causing the game to crash too? If it were that then I'd need to go into Audacity to fix that.

63 1484