Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: TopAce on May 07, 2004, 10:47:02 am

Title: JPG/TGA in FRED?
Post by: TopAce on May 07, 2004, 10:47:02 am
Can I somehow force FRED to read JPG backgrounds?
It keeps saying that the requested file was not found. I use your marvelous mod switching system, all files are in the appropriate places. I also tried using the -fredhtl flag. In theory, the -jpgtga or -32bit parameters are unreadable for FRED.
Title: Re: JPG/TGA in FRED?
Post by: taylor on May 07, 2004, 12:53:50 pm
Quote
Originally posted by TopAce
Can I somehow force FRED to read JPG backgrounds?

There was a bug in CFILE (just noticed it yesterday) that made JPG and DDS files not be read from a VP or outside of the base data directory.  This is fixed in CVS now.  You can do a new build yourself, wait for a new one, or just put any JPG textures in data for now.  Also, Fred (really just code.lib from fs2_open) needs to be compiled with DevIL support to actually load a JPG.
Title: JPG/TGA in FRED?
Post by: TopAce on May 08, 2004, 06:32:25 am
Your superb -mod method.
Title: JPG/TGA in FRED?
Post by: taylor on May 09, 2004, 10:13:37 am
All of this should be fixed now.  -jpgtga will work as expected and Fred will initialize the graphics subsystem at 32bit color when -jpgtga is used.  It will continue to be 16bit color otherwise.

So with -jpgtga you get something like this:

(http://icculus.org/~taylor/fso/pics/fred2_tga.jpg)

That what you wanted? :)
Title: JPG/TGA in FRED?
Post by: karajorma on May 09, 2004, 10:35:11 am
Excellent :D

Where's the build?
Title: JPG/TGA in FRED?
Post by: taylor on May 09, 2004, 10:54:55 am
Quote
Originally posted by karajorma
Where's the build?

All of the changes are in CVS but I don't want to flood the market with another build right now.  There are already builds that should hopefully be 3.6 before long.  There seems to be a couple of last minute problems that need to be verified and delt with.

It's possible that you might find something interesting here (http://icculus.org/~taylor/fso/testing) though ;7
Title: JPG/TGA in FRED?
Post by: karajorma on May 09, 2004, 11:00:08 am
It's just that I'm actually FREDding today for a change so it would be nice to have :)

Can see why you wouldn't want to make a release thread today though :)
Title: JPG/TGA in FRED?
Post by: RandomTiger on May 09, 2004, 11:37:25 am
Quote
Originally posted by taylor
(http://icculus.org/~taylor/fso/pics/fred2_tga.jpg)


Damn, that looks good!

I've got a few bugs to sort out in fred before I want to release a fred2_open build.
Title: JPG/TGA in FRED?
Post by: SadisticSid on May 09, 2004, 12:01:26 pm
Is the strange waypoint rendering fixed yet?
Title: JPG/TGA in FRED?
Post by: RandomTiger on May 09, 2004, 12:21:02 pm
Probably not
Title: JPG/TGA in FRED?
Post by: TopAce on May 10, 2004, 01:57:50 pm
Quote
Originally posted by SadisticSid
Is the strange waypoint rendering fixed yet?


Do you have that, too?
One more thing I noticed in the newest FRED:
Briefing icons are not displayed.
Title: JPG/TGA in FRED?
Post by: RandomTiger on May 10, 2004, 02:00:10 pm
Report all bugs not already logged in mantis with before and after screenshots.
I probably already know but its best to make sure.
Title: JPG/TGA in FRED?
Post by: TopAce on May 10, 2004, 02:25:57 pm
If I could log in.
Can I ask you to erase my account, so I can re-register?
My boot is full with registering Mantis. It is time to see what that thing is. (I never could get throught the login :nervous: ).
Title: JPG/TGA in FRED?
Post by: kasperl on May 10, 2004, 02:31:55 pm
just make a TopAce2 account or something.
Title: JPG/TGA in FRED?
Post by: TopAce on May 10, 2004, 02:33:18 pm
Two accounts? I thought you would take my head if I had two accounts. You told ...
Title: JPG/TGA in FRED?
Post by: kasperl on May 10, 2004, 02:37:26 pm
hey?

just make sure you can enter the damn system, the name hardly matters, as long as we can trace it back to you.