For direct access use https://forums.oldunreal.com
It's been quite a while since oldunreal had an overhaul, but we are moving to another server which require some updates and changes. The biggest change is the migration of our old reliable YaBB forum to phpBB. This system expects you to login with your username and old password known from YaBB.
If you experience any problems there is also the usual "password forgotten" function. Don't forget to clear your browser cache!
If you have any further concerns feel free to contact me: Smirftsch@oldunreal.com

Texture import fails

Questions and tools for modelling.
Post Reply
User avatar
Rubie
OldUnreal Member
Posts: 170
Joined: Sat Jan 19, 2013 9:30 am
Location: Belgium
Contact:

Texture import fails

Post by Rubie »

Hi Guys,

I have a tiny problem over here:
the texture I want reside in a Group=> Deco
but even if I specify the group into the UC it does have same error.
I can set the texture after the files are compiled and once loaded into Editor and save the package, but I want to figure it out from the uc file directly so if I have to recompile all after if I add anotherone I dont need to setup all this again and again.

Log: Parsing Barrel
DevLoad: Get PackageLinker for file: ..\Textures\RuneDecorationtex.utx
DevLoad: Create new linker for ../RuneTextures/RuneDecorationTex.utx
Log: 760.0ms Loading: Package RuneDecorationtex (3118867 bytes)
Log: Importing Barrel
Log:  * Triangles  100
Log:  * Vertices   77
Log:  * AnimFrames 30
Log:  * FrameSize  308
Log:  * AnimSeqs   0
Log: Importing triangles
Log:  Mesh Textures: 3 LodItems: 3
Log: Importing vertices
Log: BoundingBox (-166.000000,-176.000000,-110.000000)-(166.000000,176.000000,110.000000) BoundingSphere (0.000000,0.000000,0.000000) 176.959137
Log: Mesh LOD processing: Barrel
Log: FactoryCreateBinary: Texture with TextureFactory (0 0 RuneDecorationTex)
Log: Can't create FileReader for RuneDecorationTex
Log: Can't find file 'RuneDecorationTex' for import
ExecWarning: C:\Unreal\RuneDecoration\Classes\Barrel.uc(18) : ExecWarning, Import texture Barrelbarrel from RuneDecorationTex failed
Log: Added texture number: 0 total 3 for mesh Barrel

any Idea's ?

this is the UC code below:

Code: Select all

class Barrel extends RuneDecoration;

#exec obj load file=..\Textures\RuneDecorationtex.utx

#exec MESH IMPORT MESH=Barrel ANIVFILE=MODELS\Barrel_a.3d DATAFILE=MODELS\Barrel_d.3d X=0 Y=0 Z=0
#exec MESH ORIGIN MESH=Barrel X=0 Y=0 Z=0 YAW=0 PITCH=128 ROLL=0

#exec MESH SEQUENCE MESH=Barrel SEQ=All STARTFRAME=0 NUMFRAMES=1
#exec MESH SEQUENCE MESH=Barrel SEQ=Still STARTFRAME=0 NUMFRAMES=1

#exec MESHMAP NEW MESHMAP=Barrel MESH=Barrel
#exec MESHMAP SCALE MESHMAP=Barrel X=0.1 Y=0.1 Z=0.2

#exec TEXTURE IMPORT NAME=Barrelbarrel FILE=RuneDecorationTex
#exec MESHMAP SETTEXTURE MESHMAP=Barrel NUM=0 TEXTURE=Barrelbarrel


defaultproperties
{
    DrawType=DT_Mesh
    Mesh=Barrel
    bCollideWhenPlacing=True
    bCollideActors=True
    bCollideWorld=True
    bBlockActors=True
    bBlockPlayers=True
    CollisionRadius=32.00000
    CollisionHeight=45.50000
    bstatic=true
}
Last edited by Rubie on Sat Apr 15, 2017 11:31 am, edited 1 time in total.
I have no signature :)
User avatar
Gizzy
OldUnreal Member
Posts: 1468
Joined: Thu Jul 10, 2014 7:13 pm

Re: Texture import fails

Post by Gizzy »

This line
Log: Can't find file 'RuneDecorationTex' for import
implies that the file doesn't exist in /textures

Also
#exec TEXTURE IMPORT NAME=Barrelbarrel FILE=RuneDecorationTex
#exec MESHMAP SETTEXTURE MESHMAP=Barrel NUM=0 TEXTURE=Barrelbarrel
if the texture your're trying to use is already in RuneDecorationTex (Barrelbarrel in this case), them remove the import line and it should work
Last edited by Gizzy on Sat Apr 15, 2017 1:28 pm, edited 1 time in total.
User avatar
han
Global Moderator
Posts: 686
Joined: Wed Dec 10, 2014 12:38 am

Re: Texture import fails

Post by han »

Code: Select all

#exec TEXTURE IMPORT NAME=Barrelbarrel FILE=RuneDecorationTex
FILE= expects a filename, which RuneDecorationTex probably is not.
HX on Mod DB. Revision on Steam. Löffels on Patreon.
User avatar
Rubie
OldUnreal Member
Posts: 170
Joined: Sat Jan 19, 2013 9:30 am
Location: Belgium
Contact:

Re: Texture import fails

Post by Rubie »

Code: Select all

#exec TEXTURE IMPORT NAME=Barrelbarrel FILE=RuneDecorationTex
FILE= expects a filename, which RuneDecorationTex probably is not.

Did fixed like this:

Code: Select all

#exec MESHMAP SETTEXTURE MESHMAP=Barrel NUM=0 TEXTURE=Barrelbarrel TLOD=10
#exec TEXTURE IMPORT NAME=Barrelbarrel FILE=Textures\Barrelbarrel.pcx GROUP=Deco FLAGS=2 RuneDecorationTex=Barrelbarrel
works now also this helps to load the good textures for example from another mesh I compiled:

Code: Select all

defaultproperties
{
    DrawType=DT_Mesh
    Mesh=LavaChunk
    Bstatic=true
    bCollideWhenPlacing=True
      bCollideActors=True
      bCollideWorld=True
      bBlockActors=True
      bBlockPlayers=True
      CollisionRadius=72.00000
      CollisionHeight=16.00000
    Tag=LavaChunk 
    Skin=RuneDecoration.Chunks.LavaChunklava_chunk
}

thanks guys for helping me :)

I have no signature :)
Post Reply

Return to “Modelling”