This is where fixed bugs can be seen. Please do not post new bugs into this forum, it is purely to see what has been fixed and most topics will be locked.

FPS HUD not Starting Correctly 99% of the Time

FPS HUD not Starting Correctly 99% of the Time

Postby Shando » 22 Feb 2015, 04:02

Hi All,

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
Ryzen 7 4800H 16GB GTX1650 Win 11 64
Love, Hope, Strength http://www.lovehopestrength.co.uk
User avatar
Shando
Skyline Moderator
Skyline Moderator
 
Posts: 560
Joined: 06 Mar 2013, 22:35
Location: Moffat Beach, Queensland
Skill: Programmer
Skill: Scripter
Skill: Level Designer

Re: FPS HUD not Starting Correctly 99% of the Time

Postby SolarPortal » 22 Feb 2015, 12:08

i thought in lua, that an "else if" was written without a space as in "elseif".
This could be the source of the problem :)
Skyline Game Engine - Lead Dev.
Please provide as much info as possible when asking for help.


Specs: OS: Win 10 64bit, CPU: Intel i7 4770 3.4ghz x 4 core(8 threads), GPU: Nvidia GTX 1060 6GB, Ram: 16gig DDR3, Windows on 250gb Samsung Evo 860

Twitter: @SolarPortal
Instagram: @SolarPortal
User avatar
SolarPortal
Skyline Founder
Skyline Founder
 
Posts: 3631
Joined: 29 Jul 2012, 15:56
Location: UK
Skill: 3D Modeller
Skill: 2D Artist
Skill: Programmer
Skill: Level Designer

Re: FPS HUD not Starting Correctly 99% of the Time

Postby Shando » 22 Feb 2015, 14:52

oops :oops: c++ strikes again!!!
Ryzen 7 4800H 16GB GTX1650 Win 11 64
Love, Hope, Strength http://www.lovehopestrength.co.uk
User avatar
Shando
Skyline Moderator
Skyline Moderator
 
Posts: 560
Joined: 06 Mar 2013, 22:35
Location: Moffat Beach, Queensland
Skill: Programmer
Skill: Scripter
Skill: Level Designer

Re: FPS HUD not Starting Correctly 99% of the Time

Postby SolarPortal » 22 Feb 2015, 15:10

haha lol :P It gets us with the "then" & "end", we keep putting braces lol :P
Skyline Game Engine - Lead Dev.
Please provide as much info as possible when asking for help.


Specs: OS: Win 10 64bit, CPU: Intel i7 4770 3.4ghz x 4 core(8 threads), GPU: Nvidia GTX 1060 6GB, Ram: 16gig DDR3, Windows on 250gb Samsung Evo 860

Twitter: @SolarPortal
Instagram: @SolarPortal
User avatar
SolarPortal
Skyline Founder
Skyline Founder
 
Posts: 3631
Joined: 29 Jul 2012, 15:56
Location: UK
Skill: 3D Modeller
Skill: 2D Artist
Skill: Programmer
Skill: Level Designer

Re: FPS HUD not Starting Correctly 99% of the Time

Postby StarFire » 22 Feb 2015, 21:20

Yes we all get nailed by that one lol :lol:
Dream the Journey, Live the Experience!
User avatar
StarFire
Skyline Founder
Skyline Founder
 
Posts: 1678
Joined: 03 Jan 2012, 18:50
Location: UK
Skill: Great creative
Skill: Programmer
Skill: 3D Modeller
Skill: 2D Artist
Skill: Level Designer

Re: FPS HUD not Starting Correctly 99% of the Time

Postby Shando » 23 Feb 2015, 12:47

Unfortunately it's still not working :( I've checked every bit of code I can find in my Scene, and can't seem to locate any issues/typos??

Also, I am having issues with Particle Universe files. I keep getting log messages like this:

Code: Select all
failed to load the Particle universe resource:mp_bullettrail_05_large_b.pu


and

Code: Select all
ERROR: Particle Universe file spiralStars.pu does not exist!


