Add personal Speeches

ArbogLi

Chieftain
Joined
Apr 25, 2010
Messages
64
Hi! I'm traying to add a speech to one wonder I made for a mod, I created a MP3 file called SLHC.mp3, and created the next files:

SpeechAudio2DScripts.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<!-- Created by ModBuddy on 1/29/2013 4:24:25 PM -->
<Script2DFile>
	<Script2DSounds>
		<Script2DSound>
			<ScriptID>AS2D_WONDER_SPEECH_SLHC</ScriptID>
			<SoundID>SND_WONDER_SPEECH_SLHC</SoundID>
			<SoundType>GAME_MUSIC_STINGS</SoundType>
			<iMaxVolume>85</iMaxVolume>
			<iMinVolume>85</iMinVolume>
			<fTaperSoundtrackVolume>0.0</fTaperSoundtrackVolume>
		</Script2DSound>
	</Script2DSounds>
</Script2DFile>

SpeechAudioDefines.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<!-- Created by ModBuddy on 1/29/2013 4:25:41 PM -->
<AudioDefinesFile>
	<SoundDatas>
		<SoundData>
			<SoundID>SND_WONDER_SPEECH_SLHC</SoundID>
			<Filename>SLHC</Filename>
			<bDontCache />
			<bOnlyLoadOneVariationEachTime />
			<LoadType>DYNAMIC_RES</LoadType>
		</SoundData>
	</SoundDatas>
</AudioDefinesFile>

And in my buildings.xml I have:
Code:
		<Row>
			<Type>BUILDING_SLHC</Type>
			<BuildingClass>BUILDINGCLASS_SLHC</BuildingClass>
			<Cost>650</Cost>
			<PrereqTech>TECH_PARTICLE_PHYSICS</PrereqTech>
			<Help>TXT_KEY_BUILDING_SLHC_HELP</Help>
			<Description>TXT_KEY_BUILDING_SLHC</Description>
			<Civilopedia>TXT_KEY_BUILDING_SLHC_PEDIA</Civilopedia>
			<Quote>TXT_KEY_WONDER_SLHC_QUOTE</Quote>
			<ArtDefineTag>ART_DEF_BUILDING_HERMITAGE</ArtDefineTag>
			<SpecialistType>SPECIALIST_SCIENTIST</SpecialistType>
			<GreatPeopleRateChange>2</GreatPeopleRateChange>
			<NukeImmune>true</NukeImmune>
			<HurryCostModifier>-1</HurryCostModifier>
			<MinAreaSize>-1</MinAreaSize>
			<ConquestProb>100</ConquestProb>
			<FreeBuildingThisCity>BUILDINGCLASS_LABORATORY</FreeBuildingThisCity>
			<IconAtlas>CIV_COLOR_ATLAS_BTF</IconAtlas>
			<PortraitIndex>14</PortraitIndex>
			<WonderSplashImage>WonderConceptSLHC.dds</WonderSplashImage>
			[B]<WonderSplashAudio>AS2D_WONDER_SPEECH_SLHC</WonderSplashAudio>[/B]
		</Row>

The WonderSplashImage works fine, but I'm not able to listen the sound... what can be?

PS: the mp3 file have "Import into VFS" in true.

Moderator Action: Moved to appropriate forum as this is not a tutorial.
 
Why?

Is it a game engine limit? Copyright? Windows 7 UAC?

I'm curious about the underlying structure of the core engine and files.
 
Top Bottom