The Stargate and the possibility to change their sound.

Freeform discussion about anything related to modding Transcendence.
Post Reply
nitrito
Anarchist
Anarchist
Posts: 8
Joined: Sat Aug 30, 2008 12:39 pm
Location: Italia

I do not know if I am saying nonsense, or if the topic has already been discussed, but I wonder if you could change the sound when you walk into a stargate, (perhaps using an MP3 file).
Thanks!
User avatar
digdug
Fleet Admiral
Fleet Admiral
Posts: 2620
Joined: Mon Oct 29, 2007 9:23 pm
Location: Decoding hieroglyphics on Tan-Ru-Dorem

Hi nitrito,
if you mean a stargate jump using the button G, no it's not possible. (can somebody confirm this ?)

if you mean a jump using the function objGateTo, then you can specify a different effect, that can use new graphics animation and sound (WAV only, for now, MP3 in an unspecified future version)
User avatar
Prophet
Militia Captain
Militia Captain
Posts: 826
Joined: Tue Nov 18, 2008 6:09 pm

If you override the basic stargate station object from Transcendence.xml you can substitute the sound with another or create a custom one, as long as the sound is a .wav file.

I tested this with a small explosion effect and it worked fine.

Code: Select all

<StationType UNID="&stStargate;"
		name=				"(stargate)"
		sovereign=			"&svIndependent;"
		dockScreen=			"Main"
		dockingPorts=		"4"

		multiHull=			"true"
		immutable=			"true"

		gateEffect=			"&efMYCUSTOMEFFECT;"    ;; change this effect unid

		definiteArticle=	"true"
		>
	<Image imageID="&rsStargate;" imageX="0" imageY="0" imageWidth="128" imageHeight="128" imageFrameCount="12" imageTicksPerFrame="3"/>

	<DockScreens>

		<Main
			name=			"=(objGetName gSource)"
			>

			<Panes>
				<Default
						desc=	"You are docked at an alien stargate. These giant structures are used by the Ancient Races to move their starships across the Galaxy. Stargates are the best mode of faster-than-light travel and they are the only method known to humans.">

					<Actions>
						<Action name="Undock" cancel="1" key="U">
							<Exit/>
						</Action>

					</Actions>

				</Default>
			</Panes>
		</Main>

	</DockScreens>

</StationType>

;; This is the new effect
<Effect UNID="&efMYCUSTOMEFFECT;"
		sound="&snNewStargateSound;"  ;; New Custom sound
		>
	<Image imageID="&rsNewStargateAnimation;"  ;; New Custom Animation
			imageX="0" 
			imageY="128" 
			imageWidth="128" 
			imageHeight="128"
			imageFrameCount="16"
			imageTicksPerFrame="2"/>
</Effect>
<Sound UNID="&snNewStargateSound;" filename="NewStargate.wav"/>
<Image UNID="&rsNewStargateAnimation;" bitmap="NewStargateAnimation.jpg" bitmask="NewStargateAnimation.bmp" loadOnUse="true"/>
Coming soon: The Syrtian War adventure mod!
A Turret defense genre mod exploring the worst era in Earth's history.
Can you defend the Earth from the Syrtian invaders?
Stay tuned for updates!
nitrito
Anarchist
Anarchist
Posts: 8
Joined: Sat Aug 30, 2008 12:39 pm
Location: Italia

Thanks!
I'll try it.
User avatar
digdug
Fleet Admiral
Fleet Admiral
Posts: 2620
Joined: Mon Oct 29, 2007 9:23 pm
Location: Decoding hieroglyphics on Tan-Ru-Dorem

cool, I never thought of the gateEffect on the stargate station could actually influence the gating with G. :P
THanks Prophet
Post Reply