Fragmenting teh Fragmentzor

Freeform discussion about anything related to modding Transcendence.
Post Reply
User avatar
Charon Mass of Goo
Militia Lieutenant
Militia Lieutenant
Posts: 245
Joined: Wed Jan 02, 2008 12:26 am
Location: Creating Inappropriate "Signature Dialouge" since yestermorrow!
Contact:

Fragmenting Fragments.

Heres the code, now where do I put the secondary Fragment in? I want the fragments to fragment you know? of course I'll lower the life-time... i'll tell you what I'm thinking later.

Code: Select all

<!-- Explosive Recoilless Cannon -->

	<ItemType UNID="&itExpRecoillessCannon;"
			name=				"Explosive recoilless cannon"
			level=				"5"
			value=				"5000"
			mass=				"3500"
			frequency=			"uncommon"
			modifiers=			"MajorItem"
			showReference=		"true"

			description=		"Each shard of this custom recoilless cannon has a small hexagene charge in it. It's less powerful than a real blast weapon, but cheaper."
			>

		<Image imageID="&rsItems1;" imageX="96" imageY="0" imageWidth="96" imageHeight="96"/>

		<Weapon
				type=				"missile"

				damage=				"kinetic:1d6+1; momentum1"
				fireRate=			"15"
				missileSpeed=		"40"
				lifetime=			"60"
				powerUse=			"150"
				fireEffect=			"&efMediumCannonFlash;"
				recoil=			"2"

				sound=				"&snRecoillessCannon;"
				>
<Fragment
							count=			"6d12"
							type=			"missile"
							lifetime=		"8"
							damage=			"blast:1d6+2; WMD3"
							missileSpeed=	"10-60"
							>
						<Image imageID="&rsMissiles;" imageX="3" imageY="0" imageWidth="16" imageHeight="16" imageFrameCount="0" imageTicksPerFrame="0"/>
					</Fragment>

			<Effect>
				<Image imageID="&rsMissiles;" imageX="0" imageY="0" imageWidth="16" imageHeight="16" imageFrameCount="0" imageTicksPerFrame="0"/>
			</Effect>


							
		</Weapon>

	</ItemType>

btw, this is part of DigDug's weapon mod pack (First one)
Charon Fizz-Soda! It's Red! It tastes like Awesomness! AND PIRATES MADE IT! Better than Eridani Mineral Water too!
Image
Bobby
Militia Captain
Militia Captain
Posts: 675
Joined: Wed Jul 25, 2007 7:39 pm

take your new <fragment> and put it after the </effects> in the existing fragment, here's an example made with the Kytern

Code: Select all

	<!-- Kytryn Launcher -->

	<ItemType UNID="&itkitten;"
			name=				"Kytryn launcher"
			level=				"10"
			value=				"350000"
			mass=				"5000"
			frequency=			"uncommon"
			modifiers=			"Alien; MajorItem; Military"
			unknownType=		"&itUnknownAlienDevice10;"

			description=		"This alien weapon launches a Kytryn plasma pod warhead, which blossoms into a shell of plasma energy."
			>

		<Image imageID="&rsItems1;" imageX="0" imageY="480" imageWidth="96" imageHeight="96"/>

		<Weapon
				fireRate=			"40"
				powerUse=			"200"
				launcher=			"true"
				>

			<Missiles>
				<Missile 
						type=			"missile"
						lifetime=		"480"
						damage=			"plasma:3d12; WMD5"
						missileSpeed=	"30"

						failsafe=		"6"

						hitEffect=		"&efFragmentationExplosion;"
						sound=			"&snMissileLauncher;"
						>

					<Effect>
						<Image imageID="&rsMissiles;" imageX="0" imageY="32" imageWidth="16" imageHeight="16" imageFrameCount="12" imageTicksPerFrame="3"/>
					</Effect>

					<Fragment 
							count=			"36"
							type=			"missile"

							damage=			"plasma:3d12; WMD5"
							missileSpeed=	"20"
							lifetime=		"30"
							>

						<Effect>
							<Image imageID="&rsMediumExplosions;" imageX="0" imageY="64" imageWidth="64" imageHeight="64" imageFrameCount="16" imageTicksPerFrame="5" blend="brighten" />
						</Effect>
					<Fragment 
							count=			"36"
							type=			"missile"

							damage=			"plasma:3d12; WMD5"
							missileSpeed=	"20"
							lifetime=		"30"
							>

						<Effect>
							<Image imageID="&rsMediumExplosions;" imageX="0" imageY="64" imageWidth="64" imageHeight="64" imageFrameCount="16" imageTicksPerFrame="5" blend="brighten" />
						</Effect>
					</Fragment>
					</Fragment>

				</Missile>
			</Missiles>

		</Weapon>

	</ItemType>
