Jump to content
Sign in to follow this  
Milkman

Textures dissapear after name change

Recommended Posts

Well, I have been working on this addon all day. It is based off the very old B-52 addon from some time ago. I was able to get everything to work, (retextures & .cpp codeing) untill I decided to change the name of the B-52. The name of the originial file is Za_b52_beta1.pbo, I changed it to B52_Stratofortress.pbo when I repacked it. I changed all corresponding parts in the config.cpp so that the .p3d and .wav files would load properly. Everything worked perfectly, except for the textures. I am missing all textures on the aircraft now. It is just a white untextured aircraft. I know almost nothing about texturing and Oxygen does not work properly on my computer (Didnt config it right I think) so I really have no chance of putting the textures back on piece by piece. What puzzles me the most is the fact that the textures came off in the first place. They should have come along with the .p3d files when I changed the name of the .pbo I would think.

NOTE: Everything works except for the textures, the aircraft works ingame.

Share this post


Link to post
Share on other sites

There are 2 ways I know of to fix this. You cant do the first until you get o2 setup right...

text.jpg

First hold control key and double click a texture name in your texture window in o2. Then press E to bring up face properties and change the texture paths by hand for each and every texture used. This can take some time if you use alot of textures. The second way, quickest and easiest way, is with a hex editor that has a "replace all" function. Just open the p3d file in your hex editor and do a replace all. Search for the texture name entries, \Za_b52_beta1\... replace it with \B52_Stratofortress\ and save, takes about 5 seconds that way  smile_o.gif

Share this post


Link to post
Share on other sites

Hudson

Thanks for that, but two quick questions:

1) This only works with MLOD p3d and not ODOL, right?

2) If the old and new dir names are not the same length, do

you have to worry about over-writing/leaving blanks?

Hold on a minute, what''s that mesh I can see in the

background ... it's ... it's ... a Sue biggrin_o.gif

Share this post


Link to post
Share on other sites

It works for ODOL format also biggrin_o.gif with the hex editor (this is how everyone rexextures BIS vehicles). I havnt had any problems with changing the size of the texture name. Yet...

Share this post


Link to post
Share on other sites

Thankyou Hudson! I got it to work for everything I needed. I guess I had O2 configured somewhat right, I highlighted all the paths and typed in the new name. Funny this was I got an error saying something about the text being too long, but it doesnt effect the unit ingame, so nothing to worry about. smile_o.gif

Share this post


Link to post
Share on other sites
Quote[/b] ]The second way, quickest and easiest way, is with a hex editor that has a "replace all" function. Just open the p3d file in your hex editor and do a replace all.
Quote[/b] ] I havnt had any problems with changing the size of the texture name. Yet...

I have had no luck with changing the size of the texture name, hex editing works fine when using the same number of characters but my original path is too short.

If anyone has been able to do it could you let us know the method/editor you used.

Share this post


Link to post
Share on other sites

Just to clarify.

If using hex editing on ODOL you can change the number of letters. If doing it on MLOD then you must keep the number of letters the same.

SelectThis

Share this post


Link to post
Share on other sites

Thanks for the clarification.

This is probably common knowledge for people familiar with Oxygen, but I couldnt see it clearly at first in my rage at thinking I would have to retexture. crazy_o.gif

Using the face properties dialog (e key) you can edit the path of your textures. You do this texture by texture not face by face, so you only do it once per texture not for every face. Hit ctrl+a to select all the faces then type the current path and name of of the texture you want to edit into the text box at the bottom of the dialog -

faceproperties.jpg

and press the "filter by" button. You can then edit the path in the text box and click "Ok" and so on for all of the textures.

Edit typo

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×