As per the title above, the FPS HUD in my Level is not starting correctly pretty much all the time. As far as I can tell, it is not running the "postInit ( )" function.
All I've done is added 4 new variables, and the following function:
- Code: Select all
function publicFn ( callingID, value )
if ( callingID == entity.getEntityIDFromTag ( "green" ) ) then
greenKey = true;
gameDisplayText ( "You now have the Green Key!" );
else if ( callingID == entity.getEntityIDFromTag ( "blue" ) ) then
blueKey = true;
gameDisplayText ( "You now have the Blue Key!" );
else if ( callingID == entity.getEntityIDFromTag ( "red" ) ) then
redKey = true;
gameDisplayText ( "You now have the Red Key!" );
-- else if ( callingID == entity.getEntityIDFromTag ( "artifact" ) ) then
-- artifact = true;
-- gameDisplayText ( "You now have the Artifact!" );
end
if ( greenKey and blueKey and redKey ) then
if ( artifact ) then
-- TODO:
gameDisplayText ( "You've collected everything! Time to get out of here!" ):
-- Activate EXIT
else
-- TODO:
gameDisplayText ( "Well Done! Only the Artifact to go now!" );
end
else if ( ( greenKey and blueKey ) or ( greenKey and redKey ) or ( redKey and bluKey ) ) then
-- TODO:
gameDisplayText ( "You now have 2 of the 3 Keys!" );
end
end
and this is the relevant part of the log:
- Code: Select all
_____________________________________________________________
|
| < GAME RUNNING >
|_____________________________________________________________
INFO: UI Document - Loaded
failed to load the Particle universe resource:mp2_explosion_26.pu
failed to load the Particle universe resource:mp_bullettrail_05_large_b.pu
failed to load the Particle universe resource:red_flare.pu
failed to load the Particle universe resource:Boom02.pu
ERROR: Particle Universe file Boom02.pu does not exist!
failed to load the Particle universe resource:red_flare.pu
failed to load the Particle universe resource:Boom02.pu
ERROR: Particle Universe file Boom02.pu does not exist!
failed to load the Particle universe resource:red_flare.pu
failed to load the Particle universe resource:Boom02.pu
ERROR: Particle Universe file Boom02.pu does not exist!
failed to load the Particle universe resource:red_flare.pu
failed to load the Particle universe resource:Boom02.pu
ERROR: Particle Universe file Boom02.pu does not exist!
ERROR: Sound file Bling.ogg Does Not Exist!
ERROR: Sound file Bling.ogg Does Not Exist!
ERROR: Sound file Bling.ogg Does Not Exist!
ERROR: Sound file Bling.ogg Does Not Exist!
failed to load the Particle universe resource:red_flare.pu
failed to load the Particle universe resource:Boom02.pu
ERROR: Particle Universe file Boom02.pu does not exist!
LUA: Script Active!
INFO: UI Document - Loaded
failed to load the Particle universe resource:default_boom1.pu
failed to load the Particle universe resource:mp2_explosion_26.pu
failed to load the Particle universe resource:mp_bullettrail_05_large_b.pu
failed to load the Particle universe resource:default_boom1.pu
failed to load the Particle universe resource:mp2_explosion_26.pu
failed to load the Particle universe resource:mp_bullettrail_05_large_b.pu
failed to load the Particle universe resource:default_boom1.pu
failed to load the Particle universe resource:mp2_explosion_26.pu
failed to load the Particle universe resource:mp_bullettrail_05_large_b.pu
failed to load the Particle universe resource:default_boom1.pu
failed to load the Particle universe resource:mp2_explosion_26.pu
failed to load the Particle universe resource:mp_bullettrail_05_large_b.pu
failed to load the Particle universe resource:default_boom1.pu
failed to load the Particle universe resource:mp2_explosion_26.pu
failed to load the Particle universe resource:mp_bullettrail_05_large_b.pu
failed to load the Particle universe resource:default_boom1.pu
failed to load the Particle universe resource:mp2_explosion_26.pu
failed to load the Particle universe resource:mp_bullettrail_05_large_b.pu
failed to load the Particle universe resource:default_boom1.pu
failed to load the Particle universe resource:mp2_explosion_26.pu
failed to load the Particle universe resource:mp_bullettrail_05_large_b.pu
failed to load the Particle universe resource:default_boom1.pu
failed to load the Particle universe resource:mp2_explosion_26.pu
failed to load the Particle universe resource:mp_bullettrail_05_large_b.pu
failed to load the Particle universe resource:default_boom1.pu
failed to load the Particle universe resource:mp2_explosion_26.pu
failed to load the Particle universe resource:mp_bullettrail_05_large_b.pu
failed to load the Particle universe resource:default_boom1.pu
failed to load the Particle universe resource:mp2_explosion_26.pu
failed to load the Particle universe resource:mp_bullettrail_05_large_b.pu
failed to load the Particle universe resource:default_boom1.pu
failed to load the Particle universe resource:mp2_explosion_26.pu
failed to load the Particle universe resource:mp_bullettrail_05_large_b.pu
failed to load the Particle universe resource:default_boom1.pu
failed to load the Particle universe resource:mp2_explosion_26.pu
failed to load the Particle universe resource:mp_bullettrail_05_large_b.pu
failed to load the Particle universe resource:default_boom1.pu
setPathCurrentNode() index out of range, defaulting to 0
setPathCurrentNode() index out of range, defaulting to 0
setPathCurrentNode() index out of range, defaulting to 0
setPathCurrentNode() index out of range, defaulting to 0
setPathCurrentNode() index out of range, defaulting to 0
setPathCurrentNode() index out of range, defaulting to 0
setPathCurrentNode() index out of range, defaulting to 0
_____________________________________________________________
|
| < GAME STOPPING >
|_____________________________________________________________
Regards
Shando