[Solved] Importing textures problem.....

Discussions about Coding and Scripting
Post Reply
prime
Novice
Posts: 18
Joined: Thu Feb 05, 2015 1:37 pm

[Solved] Importing textures problem.....

Post 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 1 time
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.
Last edited by prime on Sat Jan 27, 2024 10:31 pm, edited 1 time in total.
User avatar
Barbie
Godlike
Posts: 2808
Joined: Fri Sep 25, 2015 9:01 pm
Location: moved without proper hashing

Re: Importing textures problem.....

Post by Barbie »

You should add SOLVED or something in subject and/or start of thread to avoid people wasting time with it.
"Multiple exclamation marks," he went on, shaking his head, "are a sure sign of a diseased mind." --Terry Pratchett
Post Reply