Scripts / Runtime error: 312() ?

Author
Message
willipoldi
GameGuru TGC Backer
7
Years of Service
User Offline
Joined: 17th Oct 2016
Location: Switzerland and Netherlands
Posted: 13th Nov 2016 21:37
What does this mean?
I'm working on a stamina script that works great as a function and as a hud display. But as I can't even do such basic things like disable run or much better have access to walk and run speed of the player in Game-Guru, I tried it with FreezePlayer(). A workaround that works partly but suddenly I get the mentioned error!
PM
synchromesh
Forum Support
10
Years of Service
User Offline
Joined: 24th Jan 2014
Location:
Posted: 13th Nov 2016 21:56 Edited at: 13th Nov 2016 21:57
Well the Runtime error is listed here ...
RUNTIMEERROR_SPRITESIZEILLEGAL 312

Lee has added this command to the next release regarding Running that may help ..
Quote: "Added new LUA command "SetPlayerRun(x)" where zero in X will disable player ability to run"
The only person ever to get all his work done by "Friday" was Robinson Crusoe..
PM
willipoldi
GameGuru TGC Backer
7
Years of Service
User Offline
Joined: 17th Oct 2016
Location: Switzerland and Netherlands
Posted: 13th Nov 2016 22:48 Edited at: 14th Nov 2016 00:13
Many thanks for your reply. That helped me to find out there was an error in my code with sprite size . So for the moment to freeze the player is workaround. But it's good news that this "SetPlayerRun(x)" command will come. And I hope very soon! Because implementing even basic features takes soooo much time with GG! And as said above, script access to such basic things like walk speed and run speed (and to all player parameters, btw) in my opinion is just a must be.
PM
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 14th Nov 2016 00:15
it will be linked to the sprite youre using to display the stamina bar i guess, accepted range for sprite size is 1 ~ 100
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
willipoldi
GameGuru TGC Backer
7
Years of Service
User Offline
Joined: 17th Oct 2016
Location: Switzerland and Netherlands
Posted: 14th Nov 2016 00:20
Thanks smallg, I found out in the meantime - thanks to synchromesh's help, but as every post here has to be approved, it takes time for the post to appear here........
PM
synchromesh
Forum Support
10
Years of Service
User Offline
Joined: 24th Jan 2014
Location:
Posted: 14th Nov 2016 01:27
Quote: " but as every post here has to be approved, it takes time for the post to appear here........"

Its only the first few ...All first time posters are moderated to prevent spamming ,,,,You should be good to go soon
The only person ever to get all his work done by "Friday" was Robinson Crusoe..
PM
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 14th Nov 2016 11:55
no worries, welcome to the forums
sprint limit is one of the things i was first asked for when i started coding here in GG so it's good to see it might finally be truly possible in the next update, however i do also have a script similar to your own which you might find useful if you have any further issues
https://forum.game-guru.com/outbound?url=https%3A%2F%2Fforum.game-guru.com%2Fthread%2F207801%3Fpage%3D12%23msg2538382
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11

Login to post a reply

Server time is: 2024-04-30 21:40:55
Your offset time is: 2024-04-30 21:40:55