Author Topic: Modding Planets  (Read 2211 times)

0 Members and 1 Guest are viewing this topic.

Offline jdjtcagle

  • 211
  • Already told you people too much!
I've made planets that I would love to have in game but won't show up... hmm....

I made the planet in photoshop cs2 named it as planete to override the existing one and put it under data/effects.

I made the background solid rgb 0,255,0 and the planet is 16 bit tga, any suggestions?

I'm not sure what format to make it or anything...
"Brings a tear of nostalgia to my eye" -Flipside
------------------------------------------
I'm an Apostolic Christian (Acts: 2:38)
------------------------------------------
Official Interplay Freespace Stories
Predator
Hammer Of Light - Omen of Darkness
Freefall in Darkness
A Thousand Years

 

Offline jdjtcagle

  • 211
  • Already told you people too much!
Nobody?  :(
"Brings a tear of nostalgia to my eye" -Flipside
------------------------------------------
I'm an Apostolic Christian (Acts: 2:38)
------------------------------------------
Official Interplay Freespace Stories
Predator
Hammer Of Light - Omen of Darkness
Freefall in Darkness
A Thousand Years

 

Offline blowfish

  • 211
  • Join the cult of KILL MY ROUTER!!!!!!!!!!1
To be honest, I have no experience with planets, but I think you should name them something else and use a TBM ( blahblahblah-str.tbm ) to add them.  I have had an issue before where a texture or effect just refuses to show up before though.

 

Offline jdjtcagle

  • 211
  • Already told you people too much!
TBM? Do you mean table.. TBL?  :confused:
"Brings a tear of nostalgia to my eye" -Flipside
------------------------------------------
I'm an Apostolic Christian (Acts: 2:38)
------------------------------------------
Official Interplay Freespace Stories
Predator
Hammer Of Light - Omen of Darkness
Freefall in Darkness
A Thousand Years

 

Offline Mad Bomber

  • Booooom
  • 210
TBM is modular table file. Works the same, but adds on to the existing relevant TBL rather than replacing it.

I'm surprised you haven't noticed them.
"What the hell!? I've got a Snuffleupagus on my scanners! The Snuffleupagus is active!"

 

Offline jdjtcagle

  • 211
  • Already told you people too much!
TBM is modular table file. Works the same, but adds on to the existing relevant TBL rather than replacing it.

I'm surprised you haven't noticed them.

Been away for a long while...

So I can create a second stars table with the NEW planet info only name it stars.tbm and it will act as an extension?
"Brings a tear of nostalgia to my eye" -Flipside
------------------------------------------
I'm an Apostolic Christian (Acts: 2:38)
------------------------------------------
Official Interplay Freespace Stories
Predator
Hammer Of Light - Omen of Darkness
Freefall in Darkness
A Thousand Years

 

Offline blowfish

  • 211
  • Join the cult of KILL MY ROUTER!!!!!!!!!!1
well, you name it somethinglikethis-str.tbm actually.  Your TBM should look something like this:

-------

$Bitmap: insertyourfilenamehere

#end

-------

Also, make sure the image is in data/effects

 

Offline Getter Robo G

  • 211
  • Elite Super Robot Pilot
Cart before the horse...

Why get into a new thing when you don't know if your image itself is valid?

I overrid and my 2048 Earth shows up no problem (screwed up as it is).

Find out WHY it's not working before you start monkeying around with new things.
That's my advice.

IF Sizzler comes back maybe he can look at it?  :nervous:
"Don't think of it as being out-numbered, think of it as having a WIDE target selection!"

"I am the one and ONLY Star Dragon..."
Proof for the noobs:  Member Search

[I'm Just an idea guy, NOT: a modeler, texturer, or coder... Word of advice, "Watch out for the ducks!"]

Robotech II - Continuing...
FS2 Trek - Snails move faster than me...
Star Blazers: Journey to Iscandar...
FS GUNDAM - The Myth lives on... :)

 

Offline jdjtcagle

  • 211
  • Already told you people too much!
I'll post the planet up here when I get off work in 2 hours
"Brings a tear of nostalgia to my eye" -Flipside
------------------------------------------
I'm an Apostolic Christian (Acts: 2:38)
------------------------------------------
Official Interplay Freespace Stories
Predator
Hammer Of Light - Omen of Darkness
Freefall in Darkness
A Thousand Years

 

Offline Polpolion

  • The sizzle, it thinks!
  • 211

I overrid and my 2048 Earth shows up no problem (screwed up as it is).

IF Sizzler comes back maybe he can look at it?  :nervous:

I said I'd take a look at it if you uploaded it in that previous thread :p. I'd be more than happy to do it :).

 

Offline Nuke

  • Ka-Boom!
  • 212
  • Mutants Worship Me
if i made some slight modifications to my atmo script, i bet i could make things orbit :D
I can no longer sit back and allow communist infiltration, communist indoctrination, communist subversion, and the international communist conspiracy to sap and impurify all of our precious bodily fluids.

Nuke's Scripting SVN

 

Offline Getter Robo G

  • 211
  • Elite Super Robot Pilot
It's posted there for DL.

"Don't think of it as being out-numbered, think of it as having a WIDE target selection!"

