Important Message

You are browsing the archived Lancers Reactor forums. You cannot register or login.
The content may be outdated and links may not be functional.


To get the latest in Freelancer news, mods, modding and downloads, go to
The-Starport

Distance issue with custom planets

The general place to discuss MOD''ing Freelancer!

Post Wed Nov 14, 2007 9:36 am

Distance issue with custom planets

In the Requiem Mod we are working on, we have all custom made planets. They work and look great. However, the problem I have is it will show that the distance is at 0 when you are still a long ways away from it.

I am pressuming the problem lies in my custom sur for the planet(s). What I am in need of is a fix for this.

The sur is actually in the roper location and is the proper size as you will bounce off the planet. The only issue is the distance.

I appreciate any assistance on this.

Requiem: A Total FL Conversion Mod .

Post Wed Nov 14, 2007 11:34 pm

I dont know so much in Planets =D So maybe u should change Lodouts to 99999, 99999, 99999, 99999 ???? I dont know but maybe it ll work i hade the same prob with ships but when i changed Lodouts it started to work. So i can see Train at 10k now =D Try it but i dont know where ^^

Post Thu Nov 15, 2007 12:19 am

Lodouts? You mean LOD-ranges?

Post Thu Nov 15, 2007 1:12 am

Planets don't use sur files, that may be your problem. They only need a txm, a mat and an sph file.

Just in case you mis-spoke, take a look inside your sph file (with UTFXML.exe) and verify that the radius matches.

F!R

Post Thu Nov 15, 2007 1:26 am

One possible reason might be the "solar_radius" when you define the (Solar) or the
"atmosphere_range" when you define the (Object )in the system.

An other thing which caused big problems were npc ships spawning inside the planet.
To handle this problems it might help, to set a zone with extremly high damage at the location of the planet.

Post Thu Nov 15, 2007 4:45 am

I have played with the LOD ranges and this did not correct it.

Custom planets can have sur files. The atmosphere is correct. I can send one of the planets and sur files to someoen if they want to look at them.

I have a feeling that there is something I am not putting into the sur file, but have no idea what.

Post Fri Nov 16, 2007 5:24 am

By you saying they need sur files, this suggests that the way you have built them is not the standard FL planet method.

You need to provide entries if this is the case.If you have standard fl planets and are incorporating sur files, this is not neccersary. I'm guessing your using 3db models.

So, you might want to provide more info, file entries etc. for people to understand the make up of your planets.

Post Fri Nov 16, 2007 6:06 am

The custom planets are cmp and sur files. I will post the code tonight when I get hom for one of them.

Post Fri Nov 16, 2007 6:54 am

It's been a while so I could have you mixed up with someone else, IIRC you were doing orbiting planets, if that's the case then the hardpoints you will have added will increase the size of the hitbox, and it's the CMP models hitbox that determines the distance.

**shuffles off with a new headache**

Post Fri Nov 16, 2007 9:50 am

i doubt they are orbiting planets..
theoretically it should be the SUR file radius which gives the distance,
but to my experience it also has to do with the selection radius.
for example i have a big base, ive set the SUR radius same as the CMP.
selection is perfect, distance is not -but reducing the radius to correct the distance, made the selection too small.
if you have anton's modeltool, can you load the cmp and sur, and tell us what radii they have?

Post Fri Nov 16, 2007 4:23 pm

I am the one who was working on the orbiting planets, but I abandoned it due to a couple issues that can not be fixed.

As for what FLModelTool shows

The CMP:

Original Data
-------------

Bounding box info :
x1 15048.596680 x2 -15041.020508
y1 15047.121094 y2 -15050.073242
z1 15046.703125 z2 -15046.703125
Center :
3.788086 -1.476074 0.000000
Radius :
32580.867188




And the SUR:

File : C:\Program Files\Freelancer Mod Manager\mods\Requiem69\DATA\Solar\Planets\Earth\TerraReal.sur

SurHeader :
"vers" 2.00

IDHeader :
crc_id : 0x12688F2D - "Root"
type : 4 - Ship/Station

IDHeader_B :
tag : "!fxd"

exts_part (bounding box) :
tag : "exts"
xMin : -15041.021484 yMin : -15050.074219 zMin : -15046.702148
xMax : 15048.597656 yMax : 15047.122070 zMax : 15046.702148

Surface header :
tag :"surf"
Offset1 : 0x0BBC (3004) - Offset to next component of HPID
Padding : 0x0000 - Always 0

Surface :
CenterX : 2.028808 CenterY : 18.816465 CenterZ : 0.000116
InertiaX : 2700.033447 InertiaY : 3104.536865 InertiaZ : 2700.035156
Radius : 32578.738281
unknown byte : 0x6D - (109 decimal 01101101 binary)
Offset1b : 0x0BBC (3004) - always identical to surface_header.offset1
padding byte : 0x00 - Always 0
Offset2 : 0x00000BA0 - Offset to bit header
Padding3 : 0x00000000 0x00000000 0x00000000 - Always 0

Triangle group header :
Offset3 : 0x00000790 - (1936) Offset to vertex buffer
TriangleID : 0x12688F2D - "Root"
type : 4 - Primitive = D3DPT_TRIANGLELIST
no_ref_verts : 183
Padding4 : 0x00
Tricount : 120 - No of triangles in group (0 -> n-1)

There is a bunch of stuff under triangle list in the sur file, but to much to post.

Return to Freelancer General Editing Forum