X File Load Error

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
lesPaul456
Posts: 18
Joined: Sat Jan 02, 2010 4:48 pm

X File Load Error

Post by lesPaul456 »

Hello,

Whenever I tried to load .x files from one of my model packs, I get an error saying that only uncompressed .x files are supported. I didn't create the models.

Does anyone know how I load these files?
DarkRage4
Posts: 31
Joined: Wed Jul 29, 2009 11:07 pm
Location: Ontario, Canada
Contact:

Post by DarkRage4 »

Are they in like a zipped file? If so try doing:

device->getFileSystem()->addZipFileArchive("file");

and then under it load your .x file
lesPaul456
Posts: 18
Joined: Sat Jan 02, 2010 4:48 pm

Post by lesPaul456 »

Thanks for the reply.

No, their not in a zip file.
DarkRage4
Posts: 31
Joined: Wed Jul 29, 2009 11:07 pm
Location: Ontario, Canada
Contact:

Post by DarkRage4 »

What kind of file is it then, since you said model pack. It would be helpful to know so I could try to help ;)
lesPaul456
Posts: 18
Joined: Sat Jan 02, 2010 4:48 pm

Post by lesPaul456 »

It's a .x file from a model pack. Each model from the pack gives the same error.
DarkRage4
Posts: 31
Joined: Wed Jul 29, 2009 11:07 pm
Location: Ontario, Canada
Contact:

Post by DarkRage4 »

I couldn't say but from the file type and the error I would say that the files are corrupted.
lesPaul456
Posts: 18
Joined: Sat Jan 02, 2010 4:48 pm

Post by lesPaul456 »

It's weird. I can open the models using DarkGDK. However, I can't open them using Blender or Irrlicht...
DarkRage4
Posts: 31
Joined: Wed Jul 29, 2009 11:07 pm
Location: Ontario, Canada
Contact:

Post by DarkRage4 »

That is very odd.
lesPaul456
Posts: 18
Joined: Sat Jan 02, 2010 4:48 pm

Post by lesPaul456 »

I found out that the model is a .x compressed binary file, which is not supported by Irrlicht.
DarkRage4
Posts: 31
Joined: Wed Jul 29, 2009 11:07 pm
Location: Ontario, Canada
Contact:

Post by DarkRage4 »

You would need to uncompress the file, sadly I don't know how to uncompress .x files

I'm not even sure if its possibly :?
lesPaul456
Posts: 18
Joined: Sat Jan 02, 2010 4:48 pm

Post by lesPaul456 »

Thanks for the help DarkRage4.

I was able to find a link to an older version of MView.exe, which I can use to open some (but not all) of the models, and then save them as uncompressed .x files.

Thanks again!
DarkRage4
Posts: 31
Joined: Wed Jul 29, 2009 11:07 pm
Location: Ontario, Canada
Contact:

Post by DarkRage4 »

Glad to hear you got it mostly figured out :)
Post Reply