User avatar
Charon Mass of Goo
Militia Lieutenant
Militia Lieutenant
Posts: 245
Joined: Wed Jan 02, 2008 12:26 am
Location: Creating Inappropriate "Signature Dialouge" since yestermorrow!
Contact:

How would i get it all to explode at the end of each projectiles lifetime?
Charon Fizz-Soda! It's Red! It tastes like Awesomness! AND PIRATES MADE IT! Better than Eridani Mineral Water too!
Image
Bobby
Militia Captain
Militia Captain
Posts: 675
Joined: Wed Jul 25, 2007 7:39 pm

Charon Mass of Goo wrote:How would i get it all to explode at the end of each projectiles lifetime?
the missile will explode when it's lifetime is over, the fragments will do the same, and then those fragments.

in short they do already, unless there's an error, or i don't understand the question
User avatar
Charon Mass of Goo
Militia Lieutenant
Militia Lieutenant
Posts: 245
Joined: Wed Jan 02, 2008 12:26 am
Location: Creating Inappropriate "Signature Dialouge" since yestermorrow!
Contact:

Bobby wrote:
Charon Mass of Goo wrote:How would i get it all to explode at the end of each projectiles lifetime?
the missile will explode when it's lifetime is over, the fragments will do the same, and then those fragments.

in short they do already, unless there's an error, or i don't understand the question
i meant explode as in a shockwave. it would explode into a shockwave if it doesn't hit anything.
Charon Fizz-Soda! It's Red! It tastes like Awesomness! AND PIRATES MADE IT! Better than Eridani Mineral Water too!
Image
OddBob
Militia Captain
Militia Captain
Posts: 505
Joined: Sun Mar 05, 2006 6:05 pm

You may not have a different effect for an end of lifetime explosion than a regular explosion.

EDIT: You can in a way - set a failsafe on the weapon just barely shorter than the lifetime and it will then only detonate at the end of it's lifetime.
User avatar
Charon Mass of Goo
Militia Lieutenant
Militia Lieutenant
Posts: 245
Joined: Wed Jan 02, 2008 12:26 am
Location: Creating Inappropriate "Signature Dialouge" since yestermorrow!
Contact:

Lets just pretend here for a second that I didn't know how to do that, and i would ask you how i could do that. What would your response be? (Yes, i'm a total idiot.)
Charon Fizz-Soda! It's Red! It tastes like Awesomness! AND PIRATES MADE IT! Better than Eridani Mineral Water too!
Image
User avatar
Charon Mass of Goo
Militia Lieutenant
Militia Lieutenant
Posts: 245
Joined: Wed Jan 02, 2008 12:26 am
Location: Creating Inappropriate "Signature Dialouge" since yestermorrow!
Contact:

Well, my weapons are finished. They are only beta, I'm balancing them out tons.

I uploaded them to Xelarus.
Last edited by Charon Mass of Goo on Wed Jan 16, 2008 5:26 pm, edited 2 times in total.
Charon Fizz-Soda! It's Red! It tastes like Awesomness! AND PIRATES MADE IT! Better than Eridani Mineral Water too!
Image
george moromisato
Developer
Developer
Posts: 2998
Joined: Thu Jul 24, 2003 9:53 pm
Contact:

One of your fragments has damage of type "energy:1d4+2; ..."

"energy" is not a valid damage type. That could be the problem.
User avatar
Charon Mass of Goo
Militia Lieutenant
Militia Lieutenant
Posts: 245
Joined: Wed Jan 02, 2008 12:26 am
Location: Creating Inappropriate "Signature Dialouge" since yestermorrow!
Contact:

Oh, and answered by the king himself! Thanks george, I'll put ion instead...

Btw george, everyone in the IRC channel wants you in there :D