I have placed the ".pu" files for my new particles (such as spiralStars.pu) in the Particles/Scripts folder of my Scene, the "pu_example.material" & "pu_mediapack_01.material" files in the Particles/Materials folder, and the relevant textures in the Particles/Textures folder. I have also added these folders to my resources.

Sometimes the particles work, and sometimes they don't :?:

Any help would be greatly appreciated.

Regards

Shando
Ryzen 7 4800H 16GB GTX1650 Win 11 64
Love, Hope, Strength http://www.lovehopestrength.co.uk
User avatar
Shando
Skyline Moderator
Skyline Moderator
 
Posts: 560
Joined: 06 Mar 2013, 22:35
Location: Moffat Beach, Queensland
Skill: Programmer
Skill: Scripter
Skill: Level Designer

Re: FPS HUD not Starting Correctly 99% of the Time

Postby SolarPortal » 27 Feb 2015, 16:45

sorry for the late response to this problem Shando. Lets get on it :P
Q> Is your script still proving to be a problem?

If you would like, i can take a look for you and try to locate the error.

Have you tried using a lua error checker from online. There are a few. Maybe this can help.
Skyline Game Engine - Lead Dev.
Please provide as much info as possible when asking for help.


Specs: OS: Win 10 64bit, CPU: Intel i7 4770 3.4ghz x 4 core(8 threads), GPU: Nvidia GTX 1060 6GB, Ram: 16gig DDR3, Windows on 250gb Samsung Evo 860

Twitter: @SolarPortal
Instagram: @SolarPortal
User avatar
SolarPortal
Skyline Founder
Skyline Founder
 
Posts: 3631
Joined: 29 Jul 2012, 15:56
Location: UK
Skill: 3D Modeller
Skill: 2D Artist
Skill: Programmer
Skill: Level Designer

Re: FPS HUD not Starting Correctly 99% of the Time

Postby Shando » 28 Feb 2015, 01:34

Hi SP,

No worries :)

OK, so after several hours of tearing out what little hair I have, it was a rogue ":" where a ";" should have been :oops:

All appears to be working now 8-)

Is there any chance of implementing a simple code checker in the "Script Editor" to easily eliminate these types of error??

Shando
Ryzen 7 4800H 16GB GTX1650 Win 11 64
Love, Hope, Strength http://www.lovehopestrength.co.uk
User avatar
Shando
Skyline Moderator
Skyline Moderator
 
Posts: 560
Joined: 06 Mar 2013, 22:35
Location: Moffat Beach, Queensland
Skill: Programmer
Skill: Scripter
Skill: Level Designer

Re: FPS HUD not Starting Correctly 99% of the Time

Postby SolarPortal » 28 Feb 2015, 10:55

great & well done that you have sorted it :) It can be a right pain in the backside when your code goes wrong and you cannot see the simple error. They are always the worst lol :P

Compile Error Checker:
We have already had another user ask for a compile error checker as they were stuck for days with the same syntax errors i believe. It is needed to make the coding easier and faster. It is already planned in, but i will move its priority up a bit. :)
I may go looking for an MIT license lua compiler to save time for now.
Skyline Game Engine - Lead Dev.
Please provide as much info as possible when asking for help.


Specs: OS: Win 10 64bit, CPU: Intel i7 4770 3.4ghz x 4 core(8 threads), GPU: Nvidia GTX 1060 6GB, Ram: 16gig DDR3, Windows on 250gb Samsung Evo 860

Twitter: @SolarPortal
Instagram: @SolarPortal
User avatar
SolarPortal
Skyline Founder
Skyline Founder
 
Posts: 3631
Joined: 29 Jul 2012, 15:56
Location: UK
Skill: 3D Modeller
Skill: 2D Artist
Skill: Programmer
Skill: Level Designer

Re: FPS HUD not Starting Correctly 99% of the Time

Postby SolarPortal » 28 Feb 2015, 16:08

Just been looking into in between compiles.

