Anyone know how to find the position of planets and suns?

The place to discuss scripting and game modifications for X Rebirth.

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

Ginger470
Posts: 158
Joined: Sun, 20. Jun 04, 03:24
x2

Anyone know how to find the position of planets and suns?

Post by Ginger470 »

Hey guys,

Trying to find out how to retrieve the position of celestialobsjects like suns and planets but can't quite figure it....

Any ideas?

Thanks )
User avatar
Frumph
Posts: 302
Joined: Wed, 20. Nov 13, 03:12
x4

Post by Frumph »

assets/environments/cluster/cluster_*.xml

which is referenced from maps/XU_ep1_universe

- i believe - i'm looking at one right now and it's got all the parms for celestial objects, positions etc.

cluster_d.xml appears to refer to devries
Ginger470
Posts: 158
Joined: Sun, 20. Jun 04, 03:24
x2

Post by Ginger470 »

Thanks.

What I'm looking for is the md code ... whatever the correct version of this would be:

<find_object_component name="$Get_suns" class="sun" multiple="true" object="player.cluster"/>

or

<find_object_component name="$Get_planets" class="planet" multiple="true" object="player.cluster"/>

?
Ginger470
Posts: 158
Joined: Sun, 20. Jun 04, 03:24
x2

Post by Ginger470 »

So has anyone discovered how to get Suns' and Planets' X,Y,Z co-ordinates yet?

I still can't figure it out. Any help would be appreciated :)
Ginger470
Posts: 158
Joined: Sun, 20. Jun 04, 03:24
x2

Post by Ginger470 »

Still looking.... anyone stumbled across this yet? Thanks
UniTrader
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 14571
Joined: Sun, 20. Nov 05, 22:45
x4

Post by UniTrader »

what do you want to achieve with that? (same for your other questions in the Forum)
if not stated otherwise everything i post is licensed under WTFPL

Ich mache keine S&M-Auftragsarbeiten, aber wenn es fragen gibt wie man etwas umsetzen kann helfe ich gerne weiter ;)

I wont do Script&Mod Request work, but if there are questions how to do something i will GLaDly help ;)
Ginger470
Posts: 158
Joined: Sun, 20. Jun 04, 03:24
x2

Post by Ginger470 »

long story short... I'm adding subsystems to the Skunk:

1. to increase the depth of the 'sim' aspect of flying the ship
2. to add a need for some of the inventory items (buffs/debuffs)
3. to increase general immersion
4. to reduce some common exploits

:)

I'm working on external hull temperature at the moment (radiation). The skunk has a low heat tolerance (it can't re-enter atmosphere so that sets an upper limit of around 3000 deg F)

Currently, I have it working so m-xl ship engines will produce heat from their engines ( a function of speed, size, no. of engines within a cone volume behind the engine).

This reduces shields, then hull (remember you blow up on re-entry, so I figure the same should be true with any radiation source).

It all happens pretty quick, so taking out engines is a lot more difficult now (blind spots or not).

Sooooo....

If I'm dealing with radiation effects on the hull, it'd be nice to be inclusive of proximity to suns. Devries for example -- it's gotta be toasty there :)

Maybe nebulas also effect the temperature -- it's all part of the same problem :)

So getting the position of these celestial objects has become part of my mission...

As are the consequences ;) Like killing the skunk/player if if you boil yer brains.

The mouse x/y position is a different matter ... that's just a headpan thing. I can move the player viewpoint easily enough, but without keypress/mouseXY I have no way to control it.

ok... that was still a long story :D
UniTrader
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 14571
Joined: Sun, 20. Nov 05, 22:45
x4

Post by UniTrader »

for your scenario i think "Hard-Coded" values for the effect of the Sun is enough - there is only one System where it has any relevance (DV) and there you can only notice differences between Sectors, Zones are too close to each other to make a difference imo...

for Nebula Effects you should look up Regions, because Nebulae and Asteroid Fields are defined as that ;) (i think i saw some commmands related to them)
if not stated otherwise everything i post is licensed under WTFPL

Ich mache keine S&M-Auftragsarbeiten, aber wenn es fragen gibt wie man etwas umsetzen kann helfe ich gerne weiter ;)

I wont do Script&Mod Request work, but if there are questions how to do something i will GLaDly help ;)
Ginger470
Posts: 158
Joined: Sun, 20. Jun 04, 03:24
x2

Post by Ginger470 »

That's what I figured... would be nice to do it programitically for compatibility with other mods... guess I'll just set up an external file with these positions in for easy editing.

Do you happen to know if the co-ordinate system is global? Or is it by sector/zone?

In otherwords if I reference the DV sun position from ANY sector/zone would I get the same x,y,z ?
User avatar
Frumph
Posts: 302
Joined: Wed, 20. Nov 13, 03:12
x4

Post by Frumph »

I just want to shrink the devries sun to about 1/8th the current size ;)
Ginger470
Posts: 158
Joined: Sun, 20. Jun 04, 03:24
x2

Post by Ginger470 »

Hey Frumph ... have you checked out

http://forum.egosoft.com/viewtopic.php? ... 59#4339959

It increase the size of the sun but places it further away ... it also changes a lot of other things. May not be what you're looking for, but I thought I'd point it out in case you missed it.
User avatar
Frumph
Posts: 302
Joined: Wed, 20. Nov 13, 03:12
x4

Post by Frumph »

I haven't opened the game (or these forums) in several months, so no haven't seen that post ;) thank you for it. SOmeone resurrected this post and I had it on watch ;/

Return to “X Rebirth - Scripts and Modding”