Getting an error when trying to load my mesh

Tutorials and discussions about Mapping - Introduce your own ones!
Post Reply
User avatar
PrinceOfFunky
Godlike
Posts: 1200
Joined: Mon Aug 31, 2015 10:31 pm

Getting an error when trying to load my mesh

Post by PrinceOfFunky »

It's a known, I'm not good to import meshes on UT XD. The problem now is that I have a mesh exported into obj, imported into MilkShape and then exported into an UT3D system("_a.3d", "_d.3d"), this is my uc class:

Code: Select all

class MyMesh expands Decoration;

#exec MESH IMPORT MESH=MyMesh ANIVFILE=MODELS\MyMesh_a.3d DATAFILE=MODELS\MyMesh_d.3d X=0 Y=0 Z=0
#exec MESH LODPARAMS MESH=MyMesh STRENGTH=0.5
#exec MESH ORIGIN MESH=MyMesh X=0 Y=0 Z=0 PITCH=0 YAW=0 ROLL=0

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

#exec MESHMAP SCALE MESHMAP=MyMesh X=0.03 Y=0.03 Z=0.06

#exec TEXTURE IMPORT NAME=MyMesh_Skin FILE=SKINS\MyMesh_Skin.bmp GROUP=Skins
#exec MESHMAP SETTEXTURE MESHMAP=MyMesh NUM=0 TEXTURE=MyMesh_Skin


defaultproperties
{
    DrawType=DT_Mesh
    Mesh=MyMesh
}
The paths are correct, the texture is imported fine, but if I try to view the mesh it gives me this error:
Fault.PNG
Fault.PNG (22.8 KiB) Viewed 1871 times
From what it says, I could suppose it's something about the skin array.
Do you know what's the problem? :/
"Your stuff is known to be buggy and unfinished/not properly tested"
User avatar
Barbie
Godlike
Posts: 2802
Joined: Fri Sep 25, 2015 9:01 pm
Location: moved without proper hashing

Re: Getting an error when trying to load my mesh

Post by Barbie »

Only a guess into the wild:

Code: Select all

Assertion failed: Mesh->Textures.Num()<=ARRAY_COUNT(TextureInfo)
Have you tried to reduce the number of used textures?
"Multiple exclamation marks," he went on, shaking his head, "are a sure sign of a diseased mind." --Terry Pratchett
User avatar
PrinceOfFunky
Godlike
Posts: 1200
Joined: Mon Aug 31, 2015 10:31 pm

Re: Getting an error when trying to load my mesh

Post by PrinceOfFunky »

Barbie wrote:Have you tried to reduce the number of used textures?
PrinceOfFunky wrote:

Code: Select all

#exec TEXTURE IMPORT NAME=MyMesh_Skin FILE=SKINS\MyMesh_Skin.bmp GROUP=Skins
#exec MESHMAP SETTEXTURE MESHMAP=MyMesh NUM=0 TEXTURE=MyMesh_Skin
Im using only one texture .o.
"Your stuff is known to be buggy and unfinished/not properly tested"
Spectra
Masterful
Posts: 542
Joined: Tue Jan 22, 2013 5:23 pm
Personal rank: Nullified!
Location: (X) Unable To Locate....

Re: Getting an error when trying to load my mesh

Post by Spectra »

Try NUM=1.
User avatar
PrinceOfFunky
Godlike
Posts: 1200
Joined: Mon Aug 31, 2015 10:31 pm

Re: Getting an error when trying to load my mesh

Post by PrinceOfFunky »

Rocky wrote:Try NUM=1.
Already tried, same error :<

I noticed that the MilkShape template .uc file had 91 texture imports arriving to NUM=91. Could it be the problem?
"Your stuff is known to be buggy and unfinished/not properly tested"
Spectra
Masterful
Posts: 542
Joined: Tue Jan 22, 2013 5:23 pm
Personal rank: Nullified!
Location: (X) Unable To Locate....

Re: Getting an error when trying to load my mesh

Post by Spectra »

So if NUM=91, then I assume that in Milkshape there are total of 91 groups??
Since Unreal can allow max upto 7/8 textures, maybe you will have regroup from 91 groups to 7/8 groups and export again.
User avatar
PrinceOfFunky
Godlike
Posts: 1200
Joined: Mon Aug 31, 2015 10:31 pm

Re: Getting an error when trying to load my mesh

Post by PrinceOfFunky »

Rocky wrote:So if NUM=91, then I assume that in Milkshape there are total of 91 groups??
Since Unreal can allow max upto 7/8 textures, maybe you will have regroup from 91 groups to 7/8 groups and export again.
I never used MilkShape, I used it twice only to try to convert an OBJ file into a UT3D file.
The obj file I'm usign is exported from Sketchup, I exploded everything into sketchup and made up 6 groups overall. When I try to import it into MilkShape, it now shows me there are 77 groups and when I try to view the mesh on UnrealEd it just crashes without giving me any error now.

EDIT: That's what Sketchup shows with the logs when I export the model into an OBJ file:

Code: Select all

SketchUp Entities processed:

  6 Groups
  1519  Faces
  6  Materials

OBJ Entities exported:

  2018 Faces
  6 Materials
"Your stuff is known to be buggy and unfinished/not properly tested"
Spectra
Masterful
Posts: 542
Joined: Tue Jan 22, 2013 5:23 pm
Personal rank: Nullified!
Location: (X) Unable To Locate....

Re: Getting an error when trying to load my mesh

Post by Spectra »

PrinceOfFunky wrote:
Rocky wrote:So if NUM=91, then I assume that in Milkshape there are total of 91 groups??
Since Unreal can allow max upto 7/8 textures, maybe you will have regroup from 91 groups to 7/8 groups and export again.
I never used MilkShape, I used it twice only to try to convert an OBJ file into a UT3D file.
The obj file I'm usign is exported from Sketchup, I exploded everything into sketchup and made up 6 groups overall. When I try to import it into MilkShape, it now shows me there are 77 groups and when I try to view the mesh on UnrealEd it just crashes without giving me any error now.
Just select all the 77 groups in MilkShape and regroup them to one and then export.
User avatar
PrinceOfFunky
Godlike
Posts: 1200
Joined: Mon Aug 31, 2015 10:31 pm

Re: Getting an error when trying to load my mesh

Post by PrinceOfFunky »

Rocky wrote:Just select all the 77 groups in MilkShape and regroup them to one and then export.
Thanks, it "worked".
Bike.png
PrinceOfFunky wrote:It's a known, I'm not good to import meshes on UT XD.
"Your stuff is known to be buggy and unfinished/not properly tested"
User avatar
Gustavo6046
Godlike
Posts: 1462
Joined: Mon Jun 01, 2015 7:08 pm
Personal rank: Resident Wallaby
Location: Porto Alegre, Brazil
Contact:

Re: Getting an error when trying to load my mesh

Post by Gustavo6046 »

The meshes I export from Blender (and, more recently, convert directly from Collada .obj) have a very similiar issue. I think it's actually the very same! So finding out the solution for that will most probably solve the meshit I'm going through :P
"Everyone is an idea man. Everybody thinks they have a revolutionary new game concept that no one else has ever thought of. Having cool ideas will rarely get you anywhere in the games industry. You have to be able to implement your ideas or provide some useful skill. Never join a project whose idea man or leader has no obvious development skills. Never join a project that only has a web designer. You have your own ideas. Focus on them carefully and in small chunks and you will be able to develop cool projects."

Weapon of Destruction
Post Reply