logo
Main

Forums

Downloads

Unreal-Netiquette

Donate for Oldunreal:
Donate

borderline

Links to our wiki:
Wiki

Walkthrough

Links

Tutorials

Unreal Reference

Usermaps

borderline

Contact us:
Submit News
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Texture import fails (Read 150 times)
Rubie
Betatester
Offline


Retired

Posts: 135
Location: Belgium
Joined: Jan 19th, 2013
Gender: Male
Texture import fails
Apr 15th, 2017 at 11:23am
Print Post  
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
} 

  

I have no signature Smiley
Back to top
IP Logged
 
Gizzy
Junior Member
Betatester
**
Offline


Oldunreal Member

Posts: 52
Joined: Jul 10th, 2014
Re: Texture import fails
Reply #1 - Apr 15th, 2017 at 1:27pm
Print Post  
This line
Rubie wrote on Apr 15th, 2017 at 11:23am:
Log: Can't find file 'RuneDecorationTex' for import


implies that the file doesn't exist in <projectname>/textures

Also

Rubie wrote on Apr 15th, 2017 at 11:23am:
#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
  
Back to top
 
IP Logged
 
han
Global Moderator
Unreal Rendering Guru
Developer Team
*****
Offline


Oldunreal member

Posts: 594
Location: Germany
Joined: Dec 10th, 2014
Gender: Male
Re: Texture import fails
Reply #2 - Apr 15th, 2017 at 3:36pm
Print Post  
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.
Back to top
 
IP Logged
 
Rubie
Betatester
Offline


Retired

Posts: 135
Location: Belgium
Joined: Jan 19th, 2013
Gender: Male
Re: Texture import fails
Reply #3 - Apr 17th, 2017 at 12:37pm
Print Post  
han wrote on Apr 15th, 2017 at 3:36pm:
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 Smiley

  

I have no signature Smiley
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint
Bookmarks: del.icio.us Digg Facebook Google Google+ Linked in reddit StumbleUpon Twitter Yahoo