Imported model won't work

Posted By: ETOX

Imported model won't work - 08/16/07 03:28

I imported a 3ds model that I made, and then saved it as .mdl, it imported into WED just fine, but when I went to run the game, it would not load that model. What am I doing wrong?
Posted By: Michael_McCrickard

Re: Imported model won't work - 08/16/07 14:17

How many polygons are in the model?
Posted By: ETOX

Re: Imported model won't work - 08/16/07 17:12

The most we've had are 5000 so far, but even the low poly models won't load.
Posted By: dudeBot

Re: Imported model won't work - 08/16/07 17:33

When you run the game are you getting any error messages?
Posted By: ETOX

Re: Imported model won't work - 08/16/07 21:14

no, the game runs fine, the only error is a message telling me that it can't load the model
Posted By: ETOX

Re: Imported model won't work - 08/16/07 21:20

by the way, this is the trial version, I'm trying to work out all the kinks before I buy it.
Posted By: dudeBot

Re: Imported model won't work - 08/16/07 22:17

If the error says that it can't load the model,
usually it means that it cant find it.

If your model is in a folder called "models" for instance,
in cScript, you need to include that information in one of your .wdl files.

I usually do this in the .wdl that contains my "main" function.

Adding the script...

Code:
   
PATH "models\\";



...will let the engine know to look in that folder for game assets.

If you are using liteC you will have to set these paths in a .wdl
file, and if I'm not mistaken, the name of that .wdl needs to be
the same as the .c file that contains the "main" function.
If I am mistaken, I'm sure that someone here will set me straight

Anyway, you need to make sure that at the very least any models that
you are using are at the same level as the script with the "main" function.

This error usually means "I can't find the model" not "There's something
wrong with your model and I refuse to load it"
© 2023 lite-C Forums