Asteroid help

Freeform discussion about anything related to modding Transcendence.
Post Reply
Vachtra
Militia Commander
Militia Commander
Posts: 308
Joined: Tue Feb 16, 2010 2:03 am
Location: Texas
Contact:

I'm working on a large scale system and want to know if there is a way to make asteroids that are colidable with ships.
I also want to know if there is a way to have dual sovereignties, kinda like dual citizenship. This is in an attempt to have asteroids avoid collisions with groups like borer class ships, ferrians and pteravores.

Figured asking is a little quicker than looking it all up for hours.
Full time job, blog and helping with wife's crafting business leave only a couple hours for coding...

Thanks in advance everyone.
"Have you guys ever watched the show?" ~ Guy
sdw195
Militia Captain
Militia Captain
Posts: 779
Joined: Wed Nov 18, 2009 1:01 am
Location: Still looking for the csc Antarctica
Contact:

so, after a bit of playing i found that there is a way to do it, it doesnt work very well,
eg
notice the !! lines
i also removed scale= "world" from them,
it leaves the system looking empty, but its REALLY fun bouncing around on Asteroids
if you add mobile= "true" mass= " 20" then they fly around after you bump them,

Code: Select all

<StationType UNID="&stSmallAsteroid;"
		name=				"(asteroid)"
		!! noMapLabel=			"true" noMapIcon=			"true" 
		sovereign=			"&svIndependent;"
                 !! mobile=				"true"	mass= " 20"
		attributes=			"asteroid, stoneAsteroid, tinyAsteroid"
		!! barrier=			"true"			barrierEffect=		"&efBattleArenaWallHit;"			multiHull=			"true"
		ejectaType=			"&vtStoneAsteroidEjecta;"
		>
		<ImageVariants>
			<Image			imageID="&rsWorlds1;" imageX="192" imageY="768" imageWidth="32" imageHeight="32"/>
			<Image			imageID="&rsWorlds1;" imageX="192" imageY="800" imageWidth="32" imageHeight="32"/>
			<Image			imageID="&rsWorlds1;" imageX="192" imageY="832" imageWidth="32" imageHeight="32"/>
			<Image			imageID="&rsWorlds1;" imageX="192" imageY="864" imageWidth="32" imageHeight="32"/>
			<Image			imageID="&rsWorlds1;" imageX="192" imageY="896" imageWidth="32" imageHeight="32"/>

			<Image			imageID="&rsWorlds1;" imageX="192" imageY="928" imageWidth="32" imageHeight="32"/>
			<Image			imageID="&rsWorlds1;" imageX="192" imageY="960" imageWidth="32" imageHeight="32"/>
			<Image			imageID="&rsWorlds1;" imageX="192" imageY="992" imageWidth="32" imageHeight="32"/>
		</ImageVariants>

		<Events>
			; Note: We add this even to asteroids without ore because some scenarios
			; call for adding ore to existing asteroids
			<OnMining>
				(intAsteroidOnMining 100)
			</OnMining>

		</Events>

	</StationType>
now if you will excuse me... i am going back to playing with these fun asteroids :D
Image
Image
Image
Image
"Dash_Merc - George is a genius, in that he created this game engine that is infinitely extendable"
"<@sheepluva>Good night everybody, may the source be with you." <-- FOSG dev
"You only need THREE tools in life - WD-40 to make things go, Duct Tape to make things stop And C-4 to make things go away"
Vachtra
Militia Commander
Militia Commander
Posts: 308
Joined: Tue Feb 16, 2010 2:03 am
Location: Texas
Contact:

Excelent beginning! Thanks.
Now I have to figure out how to do damage using difference in speed. Yes, and actual collision calculation. Maybe even dividing by ships mass so larger ships don't get affected as much. I hope it's possible.

Well that and the soverign thing.
"Have you guys ever watched the show?" ~ Guy
shanejfilomena
Fleet Officer
Fleet Officer
Posts: 1533
Joined: Tue Mar 22, 2011 8:43 pm
Location: Alaska
Contact:

stealin in progress :)
since Gravity I have had mobile asteroids in my personal games: :
it was actually based on an effort to help expand gravity that died in testing ( could push an old cpu to death ):

but I would like to put this in my game and see how it is: but If I don't return it ..... that means I am stuck in a game enjoying it :)
Flying Irresponsibly In Eridani......

I don't like to kill pirates in cold blood ..I do it.. but I don't like it..
shanejfilomena
Fleet Officer
Fleet Officer
Posts: 1533
Joined: Tue Mar 22, 2011 8:43 pm
Location: Alaska
Contact:

YOU ARE EVIL !!!!!!!!!!!!!!!!!

Those poor ferians !!!!!!!!!
OMG the Ringers are going to Carbon freeze you for those Barriers on Asteroids!!!! :)


Han Solo will get out sooner then you will.
Flying Irresponsibly In Eridani......

I don't like to kill pirates in cold blood ..I do it.. but I don't like it..
Vachtra
Militia Commander
Militia Commander
Posts: 308
Joined: Tue Feb 16, 2010 2:03 am
Location: Texas
Contact:

That's why I was hoping for a way to make the barriers not affect certain types of ships or sovereigns. I bet those ferians are just chasing asteroids around all over the place...
"Have you guys ever watched the show?" ~ Guy
shanejfilomena
Fleet Officer
Fleet Officer
Posts: 1533
Joined: Tue Mar 22, 2011 8:43 pm
Location: Alaska
Contact:

Vachtra wrote:That's why I was hoping for a way to make the barriers not affect certain types of ships or sovereigns. I bet those ferians are just chasing asteroids around all over the place...
YES THEY WERE!!!!!!!! :)

I pulled the Barrier so they could get the rocks :)
but I resorted to pulling the code from my testing : I hit a rock and it started a huge fight when I was trying to only sit and watch the ship I gave orders to..... the test ship got killed so I killed EVERYBODY and had to start over. LOL
Flying Irresponsibly In Eridani......

I don't like to kill pirates in cold blood ..I do it.. but I don't like it..
Post Reply