PDA

View Full Version : Script Error Messages



TXCBoy36
July 12th, 2021, 05:05
Was testing some items in 2e in the Keep of the Borderlands game and when I applied the encounter to the map, got this script error message....

[12.07.2021 03:45:20] Ruleset Warning: stringcontrol: Could not find font (regular20) for control (armor_description) in windowclass (charsheet_main)
[12.07.2021 03:45:20] Ruleset Warning: stringcontrol: Could not find font (regular20) for control (shield_description) in windowclass (charsheet_main)

Any ideas?

Moon Wizard
July 12th, 2021, 06:48
Those are just warnings, and will not affect your play nor force the console open.

@Celestian (the community developer for 2E ruleset) may be able to address on his next round of updates, if he sees this.

Regards,
JPG

TXCBoy36
July 12th, 2021, 07:17
Those are just warnings, and will not affect your play nor force the console open.

@Celestian (the community developer for 2E ruleset) may be able to address on his next round of updates, if he sees this.

Regards,
JPG

Ok, thanks!

celestian
July 12th, 2021, 08:03
Those are just warnings, and will not affect your play nor force the console open.

@Celestian (the community developer for 2E ruleset) may be able to address on his next round of updates, if he sees this.

Regards,
JPG

I'll take a look and see whats up. Thanks for the heads up TX.

celestian
July 12th, 2021, 18:54
Was testing some items in 2e in the Keep of the Borderlands game and when I applied the encounter to the map, got this script error message....

[12.07.2021 03:45:20] Ruleset Warning: stringcontrol: Could not find font (regular20) for control (armor_description) in windowclass (charsheet_main)
[12.07.2021 03:45:20] Ruleset Warning: stringcontrol: Could not find font (regular20) for control (shield_description) in windowclass (charsheet_main)

Any ideas?

I ran a clean campaign w/o any extensions and did not see this error.

Disable all extensions and see if you still see the log message.

I'm pretty sure I do not use "armor_description" as a value in the ruleset anywhere.

Sterno
July 13th, 2021, 00:36
Pretty sure armor_description and shield_description come from my extension. I'll take a look.

Sterno
July 13th, 2021, 22:06
This will be fixed next time I upload a new version.

In the meantime, like Moon Wizard said, it's pretty much just an ignorable warning. It's just trying to incorrectly load a font for those controls.

TXCBoy36
July 17th, 2021, 08:37
This will be fixed next time I upload a new version.

In the meantime, like Moon Wizard said, it's pretty much just an ignorable warning. It's just trying to incorrectly load a font for those controls.

Thanks for the update.

prometheus13
July 22nd, 2021, 03:14
I am having problems with getting NPCs to load into the combat tracker with your (Sterno) extension.

Using Ghouls and tried them from your OSRIC and the Monster Manual.

The error was along the lines of "attempting to call field 'isUsingArmorDamage' a nil field"

I had Armor Damage from your extension turned off.

Problem disappeared when I unloaded your extension.

May be relevant that I just migrated this campaign from Classic to Unity.

Sterno
July 22nd, 2021, 14:38
First off, it's definitely something to do with my extension and not the base ruleset code. It's sounding like the check for whether or not that option is on is breaking somewhere, probably due a typo somewhere where I'm checking it. The error sounds like it's trying to call the "isUsingArmorDamage" method to do the check, but not finding it.

However, I've been unable to reproduce the issue and have never seen that one pop up myself. I'm looking through the code to find some obscure code path where maybe there's a typo, but coming up blank. This occurs when adding the ghoul to the Combat Tracker?

If you can cut and paste the exact error line you're seeing from the console, that would probably help me track it down, since usually that will tell me the file and line number it's throwing the exception from.

prometheus13
July 23rd, 2021, 15:09
It seems to be resolved. I can no longer reproduce it.

Update. I went back to Classic which I have not updated the extension and was able to reproduce it.

Script Error: [string "scripts/manager_combat_po.lua"]:703: attempt to call field 'buildCombatantNodesCache' (a nil value)

It is a bit different but has the same effect of not everything from the encounter loading into the combat tracker.

Trenloe
July 23rd, 2021, 15:37
Update. I went back to Classic which I have not updated the extension and was able to reproduce it.

Script Error: [string "scripts/manager_combat_po.lua"]:703: attempt to call field 'buildCombatantNodesCache' (a nil value)

It is a bit different but has the same effect of not everything from the encounter loading into the combat tracker.
FG Classic no longer receives updates. If you're downloading extensions, make sure you're getting extensions that are specific to FG Classic. Most people now use FG Unity and most developers will be working on FG Unity exclusively moving forwards.

prometheus13
July 23rd, 2021, 16:06
Understood.
The problem disappeared when I subscribed to Forge and updated the extension in FGU.

I reproduced it and posted it in case it may be of use to Sterno.

Sterno
July 23rd, 2021, 16:15
Yeah, it sounds like whatever version of the extension you had was out of sync with the 2E ruleset code, as "buildCombatantNodesCache" is a method that was briefly in the 2E ruleset code, then removed. So if you're using a version of the extension that was expecting it to be there, but it wasn't, it would blow up. Doesn't surprise me that it got out of sync on FGC.

