Page 1 of 1

songs?

Posted: Thu Mar 22, 2007 10:32 am
by willie g
Is it possible to add/replace the music (songs) that play as you hover over certain cities...or is that coding off limits?
thanks,
-willie g

Re: songs?

Posted: Thu Mar 22, 2007 3:41 pm
by atani
willie g wrote:Is it possible to add/replace the music (songs) that play as you hover over certain cities...or is that coding off limits?
thanks,
-willie g
This is fully doable. It requires placing the songs in MP3 format in the CustomAssets folder, modifying 2 GLOBAL XML files and then adding a reference from the scenario XML files.

Currently the installer macros do not support the audio XML files. I will add the support for this in an upcoming version.

Mike

Posted: Thu Mar 22, 2007 3:45 pm
by stormfather
It's possible. Open up the cities.xml file of one of the core scenarios to see how. For example, in US_EAST, you'd find the following under Washington in the cities.xml

Code: Select all

	<City>
		<szName>TAG_US_NORTHEAST_NAME_WASHINGTON</szName>
		<Type>Metropolis</Type>
		<StartX>-19</StartX>
		<StartY>323</StartY>
		<bIsStartLocation>false</bIsStartLocation>
		<szLandmark>LM_wash_monument.nif</szLandmark>
		<szDefaultTrackSide>SOUTH</szDefaultTrackSide>
		<CitySongs>
			<CitySong>
				<szSongID>AS3D_ERA_EARLY_CM_HAIL_TO_THE_CHIEF_EARLY</szSongID>
				<SongEras>
					<szSongEra>ERA_EARLY</szSongEra>
				</SongEras>
			</CitySong>
			<CitySong>
				<szSongID>AS3D_ERA_MID_CM_HAIL_TO_THE_CHIEF_MID</szSongID>
				<SongEras>
					<szSongEra>ERA_MID</szSongEra>
				</SongEras>
			</CitySong>
			<CitySong>
				<szSongID>AS3D_ERA_MID_CM_HAIL_TO_THE_CHIEF_LATE</szSongID>
				<SongEras>
					<szSongEra>ERA_LATE</szSongEra>
				</SongEras>
			</CitySong>
		</CitySongs>
		<Rotation>-134.999344</Rotation>
	</City>
When the scenario editor makes a cities.xml file, it won't include the parameters for the city songs. Just copy and paste them from the firaxis xmls to your scenario. If you want to see all the songs available and listen to them ahead of time, go to the following directory:

C:\Program Files\2K Games\Firaxis Games\Sid Meier's Railroads!\Assets\Sounds\CityMusic

Hope that helps

Posted: Fri Mar 23, 2007 10:46 am
by willie g
thanks; I tried this out and it worked - was able to bring an mp3 file into the game and have it play successfully.
Then it occured to me - if you make a scenario with new songs then obviously if you wanted to share your scenario you would have to upload the mp3 files along with the normal game files - is this worth it? mp3 files take up a (relatively) large amount of space, not to mention that music is a very personal thing plus there's always concern over copyright issues...
-willie g