Weird LH music

Leoreth

Bofurin
Retired Moderator
Joined
Aug 23, 2009
Messages
37,948
Location
風鈴高等学校
I'm having a particularly odd problem right now (actually, I've had it for a long time and just never noticed because I usually play without music):

I've added some leaderheads to my mod, and some of the users have provided me with background music for them. I added the music, but for some reason for every one of them, the actual music doesn't play when conducting diplomacy with the respective leaders, but a completely different piece of music which I don't know. It's hard to describe; it sounds a little sinister and reminds me of FFH somehow. I'm not aware of such music being available to my mod in any way.

Here's how I set up the LH music:

- The files itself are in Assets\Sounds\Diplomacy\ as MP3 (the files themselves work fine when played in a media player)
- for each leader, I've added an entry in Assets\XML\Audio\Audio2DScripts.xml
Spoiler :
Code:
	<Script2DSound>
		<ScriptID>AS2D_DIPLO_AKBAR</ScriptID>
		<SoundID>DIPLO_AKBAR</SoundID>
		<SoundType>GAME_MUSIC</SoundType>
		<iMinVolume>75</iMinVolume>
		<iMaxVolume>75</iMaxVolume>
		<iPitchChangeDown>0</iPitchChangeDown>
		<iPitchChangeUp>0</iPitchChangeUp>
		<iMinLeftPan>-1</iMinLeftPan>
		<iMaxLeftPan>-1</iMaxLeftPan>
		<iMinRightPan>-1</iMinRightPan>
		<iMaxRightPan>-1</iMaxRightPan>
		<bLooping>1</bLooping>
		<iMinTimeDelay>0</iMinTimeDelay>
		<iMaxTimeDelay>0</iMaxTimeDelay>
		<bTaperForSoundtracks>0</bTaperForSoundtracks>
		<iLengthOfSound>0</iLengthOfSound>
		<fMinDryLevel>1.0</fMinDryLevel>
		<fMaxDryLevel>1.0</fMaxDryLevel>
		<fMinWetLevel>0.0</fMinWetLevel>
		<fMaxWetLevel>0.0</fMaxWetLevel>
		<iNotPlayPercent>0</iNotPlayPercent>
	</Script2DSound>
- and a corresponding entry in Assets\Audio\AudioDefines.xml:
Spoiler :
Code:
		<SoundData>
			<SoundID>DIPLO_AKBAR</SoundID>
			<Filename>Sounds/Diplomacy/Akbar</Filename>
			<LoadType>DYNAMIC_RES</LoadType>
			<bIsCompressed>1</bIsCompressed>
			<bInGeneric>1</bInGeneric>
		</SoundData>
