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

THN problems...

The general place to discuss MOD''ing Freelancer!

Post Thu Jun 21, 2007 1:24 pm

THN problems...

Allright... I'm trying to alter some things in the old intro scripts and later I'll try to make new ones (You have to crawl before you can walk)

So.. I got fled-thorn... Movin a file into that programs directory and decompiled it...

And here's my problem! Even though I've just decompiled the .THN file without making any changes FL crashes if it tryes to load the one I decompiled!

Obviously I'm doin something wrong here and I can't figure out what it is...

Might be a noob problem for some of you, so help getting me startet to have working files which I later can make changes in will be much appreciated!

Thanks in advance...

Post Thu Jun 21, 2007 2:40 pm

Fled thorn decompiles them as LUA files, so you have to change the file extension back to THN.
You'll find they look like this - intro_waterplanet.thn.lua, delete the .lua part and you'll be able to use them.

**shuffles off with a new headache**

Post Thu Jun 21, 2007 3:26 pm

Thanks Bejaymac...

Knew the problem was something like that! Problems was that I've had windows recognize the file as .lua no matter what I tryed to call it! Solved now! :-)

But now I got another question...

I've made some new starspheres I'd like to add...

Problem is when I do that the background is black! I can use all other vanilla starspheres without problems! So I'll take it as I need to define those new spheres somewhere!?

Edited by - mh-dk on 6/21/2007 4:26:38 PM

Post Thu Jun 21, 2007 3:46 pm

If it's in a THN and doesn't come from one of the Archetype INIs (shiparch, solararch etc) then it has to be added to the petaldb.ini, you'll find the rest of the starspheres in there along with a hell of a lot of other "props".

**shuffles off with a new headache**

Post Thu Jun 21, 2007 4:03 pm

Again... Thanks! :-)

Now two more questions...

How do I change the ambient/background color from black to let's say blue?

also... How can I rotate the starsphere?

Which lines would I have to look after?

Edited by - mh-dk on 6/21/2007 5:04:30 PM

Post Thu Jun 21, 2007 6:05 pm


IIRC the "ambient" in the above sample is how you set the overall Ambient colour for the THN, it needs to be part of the "scene" entity.

Rotating anything in a THN is down to the "orient" for the entity in question, 1 to -1 and every decimal point in between for all 9 numbers (thier rotational vectors for xyz).

**shuffles off with a new headache**

Return to Freelancer General Editing Forum