Game Development Community

Unique loading screen for each mission {Resource Help}

by J L · in Torque Game Engine · 03/26/2009 (9:23 am) · 2 replies

Using this resource www.garagegames.com/community/resources/view/14978
I have entered the appropriate place as you can see, but my screen is always blank. I named my jpg file loading-Barebones but it just shows a white screen. Can anyone give me a hand ?

// Reset the loading progress controls:
//added by 174studios
   %missionShortName = FileName(%missionName);
   %missionShortName = StrReplace(%missionShortName, ".mis", "");
   LoadingGui.setBitmap("starter.fps/client/ui/loading-" @ %missionShortName);
// end add
   LoadingProgress.setValue(0);
   LoadingProgressTxt.setValue("LOADING DATABLOCKS");
}

#1
03/26/2009 (9:50 am)
Make sure your path is correct: "starter.fps/client/ui/" ... cos the system will be looking for the image in that location named loading-Barebones ... if it is just blank then that normally is a sign of a missing path.

To test this ... replace the line: LoadingGui.setBitmap("starter.fps/client/ui/loading-" @ %missionShortName);

with:
LoadingGui.setBitmap("starter.fps/client/ui/loading-Barebones");

...and see if your image shows ... if not ... check the path.
#2
03/27/2009 (7:27 am)
no it didnt show. Ill post a bigger portion of the script later