About Store Forum Documentation Contact



Post Reply 
"Could not load material"
Author Message
Tottel Offline
Member

Post: #1
"Could not load material"
When I compile and run my project it gives me a pop-up that it cannot load a certain material.

Can't load "Mtrl\terrain\map1\sand.mtrl"

The problem is, I'm not even using this material anywhere. I've double-checked my world, searched through my entire project folder with TextCrawler to find anything related to Sand, but nothing pops up.

Anything I can do to get rid of this?
10-29-2011 12:22 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: "Could not load material"
maybe it's used by some heightmap (even barely that you can't see it)
if you'll check callstack at exit moment you can investigate in what place in the code it's missing
10-29-2011 02:12 PM
Find all posts by this user Quote this message in a reply
Aerex Offline
Member

Post: #3
RE: "Could not load material"
I apologize for resurrecting this dead thread but I having the same issue. I am trying to run the dynamic create an object tutorial file but I get the error:"can't load obj/item/misc/barrael/0.obj

I thought it was due to this line :

PHP Code:
Game::ObjParamsPtr obj=Game::Objs.ptrRequire("Data/Obj/Item/Misc/Barrel/0.obj"); // get barrel object parameters 

But I can't find out where it is calling this file. Thanks for the support.
01-16-2012 01:56 AM
Find all posts by this user Quote this message in a reply
Aerex Offline
Member

Post: #4
RE: "Could not load material"
I got it to work. For anyone who has problems like this one make sure you set the data path in your code by using the following code:

PHP Code:
DataPath("Data"
01-19-2012 03:58 AM
Find all posts by this user Quote this message in a reply
Post Reply