Total Mayhem 1.36: Sound Bug

Moderators: Uveso, burnie222

Total Mayhem 1.36: Sound Bug

Postby HorizonPulse » 20 May 2018, 21:02

Hello all,
I'm experiencing a strange bug when playing with the Total Mayhem mod where most of the sounds for the modded units will not play during co-op story mode missions, but will work fine during normal multiplayer. Does anyone have any idea what might be causing this issue?
HorizonPulse
 
Posts: 2
Joined: 20 May 2018, 20:57
Has liked: 0 time
Been liked: 0 time
FAF User Name: HorizonPulse

Re: Total Mayhem 1.36: Sound Bug

Postby Uveso » 20 May 2018, 22:54

Sound from mods are loaded directly from the mod directory "IF" there is a function inside the init file.
Normal FAF start uses (init_faf.lua) and has such a function in it.

The coop init file has no sound mounting from mod directories.

There are 2 ways to solve this problem.

1. copy all soundfiles from mods\Total Mayhem\sounds\*.* to your game-sound folder eg: SupCom\sound\*.*

OR

2. Open your coop inifile "C:\ProgramData\FAForever\bin\init_coop.lua"

Paste this at the end of the file:

Code: Select all
-- This section mounts sounds from the mods directory to allow mods to add custom sounds to the game
function mount_mod_sounds(MODFOLDER)
    -- searching for mods inside the modfolder
    for _,mod in io.dir( MODFOLDER..'\\*.*') do
        -- do we have a true directory ?
        if mod != '.' and mod != '..' then
            -- searching for sounds inside mod folder
            for _,folder in io.dir(MODFOLDER..'\\'..mod..'\\*.*') do
                -- if we found a folder named sounds then mount it
                if folder == 'sounds' then
                    LOG('Found mod sounds in: '..mod)
                    mount_dir(MODFOLDER..'\\'..mod..'\\sounds', '/sounds')
                    break
                end
            end
        end
    end
end
mount_mod_sounds(SHGetFolderPath('PERSONAL') .. 'My Games\\Gas Powered Games\\Supreme Commander Forged Alliance\\mods')
mount_mod_sounds(InitFileDir .. '\\..\\user\\My Games\\Gas Powered Games\\Supreme Commander Forged Alliance\\mods')


Save it, and start coop.

[Edit] Coop GitHub: https://github.com/FAForever/fa-coop (there you can directly talk/message the coop developer team)
User avatar
Uveso
Supreme Commander
 
Posts: 1788
Joined: 11 Dec 2015, 20:56
Location: Germany
Has liked: 70 times
Been liked: 291 times
FAF User Name: Uveso

Re: Total Mayhem 1.36: Sound Bug

Postby HorizonPulse » 21 May 2018, 07:54

Thank you very much! It worked.
HorizonPulse
 
Posts: 2
Joined: 20 May 2018, 20:57
Has liked: 0 time
Been liked: 0 time
FAF User Name: HorizonPulse


Return to Total Mayhem

Who is online

Users browsing this forum: No registered users and 1 guest