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

Suns

The general place to discuss MOD''ing Freelancer!

Post Tue Jun 01, 2004 2:55 am

Suns

Hello,

is it possible to create my own suns ?

Post Tue Jun 01, 2004 5:12 am

Certainly is. Open up the file for your system and add these objects, changing the details e.g. position to whatever you want:

The sun:

[Object
nickname = My_Sun
ids_name = 261008
pos = 0, 0, 0
ambient_color = 255, 255, 255
Archetype = sun_2000
ids_info = 66162
star = med_white_sun
atmosphere_range = 11000
burn_color = 160, 222, 245

That has created the sun object. Now you need a zone around it to cause damage, otherwise you'll just bounce off it.

[zone
nickname = Zone_My_Sun_Death
pos = 0, 0, 0
shape = SPHERE
size = 10000
damage = 10000
sort = 99.500000
density = 0
relief_time = 0
population_additive = false

Now finally, to make it give off light (which always helps):

[LightSource
nickname = System_LIGHT
pos = 0, 0, 0
color = 255, 255, 255
range = 120000
type = DIRECTIONAL
atten_curve = DYNAMIC_DIRECTION

Btw, don't forget to close all the square brackets if you copy and paste this.

Post Tue Jun 01, 2004 8:30 am

Hmm, I admit that my question was not well specified. I know how to create a sun in my system. But there are only sun_1000 and sun_2000. I want to know is there a way to create another sun, for example with a radius 500 or 4000?

Post Tue Jun 01, 2004 8:58 am

Yes. Sun_1000 and sun_2000 are the archetypes (models) for the different suns. They are the only two defined ones, but you can create your own by adding the following to DATA/SOLAR/solararch.ini:

[Solar
nickname = sun_3000
ids_name = 60201
ids_info = 60202
type = SUN
DA_archetype = solar\suns\sun.sph
mass = 1000000
solar_radius = 3000
shape_name = NNM_SM_SUN

This example is obviously for a sun of radius 3000. Because the sun is a sphere you can edit the radius value and it will be stretched/squashed accordingly.

Post Tue Jun 01, 2004 9:18 am

What program is used to write that in?

"Criminal Organisations don't just spring up overnight. It's a conspiracy" - overheard on a a Liberty comm frequency

Post Tue Jun 01, 2004 10:23 am

You can use Notepad or your prefered text editor. I think it is recommended to use Freelancer SDK. If so all ini files are in txt format and not compressed.

BTW Thanks Accushot for your helpful answer!

Edited by - JohnDoe on 6/1/2004 11:24:34 AM

Post Tue Jun 01, 2004 10:51 am

In notepad it all comes up in squares, doesn't it?

"Criminal Organisations don't just spring up overnight. It's a conspiracy" - overheard on a a Liberty comm frequency

Post Tue Jun 01, 2004 11:01 am

Only if it's compressed. BINI can uncompress ini files, or you can get the SDK which is all the ini files already uncompressed. FL can read both types

Post Tue Jun 01, 2004 11:27 am

I prefer a simple INI editor: the SDK doesnt do ones for my own mods. Which is a problem: I'm working on systems for the Republic Mod. So I got the INI one

"Criminal Organisations don't just spring up overnight. It's a conspiracy" - overheard on a a Liberty comm frequency

Return to Freelancer General Editing Forum