- then I added the AS2D entry to the leaderhead entry in the LH XML file:
Spoiler :
Code:
		<LeaderHeadInfo>
			<Type>LEADER_AKBAR</Type>					<!-- personality: Kublai Khan -->
			<Description>TXT_KEY_LEADER_AKBAR</Description>
			<Civilopedia>TXT_KEY_LEADER_AKBAR_PEDIA</Civilopedia>
			<ArtDefineTag>ART_DEF_LEADER_AKBAR</ArtDefineTag>
			<iWonderConstructRand>15</iWonderConstructRand>
			<iBaseAttitude>0</iBaseAttitude>
			<iBasePeaceWeight>1</iBasePeaceWeight>
			<iPeaceWeightRand>3</iPeaceWeightRand>
			<iWarmongerRespect>2</iWarmongerRespect>
			<iEspionageWeight>100</iEspionageWeight>
			<iRefuseToTalkWarThreshold>8</iRefuseToTalkWarThreshold>
			<iNoTechTradeThreshold>10</iNoTechTradeThreshold>
			<iTechTradeKnownPercent>30</iTechTradeKnownPercent>
			<iMaxGoldTradePercent>5</iMaxGoldTradePercent>
			<iMaxGoldPerTurnTradePercent>10</iMaxGoldPerTurnTradePercent>
			<iMaxWarRand>100</iMaxWarRand>
			<iMaxWarNearbyPowerRatio>90</iMaxWarNearbyPowerRatio>
			<iMaxWarDistantPowerRatio>50</iMaxWarDistantPowerRatio>
			<iMaxWarMinAdjacentLandPercent>1</iMaxWarMinAdjacentLandPercent>
			<iLimitedWarRand>60</iLimitedWarRand>
			<iLimitedWarPowerRatio>120</iLimitedWarPowerRatio>
			<iDogpileWarRand>50</iDogpileWarRand>
			<iMakePeaceRand>40</iMakePeaceRand>
			<iDeclareWarTradeRand>40</iDeclareWarTradeRand>
			<iDemandRebukedSneakProb>40</iDemandRebukedSneakProb>
			<iDemandRebukedWarProb>10</iDemandRebukedWarProb>
			<iRazeCityProb>25</iRazeCityProb>
			<iBuildUnitProb>25</iBuildUnitProb>
			<iBaseAttackOddsChange>0</iBaseAttackOddsChange>
			<iAttackOddsChangeRand>8</iAttackOddsChangeRand>
			<iWorseRankDifferenceAttitudeChange>0</iWorseRankDifferenceAttitudeChange>
			<iBetterRankDifferenceAttitudeChange>3</iBetterRankDifferenceAttitudeChange>
			<iCloseBordersAttitudeChange>-3</iCloseBordersAttitudeChange>
			<iLostWarAttitudeChange>-1</iLostWarAttitudeChange>
			<iAtWarAttitudeDivisor>-5</iAtWarAttitudeDivisor>
			<iAtWarAttitudeChangeLimit>5</iAtWarAttitudeChangeLimit>
			<iAtPeaceAttitudeDivisor>60</iAtPeaceAttitudeDivisor>
			<iAtPeaceAttitudeChangeLimit>1</iAtPeaceAttitudeChangeLimit>
			<iSameReligionAttitudeChange>1</iSameReligionAttitudeChange>
			<iSameReligionAttitudeDivisor>10</iSameReligionAttitudeDivisor>
			<iSameReligionAttitudeChangeLimit>4</iSameReligionAttitudeChangeLimit>
			<iDifferentReligionAttitudeChange>0</iDifferentReligionAttitudeChange>
			<iDifferentReligionAttitudeDivisor>-5</iDifferentReligionAttitudeDivisor>
			<iDifferentReligionAttitudeChangeLimit>-1</iDifferentReligionAttitudeChangeLimit>
			<iBonusTradeAttitudeDivisor>50</iBonusTradeAttitudeDivisor>
			<iBonusTradeAttitudeChangeLimit>2</iBonusTradeAttitudeChangeLimit>
			<iOpenBordersAttitudeDivisor>25</iOpenBordersAttitudeDivisor>
			<iOpenBordersAttitudeChangeLimit>2</iOpenBordersAttitudeChangeLimit>
			<iDefensivePactAttitudeDivisor>12</iDefensivePactAttitudeDivisor>
			<iDefensivePactAttitudeChangeLimit>2</iDefensivePactAttitudeChangeLimit>
			<iShareWarAttitudeChange>1</iShareWarAttitudeChange>
			<iShareWarAttitudeDivisor>8</iShareWarAttitudeDivisor>
			<iShareWarAttitudeChangeLimit>3</iShareWarAttitudeChangeLimit>
			<iFavoriteCivicAttitudeChange>1</iFavoriteCivicAttitudeChange>
			<iFavoriteCivicAttitudeDivisor>10</iFavoriteCivicAttitudeDivisor>
			<iFavoriteCivicAttitudeChangeLimit>4</iFavoriteCivicAttitudeChangeLimit>
			<DemandTributeAttitudeThreshold>ATTITUDE_CAUTIOUS</DemandTributeAttitudeThreshold>
			<NoGiveHelpAttitudeThreshold>ATTITUDE_CAUTIOUS</NoGiveHelpAttitudeThreshold>
			<TechRefuseAttitudeThreshold>ATTITUDE_FURIOUS</TechRefuseAttitudeThreshold>
			<StrategicBonusRefuseAttitudeThreshold>ATTITUDE_ANNOYED</StrategicBonusRefuseAttitudeThreshold>
			<HappinessBonusRefuseAttitudeThreshold>ATTITUDE_ANNOYED</HappinessBonusRefuseAttitudeThreshold>
			<HealthBonusRefuseAttitudeThreshold>ATTITUDE_ANNOYED</HealthBonusRefuseAttitudeThreshold>
			<MapRefuseAttitudeThreshold>ATTITUDE_CAUTIOUS</MapRefuseAttitudeThreshold>
			<DeclareWarRefuseAttitudeThreshold>ATTITUDE_CAUTIOUS</DeclareWarRefuseAttitudeThreshold>
			<DeclareWarThemRefuseAttitudeThreshold>ATTITUDE_PLEASED</DeclareWarThemRefuseAttitudeThreshold>
			<StopTradingRefuseAttitudeThreshold>ATTITUDE_CAUTIOUS</StopTradingRefuseAttitudeThreshold>
			<StopTradingThemRefuseAttitudeThreshold>ATTITUDE_ANNOYED</StopTradingThemRefuseAttitudeThreshold>
			<AdoptCivicRefuseAttitudeThreshold>ATTITUDE_CAUTIOUS</AdoptCivicRefuseAttitudeThreshold>
			<ConvertReligionRefuseAttitudeThreshold>ATTITUDE_CAUTIOUS</ConvertReligionRefuseAttitudeThreshold>
			<!-- Rhye - start -->
			<OpenBordersRefuseAttitudeThreshold>ATTITUDE_CAUTIOUS</OpenBordersRefuseAttitudeThreshold>
			<DefensivePactRefuseAttitudeThreshold>ATTITUDE_ANNOYED</DefensivePactRefuseAttitudeThreshold>
			<PermanentAllianceRefuseAttitudeThreshold>ATTITUDE_PLEASED</PermanentAllianceRefuseAttitudeThreshold>
			<VassalRefuseAttitudeThreshold>ATTITUDE_FRIENDLY</VassalRefuseAttitudeThreshold>
			<!-- Rhye - end -->
			<iVassalPowerModifier>0</iVassalPowerModifier>
			<iFreedomAppreciation>10</iFreedomAppreciation>
			<FavoriteCivic>CIVIC_DYNASTICISM</FavoriteCivic>
			<FavoriteReligion>RELIGION_ISLAM</FavoriteReligion>
			<!-- Rhye -->
			<Traits/>
			<Flavors>
				<Flavor>
					<FlavorType>FLAVOR_MILITARY</FlavorType>
					<iFlavor>5</iFlavor>
				</Flavor>
				<Flavor>
					<FlavorType>FLAVOR_CULTURE</FlavorType>
					<iFlavor>2</iFlavor>
				</Flavor>
			</Flavors>
			<ContactRands>
				<ContactRand>
					<ContactType>CONTACT_RELIGION_PRESSURE</ContactType>
					<iContactRand>500</iContactRand>
				</ContactRand>
				<ContactRand>
					<ContactType>CONTACT_CIVIC_PRESSURE</ContactType>
					<iContactRand>250</iContactRand>
				</ContactRand>
				<ContactRand>
					<ContactType>CONTACT_JOIN_WAR</ContactType>
					<iContactRand>10</iContactRand>
				</ContactRand>
				<ContactRand>
					<ContactType>CONTACT_STOP_TRADING</ContactType>
					<iContactRand>50</iContactRand>
				</ContactRand>
				<ContactRand>
					<ContactType>CONTACT_GIVE_HELP</ContactType>
					<iContactRand>100</iContactRand>
				</ContactRand>
				<ContactRand>
					<ContactType>CONTACT_ASK_FOR_HELP</ContactType>
					<iContactRand>100</iContactRand>
				</ContactRand>
				<ContactRand>
					<ContactType>CONTACT_DEMAND_TRIBUTE</ContactType>
					<iContactRand>500</iContactRand>
				</ContactRand>
				<ContactRand>
					<ContactType>CONTACT_OPEN_BORDERS</ContactType>
					<iContactRand>20</iContactRand>
				</ContactRand>
				<ContactRand>
					<ContactType>CONTACT_DEFENSIVE_PACT</ContactType>
					<iContactRand>80</iContactRand>
				</ContactRand>
				<ContactRand>
					<ContactType>CONTACT_PERMANENT_ALLIANCE</ContactType>
					<iContactRand>80</iContactRand>
				</ContactRand>
				<ContactRand>
					<ContactType>CONTACT_PEACE_TREATY</ContactType>
					<iContactRand>20</iContactRand>
				</ContactRand>
				<ContactRand>
					<ContactType>CONTACT_TRADE_TECH</ContactType>
					<iContactRand>5</iContactRand>
				</ContactRand>
				<ContactRand>
					<ContactType>CONTACT_TRADE_BONUS</ContactType>
					<iContactRand>5</iContactRand>
				</ContactRand>
				<ContactRand>
					<ContactType>CONTACT_TRADE_MAP</ContactType>
					<iContactRand>20</iContactRand>
				</ContactRand>
			</ContactRands>
			<ContactDelays>
				<ContactDelay>
					<ContactType>CONTACT_RELIGION_PRESSURE</ContactType>
					<iContactDelay>50</iContactDelay>
				</ContactDelay>
				<ContactDelay>
					<ContactType>CONTACT_CIVIC_PRESSURE</ContactType>
					<iContactDelay>50</iContactDelay>
				</ContactDelay>
				<ContactDelay>
					<ContactType>CONTACT_JOIN_WAR</ContactType>
					<iContactDelay>20</iContactDelay>
				</ContactDelay>
				<ContactDelay>
					<ContactType>CONTACT_STOP_TRADING</ContactType>
					<iContactDelay>20</iContactDelay>
				</ContactDelay>
				<ContactDelay>
					<ContactType>CONTACT_GIVE_HELP</ContactType>
					<iContactDelay>50</iContactDelay>
				</ContactDelay>
				<ContactDelay>
					<ContactType>CONTACT_ASK_FOR_HELP</ContactType>
					<iContactDelay>50</iContactDelay>
				</ContactDelay>
				<ContactDelay>
					<ContactType>CONTACT_DEMAND_TRIBUTE</ContactType>
					<iContactDelay>50</iContactDelay>
				</ContactDelay>
				<ContactDelay>
					<ContactType>CONTACT_OPEN_BORDERS</ContactType>
					<iContactDelay>20</iContactDelay>
				</ContactDelay>
				<ContactDelay>
					<ContactType>CONTACT_DEFENSIVE_PACT</ContactType>
					<iContactDelay>20</iContactDelay>
				</ContactDelay>
				<ContactDelay>
					<ContactType>CONTACT_PERMANENT_ALLIANCE</ContactType>
					<iContactDelay>20</iContactDelay>
				</ContactDelay>
				<ContactDelay>
					<ContactType>CONTACT_PEACE_TREATY</ContactType>
					<iContactDelay>10</iContactDelay>
				</ContactDelay>
				<ContactDelay>
					<ContactType>CONTACT_TRADE_TECH</ContactType>
					<iContactDelay>30</iContactDelay>
				</ContactDelay>
				<ContactDelay>
					<ContactType>CONTACT_TRADE_BONUS</ContactType>
					<iContactDelay>20</iContactDelay>
				</ContactDelay>
				<ContactDelay>
					<ContactType>CONTACT_TRADE_MAP</ContactType>
					<iContactDelay>50</iContactDelay>
				</ContactDelay>
			</ContactDelays>
			<MemoryDecays>
				<MemoryDecay>
					<MemoryType>MEMORY_GIVE_HELP</MemoryType>
					<iMemoryRand>200</iMemoryRand>
				</MemoryDecay>
				<MemoryDecay>
					<MemoryType>MEMORY_REFUSED_HELP</MemoryType>
					<iMemoryRand>100</iMemoryRand>
				</MemoryDecay>
				<MemoryDecay>
					<MemoryType>MEMORY_ACCEPT_DEMAND</MemoryType>
					<iMemoryRand>50</iMemoryRand>
				</MemoryDecay>
				<MemoryDecay>
					<MemoryType>MEMORY_REJECTED_DEMAND</MemoryType>
					<iMemoryRand>150</iMemoryRand>
				</MemoryDecay>
				<MemoryDecay>
					<MemoryType>MEMORY_ACCEPTED_RELIGION</MemoryType>
					<iMemoryRand>100</iMemoryRand>
				</MemoryDecay>
				<MemoryDecay>
					<MemoryType>MEMORY_DENIED_RELIGION</MemoryType>
					<iMemoryRand>50</iMemoryRand>
				</MemoryDecay>
				<MemoryDecay>
					<MemoryType>MEMORY_ACCEPTED_CIVIC</MemoryType>
					<iMemoryRand>100</iMemoryRand>
				</MemoryDecay>
				<MemoryDecay>
					<MemoryType>MEMORY_DENIED_CIVIC</MemoryType>
					<iMemoryRand>50</iMemoryRand>
				</MemoryDecay>
				<MemoryDecay>
					<MemoryType>MEMORY_ACCEPTED_JOIN_WAR</MemoryType>
					<iMemoryRand>150</iMemoryRand>
				</MemoryDecay>
				<MemoryDecay>
					<MemoryType>MEMORY_DENIED_JOIN_WAR</MemoryType>
					<iMemoryRand>100</iMemoryRand>
				</MemoryDecay>
				<MemoryDecay>
					<MemoryType>MEMORY_ACCEPTED_STOP_TRADING</MemoryType>
					<iMemoryRand>100</iMemoryRand>
				</MemoryDecay>
				<MemoryDecay>
					<MemoryType>MEMORY_DENIED_STOP_TRADING</MemoryType>
					<iMemoryRand>50</iMemoryRand>
				</MemoryDecay>
				<MemoryDecay>
					<MemoryType>MEMORY_STOPPED_TRADING_RECENT</MemoryType>
					<iMemoryRand>30</iMemoryRand>
				</MemoryDecay>
				<MemoryDecay>
					<MemoryType>MEMORY_MADE_DEMAND_RECENT</MemoryType>
					<iMemoryRand>20</iMemoryRand>
				</MemoryDecay>
				<MemoryDecay>
					<MemoryType>MEMORY_CANCELLED_OPEN_BORDERS</MemoryType>
					<iMemoryRand>10</iMemoryRand>
				</MemoryDecay>
				<MemoryDecay>
					<MemoryType>MEMORY_TRADED_TECH_TO_US</MemoryType>
					<iMemoryRand>100</iMemoryRand>
				</MemoryDecay>
				<MemoryDecay>
					<MemoryType>MEMORY_RECEIVED_TECH_FROM_ANY</MemoryType>
					<iMemoryRand>20</iMemoryRand>
				</MemoryDecay>
				<MemoryDecay>
					<MemoryType>MEMORY_VOTED_AGAINST_US</MemoryType>
					<iMemoryRand>10</iMemoryRand>
				</MemoryDecay>
				<MemoryDecay>
					<MemoryType>MEMORY_VOTED_FOR_US</MemoryType>
					<iMemoryRand>10</iMemoryRand>
				</MemoryDecay>
				<MemoryDecay>
					<MemoryType>MEMORY_EVENT_GOOD_TO_US</MemoryType>
					<iMemoryRand>50</iMemoryRand>
				</MemoryDecay>
				<MemoryDecay>
					<MemoryType>MEMORY_EVENT_BAD_TO_US</MemoryType>
					<iMemoryRand>50</iMemoryRand>
				</MemoryDecay>
			</MemoryDecays>
			<MemoryAttitudePercents>
				<MemoryAttitudePercent>
					<MemoryType>MEMORY_DECLARED_WAR</MemoryType>
					<iMemoryAttitudePercent>-300</iMemoryAttitudePercent>
				</MemoryAttitudePercent>
				<MemoryAttitudePercent>
					<MemoryType>MEMORY_DECLARED_WAR_ON_FRIEND</MemoryType>
					<iMemoryAttitudePercent>-100</iMemoryAttitudePercent>
				</MemoryAttitudePercent>
				<MemoryAttitudePercent>
					<MemoryType>MEMORY_HIRED_WAR_ALLY</MemoryType>
					<iMemoryAttitudePercent>-200</iMemoryAttitudePercent>
				</MemoryAttitudePercent>
				<MemoryAttitudePercent>
					<MemoryType>MEMORY_NUKED_US</MemoryType>
					<iMemoryAttitudePercent>-200</iMemoryAttitudePercent>
				</MemoryAttitudePercent>
				<MemoryAttitudePercent>
					<MemoryType>MEMORY_NUKED_FRIEND</MemoryType>
					<iMemoryAttitudePercent>-100</iMemoryAttitudePercent>
				</MemoryAttitudePercent>
				<MemoryAttitudePercent>
					<MemoryType>MEMORY_RAZED_CITY</MemoryType>
					<iMemoryAttitudePercent>-250</iMemoryAttitudePercent>
				</MemoryAttitudePercent>
				<MemoryAttitudePercent>
					<MemoryType>MEMORY_RAZED_HOLY_CITY</MemoryType>
					<iMemoryAttitudePercent>-200</iMemoryAttitudePercent>
				</MemoryAttitudePercent>
				<MemoryAttitudePercent>
					<MemoryType>MEMORY_SPY_CAUGHT</MemoryType>
					<iMemoryAttitudePercent>-100</iMemoryAttitudePercent>
				</MemoryAttitudePercent>
				<MemoryAttitudePercent>
					<MemoryType>MEMORY_GIVE_HELP</MemoryType>
					<iMemoryAttitudePercent>100</iMemoryAttitudePercent>
				</MemoryAttitudePercent>
				<MemoryAttitudePercent>
					<MemoryType>MEMORY_REFUSED_HELP</MemoryType>
					<iMemoryAttitudePercent>-200</iMemoryAttitudePercent>
				</MemoryAttitudePercent>
				<MemoryAttitudePercent>
					<MemoryType>MEMORY_ACCEPT_DEMAND</MemoryType>
					<iMemoryAttitudePercent>100</iMemoryAttitudePercent>
				</MemoryAttitudePercent>
				<MemoryAttitudePercent>
					<MemoryType>MEMORY_REJECTED_DEMAND</MemoryType>
					<iMemoryAttitudePercent>-200</iMemoryAttitudePercent>
				</MemoryAttitudePercent>
				<MemoryAttitudePercent>
					<MemoryType>MEMORY_ACCEPTED_RELIGION</MemoryType>
					<iMemoryAttitudePercent>100</iMemoryAttitudePercent>
				</MemoryAttitudePercent>
				<MemoryAttitudePercent>
					<MemoryType>MEMORY_DENIED_RELIGION</MemoryType>
					<iMemoryAttitudePercent>-200</iMemoryAttitudePercent>
				</MemoryAttitudePercent>
				<MemoryAttitudePercent>
					<MemoryType>MEMORY_ACCEPTED_CIVIC</MemoryType>
					<iMemoryAttitudePercent>100</iMemoryAttitudePercent>
				</MemoryAttitudePercent>
				<MemoryAttitudePercent>
					<MemoryType>MEMORY_DENIED_CIVIC</MemoryType>
					<iMemoryAttitudePercent>-200</iMemoryAttitudePercent>
				</MemoryAttitudePercent>
				<MemoryAttitudePercent>
					<MemoryType>MEMORY_DENIED_JOIN_WAR</MemoryType>
					<iMemoryAttitudePercent>-200</iMemoryAttitudePercent>
				</MemoryAttitudePercent>
				<MemoryAttitudePercent>
					<MemoryType>MEMORY_ACCEPTED_STOP_TRADING</MemoryType>
					<iMemoryAttitudePercent>50</iMemoryAttitudePercent>
				</MemoryAttitudePercent>
				<MemoryAttitudePercent>
					<MemoryType>MEMORY_DENIED_STOP_TRADING</MemoryType>
					<iMemoryAttitudePercent>-200</iMemoryAttitudePercent>
				</MemoryAttitudePercent>
				<MemoryAttitudePercent>
					<MemoryType>MEMORY_STOPPED_TRADING</MemoryType>
					<iMemoryAttitudePercent>-100</iMemoryAttitudePercent>
				</MemoryAttitudePercent>
				<MemoryAttitudePercent>
					<MemoryType>MEMORY_HIRED_TRADE_EMBARGO</MemoryType>
					<iMemoryAttitudePercent>-100</iMemoryAttitudePercent>
				</MemoryAttitudePercent>
				<MemoryAttitudePercent>
					<MemoryType>MEMORY_MADE_DEMAND</MemoryType>
					<iMemoryAttitudePercent>-200</iMemoryAttitudePercent>
				</MemoryAttitudePercent>
				<MemoryAttitudePercent>
					<MemoryType>MEMORY_TRADED_TECH_TO_US</MemoryType>
					<iMemoryAttitudePercent>15</iMemoryAttitudePercent>
				</MemoryAttitudePercent>
				<MemoryAttitudePercent>
					<MemoryType>MEMORY_VOTED_AGAINST_US</MemoryType>
					<iMemoryAttitudePercent>-200</iMemoryAttitudePercent>
				</MemoryAttitudePercent>
				<MemoryAttitudePercent>
					<MemoryType>MEMORY_VOTED_FOR_US</MemoryType>
					<iMemoryAttitudePercent>200</iMemoryAttitudePercent>
				</MemoryAttitudePercent>
				<MemoryAttitudePercent>
					<MemoryType>MEMORY_EVENT_GOOD_TO_US</MemoryType>
					<iMemoryAttitudePercent>100</iMemoryAttitudePercent>
				</MemoryAttitudePercent>
				<MemoryAttitudePercent>
					<MemoryType>MEMORY_EVENT_BAD_TO_US</MemoryType>
					<iMemoryAttitudePercent>-100</iMemoryAttitudePercent>
				</MemoryAttitudePercent>
				<MemoryAttitudePercent>
					<MemoryType>MEMORY_LIBERATED_CITIES</MemoryType>
					<iMemoryAttitudePercent>150</iMemoryAttitudePercent>
				</MemoryAttitudePercent>
			</MemoryAttitudePercents>
			<NoWarAttitudeProbs>
				<NoWarAttitudeProb>
					<AttitudeType>ATTITUDE_ANNOYED</AttitudeType>
					<iNoWarProb>10</iNoWarProb>
				</NoWarAttitudeProb>
				<NoWarAttitudeProb>
					<AttitudeType>ATTITUDE_CAUTIOUS</AttitudeType>
					<iNoWarProb>50</iNoWarProb>
				</NoWarAttitudeProb>
				<NoWarAttitudeProb>
					<AttitudeType>ATTITUDE_PLEASED</AttitudeType>
					<iNoWarProb>90</iNoWarProb>
				</NoWarAttitudeProb>
				<NoWarAttitudeProb>
					<AttitudeType>ATTITUDE_FRIENDLY</AttitudeType>
					<iNoWarProb>100</iNoWarProb>
				</NoWarAttitudeProb>
			</NoWarAttitudeProbs>
			<UnitAIWeightModifiers>
				<UnitAIWeightModifier>
					<UnitAIType>UNITAI_ATTACK_CITY</UnitAIType>
					<iWeightModifier>100</iWeightModifier>
				</UnitAIWeightModifier>
			</UnitAIWeightModifiers>
			<ImprovementWeightModifiers/>
			<DiplomacyIntroMusicPeace/>
			<DiplomacyMusicPeace>
				<DiploMusicPeaceEra>
					<EraType>ERA_ANCIENT</EraType>
					<DiploScriptId>AS2D_DIPLO_AKBAR</DiploScriptId>
				</DiploMusicPeaceEra>
				<DiploMusicPeaceEra>
					<EraType>ERA_CLASSICAL</EraType>
					<DiploScriptId>AS2D_DIPLO_AKBAR</DiploScriptId>
				</DiploMusicPeaceEra>
				<DiploMusicPeaceEra>
					<EraType>ERA_MEDIEVAL</EraType>
					<DiploScriptId>AS2D_DIPLO_AKBAR</DiploScriptId>
				</DiploMusicPeaceEra>
				<DiploMusicPeaceEra>
					<EraType>ERA_RENAISSANCE</EraType>
					<DiploScriptId>AS2D_DIPLO_AKBAR</DiploScriptId>
				</DiploMusicPeaceEra>
				<DiploMusicPeaceEra>
					<EraType>ERA_INDUSTRIAL</EraType>
					<DiploScriptId>AS2D_DIPLO_AKBAR</DiploScriptId>
				</DiploMusicPeaceEra>
				<DiploMusicPeaceEra>
					<EraType>ERA_MODERN</EraType>
					<DiploScriptId>AS2D_DIPLO_AKBAR</DiploScriptId>
				</DiploMusicPeaceEra>
				<DiploMusicPeaceEra>
					<EraType>ERA_FUTURE</EraType>
					<DiploScriptId>AS2D_DIPLO_AKBAR</DiploScriptId>
				</DiploMusicPeaceEra>
			</DiplomacyMusicPeace>
			<DiplomacyIntroMusicWar>
				<DiploMusicWarEra>
					<EraType>ERA_ANCIENT</EraType>
				</DiploMusicWarEra>
				<DiploMusicWarEra>
					<EraType>ERA_CLASSICAL</EraType>
				</DiploMusicWarEra>
				<DiploMusicWarEra>
					<EraType>ERA_MEDIEVAL</EraType>
				</DiploMusicWarEra>
				<DiploMusicWarEra>
					<EraType>ERA_RENAISSANCE</EraType>
				</DiploMusicWarEra>
				<DiploMusicWarEra>
					<EraType>ERA_INDUSTRIAL</EraType>
				</DiploMusicWarEra>
				<DiploMusicWarEra>
					<EraType>ERA_MODERN</EraType>
				</DiploMusicWarEra>
				<DiploMusicWarEra>
					<EraType>ERA_FUTURE</EraType>
				</DiploMusicWarEra>
			</DiplomacyIntroMusicWar>
			<DiplomacyMusicWar>
				<DiploMusicWarEra>
					<EraType>ERA_ANCIENT</EraType>
					<DiploScriptId>AS2D_DIPLO_WARDRUMS_EARLY</DiploScriptId>
				</DiploMusicWarEra>
				<DiploMusicWarEra>
					<EraType>ERA_CLASSICAL</EraType>
					<DiploScriptId>AS2D_DIPLO_WARDRUMS_EARLY</DiploScriptId>
				</DiploMusicWarEra>
				<DiploMusicWarEra>
					<EraType>ERA_MEDIEVAL</EraType>
					<DiploScriptId>AS2D_DIPLO_WARDRUMS_MIDDLE</DiploScriptId>
				</DiploMusicWarEra>
				<DiploMusicWarEra>
					<EraType>ERA_RENAISSANCE</EraType>
					<DiploScriptId>AS2D_DIPLO_WARDRUMS_MIDDLE</DiploScriptId>
				</DiploMusicWarEra>
				<DiploMusicWarEra>
					<EraType>ERA_INDUSTRIAL</EraType>
					<DiploScriptId>AS2D_DIPLO_WARDRUMS_LATE</DiploScriptId>
				</DiploMusicWarEra>
				<DiploMusicWarEra>
					<EraType>ERA_MODERN</EraType>
					<DiploScriptId>AS2D_DIPLO_WARDRUMS_LATE</DiploScriptId>
				</DiploMusicWarEra>
				<DiploMusicWarEra>
					<EraType>ERA_FUTURE</EraType>
					<DiploScriptId>AS2D_DIPLO_WARDRUMS_LATE</DiploScriptId>
				</DiploMusicWarEra>
			</DiplomacyMusicWar>
		</LeaderHeadInfo>

