Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: redmenace on April 03, 2003, 10:43:15 pm

Title: bug in texture replacement
Post by: redmenace on April 03, 2003, 10:43:15 pm
to whoever did the coding for the texture replacement. It isn't working in fred the when I select a texture and hit of it says missing however many texture files the model has. Also if I exit the ship editor and come back the textures i typed in float around. that is they are not where i wanted them. Also when I place a new ship of the exact same kind they have the same textures selected as the last one. Also are the textures supposed to show up in freD?
Title: bug in texture replacement
Post by: diamondgeezer on April 04, 2003, 05:50:38 am
Which version of FRED are you using? When I tried loading a mission using texture replacements in version 2.4, FRED just crashed on me :sigh:
Title: bug in texture replacement
Post by: redmenace on April 04, 2003, 10:29:48 am
umm the unreleased one. I haven't yet taken it into FS2 but in Fred it doesn't seem to want to work right with it.
Title: bug in texture replacement
Post by: Goober5000 on April 04, 2003, 04:16:21 pm
Can you rewrite you first post? :wtf: I can't make heads or tails out of it.

Texture replacement wasn't added to FRED until after the 3.5 release, but what's there in the unofficial EXE ought to work.  Unless I uploaded a bugfix after you downloaded whatever you're using.

I'll check it out this weekend.
Title: bug in texture replacement
Post by: redmenace on April 04, 2003, 09:35:56 pm
Ok first of all, when I go to replace one texture in fred(the unnoficial release) I go and I select the single texture i want to replace on that ship. I hit the ok button, then is says oh you are missing (#number of textures)-(the textures I have repleased). I am trying to replace the side texture of a NOVA from TBP inorder to get a name plate. when i get that message I hit ok. not if I place a second nova, the textures are replace on it also(the second nova). Now if go back into the editor(edit the NOVA) and hit texture replacement the textures that is matched with the textures before are not match with the texture I selected before to replace. On either I believe. Also can i have multiple ships(of the same POF) with different texture replacements? Second do these texture replacements show up in fred automatically? Also I have been modifying the textures from TBP by using gimp and creating a transparent layer over the PCX file then combining the layers when I am satisfied with the location. Is this right? Also, Goob, If I am not doing this right please tell me because I would like the beta test the Texture replacement for you and te community. also what is the difference between the two options I saw? on the screen? Regular and duplicate I think. I am sorry this is probably all my fault.
Title: bug in texture replacement
Post by: Goober5000 on April 04, 2003, 10:41:24 pm
Paragraphs are your friend...

Quote
Originally posted by redmenace
Ok first of all, when I go to replace one texture in fred(the unnoficial release) I go and I select the single texture i want to replace on that ship. I hit the ok button, then is says oh you are missing (#number of textures)-(the textures I have repleased).


Interesting.  I managed to get that also... I'll have to have a look.

Quote
I am trying to replace the side texture of a NOVA from TBP inorder to get a name plate. when i get that message I hit ok. not if I place a second nova, the textures are replace on it also(the second nova).


I tried doing this with two Orions, but FRED kept track of it correctly.  Not sure why you are getting this.

Quote
Now if go back into the editor(edit the NOVA) and hit texture replacement the textures that is matched with the textures before are not match with the texture I selected before to replace. On either I believe.


Well they should be, and they work for me.  I'll try and have another look at the code.

Quote
Also can i have multiple ships(of the same POF) with different texture replacements?


Yes.

Quote
Second do these texture replacements show up in fred automatically?


If you mean do they appear on the ship models, the answer is no.  I'm not quite sure how to do that.

Quote
Also I have been modifying the textures from TBP by using gimp and creating a transparent layer over the PCX file then combining the layers when I am satisfied with the location. Is this right?


I dunno.  I don't use Gimp.  If you use Photoshop, I wrote up a nifty tutorial for making Orion nameplates, available here (http://www.geocities.com/ipw47/nameplates.html).

Quote
Also, Goob, If I am not doing this right please tell me because I would like the beta test the Texture replacement for you and te community.


Well, thanks - I appreciate it. :) Beta testing is very useful.

Quote
what  also what is the difference between the two options I saw? on the screen? Regular and duplicate I think.


I should put this in the readme.  Regular means that just the texture is replaced.  Duplicate model means that the entire model is replaced, keeping the old textures except for the ones that are changed.  They're just two different ways of doing it.  "Regular" is better if you're just replacing one or two textures, but "Duplicate Model" is better if you're replacing a whole bunch of textures.

Quote
I am sorry this is probably all my fault.


I don't think so.  Just more bugs we need to track down. :)
Title: bug in texture replacement
Post by: CP5670 on April 04, 2003, 10:41:46 pm
I am getting the same errors with the texture replacement feature. It also seems to have no effect in the game, at least with fs2_open 3.51. (I tried changing the textures on a cargo container to asteroid maps and saving despite the fred2 errors, but it looked normal in the game)
Title: bug in texture replacement
Post by: Goober5000 on April 04, 2003, 10:44:35 pm
The MOD itself works; the problem is getting FRED to work with it. :) If you edit the mission file directly, you should be able to see the results.  I'll go have another look at the FRED code.
Title: bug in texture replacement
Post by: CP5670 on April 04, 2003, 10:49:48 pm
Cool, I tried doing that and it worked perfectly. As you said, it is probably some FRED2 issue.
Title: bug in texture replacement
Post by: Goober5000 on April 05, 2003, 01:32:23 am
Fixed it; it was due to some obscure coding issue that I overlooked.  Works now. :)
Title: bug in texture replacement
Post by: redmenace on April 05, 2003, 02:50:04 pm
umm ok thats good. But we still need the rest of the bugs(if in fact they are bugs) fixed. However, I don't mean to be pushy but it is probably very important to see the changes on the craft in FRED: in the 3d field or in a little window like model view 32, where we can rotate the craft with our mouse and zoom in. Also we need a browse window. to select the files.