PDA

View Full Version : Is there a thread to post ruleset wizard queries?



BigBadBazz
December 14th, 2020, 13:39
I have an issue

When I load the ruleset in Fantasy grounds I get 'Failed to load script buffer for every field I have an onVlueChanged() event for?

I have tried everything, I know it is something obvious any ideas?

Trenloe
December 14th, 2020, 13:51
Do you have an issue with the base ruleset wizard? If so, then you can log issues here: https://fantasygrounds.com/forums/showthread.php?61387-Ruleset-Wizard-The-new-Ruleset-development-environment

If you're trying to modify the code yourself, then The Workshop (where this thread is now) is the best place to discuss specifics of what you're trying to do and what issues you're having.

damned
December 14th, 2020, 15:03
assuming this is a typo?
onVlueChanged

BigBadBazz
December 14th, 2020, 16:46
yep

just had an eye op all blurry

OnValueChanged

following no 2 of your tutorial
42040

damned
December 14th, 2020, 21:10
That error says that it is expecting a ")" - just the bracket, not the quotes - before the ;

BigBadBazz
December 15th, 2020, 10:32
That error says that it is expecting a ")" - just the bracket, not the quotes - before the ;

Missing the obvious

A set up a character without the script, and the ruleset now loads, as does the character


But when I change will i get the following
42050


is this to do with lua version?

damned
December 15th, 2020, 10:34
Post the EXT or PAK file please.

BigBadBazz
December 15th, 2020, 11:39
I didnt mean for you to debug, thought you may know the answer

Thanks

Trenloe
December 15th, 2020, 11:47
Make sure the case of any FG API commands (and LUA commands) exactly matches.

You need a lower case "g" - getDatabaseNode.

Refer to the API documentation in the Wiki: https://fantasygroundsunity.atlassian.net/wiki/spaces/FGCP/pages/996644858/windowinstance#getDatabaseNode

EDIT: and you've also got another typo later in the <script> for that same control (will_current). It's math.ceil not math.cell.

BigBadBazz
December 15th, 2020, 11:56
I am so sorry, I spent ages looking at this and missed it.

I hate wasting your time

damned
December 15th, 2020, 12:50
its part of the learning process.

BigBadBazz
December 29th, 2020, 10:27
Im following your ruleset tutorial but I am unable to enter any input in dice roll of a FGNumberField.
The cursor is placed directly but it wont accept any keyboard input

AM I missing something obvious. Its from tutorial 007

Thanks yet again

damned
December 29th, 2020, 10:48
Hit the little down arrow to expand

BigBadBazz
December 29th, 2020, 11:00
Hit the little down arrow to expand

sorted

thanks