In the Lua Source folder when built, there is an .exe called "Luac.exe" which is the lua compiler for building apps in lua. It also has a built in parser on the command line using [-p]. I might be able to make use of this for syntax checking at least. Checking whether there are arguments passed into functions incorrectly will take time as all of skyline functions are independent to our lua libraries and an ordinary checker would fail them.
Skyline Game Engine - Lead Dev.
Please provide as much info as possible when asking for help.


Specs: OS: Win 10 64bit, CPU: Intel i7 4770 3.4ghz x 4 core(8 threads), GPU: Nvidia GTX 1060 6GB, Ram: 16gig DDR3, Windows on 250gb Samsung Evo 860

Twitter: @SolarPortal
Instagram: @SolarPortal
User avatar
SolarPortal
Skyline Founder
Skyline Founder
 
Posts: 3631
Joined: 29 Jul 2012, 15:56
Location: UK
Skill: 3D Modeller
Skill: 2D Artist
Skill: Programmer
Skill: Level Designer

Re: FPS HUD not Starting Correctly 99% of the Time

Postby Shando » 01 Mar 2015, 02:16

Hi SP,

Have you taken a look at LuaEdit (http://www.luaedit.org/) on SourceForge:

https://sourceforge.net/projects/luaedit/?source=typ_redirect

This has a function in the "Debug" menu called "Check Syntax", which I have tested on a copy of one of my scripts and it seems to work OK (obviously won't pick up errors for Skyline Functions, but could probably be extended??). It's available under a GNU Licence, and looks like it was written in C#.

Not sure if this will help at all.

Shando

UPDATE: Looks like it just calls a function in a dll:

Code: Select all
[DllImport("rdbglua52.dll", EntryPoint = "CheckLuaScriptSyntax", CharSet = CharSet.Ansi)]
private static extern bool CheckLua52ScriptSyntax(StringBuilder script, StringBuilder scriptName, StringBuilder errMsg, int errMsgLen);


Then the call is simply:

Code: Select all
checkResult = CheckLua52ScriptSyntax(script, scriptName, err, err.Capacity);


Unfortunately, I can't find any information at all about the dll :?
Ryzen 7 4800H 16GB GTX1650 Win 11 64
Love, Hope, Strength http://www.lovehopestrength.co.uk
User avatar
Shando
Skyline Moderator
Skyline Moderator
 
Posts: 560
Joined: 06 Mar 2013, 22:35
Location: Moffat Beach, Queensland
Skill: Programmer
Skill: Scripter
Skill: Level Designer

Re: FPS HUD not Starting Correctly 99% of the Time

Postby Shando » 01 Mar 2015, 09:18

There's also ZeroBrane Studio which is MIT licence (but they do request a donation):

http://studio.zerobrane.com/

This looks like it can be changed relatively(?) easily to add your own functions:

http://gamejolt.com/community/forums/topics/lua-any-good-ides/2329/

see 4th message from "paulclinger".

Regards

Shando
Ryzen 7 4800H 16GB GTX1650 Win 11 64
Love, Hope, Strength http://www.lovehopestrength.co.uk
User avatar
Shando
Skyline Moderator
Skyline Moderator
 
Posts: 560
Joined: 06 Mar 2013, 22:35
Location: Moffat Beach, Queensland
Skill: Programmer
Skill: Scripter
Skill: Level Designer

Re: FPS HUD not Starting Correctly 99% of the Time

Postby SolarPortal » 01 Mar 2015, 11:33

thanks, will check those out. :)
Skyline Game Engine - Lead Dev.
Please provide as much info as possible when asking for help.


Specs: OS: Win 10 64bit, CPU: Intel i7 4770 3.4ghz x 4 core(8 threads), GPU: Nvidia GTX 1060 6GB, Ram: 16gig DDR3, Windows on 250gb Samsung Evo 860

Twitter: @SolarPortal
Instagram: @SolarPortal
User avatar
SolarPortal
Skyline Founder
Skyline Founder
 
Posts: 3631
Joined: 29 Jul 2012, 15:56
Location: UK
Skill: 3D Modeller
Skill: 2D Artist
Skill: Programmer
Skill: Level Designer


Return to Fixed Bugs

Who is online

Users browsing this forum: No registered users and 2 guests

cron