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.

MicroScript not working on FPS Kit

MicroScript not working on FPS Kit

Postby Shando » 27 Aug 2015, 04:56

Hi All,

I have a (relatively) old scene that I've come back to for one of my plugins. It basically consists of a HUD, an FPS Kit and Sinbad.

Everything seems to be working OK, except the MicroScript attached to the FPS Kit?? I know it used to work fine.

For example, I put a "sky.lprint ( "onInit" );" in the onInit function, and it doesn't get printed. I have checked the code for errors several times (including using the syntax checker in LuaEdit) and I can't track any down :?

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: MicroScript not working on FPS Kit

Postby SolarPortal » 27 Aug 2015, 11:07

can you send the scene file as it will be quicker to find the problem manually :)
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: MicroScript not working on FPS Kit

Postby Shando » 27 Aug 2015, 14:48

Hi SP,

PM sent.

Thanks in advance (it's probably something really stupid that I've done!!)

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: MicroScript not working on FPS Kit

Postby SolarPortal » 27 Aug 2015, 14:59

Thanks, got it and will let you know :)
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: MicroScript not working on FPS Kit

Postby SolarPortal » 27 Aug 2015, 15:29

Hi Shando, i have found the problem. You have a table error in the chat_reader.lua script.
Code: Select all
Line 150: tblChatList[iCount - 1]["last"] = "Y";


I am not sure if this is meant to be there, but when i commented it out. The script in the FPS began working and the game played as expected. Talked to sinbad and gui and key presses worked :)

Hope this helps :)
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: MicroScript not working on FPS Kit

Postby Shando » 28 Aug 2015, 00:58

Hi SP,

I knew it would be something stupid :oops:

I should have used dot notation like this:

Code: Select all
tblChatList[iCount - 1].last = "Y";


Thanks

Shando

PS: I did also have another logic error in there as well :mrgreen:
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


Return to Fixed Bugs

Who is online

Users browsing this forum: No registered users and 2 guests