I've done it the same way for other leaders and it's the same problem every time! I've tried playing around with the values in the AudioDefines file but to no avail. I just can't figure out how this other song is played and where it even comes from.

I hope someone can help me out here :)
 
The problem is that you have closed the DiplomacyIntroMusicPeace tag. I don't know why, but that tag must remain open, and set up identically to the way you have the DiplomacyWarMusicPeace tag set up.

e.g.

Code:
<DiplomacyIntroMusicPeace>
				<DiploMusicPeaceEra>
					<EraType>ERA_ANCIENT</EraType>
				</DiploMusicPeacerEra>
				<DiploMusicPeaceEra>
					<EraType>ERA_CLASSICAL</EraType>
				</DiploMusicPeaceEra>
				<DiploMusicPeaceEra>
					<EraType>ERA_MEDIEVAL</EraType>
				</DiploMusicPeaceEra>
				<DiploMusicPeaceEra>
					<EraType>ERA_RENAISSANCE</EraType>
				</DiploMusicPeaceEra>
				<DiploMusicPeaceEra>
					<EraType>ERA_INDUSTRIAL</EraType>
				</DiploMusicPeaceEra>
				<DiploMusicPeaceEra>
					<EraType>ERA_MODERN</EraType>
				</DiploMusicPeaceEra>
				<DiploMusicPeaceEra>
					<EraType>ERA_FUTURE</EraType>
				</DiploMusicPeaceEra>
			</DiplomacyIntroMusicPeace>

