Welcome, Guest

Author Topic: How to code color into XML  (Read 6863 times)

atomic7732

  • Global Moderator
  • *****
  • Posts: 3849
  • caught in the river turning blue
    • Paladin of Storms
How to code color into XML
« on: May 04, 2010, 07:36:03 PM »
I forgot.  ;D

Naru523

  • Universe Sandbox 1 Beta Team
  • *****
  • Posts: 1295
  • let's walk the true path of life
Re: How to code color into XML
« Reply #1 on: May 04, 2010, 07:52:22 PM »
<Color>put color name, RGB, etc. code here</Color>

atomic7732

  • Global Moderator
  • *****
  • Posts: 3849
  • caught in the river turning blue
    • Paladin of Storms
Re: How to code color into XML
« Reply #2 on: May 04, 2010, 07:52:50 PM »
Ummm that never worked for me...

It's now <ColorReal></ColorReal>

I think

Naru523

  • Universe Sandbox 1 Beta Team
  • *****
  • Posts: 1295
  • let's walk the true path of life
Re: How to code color into XML
« Reply #3 on: May 04, 2010, 07:57:43 PM »
I think Dan changed it.

atomic7732

  • Global Moderator
  • *****
  • Posts: 3849
  • caught in the river turning blue
    • Paladin of Storms
Re: How to code color into XML
« Reply #4 on: May 04, 2010, 08:06:08 PM »
Neither work

I HATE XML

I HATE UBOX

THIS IS SO STUPID