Betel said you would be chased out easily...
Charon Fizz-Soda! It's Red! It tastes like Awesomness! AND PIRATES MADE IT! Better than Eridani Mineral Water too!
Image
User avatar
Charon Mass of Goo
Militia Lieutenant
Militia Lieutenant
Posts: 245
Joined: Wed Jan 02, 2008 12:26 am
Location: Creating Inappropriate "Signature Dialouge" since yestermorrow!
Contact:

the fragments won't explode into the EMP shockwave effect I won't, hell, they aren't even exploding, they just dissapear at the end of their lifetime.

I uploaded the code to Pastebin, can some one help me out?

here is the link: http://pastebin.ca/856710[/url]
Charon Fizz-Soda! It's Red! It tastes like Awesomness! AND PIRATES MADE IT! Better than Eridani Mineral Water too!
Image
OddBob
Militia Captain
Militia Captain
Posts: 505
Joined: Sun Mar 05, 2006 6:05 pm

First of all, your UNIDs need to be different, right now they both are the same number.

Second of all the fragment bit was laid out wrong, the two fragments were one after the other instead of nested.

Thirdly, shockwaves need an expansion speed.

Also the graphic for the intermediate projectile is not aligned correctly. (I didn't do anythign about that)

Code: Select all

<?xml version="1.0" ?>
<!DOCTYPE TranscendenceExtension
	[
        <!ENTITY unidExtension        "0xD6340000">
	<!ENTITY itEmpCannonThing			"0xD6340001">

]>

<TranscendenceExtension UNID="0xD6340000" version="0.98d">

	<!-- Emp Shock Cannon -->

	<ItemType UNID="&itEmpCannonThing;"
			name=				"Emp Shock Cannon"
			level=				"6"
			value=				"7000"
			mass=				"2500"
			frequency=			"rare"
			modifiers=			"MajorItem; Military"
			showReference=		"true"

			description=		"This weapon fires a fragmenting Bolt, a very large bolt, that is charged with EM energy, each shard won't go very far though, for they will all explode in a EMP shockwave, disrupting any ships nearby."
			>

			<Effect>
				<Image imageID="&rsMissiles;" imageX="0" imageY="32" imageWidth="16" imageHeight="16" imageFrameCount="12" imageTicksPerFrame="3"/>
			</Effect>

		<Weapon
				type=				"missile"

				damage=				"kinetic:1d3+1; momentum2; emp1"
				fireRate=			"15"
				missileSpeed=		"30"
				lifetime=			"15"
				powerUse=			"150"
				fireEffect=			"&efMediumCannonFlash;"
				recoil=			"2"

				sound=				"&snRecoillessCannon;"
				
				>
				<Image imageID="&rsMissiles;" imageX="0" imageY="0" imageWidth="20" imageHeight="20" imageFrameCount="0" imageTicksPerFrame="0"/>
	
			
				
					
					
				<Fragment
					count=			"4d6"
					type=			"missile"
					lifetime=		"18"
					damage=			"blast:1d6+2; WMD3"
					missileSpeed=	"10-60"
					>
						
						<Image imageID="&rsMissiles;" imageX="3" imageY="0" imageWidth="16" imageHeight="16" imageFrameCount="0" imageTicksPerFrame="0"/>
		
		
		
					<!-- Second fragemnt goes HERE, just before the end fragment tag-->
						
						<Fragment 
							count=			"1"
							type=			"area"
						
							
							damage=			"dark fire:1d4+2; EMP5"
							missileSpeed=	"0"
							expansionSpeed=	"35"
							lifetime=		"9"
							
			
							>
							<Effect>
								<Shockwave>
									<Image imageID=				"&rsShockwave1;"
											imageX=				"0" 
											imageY=				"0" 
											imageWidth=			"512" 
											imageHeight=		"128"
											imageFrameCount=	"1"
											imageTicksPerFrame=	"1"/>
								</Shockwave>
							</Effect>
						</Fragment>			
		
		
					</Fragment>				
					


							
		</Weapon>

	</ItemType>


</TranscendenceExtension>
User avatar
Charon Mass of Goo
Militia Lieutenant
Militia Lieutenant
Posts: 245
Joined: Wed Jan 02, 2008 12:26 am
Location: Creating Inappropriate "Signature Dialouge" since yestermorrow!
Contact:

thanks. That helped alot, and I already have my UNID problem fixed. that wasn't the issue really.
Charon Fizz-Soda! It's Red! It tastes like Awesomness! AND PIRATES MADE IT! Better than Eridani Mineral Water too!
Image
Post Reply