This should fix your issue.
 
The problem is that you have closed the DiplomacyIntroMusicPeace tag. I don't know why, but that tag must remain open, and set up identically to the way you have the DiplomacyWarMusicPeace tag set up.
:yup: agreed,


also my diplo music is STREAMED not DYNAMIC_RES in audio defines,don't know what effect if any that has on it,
I guess its more about how it is played rather than what.
Code:
		<SoundData>
			<SoundID>DIPLO_PELT_EARLY</SoundID>
			<Filename>Sounds/Diplomacy/Pelt_Early</Filename>
			<LoadType>[COLOR="Red"]STREAMED[/COLOR]</LoadType>
			<bIsCompressed>1</bIsCompressed>
			<bInGeneric>1</bInGeneric>
		</SoundData>
 
Thanks to both of you ... it seems I have outsmarted myself again :D

The DYNAMIC_RES probably only comes from my attempts to figure out if that might fix the problem.

But you don't know why I get this new music instead of just ... silence, or an error message?
 
But you don't know why I get this new music instead of just ... silence, or an error message?
Well looking at the posted code there is no reason that I can see......have you checked it's pointing to right file, is Sounds/Diplomacy/Akbar the sound your expecting to hear?
 
No, it's working fine now ... I meant the soundtrack that was played while the LH XML was still broken.
 
Back
Top Bottom