"Load Map - The load failed"
by Chris Cockcroft · in Torque Game Builder · 05/08/2005 (9:27 am) · 2 replies
Ok, I'm completely lost on this one.
When I first started on my game, I loaded things like my initial game settings and my tilemap in the setupT2DScene() function in the client.cs, like so:
This works fine - my settings load, followed by my tilemap, and then a new game begins.
But now, as I'm trying to split up the flow of my game, it makes more sense to load the game settings and tilemap when newGame() is called. Easy enough - I just moved the calls to loadGameSettings() and loadMap() to the start of newGame() :
The problem is, this doesn't work - when newGame() gets called, I get a "Load Map - The load failed" dialog box, and (obviously) the map doesn't load.
I can't see what I'm doing wrong since the actual order of the calls isn't changing. Any ideas?
When I first started on my game, I loaded things like my initial game settings and my tilemap in the setupT2DScene() function in the client.cs, like so:
// ***************************************** // // Add your custom code here... // // ***************************************** loadGameSettings(); loadMap( 0 ); newGame();
This works fine - my settings load, followed by my tilemap, and then a new game begins.
But now, as I'm trying to split up the flow of my game, it makes more sense to load the game settings and tilemap when newGame() is called. Easy enough - I just moved the calls to loadGameSettings() and loadMap() to the start of newGame() :
function newGame() {
loadGameSettings();
loadMap( 0 );
// The rest of newGame follows these two calls
}The problem is, this doesn't work - when newGame() gets called, I get a "Load Map - The load failed" dialog box, and (obviously) the map doesn't load.
I can't see what I'm doing wrong since the actual order of the calls isn't changing. Any ideas?
About the author
#2
I do not know why though unfortunately.
Maybe try deleting the ".dso" files and try again?
- Melv.
05/08/2005 (11:06 am)
T2D is saying above that it's being passed an empty string as indicated by the first error above.I do not know why though unfortunately.
Maybe try deleting the ".dso" files and try again?
- Melv.
Torque Owner Chris Cockcroft
This is my script for loading the map (which again, works fine when called from within setupT2DScene() ):
Do I need to alter the path?
Thanks again for any help you can spare :)