Question for asteroid lookup table

Freeform discussion about anything related to modding Transcendence.
Post Reply
User avatar
DigaRW
Militia Captain
Militia Captain
Posts: 517
Joined: Thu Jul 30, 2015 3:10 pm
Location: The place where I belong
Contact:

I wonder how to add asteroid that kind of Saturn ring and asteroid belts in starsystems as now it's bit different from previous version. I tried to copy the code and do some modification, but it didn't work at all.

Code: Select all

				<!-- Karta -->
				
				<Group distance="580">
					<Primary>
						<Station type="&stMethaneGasGiantSizeK;" name="Karta" showOrbit="true"/>
					</Primary>
					
					<ZAdjust inclination="30-60" rotation="alignedRandom" excludeLocations="true">
						<Lookup table="AsteroidRing200"/>
					</ZAdjust>

					<!-- Karta is in a sparse asteroid belt -->

					<LocationAttributes attributes="kartaRegion">
						<Lookup table="AsteroidBelt100"/>
					</LocationAttributes>
				</Group>
They seems using table lookup code. But I can't find any table in local xml. Is it uses global table? If it does, how do I use it?
Download Transcendence mods from Reinvented Workbench Project!
Click this link!
User avatar
Periculi
Fleet Officer
Fleet Officer
Posts: 1282
Joined: Sat Oct 13, 2007 7:48 pm
Location: Necroposting in a forum near you

GroupIAsteroids.xml line 93 for AsteroidBelt200 which is a part of the GalaxyLibrary. It looks like these are tables pointing to a morphology, not entirely sure what that does, then we see in the AsteroidBelt200Morphology a set of orbital distributions- you can probably use those directly like

Code: Select all

<OrbitalDistribution count="2d50+150" radialWidth="84">
				<Lookup table="BeltAsteroid"/>
			</OrbitalDistribution>
Which also uses a table.. it's a bit to chase down! What is going on here now I wonder? At any rate, it's all in the Galaxy Library and you can track it down from the modules included there, if you have the software for it try a Find in Path on Transcendence source and that will help you find all the references.
User avatar
Periculi
Fleet Officer
Fleet Officer
Posts: 1282
Joined: Sat Oct 13, 2007 7:48 pm
Location: Necroposting in a forum near you

AsteroidFields.xml has all kinds of the orbital declarations too. Asteroid rings are down around line 464. PointJuno.xml is using this for Zheling IV

Code: Select all

<ZAdjust inclination="random" rotation="alignedRandom" excludeLocations="true">
						<Lookup table="AsteroidRing25"/>
					</ZAdjust>
and also

Code: Select all

<Lookup table="AsteroidTrojans50"/>

					<Lookup table="AsteroidAntiTrojans50"/>
Which seems like what you tried, doesn't it. Maybe it's not wrapped in an Orbitals? or maybe it's missing some attribute perhaps?
User avatar
DigaRW
Militia Captain
Militia Captain
Posts: 517
Joined: Thu Jul 30, 2015 3:10 pm
Location: The place where I belong
Contact:

Thanks for reply. I tried your suggestion, but still didn't work.

It seems I need to specify the type of asteroid from certain xml (Ice, Metallic, Primordial, Rocky, and Volcanic), so I tried this code:

Code: Select all

					<ZAdjust inclination="30-60" rotation="alignedRandom" excludeLocations="true">
						<Lookup table="AsteroidIceArc50"/>
					</ZAdjust>
					
					<LocationAttributes attributes="kartaRegion">
						<Lookup  table="AsteroidIceBelt100"/>
					</LocationAttributes>
Both did works, but ZAdjust end up turn into weird visual (and not interactable). Unfortunately in Ice.xml, there is no table for ice ring asteroid.
Download Transcendence mods from Reinvented Workbench Project!
Click this link!
User avatar
DigaRW
Militia Captain
Militia Captain
Posts: 517
Joined: Thu Jul 30, 2015 3:10 pm
Location: The place where I belong
Contact:

All table from specified asteroid table is very limiting, unlike from GroupIAsteroids.xml.

Code: Select all

					<Orbitals distance="25" angle="random">
						<Lookup table="AsteroidIceBelt100"/>
					</Orbitals>
					
					<LocationAttributes attributes="kartaRegion">
						<Lookup  table="AsteroidIceBelt100"/>
					</LocationAttributes>
Untitled.png
Untitled.png (865.6 KiB) Viewed 9516 times
Download Transcendence mods from Reinvented Workbench Project!
Click this link!
User avatar
DigaRW
Militia Captain
Militia Captain
Posts: 517
Joined: Thu Jul 30, 2015 3:10 pm
Location: The place where I belong
Contact:

I just replace these two line of codes and a bit modified them, then it suddenly works. It seems attributes and <AddTerritory> code is important to asteroid table placement as actually lookup table don't directly specify the type of asteroids.
3.png
3.png (138.51 KiB) Viewed 8450 times
4.png
4.png (130.63 KiB) Viewed 8450 times
Last edited by DigaRW on Fri Jul 16, 2021 4:26 pm, edited 1 time in total.
Download Transcendence mods from Reinvented Workbench Project!
Click this link!
User avatar
DigaRW
Militia Captain
Militia Captain
Posts: 517
Joined: Thu Jul 30, 2015 3:10 pm
Location: The place where I belong
Contact:

Nevertheless, I'm glad I could see it working.
Attachments
2.png
2.png (572.69 KiB) Viewed 8449 times
1.png
1.png (574.71 KiB) Viewed 8449 times
Download Transcendence mods from Reinvented Workbench Project!
Click this link!
Post Reply