Code: [Select]
<System>
  <Body>
    <Name>Ixra</Name>
    <Object>Sun</Object>
    <Appearance>Sun</Appearance>
    <Mass>35008160000</Mass>
    <Density>1.72771341612348</Density>
    <Diameter>1570000</Diameter>
    <PositionX>259224014948692</PositionX>
    <PositionY>45979150096738.8</PositionY>
    <PositionZ>-98391596914832</PositionZ>
    <VelocityX>0</VelocityX>
    <VelocityY>0</VelocityY>
    <VelocityZ>0</VelocityZ>
    <Settings>gravity=0</Settings>
  </Body>
  <Body>
    <Name>KM-56</Name>
    <Object>Sun</Object>
    <Appearance>Sun</Appearance>
    <Mass>44754750000</Mass>
    <Density>0.00717666901805719</Density>
    <Diameter>10600000</Diameter>
    <PositionX>135288445757894</PositionX>
    <PositionY>117313057859992</PositionY>
    <PositionZ>62819250337931.2</PositionZ>
    <VelocityX>0</VelocityX>
    <VelocityY>0</VelocityY>
    <VelocityZ>0</VelocityZ>
    <Color>FFC636</Color>
    <Settings>timestep=0.0 seconds</Settings>
  </Body>
  <Body>
    <Name>50 WRz</Name>
    <Object>Sun</Object>
    <Appearance>Sun</Appearance>
    <Mass>2386920000</Mass>
    <Density>1.95166800064849</Density>
    <Diameter>615854</Diameter>
    <PositionX>1170000</PositionX>
    <PositionY>-984017</PositionY>
    <PositionZ>553617</PositionZ>
    <VelocityX>0</VelocityX>
    <VelocityY>0</VelocityY>
    <VelocityZ>0</VelocityZ>
    <Color>F5FC63</Color>
    <Settings>collisionmode=0</Settings>
  </Body>
  <Body>
    <Name>AUH8c</Name>
    <Object>Sun</Object>
    <Appearance>Sun</Appearance>
    <Mass>39185270000</Mass>
    <Density>4.12139964373046</Density>
    <Diameter>1220000</Diameter>
    <PositionX>122989496143540</PositionX>
    <PositionY>-4749283600827.18</PositionY>
    <PositionZ>69820190887640.4</PositionZ>
    <VelocityX>0</VelocityX>
    <VelocityY>0</VelocityY>
    <VelocityZ>0</VelocityZ>
    <Color>FFE734</Color>
    <Settings>date=14640</Settings>
  </Body>
  <Body>
    <Name>7rCoQ</Name>
    <Object>Sun</Object>
    <Appearance>Sun</Appearance>
    <Mass>27250670000</Mass>
    <Density>0.98794056361156</Density>
    <Diameter>1740000</Diameter>
    <PositionX>138126672038217</PositionX>
    <PositionY>114474852263118</PositionY>
    <PositionZ>-11069056783530.1</PositionZ>
    <VelocityX>0</VelocityX>
    <VelocityY>0</VelocityY>
    <VelocityZ>0</VelocityZ>
    <Color>FFFB79</Color>
    <Settings>camera=dist:61.7 light years,h:871,v:-24; focus=KM-56</Settings>
  </Body>
  <Body>
    <Name>Altan</Name>
    <Object>Sun</Object>
    <Appearance>Sun</Appearance>
    <Mass>18896450000</Mass>
    <Density>1.53400465489007</Density>
    <Diameter>1330000</Diameter>
    <PositionX>154209906703054</PositionX>
    <PositionY>36423812319433</PositionY>
    <PositionZ>-62819250337931.2</PositionZ>
    <VelocityX>0</VelocityX>
    <VelocityY>0</VelocityY>
    <VelocityZ>0</VelocityZ>
    <Color>FF672F</Color>
    <Settings />
  </Body>
  <Body>
    <Name>SG-232-Z1Z2</Name>
    <Object>Sun</Object>
    <Appearance>Sun</Appearance>
    <Mass>389863600000</Mass>
    <Density>0.000104558583194931</Density>
    <Diameter>89300000</Diameter>
    <PositionX>200567486018696</PositionX>
    <PositionY>236518261814500</PositionY>
    <PositionZ>147587395372248</PositionZ>
    <VelocityX>0</VelocityX>
    <VelocityY>0</VelocityY>
    <VelocityZ>0</VelocityZ>
    <Settings />
  </Body>
  <Body>
    <Name xml:space="preserve"> </Name>
    <Object>Sun</Object>
    <Appearance>Sun</Appearance>
    <Mass>16708440000</Mass>
    <Density>1.13836082878418</Density>
    <Diameter>1410000</Diameter>
    <PositionX>200567433983882</PositionX>
    <PositionY>236518175404321</PositionY>
    <PositionZ>147587395372248</PositionZ>
    <VelocityX>0</VelocityX>
    <VelocityY>0</VelocityY>
    <VelocityZ>0</VelocityZ>
    <Settings />
  </Body>
  <Body>
    <Name xml:space="preserve"> </Name>
    <Object>Sun</Object>
    <Appearance>Sun</Appearance>
    <Mass>222136200</Mass>
    <Density>65777821.8906321</Density>
    <Diameter>864</Diameter>
    <PositionX>200567529595527</PositionX>
    <PositionY>236518136858142</PositionY>
    <PositionZ>147587395372248</PositionZ>
    <VelocityX>0</VelocityX>
    <VelocityY>0</VelocityY>
    <VelocityZ>0</VelocityZ>
    <Settings />
  </Body>
  <Body>
    <Name>KP-ZZ1-ASZ</Name>
    <Object>Sun</Object>
    <Appearance>Sun</Appearance>
    <Mass>20288820000</Mass>
    <Density>1.21984924743251</Density>
    <Diameter>1470000</Diameter>
    <PositionX>305514386004406</PositionX>
    <PositionY>836083291930951</PositionY>
    <PositionZ>406811410320940</PositionZ>
    <VelocityX>0</VelocityX>
    <VelocityY>0</VelocityY>
    <VelocityZ>0</VelocityZ>
    <Color>56FF34</Color>
    <Settings />
  </Body>
</System> 

Dan, can you get the colors working?

Dan Dixon

  • Creator of Universe Sandbox
  • Developer
  • *****
  • Posts: 3244
    • Personal Site
Re: How to code color into XML
« Reply #5 on: May 04, 2010, 09:12:50 PM »
Sorry you're frustrated.

I feel that; been there.

Can't look at the problem right now, but will check it out first thing tomorrow.