Thanks for the bug report. If a bunch of people using FGC use the extension, and the version currently attached to the OP in this thread isn't working, I can take a look one final update to get them squared away.

TXCBoy36
August 2nd, 2021, 08:14
Everything is working fine on my end....I think we are good

Sagrarius
February 3rd, 2023, 18:55
Hi, I've find this extension very useful, in special for the options of Group Initiative, but there is some issue with suprise checks when I try them. The following log appears to me:

[ERROR] Script execution error: [string"..ons and House Rules:..rise_adnd_op_hr.lua"]:30: attempt to call field 'getCTFromActor' (a nil value)

Can you help me to solve it? Thank you!

Trenloe
February 3rd, 2023, 19:14
Hi, I've find this extension very useful, in special for the options of Group Initiative, but there is some issue with suprise checks when I try them. The following log appears to me:

[ERROR] Script execution error: [string"..ons and House Rules:..rise_adnd_op_hr.lua"]:30: attempt to call field 'getCTFromActor' (a nil value)

Can you help me to solve it? Thank you!
You're best posting this in the thread for the extension you're using. This thread is a miscellaneous thread for script errors, so you'll get a better response posting in the thread for the extension you're referring to.

Sagrarius
February 3rd, 2023, 19:28
You're best posting this in the thread for the extension you're using. This thread is a miscellaneous thread for script errors, so you'll get a better response posting in the thread for the extension you're referring to.

Thank you for the advice!

Sagrarius
February 6th, 2023, 18:13
Hello, sorry for coming back. I posted a message in the thread of the extension, but no one answered... I need to solve this issue before the end of February, for a game Ill run. So, if you or anyone knows what the script error below means (and how I can fix it), I would appreciate. Here are the script error message again:

[ERROR] Script execution error: [string"..ons and House Rules:..rise_adnd_op_hr.lua"]:30: attempt to call field 'getCTFromActor' (a nil value)

Moon Wizard
February 6th, 2023, 18:52
If no one is answering, then it is best to turn off the extension and no longer use it. Community extensions are only supported by the members who post them.

Regards,
JPG

Trenloe
February 6th, 2023, 19:55
Hello, sorry for coming back. I posted a message in the thread of the extension, but no one answered... I need to solve this issue before the end of February, for a game Ill run. So, if you or anyone knows what the script error below means (and how I can fix it), I would appreciate. Here are the script error message again:

[ERROR] Script execution error: [string"..ons and House Rules:..rise_adnd_op_hr.lua"]:30: attempt to call field 'getCTFromActor' (a nil value)

Doomsword last logged into the forums on January 28th. So they will probably be back sometime soon. You could try PMing them as they may get an email notification about that, which might give you a faster response.

If you want to try and fix it yourself, you'll need to edit the extension. The error message is saying that there's an issue with the getCTFromActor call on line 30 of a file in the extension that ends in "rise_adnd_op_hr.lua" - unfortunately the file name is reduced to fit within the error message length, but that should be enough to find the file within the extension. Then it's working out why that call doesn't work.

Some information on extensions can be found here: https://fantasygroundsunity.atlassian.net/wiki/spaces/FGCP/pages/996645657/Developer+Guide+-+Creating+Extensions

Sagrarius
February 6th, 2023, 20:13
If no one is answering, then it is best to turn off the extension and no longer use it. Community extensions are only supported by the members who post them.

Regards,
JPG

It's sad, cause the extension has some good features for AD&D, like group initiative. I'll do as you advise then. Thank you.

Sagrarius
February 6th, 2023, 20:17
Doomsword last logged into the forums on January 28th. So they will probably be back sometime soon. You could try PMing them as they may get an email notification about that, which might give you a faster response.

If you want to try and fix it yourself, you'll need to edit the extension. The error message is saying that there's an issue with the getCTFromActor call on line 30 of a file in the extension that ends in "rise_adnd_op_hr.lua" - unfortunately the file name is reduced to fit within the error message length, but that should be enough to find the file within the extension. Then it's working out why that call doesn't work.

Some information on extensions can be found here: https://fantasygroundsunity.atlassian.net/wiki/spaces/FGCP/pages/996645657/Developer+Guide+-+Creating+Extensions

Thanks for the tips and the link, Trenloe! I'll wait a little more then, before to try to solve the issue by myself.

celestian
February 7th, 2023, 03:45
Hi, I've find this extension very useful, in special for the options of Group Initiative, but there is some issue with suprise checks when I try them. The following log appears to me:

[ERROR] Script execution error: [string"..ons and House Rules:..rise_adnd_op_hr.lua"]:30: attempt to call field 'getCTFromActor' (a nil value)

Can you help me to solve it? Thank you!

I believe this is one of Sterno's extensions. I dont think he is maintaining them anymore but you could ask in his thread.

Sterno
February 14th, 2023, 01:01
I don't think that one is mine. Most of my files end in _po. I don't have any that end in adnd_op_hr.lua.