Welcome, Guest

Author Topic: XML codes? Where are they?  (Read 3081 times)

atomic7732

  • Global Moderator
  • *****
  • Posts: 3749
  • caught in the river turning blue
    • Paladin of Storms
XML codes? Where are they?
« on: July 27, 2009, 12:45:22 PM »
I can't find them on the universe sandbox page!

Dan Dixon

  • Creator of Universe Sandbox
  • Developer
  • *****
  • Posts: 3243
    • Personal Site
Re: XML codes? Where are they?
« Reply #1 on: July 27, 2009, 04:08:56 PM »

atomic7732

  • Global Moderator
  • *****
  • Posts: 3749
  • caught in the river turning blue
    • Paladin of Storms
Re: XML codes? Where are they?
« Reply #2 on: July 27, 2009, 04:25:26 PM »
Yeah, thanks!

How do I put a rotation period in xml i can have it rotate when i start the sim?
« Last Edit: July 28, 2009, 01:48:34 PM by NeutronStar »

Dan Dixon

  • Creator of Universe Sandbox
  • Developer
  • *****
  • Posts: 3243
    • Personal Site
Re: XML codes? Where are they?
« Reply #3 on: July 28, 2009, 10:16:34 PM »
You'd think that would be an option, but I've never added support for it.

Rotation periods are extracted from the Data files and I added a special action called rotationperiod...
Code: [Select]
<Action>rotationperiod=faceparent</Action>...but faceparent is the only parameter it currently accepts.

Sorry about that... I've added it to the list of features to add to the upcoming version.

If you use the <Object> property and then override all the other attributes it will have the rotation period of the body specifed in <Object> (assuming this object has a rotation value in LocalObjects.xml or Stars.xml).

atomic7732

  • Global Moderator
  • *****
  • Posts: 3749
  • caught in the river turning blue
    • Paladin of Storms
Re: XML codes? Where are they?
« Reply #4 on: July 28, 2009, 10:26:18 PM »
Can you in the current version change a stars color? Or does it not work?

Dan Dixon

  • Creator of Universe Sandbox
  • Developer
  • *****
  • Posts: 3243
    • Personal Site
Re: XML codes? Where are they?
« Reply #5 on: July 28, 2009, 11:31:47 PM »
Changing a star color works... Check this out:
http://universesandbox.com/forum/index.php/topic,277.0.html
« Last Edit: July 29, 2009, 10:17:24 AM by Dan Dixon »

atomic7732

  • Global Moderator
  • *****
  • Posts: 3749
  • caught in the river turning blue
    • Paladin of Storms
Re: XML codes? Where are they?
« Reply #6 on: July 28, 2009, 11:34:55 PM »
Do the spectral types do anything? There is a code for it.

Dan Dixon

  • Creator of Universe Sandbox
  • Developer
  • *****
  • Posts: 3243
    • Personal Site
Re: XML codes? Where are they?
« Reply #7 on: July 29, 2009, 06:05:27 PM »
Do the spectral types do anything? There is a code for it.

Not everything in the data files are used by Universe Sandbox, but it was so much easier to just go ahead and add that data now rather than try to add it in the future if I decided I needed it.

No... I don't think the spectral types are used at the moment.