The Freelancer Community Site by Team [RIP] » Board index » The FLC Public Forums » Freelancer Tutorials

Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Understanding planet and navmap UTF tutorial
 Post Posted: Tue Sep 15, 2009 5:13 am 
User avatar

Joined: Sat Jul 25, 2009 6:41 am
Posts: 93
Understanding planet and navmap UTF tutorial by Rasauul

1. What is a UTF file?
2. What is it made of?
3. Planets
4. Planet Groups
5. Planet Subgroups
6. Planet Resources
7. Subgroup header "Atmosphere"
8. Hex? Dont hex me dude!
9. Byte Size
10. Float Array
11. Change Nav Map Background By Gibbon
12. Making Giant planets

What is a UTF file?
UTFs is a Library or index where you store information on an object, files with the extensions ".SPH" and ".Mat".

What is it made of?
There can be many different entries in a UTF file

Lets look at a planet:
"Planets are cool, and we'll be looking at planet_desored_1500"

The planet has a 1 "Group" when u expand the tree
(just click it)
This group is called "Sphere"
"So its a sphere! Wow! i kinda guessed that dude"

awright, but now we have subgroups
(just click "Sphere" man!)

Now you see alot of bottle like icons, this means that we cant expand anymore
and it also means that now were looking at the Resources a.k.a
data on the object, u should be looking at:
M0, M1, M2, M3, M4, M5, M6, Radius and Sides

Ok, lets left-click these guys n see whats what.

Try the M6 resource:

Now to understand what were looking at we look to the right side of the
Utf editor, here we are told by the friendly program that (Mr. Colin Sanby wrote for us)
that this is the data on the planet atmosphere!

This we can jump to conclusions on on the wild guess that the
"planet_desored_atmosphere" header means just that

"Atmospheres are so cool Ras! Ya dem atmosphea rock mon"

(the header is placed after the ASCII, which means "American Standard Code for Information Interchange"
, so what? its code? now u tell me! time for some concrete football"

When u see where it says hex, dont freak out, ur comp is not trying to do a vodoo hex on you
..though that would be cool, this is actually a reference to the hardcode inside the program
(we dont know much about this since were complete noobs over here)
And it has to do with communicating between this object and the Freelancer hardcode..
...yes thats the one we try to hack and find out that our IQs are a bit lower
than we hoped for.

Now were told that the Byte"Size" is 32, this is very reassuring, i personally prefer this to 42 and
find that this number should also have its own button placed right next to my "Dont panic button"
, this means that the broken "I WIN Button" has to go but what the hell, we'll never get around to
fixing that anyway.

Now we get to the "Interpret data as" setting and were told that this data entry is interpreted
as a "Float Array" this seem reasonable since its a free floating object we're dealing with,
all the Resource entries i stumbled on untill now are "Float Arrays"
in this context meaning a floating data structure, ok lets move on.

Gibbon did this one on changing background on the Nav i added a few more
lines to it, so us noobs can "get it" too.
Find a picture of space u think rocks(try the Hubble Space Telescope site)
open it with a Image editor that can save as targa (TGA)
Manipulate the picture to ur hearts content, 256x256 image works well
Save it as a targa and call it Fancymap.tga
locate this file.
Open it with the UTF editor, expand the tree and go down to the texture library section.
There you will see the fancymap.tga texture and if you expand this, you will see the MIP0 section.
This is where your new texture will go.
Click the MIPO so its "Marked" then click "IMPORT" on the right side center,
close and save, and you got a new backgroud.

You can do this with the Nav_zoomedliberty.tga as well doing it the same way.

Giant planets, originally done by someone else, i added a bit to it.
Locate this file: DATA/SOLAR/PLANETS/planet_earth_3000.sph.(Could be any planet really)
First thing to do is make a copy of the planet_earth_3000.sph file,
and rename it to the size of the planet that you want, we'll call it "planet_earth_40000.sph",
Open it with the UTF editor, expand the tree and find the "RADIUS" entry and modify this as a float array and
change the number at the top to your new radius, in this case 40000.
Close and save the SPHfile.
Now u have to make the solar entry, and the system.ini entries(Object,deathZone,maybe Exclusion),
but this is about UTFs, theres heaps of tutes out there on modding systems if you dont know how yet.
Note: u might wanna leave the solar.ini size as is for a more easy to use map, i did.

 Post subject:
 Post Posted: Tue Sep 15, 2009 3:03 pm 
Site Admin
Site Admin
User avatar

Joined: Sun Jan 06, 2008 4:53 pm
Posts: 1041
Good stuff rasauul!


Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

The Freelancer Community Site by Team [RIP] » Board index » The FLC Public Forums » Freelancer Tutorials

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: