how can I disable the leaders' audio quotes?

Seileach

Chieftain
Joined
Feb 1, 2002
Messages
79
hi :)

i'm trying to disable the leader's audio quotes, with little success. i tried
Code:
<GameInfo>
	<LeaderQuotes>
		<Delete QuoteAudio />
	</LeaderQuotes>
</GameInfo>
but that didn't work... i also tried
Code:
<GameInfo>
	<LeaderQuotes>
		<Update>
			<Set QuoteAudio="" />
		</Update>
	</LeaderQuotes>
</GameInfo>
and
Code:
<GameInfo>
	<LeaderQuotes>
		<Update>
			<Set QuoteAudio=null />
		</Update>
	</LeaderQuotes>
</GameInfo>
but the only result was a slight hiccup before the audio quote started.

if anyone can help me, it'd be great :) cheers!
 
If you mean for the loading screen, look in LoadScreen.lua For
Code:
 -- start the voiceover
    local leaderID = playerConfig:GetLeaderTypeID();
    if not m_isResyncLoad then
        UI.SetSoundSwitchValue("Leader_Screen_Civilization", UI.GetCivilizationSoundSwitchValueByLeader(leaderID));
        UI.SetSoundSwitchValue("Civilization", UI.GetCivilizationSoundSwitchValueByLeader(leaderID));
        UI.SetSoundSwitchValue("Era_DawnOfMan", UI.GetEraSoundSwitchValue(startEra.Hash));
        UI.PlaySound("Play_DawnOfMan_Speech");
    end
 
i tried disabling the two civ-dependent lines
Code:
 -- start the voiceover
    local leaderID = playerConfig:GetLeaderTypeID();
    if not m_isResyncLoad then
        -- UI.SetSoundSwitchValue("Leader_Screen_Civilization", UI.GetCivilizationSoundSwitchValueByLeader(leaderID));
        -- UI.SetSoundSwitchValue("Civilization", UI.GetCivilizationSoundSwitchValueByLeader(leaderID));
        UI.SetSoundSwitchValue("Era_DawnOfMan", UI.GetEraSoundSwitchValue(startEra.Hash));
        UI.PlaySound("Play_DawnOfMan_Speech");
    end
but it didn't work, nothing changed...

If you mean for the loading screen, look in LoadScreen.lua For
Code:
 -- start the voiceover
    local leaderID = playerConfig:GetLeaderTypeID();
    if not m_isResyncLoad then
        UI.SetSoundSwitchValue("Leader_Screen_Civilization", UI.GetCivilizationSoundSwitchValueByLeader(leaderID));
        UI.SetSoundSwitchValue("Civilization", UI.GetCivilizationSoundSwitchValueByLeader(leaderID));
        UI.SetSoundSwitchValue("Era_DawnOfMan", UI.GetEraSoundSwitchValue(startEra.Hash));
        UI.PlaySound("Play_DawnOfMan_Speech");
    end
 
did you try just commenting out the UI.Playsound line?
-- UI.PlaySound("Play_DawnOfMan_Speech");

no, but that's not really what i want to do. i want to keep the Era part of the Dawn of Man speech and lose the civ leader part. i kinda like that the DoM speech changes with the eras :)

but if nothing else works i may have to go with that...
 
did you try just commenting out the UI.Playsound line?
-- UI.PlaySound("Play_DawnOfMan_Speech");
tried it, nothing happened

oh, sorry misunderstood, then could try looking at this :
Code:
for row in GameInfo.LeaderQuotes() do
        if(has_leader[row.LeaderType] == true) then
            AddQuote(row.Quote, row.QuoteAudio);
        end
    end
in CivilopediaPage_Leader.lua might can just not add quote
tried changing AddQuote(row.Quote, row.QuoteAudio) to AddQuote(row.Quote), just to see if it worked, and tried also commenting out the entire line, nothing happened both times

maybe the .lua files just aren't uploading and replacing the original ones...
 
Top Bottom