Forged Alliance Forever Forged Alliance Forever Forums 2018-02-12T06:23:27+02:00 /feed.php?f=41&t=15823 2018-02-12T06:23:27+02:00 2018-02-12T06:23:27+02:00 /viewtopic.php?t=15823&p=160779#p160779 <![CDATA[Re: "Commander Under Attack" Replacement]]> You can also press [F9] while playing. This will open the error log window.
Maybe the errorlog window is "behind" your game main window. Try to use windowed mode then.

Just an idea, i did no test this:
Code:
        local cue, bank
        if sound then
            cue, bank = GetCueBank(sound)
        else
            -- Are we playing the ACU sound ? Then use the "DeribusFile" WaveBank.
            if string == 'OnPlayCommanderUnderAttackVO' then
                cue, bank = VO['bank'], 'DeribusFile'
            -- No ACU sound ? Then use the default XGG bank.
            else
                cue, bank = VO['bank'], 'XGG'
            end
        end

Statistics: Posted by Uveso — 12 Feb 2018, 06:23


]]>
2018-02-11T22:48:41+02:00 2018-02-11T22:48:41+02:00 /viewtopic.php?t=15823&p=160768#p160768 <![CDATA[Re: "Commander Under Attack" Replacement]]>
Uveso wrote:
hello Deribus,

i got this error from the mod:

This means, the game can't find the sound "Test1234" inside the files "XGG.xwb" and "XGG.xsb"

You also used a destructive hook inside aibrain.lua. (It will not run on every SupCom version)

Please delete everything inside your aibrain.lua and replace it with the following code:

I guess you need also to change the PlayVOSound function, because it needs the commander sound inside the file XGG.xwb. You may want to change this.


Thanks! That really helps a lot. I'll change aibrain and look into the PlayVOSound function in order for it to not require XGG, as I don't believe you can open and add to an existing bank. Also, where did you get that error message from?

Statistics: Posted by Deribus — 11 Feb 2018, 22:48


]]>
2018-02-11T22:38:25+02:00 2018-02-11T22:38:25+02:00 /viewtopic.php?t=15823&p=160767#p160767 <![CDATA[Re: "Commander Under Attack" Replacement]]>
i got this error from the mod:
Code:
WARNING: Error resolving cue 'Test1234' in bank 'XGG'


This means, the game can't find the sound "Test1234" inside the files "XGG.xwb" and "XGG.xsb"

You also used a destructive hook inside aibrain.lua. (It will not run on every SupCom version)

Please delete everything inside your aibrain.lua and replace it with the following code:

Code:
OLDAIBrain = AIBrain

AIBrain = Class(OLDAIBrain) {
    -- System for playing VOs to the Player
    VOSounds = {
        -- {timeout delay, default cue, observers}
        NuclearLaunchDetected =        {timeout = 1, bank = nil, obs = true},
        OnTransportFull =              {timeout = 1, bank = nil},
        OnFailedUnitTransfer =         {timeout = 10, bank = 'Computer_Computer_CommandCap_01298'},
        OnPlayNoStagingPlatformsVO =   {timeout = 5, bank = 'XGG_Computer_CV01_04756'},
        OnPlayBusyStagingPlatformsVO = {timeout = 5, bank = 'XGG_Computer_CV01_04755'},
        OnPlayCommanderUnderAttackVO = {timeout = 15, bank = 'Test1234'}, --Computer_Computer_Commanders_01314'},
    },

    PlayVOSound = function(self, string, sound)
        if not self.VOTable then self.VOTable = {} end

        local VO = self.VOSounds[string]
        if not VO then
            WARN('PlayVOSound: ' .. string .. " not found")
            return
        end

        if not self.VOTable[string] and VO['obs'] and GetFocusArmy() == -1 and self:GetArmyIndex() == 1 then
            -- Don't stop sound IF not repeated AND sound is flagged as 'obs' AND i'm observer AND only from PlayerIndex = 1
        elseif self.VOTable[string] or GetFocusArmy() ~= self:GetArmyIndex() then
            return
        end

        local cue, bank
        if sound then
            cue, bank = GetCueBank(sound)
        else
            cue, bank = VO['bank'], 'XGG'
        end

        if not (bank and cue) then
            WARN('PlayVOSound: No valid bank/cue for ' .. string)
            return
        end

        self.VOTable[string] = true
        table.insert(Sync.Voice, {Cue = cue, Bank = bank})

        local timeout = VO['timeout']
        ForkThread(function()
            WaitSeconds(timeout)
            self.VOTable[string] = nil
        end)
    end,

}


I guess you need also to change the PlayVOSound function, because it needs the commander sound inside the file XGG.xwb. You may want to change this.

Statistics: Posted by Uveso — 11 Feb 2018, 22:38


]]>
2018-02-11T21:54:15+02:00 2018-02-11T21:54:15+02:00 /viewtopic.php?t=15823&p=160765#p160765 <![CDATA[Re: "Commander Under Attack" Replacement]]>

OnPlayCommanderUnderAttackVO = {timeout = 15, bank = 'Test1234'},

But this results in no sound effect being played at all. I attached a zip copy of the mod if someone would like to take a look over it and see where I messed up.

I am also using XACT 2.0 and the sound is playing in auditioning, so it doesn't seem like it's an issue with the sound file.

Statistics: Posted by Deribus — 11 Feb 2018, 21:54


]]>
2018-01-30T23:16:35+02:00 2018-01-30T23:16:35+02:00 /viewtopic.php?t=15823&p=160132#p160132 <![CDATA[Re: Help - New To Modding]]>
speed2 wrote:
the link is in the wiki guide

That is the one I used, but that is version 4.0, not 2.0. Will it still work?

Statistics: Posted by Deribus — 30 Jan 2018, 23:16


]]>
2018-01-30T20:24:47+02:00 2018-01-30T20:24:47+02:00 /viewtopic.php?t=15823&p=160123#p160123 <![CDATA[Re: Help - New To Modding]]>
Deribus wrote:
Thanks for the help. I attempted to get the sound to work, but I only made it so that no sound would play. I assume that this is because I used XACT 4.0 instead of 2.0 as was stated in the guide, but I can only find a version 2.0 for MacOS. Anyone know where I could get XACT 2.0 for Windows? Or is that not the real problem and I messed up somewhere else?

the link is in the wiki guide

Statistics: Posted by speed2 — 30 Jan 2018, 20:24


]]>
2018-01-30T20:15:21+02:00 2018-01-30T20:15:21+02:00 /viewtopic.php?t=15823&p=160122#p160122 <![CDATA[Re: Help - New To Modding]]> Statistics: Posted by Farmsletje — 30 Jan 2018, 20:15


]]>
2018-01-30T20:10:40+02:00 2018-01-30T20:10:40+02:00 /viewtopic.php?t=15823&p=160121#p160121 <![CDATA[Re: Help - New To Modding]]> Statistics: Posted by Deribus — 30 Jan 2018, 20:10


]]>
2018-01-29T13:01:23+02:00 2018-01-29T13:01:23+02:00 /viewtopic.php?t=15823&p=160054#p160054 <![CDATA[Re: Help - New To Modding]]> https://github.com/FAForever/fa/blob/de ... n.lua#L820

Statistics: Posted by speed2 — 29 Jan 2018, 13:01


]]>
2018-01-29T12:58:18+02:00 2018-01-29T12:58:18+02:00 /viewtopic.php?t=15823&p=160053#p160053 <![CDATA[Re: Help - New To Modding]]>
First welcome in the modding part of FA ! You can achieve impressive results in modding supcom.

For sound modding, refer to previous posts on the forum :

viewtopic.php?f=41&t=6169
viewtopic.php?f=41&t=13038

Mission scripting contains an audio part :
https://wiki.faforever.com/index.php?ti ... ting#Audio

Have fun modding !

Statistics: Posted by Franck83 — 29 Jan 2018, 12:58


]]>
2018-02-11T21:47:15+02:00 2018-01-28T17:56:19+02:00 /viewtopic.php?t=15823&p=160009#p160009 <![CDATA["Commander Under Attack" Replacement]]>
For my first mod I'm trying something that should be quite simple: replacing the "commander under attack" sound effect. However, I can't find the proper file to hook onto, and even if I did I cannot figure out the way sound works. For example, in the aeonweapons.lua and UserMusic.lua files I cannot find where they request the sound file, so I cannot see a way to change it.

Any advice?

Statistics: Posted by Deribus — 28 Jan 2018, 17:56


]]>