Sun/Planet Color

The place to discuss scripting and game modifications for X²: The Threat.

Moderators: Scripting / Modding Moderators, Moderators for English X Forum

AalaarDB
Posts: 2282
Joined: Thu, 29. Jan 04, 08:19
x3tc

Sun/Planet Color

Post by AalaarDB »

I'm running off to school atm so I dun have time to solve this problem.

Code: Select all

<o id="0" t="1" x="0" y="0" r="2" color="2313738" fc="0" fn="0" ff="0">
<o t="3" s="5" x="178145224" y="25597057" z="122769889" color="8570965"/>
<o t="4" x="160609000" y="263775829" z="-297674095" s="5" r="2"/>
That's Kingdom End. I previously assumed that type3 = sun because it has a color and assumed type4 is a planet.

However make this sector:

Code: Select all

<universe xmlns="XUNIVERS.xsd" id="2">
	<o id="0" t="1" x="4" y="11" r="1" color="4473992" fc="0" fn="0" ff="0" m="0">
		<o t="2" s="30"/>
		<o t="3" s="5" x="-302555686" y="-9460000" z="-207003640" color="7571437"/>
		<o t="4" x="867417091" y="100000" z="124938325" s="19" r="1"/>
	</o>
</universe>
a normal sector yes? Make this one:

Code: Select all

<universe xmlns="XUNIVERS.xsd" id="2">
	<o id="0" t="1" x="4" y="11" r="1" color="4473992" fc="0" fn="0" ff="0" m="0">
		<o t="2" s="30"/>
		<o t="3" s="5" x="-302555686" y="-9460000" z="-207003640" color="16737380"/>
		<o t="4" x="867417091" y="100000" z="124938325" s="19" r="1"/>
	</o>
</universe>
Notice that only the type3 color changed. But we have a red planet. One might thus assume I interpreted KE wrong. But if that is the case how does type 4 get it's color? It can't be the color in the first line, because they don't match up. Maybe sun color is subtype, and I could prolly test this easier and faster than posting this - by creating a sector with only a sun not a planet, or other changes etc. So why do I post this? Because you can have red planets! Cool yes? Anyways I expect an answer when I get back from school :)
User avatar
Storm_Front
Posts: 1021
Joined: Mon, 15. Dec 03, 05:27
x2

Post by Storm_Front »

Anyways I expect an answer when I get back from school :)
Yes Sir, Right away Sir! :D

There's more to modding planets and suns than I realized. You've probably just added another day or two to our mod. :) The planet has little to do with this. The only plant unaffected is the bright blue one.(Brennan's Treaty)

Changing the subtype of the sun just changes is appearance as you see it. Changing the r, g, b values for the sun (r/R,g/G, f/F keys) changes the color of the reflected sunlight. In aadition, increasing any one or more of the three color values increases the size of the sun.For example: Change r=0, g=0, b=0 to r=255, g=0, b=0 will make the sun appear bigger. Now change the subtype and everything turns red, the planet (except bright blue one), the cockpit of your ship, the stations, etc.

So. decide what planet you want, then choose your color, then the sun's subtype.

Aalaardb we should spend a little more time customizing sectors on our maps. Feel free to send me an updated map if you want, let me know which sectors are done.
AalaarDB
Posts: 2282
Joined: Thu, 29. Jan 04, 08:19
x3tc

Post by AalaarDB »

Aced the final!
AalaarDB
Posts: 2282
Joined: Thu, 29. Jan 04, 08:19
x3tc

Post by AalaarDB »

yeah, my war mod was just 9 copy and pasted sectors. I wanna see purples and greens (and red planets, that one looks awesome). BTW, when making sectors could you go easy on the nebulas? subtype 150 especially causes massive lag on my system, prolly others that have the same shape/pattern. Sending you my sectors.

Return to “X²: The Threat - Scripts and Modding”