"I am the one and ONLY Star Dragon..."
Proof for the noobs:  Member Search

[I'm Just an idea guy, NOT: a modeler, texturer, or coder... Word of advice, "Watch out for the ducks!"]

Robotech II - Continuing...
FS2 Trek - Snails move faster than me...
Star Blazers: Journey to Iscandar...
FS GUNDAM - The Myth lives on... :)

 

Offline jdjtcagle

  • 211
  • Already told you people too much!
It won't let me attach it but here's what it looks like

WIP  :nervous:

"Brings a tear of nostalgia to my eye" -Flipside
------------------------------------------
I'm an Apostolic Christian (Acts: 2:38)
------------------------------------------
Official Interplay Freespace Stories
Predator
Hammer Of Light - Omen of Darkness
Freefall in Darkness
A Thousand Years

 

Offline Herra Tohtori

  • The Academic
  • 211
  • Bad command or file name
Uh-oh. That's pretty messed up...

Okay, planets. Or backgrounds in general. There are two ways - the Retail way and the Better way. In Retail way, you need to use 256-colour (8-bit) PCX format, and on this case the colour (0,255,0) aka pure green will be interpreted as transparent (if you use the transparency mode in the table file, but more of that later). However, this has numerous downsides, the biggest of them being that you cannot blend things to transparency, since only pure green is transparent. This means that all the blended/aliased grey-green parts would be displayed as grey-green ugly mix and only the pure green parts of the image would show themselves transparent.

Now, the Better way, courtesy of friendly neighbourhood SCP coders, offers a lot more versatile way to use background textures, because it allows the use of 32-bit RGBA images, in either TGA or DDS format depending on which is better for the image in question. The inclusion of alpha channel allows you to blend things smoothly into transparency, which is a godsend with atmospheric glows, nebulae and other fancy schmancy stuff that are supposed to blend into transparency.

[There is a third way which is usable exclusively for nebulae, and that's additive blending, which uses black on the image as transparent and the transparency is defined by colour intensity of the image; these use just 24-bit RGB images without alpha channel. For planets though, that isn't really viable option since you hardly want the shadowed part of your planet to be transparent, do you? Now you don't, so let's get on with it... :p]

So, you'll need to put your planet, including it's atmosphere and the shadowed side, on a transparent layer and save as TGA. Once you get the TGA one working, you can then see if DDS compression can be used without damaging the gradient-rich atmosphere portion of the image too severely, but while you're working on it, get the TGA working first.

Your planet should look something like this:



Save the image and open it in your image editing software of choice to compare with your planet.

---

As to how to actually make the game read the background, you need to make a newplanet-str.tbm modular table file, which tells to the game that there's new stuff to be used.

Make a mod folder called "newplanets" or whatever you like to call it on your Freespace2 directory (..\Freespace2\newplanets\). Then, create data directory on it. On it, create "tables" and "effects" -directories.

On the ..\Freespace2\newplanets\data\tables\ directory, create a new notepad document, type

Code: [Select]
$BitmapX: newplanet-01

#end

Then, save the file as newplanets-str.tbm (or in general, xxx-str.tbm, whatever you prefer to use as it's name; I suggest something descriptive :D)

This tells the game to find a transparency-blended background image called newplanet-01.* from the data used by the game. Now, you need to put the planet into the game with that filename. Simply save your ready alpha-blended planet to ..\Freespace2\newplanets\data\effects\ with filename newplanet-01.tga.

Now you will have that planet on your disposal when you start either FRED2_Open or FS2_Open with the command line -mod newplanets. To use a mod command line with FRED2_Open, create an icon to FRED2_Open, then open it's properties and add the appropriate command line options to the command line activated by the icon.
There are three things that last forever: Abort, Retry, Fail - and the greatest of these is Fail.

 

Offline Polpolion

  • The sizzle, it thinks!
  • 211
It's posted there for DL.



:nervous: woops. I guess I stopped checking it after my school got back in session. I'll get to it ASAP. Dunno when ASAP will be, though, since it's finals week at my school.

EDIT: And I guess ASAP would be right now; so here we are: Take that, mediafire!
« Last Edit: January 21, 2008, 09:44:31 pm by thesizzler »

 

Offline jdjtcagle

  • 211
  • Already told you people too much!
IT WORKED!
Thank you so much, and tbm's are sooo useful, I've missed so much!

Last time I was here Tartisan(SP?) was Raa' Torh :p

"Brings a tear of nostalgia to my eye" -Flipside
------------------------------------------
I'm an Apostolic Christian (Acts: 2:38)
------------------------------------------
Official Interplay Freespace Stories
Predator
Hammer Of Light - Omen of Darkness
Freefall in Darkness
A Thousand Years

  

Offline jdjtcagle

  • 211
  • Already told you people too much!
BTW, this is supposed to be the Fs2 Intro Deneb ;)
"Brings a tear of nostalgia to my eye" -Flipside
------------------------------------------
I'm an Apostolic Christian (Acts: 2:38)
------------------------------------------
Official Interplay Freespace Stories
Predator
Hammer Of Light - Omen of Darkness
Freefall in Darkness
A Thousand Years