Page 1 of 1

[Solved] Importing textures problem.....

Posted: Sat Jan 27, 2024 12:09 pm
by prime
Hi all,

I've repped apart a UT package with the intention of re-compiling (code is included so no problems there). However am having problems re-importing the texttures which I exported with umodel.exe.

My import code is :

Code: Select all

// 
// Texture to import.
// 2024-01-26, PHS.
//
class ImportTexture extends Object;

#exec TEXTURE IMPORT FILE="Textures\PageFooterLeft.tga" name="PageFooterLeft" 
#exec TEXTURE IMPORT FILE="Textures\PageFooterCenter.tga" name="PageFooterCenter" 
#exec TEXTURE IMPORT FILE="Textures\PageFooterRight.tga" name="PageFooterRight" 

defaultproperties
{
}
However when I try compiling this with ucc make I get :

Code: Select all

Parsing ImportTexture
Bad image format for texture import
Can't find file Textures\PageFooterLeft.tga for import.
Z:\tmp\UT\Server_32_Build\Gauntlet-10-BetaV4\Classes\ImportTexture.uc(7) : ExecWarning, Import texture PageFooterLeft from Textures\PageFooterLeft.tga failed
Bad image format for texture import
Can't find file Textures\PageFooterCenter.tga for import.
Z:\tmp\UT\Server_32_Build\Gauntlet-10-BetaV4\Classes\ImportTexture.uc(8) : ExecWarning, Import texture PageFooterCenter from Textures\PageFooterCenter.tga failed
Bad image format for texture import
Can't find file Textures\PageFooterRight.tga for import.
Z:\tmp\UT\Server_32_Build\Gauntlet-10-BetaV4\Classes\ImportTexture.uc(9) : ExecWarning, Import texture PageFooterRight from Textures\PageFooterRight.tga failed
Textures are here :
Textures.zip
(3.26 KiB) Downloaded 2 times
Anyone any idea what I'm doing wrong?

Cheers.

Phill.   
Auto merged new post submitted 34 minutes later
Ahh,

using ucc batchexport package.u textture bmp xxx

Then changing the import script to use bmp extensions had made it work :)

Cheers,

Phill.

Re: Importing textures problem.....

Posted: Sat Jan 27, 2024 6:01 pm
by Barbie
You should add SOLVED or something in subject and/or start of thread to avoid people wasting time with it.