Resmanager @ 723 - what's that?
by Stefan Lundmark · in Torque Game Engine · 05/06/2004 (10:04 am) · 7 replies
I've finally gotten to the bottom of my problems, only that I don't know what this error message means.
This is the code for the error message @ line 723.
The error message basically is what's inside the AssertFatal ()
Guess it's easy but for me it ain't. Any pointers? It seems to be pretty random.
This is the code for the error message @ line 723.
The error message basically is what's inside the AssertFatal ()
AssertFatal (createFunction, "ResourceObject::construct: NULL resource create function.");
Guess it's easy but for me it ain't. Any pointers? It seems to be pretty random.
About the author
#2
05/06/2004 (2:08 pm)
Too bad it doesn't show WHAT file it is :/
#3
It only happends when I try to join a server, not when making a single player game. Anything new you might think of that's wrong? :S
05/06/2004 (2:24 pm)
BenIt only happends when I try to join a server, not when making a single player game. Anything new you might think of that's wrong? :S
#4
This error either occurs because the extension is "" or because there is some extension the engine doesn't know about.
For a first check, make sure all your file paths/names are correct. Also make sure you don't have any images with no extension, especially if you are using BitmapButtons. The reason for this is when the engin esearches for images, it searches for ALL extensions including a files with no extensions. If you are defining something to use an image called "foo.bmp" but also have a file "foo." in the same directory, you can cause this error. It tries to load "foo."
05/06/2004 (2:32 pm)
I've seen this happen a few times because of bad datablocks, or files. The resource manager correlates a create function with an extension. For example it knows that the extension .bmp has a certain function for creation.This error either occurs because the extension is "" or because there is some extension the engine doesn't know about.
For a first check, make sure all your file paths/names are correct. Also make sure you don't have any images with no extension, especially if you are using BitmapButtons. The reason for this is when the engin esearches for images, it searches for ALL extensions including a files with no extensions. If you are defining something to use an image called "foo.bmp" but also have a file "foo." in the same directory, you can cause this error. It tries to load "foo."
#5
You know, you were right.
I had switched from release to debug.
Release had .dat instead of .dso
When I ran debug, it compiled the scripts again and created their .dso's.
now there was a .dso file for each script, and also a .dat file.
Could this be the case? I deleted all .dso's and now it loads.
Thanks John & Ben.
05/06/2004 (2:39 pm)
JohnYou know, you were right.
I had switched from release to debug.
Release had .dat instead of .dso
When I ran debug, it compiled the scripts again and created their .dso's.
now there was a .dso file for each script, and also a .dat file.
Could this be the case? I deleted all .dso's and now it loads.
Thanks John & Ben.
#6
The resource manager for some reaosn I never figured out, tries to load the files with all extensions. so if you have a foo.dso and a foo.dat it tries to load both, and of course doesn't know what to do with .dat
05/06/2004 (2:45 pm)
Yep :)The resource manager for some reaosn I never figured out, tries to load the files with all extensions. so if you have a foo.dso and a foo.dat it tries to load both, and of course doesn't know what to do with .dat
#7
Thanks a bunch though for the help.
05/06/2004 (3:24 pm)
I never really understood why images & scripts weren't defined with their extensions. :)Thanks a bunch though for the help.
Associate Kyle Carter