Universe Sandbox

Universe Sandbox Legacy => Universe Sandbox 2008 | Discussion => Topic started by: atomic7732 on November 07, 2008, 09:54:18 PM

Title: Help with creating files
Post by: atomic7732 on November 07, 2008, 09:54:18 PM
I have tried to make Ganymede and Io looking objects but I cannot even from the ref. It looks like normal Moon. Help me.

I copied it from the Apophis passes by earth, so I could make a "Create your own system" (of three objects).
This is the code:
Code: [Select]
<System xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Body>
<Object>Sun</Object>
<PositionX>0</PositionX>
<PositionY>0</PositionY>
<PositionZ>0</PositionZ>
<VelocityX>0</VelocityX>
<VelocityY>0</VelocityY>
<VelocityZ>0</VelocityZ>
<Settings>date=2029-04-10</Settings>
</Body>
<Body>
<Object>1</Object>
<Name>Ganymede</Name>
                <TextureDiffuse>jupiter-ganymede.dds</TextureDiffuse>
                <Type>Rock</Type>
                <PositionX>-140827702.038664</PositionX>
<PositionY>-51263968.8509987</PositionY>
<PositionZ>3875.34116002917</PositionZ>
<VelocityX>9.7008846311919</VelocityX>
<VelocityY>-28.1138000659367</VelocityY>
<VelocityZ>0.00128065491576023</VelocityZ>
<Settings>timestep=10 minutes;trailsegments=100</Settings>
</Body>
<Body>
<Object>2</Object>
                <PositionX>-140456302.164701</PositionX>
<PositionY>-51418391.0332881</PositionY>
<PositionZ>34269.2944563962</PositionZ>
<VelocityX>10.0962397762852</VelocityX>
<VelocityY>-27.2243584475665</VelocityY>
<VelocityZ>0.0464607170223008</VelocityZ>
<Settings>focus=earth;center=earth</Settings>
</Body>
<Body>
<Object>3</Object>
                <Name>Callisto</Name>
                <TextureDiffuse>jupiter-callisto.dds</TextureDiffuse>
                <PositionX>-142295776.746464</PositionX>
<PositionY>-52528100.2186076</PositionY>
<PositionZ>-551934.807057838</PositionZ>
<VelocityX>13.9124010484664</VelocityX>
<VelocityY>-24.318024142411</VelocityY>
<VelocityZ>1.23602811345808</VelocityZ>
<Name>Asteroid</Name>
<Mass>2.1E-10</Mass>
<Diameter>2.483</Diameter>
<Action>trail=high</Action>
<Settings>camera=dist:769283km,h:34,v:-36</Settings>
</Body>
</System>
It works but what am I doing wrong?
Title: Re: Help with creating files
Post by: Dan Dixon on November 07, 2008, 10:56:15 PM
<Object> shouldn't be a number. It should be the name of the object you want to get properties for. If you say:
Code: [Select]
<Object>Ganymede</Object>It will get set the texture, mass, diameter, and name of that object automatically. These values come from the files LocalObjects.xml, Galaxies.xml, Stars.xml, etc...

You can then add lines for mass, diameter to override the values that get looked up by Object.

Two additional notes:
<Type> doesn't do anything in System files. So that line can be removed.
- Use <Texture> instead of <TextureDiffuse>

So in this example we look up the object Ganymede and then override its Position and Velocity values. The texture isn't needed because it's included in Object.

Code: [Select]
<Body>
<Object>Ganymede</Object>
                <PositionX>-140827702.038664</PositionX>
<PositionY>-51263968.8509987</PositionY>
<PositionZ>3875.34116002917</PositionZ>
<VelocityX>9.7008846311919</VelocityX>
<VelocityY>-28.1138000659367</VelocityY>
<VelocityZ>0.00128065491576023</VelocityZ>
</Body>

Let me know if you're still having trouble.
Title: Re: Help with creating files
Post by: atomic7732 on November 07, 2008, 11:04:17 PM
Thanks for the help!