PDA

View Full Version : Error when opening NPCs list, cannot make new groups for NPCs



MeepTheChangeling
July 23rd, 2021, 10:21
I keep getting this error when I open the NPC menu, and it refuses to let me make a new group for NPCs, but I can make NPCs.


[7/23/2021 5:13:57 AM] [ERROR] Script execution error: [string "scripts/data_library_SFRPG.lua"]:26: attempt to compare number with string

This is a major problem because I am developing a module for use with a campaign later, and I've already entered about 800 items and I do NOT want to have to enter those again, I've put in days of work. But I may have to if I cant find a way to fix this so I can make categories for NPCs. Please help.

Here's the log.


[7/23/2021 5:12:28 AM] FGU: v4.1.4 ULTIMATE (2021-06-08)
[7/23/2021 5:12:28 AM] OS: Windows 10 (10.0.0) 64bit
[7/23/2021 5:12:28 AM] GRAPHICS: NVIDIA GeForce GTX 1080 Ti : 11127
[7/23/2021 5:12:28 AM] UI SCALE: 1
[7/23/2021 5:12:28 AM] USER: MeepTheChangeling
[7/23/2021 5:12:28 AM] Launcher scene starting.
[7/23/2021 5:12:32 AM] Starting cloud server mode. [MeepTheChangeling]
[7/23/2021 5:12:32 AM] Game server started. [104.248.118.207:59861]
[7/23/2021 5:12:32 AM] Launcher scene exiting.
[7/23/2021 5:12:32 AM] Match successfully created on lobby.
[7/23/2021 5:12:32 AM] Tabletop scene starting.
[7/23/2021 5:12:32 AM] NETWORK STATUS: [Server] [Connected]
[Server Type - CLOUD - PRIVATE]
[7/23/2021 5:12:41 AM] MEASURE: RULESETS LOAD - 9.0418161 - SFRPG
[7/23/2021 5:12:42 AM] MEASURE: EXTENSIONS LOAD - 0.2450549 - 4
[7/23/2021 5:12:43 AM] MEASURE: MODULE LIST BUILD - 1.038355 - 21
[7/23/2021 5:12:43 AM] MEASURE: REFRESH IMAGE ASSETS - 0.0458874
[7/23/2021 5:12:43 AM] MEASURE: REFRESH PORTRAIT ASSETS - 0.0040011
[7/23/2021 5:12:43 AM] MEASURE: REFRESH TOKEN ASSETS - 0.0420104
[7/23/2021 5:12:43 AM] MEASURE: ASSET LIST BUILD - 0.0928989
[7/23/2021 5:12:44 AM] MEASURE: LOAD - PART 1 - 11.9303732
[7/23/2021 5:12:45 AM] [ERROR] Script execution error: [string "scripts/init_desktop.lua"]:3: attempt to call field 'showDockTitleText' (a nil value)
[7/23/2021 5:12:45 AM] MEASURE: MODULE LOAD - 0.0080017 - Calendars
[7/23/2021 5:13:08 AM] MEASURE: MODULE LOAD - 23.7716464 - Content Generator 2020 Any Ruleset
[7/23/2021 5:13:12 AM] MEASURE: MODULE LOAD - 3.3174141 - Starfinder Alien Archive
[7/23/2021 5:13:13 AM] MEASURE: MODULE LOAD - 0.9818274 - Starfinder Alien Archive (Players)
[7/23/2021 5:13:16 AM] MEASURE: MODULE LOAD - 2.7473421 - Starfinder Armory
[7/23/2021 5:13:19 AM] MEASURE: MODULE LOAD - 3.560567 - Starfinder Characters Operation Manual
[7/23/2021 5:13:27 AM] MEASURE: MODULE LOAD - 7.933066 - Starfinder Core Rulebook
[7/23/2021 5:13:30 AM] MEASURE: MODULE LOAD - 3.2817545 - Starfinder Starship Operations Manual
[7/23/2021 5:13:30 AM] [WARNING] template: Could not find template (chat_resize) in class (chat)
[7/23/2021 5:13:30 AM] [ERROR] Handler error: [string "scripts/manager_gmidentity.lua"]:98: attempt to index field 'speaker' (a nil value)
[7/23/2021 5:13:31 AM] RULESET: SFRPG ruleset (v2021-07-13) for Fantasy Grounds
Copyright 2004-2021 Smiteworks USA, LLC
[7/23/2021 5:13:31 AM] RULESET: Core RPG ruleset (v2021-07-06) for Fantasy Grounds
Copyright 2021 Smiteworks USA, LLC
[7/23/2021 5:13:31 AM] EXTENSION: CreatureGen for Starfinder v2.0 Unity (GPL v3)\r Original CGen by Ken L\r Edited by Madman,Samarex and Mysteran for Starfinder
[7/23/2021 5:13:31 AM] EXTENSION: SFRPG ChatBars (v2021-03-10) for Fantasy Grounds\rby Steve Buza
[7/23/2021 5:13:31 AM] EXTENSION: Starfinder Bars Theme v1.6 by Steve Buza
[7/23/2021 5:13:31 AM] EXTENSION: Extension (Calendar Plus) loaded.
[7/23/2021 5:13:31 AM] MEASURE: LOAD - PART 2 - 46.4756269
[7/23/2021 5:13:57 AM] [ERROR] Script execution error: [string "scripts/data_library_SFRPG.lua"]:26: attempt to compare number with string

Trenloe
July 23rd, 2021, 10:33
Script errors are usually caused by extensions - either clashing with other extensions or with not being compatible with the current FG code.

You've actually got three different errors - but they could be caused by the first error, which appears to be related to a theme or an extension that modifies the sidebar.

Try disabling the Starfinder Bars Theme.

MeepTheChangeling
July 23rd, 2021, 11:14
I removed all extensions, but the error is still happening. Here's the log with no extensions.


[7/23/2021 6:11:13 AM] FGU: v4.1.4 ULTIMATE (2021-06-08)
[7/23/2021 6:11:13 AM] OS: Windows 10 (10.0.0) 64bit
[7/23/2021 6:11:13 AM] GRAPHICS: NVIDIA GeForce GTX 1080 Ti : 11127
[7/23/2021 6:11:13 AM] UI SCALE: 1
[7/23/2021 6:11:13 AM] USER: MeepTheChangeling
[7/23/2021 6:11:13 AM] Launcher scene starting.
[7/23/2021 6:11:34 AM] Starting cloud server mode. [MeepTheChangeling]
[7/23/2021 6:11:35 AM] Game server started. [104.248.118.207:63072]
[7/23/2021 6:11:35 AM] Launcher scene exiting.
[7/23/2021 6:11:35 AM] Match successfully created on lobby.
[7/23/2021 6:11:35 AM] Tabletop scene starting.
[7/23/2021 6:11:35 AM] NETWORK STATUS: [Server] [Connected]
[Server Type - CLOUD - PRIVATE]
[7/23/2021 6:11:44 AM] MEASURE: RULESETS LOAD - 8.7618747 - SFRPG
[7/23/2021 6:11:44 AM] MEASURE: EXTENSIONS LOAD - 0.0010008 - 0
[7/23/2021 6:11:45 AM] MEASURE: MODULE LIST BUILD - 1.0073697 - 21
[7/23/2021 6:11:45 AM] MEASURE: REFRESH IMAGE ASSETS - 0.0430098
[7/23/2021 6:11:45 AM] MEASURE: REFRESH PORTRAIT ASSETS - 0.0030006
[7/23/2021 6:11:45 AM] MEASURE: REFRESH TOKEN ASSETS - 0.0580127
[7/23/2021 6:11:45 AM] MEASURE: ASSET LIST BUILD - 0.1050233
[7/23/2021 6:11:46 AM] MEASURE: LOAD - PART 1 - 11.3655575
[7/23/2021 6:11:47 AM] MEASURE: MODULE LOAD - 0.0080018 - Calendars
[7/23/2021 6:12:11 AM] MEASURE: MODULE LOAD - 23.991916 - Content Generator 2020 Any Ruleset
[7/23/2021 6:12:14 AM] MEASURE: MODULE LOAD - 3.2021821 - Starfinder Alien Archive
[7/23/2021 6:12:15 AM] MEASURE: MODULE LOAD - 0.9746027 - Starfinder Alien Archive (Players)
[7/23/2021 6:12:17 AM] MEASURE: MODULE LOAD - 2.3967907 - Starfinder Armory
[7/23/2021 6:12:21 AM] MEASURE: MODULE LOAD - 3.7240872 - Starfinder Characters Operation Manual
[7/23/2021 6:12:29 AM] MEASURE: MODULE LOAD - 7.8360785 - Starfinder Core Rulebook
[7/23/2021 6:12:32 AM] MEASURE: MODULE LOAD - 3.282757 - Starfinder Starship Operations Manual
[7/23/2021 6:12:33 AM] RULESET: SFRPG ruleset (v2021-07-13) for Fantasy Grounds
Copyright 2004-2021 Smiteworks USA, LLC
[7/23/2021 6:12:33 AM] RULESET: Core RPG ruleset (v2021-07-06) for Fantasy Grounds
Copyright 2021 Smiteworks USA, LLC
[7/23/2021 6:12:33 AM] MEASURE: LOAD - PART 2 - 46.5999836
[7/23/2021 6:12:44 AM] [ERROR] Script execution error: [string "scripts/data_library_SFRPG.lua"]:26: attempt to compare number with string

superteddy57
July 23rd, 2021, 11:35
I removed all extensions, but the error is still happening. Here's the log with no extensions.


[7/23/2021 6:11:13 AM] FGU: v4.1.4 ULTIMATE (2021-06-08)
[7/23/2021 6:11:13 AM] OS: Windows 10 (10.0.0) 64bit
[7/23/2021 6:11:13 AM] GRAPHICS: NVIDIA GeForce GTX 1080 Ti : 11127
[7/23/2021 6:11:13 AM] UI SCALE: 1
[7/23/2021 6:11:13 AM] USER: MeepTheChangeling
[7/23/2021 6:11:13 AM] Launcher scene starting.
[7/23/2021 6:11:34 AM] Starting cloud server mode. [MeepTheChangeling]
[7/23/2021 6:11:35 AM] Game server started. [104.248.118.207:63072]
[7/23/2021 6:11:35 AM] Launcher scene exiting.
[7/23/2021 6:11:35 AM] Match successfully created on lobby.
[7/23/2021 6:11:35 AM] Tabletop scene starting.
[7/23/2021 6:11:35 AM] NETWORK STATUS: [Server] [Connected]
[Server Type - CLOUD - PRIVATE]
[7/23/2021 6:11:44 AM] MEASURE: RULESETS LOAD - 8.7618747 - SFRPG
[7/23/2021 6:11:44 AM] MEASURE: EXTENSIONS LOAD - 0.0010008 - 0
[7/23/2021 6:11:45 AM] MEASURE: MODULE LIST BUILD - 1.0073697 - 21
[7/23/2021 6:11:45 AM] MEASURE: REFRESH IMAGE ASSETS - 0.0430098
[7/23/2021 6:11:45 AM] MEASURE: REFRESH PORTRAIT ASSETS - 0.0030006
[7/23/2021 6:11:45 AM] MEASURE: REFRESH TOKEN ASSETS - 0.0580127
[7/23/2021 6:11:45 AM] MEASURE: ASSET LIST BUILD - 0.1050233
[7/23/2021 6:11:46 AM] MEASURE: LOAD - PART 1 - 11.3655575
[7/23/2021 6:11:47 AM] MEASURE: MODULE LOAD - 0.0080018 - Calendars
[7/23/2021 6:12:11 AM] MEASURE: MODULE LOAD - 23.991916 - Content Generator 2020 Any Ruleset
[7/23/2021 6:12:14 AM] MEASURE: MODULE LOAD - 3.2021821 - Starfinder Alien Archive
[7/23/2021 6:12:15 AM] MEASURE: MODULE LOAD - 0.9746027 - Starfinder Alien Archive (Players)
[7/23/2021 6:12:17 AM] MEASURE: MODULE LOAD - 2.3967907 - Starfinder Armory
[7/23/2021 6:12:21 AM] MEASURE: MODULE LOAD - 3.7240872 - Starfinder Characters Operation Manual
[7/23/2021 6:12:29 AM] MEASURE: MODULE LOAD - 7.8360785 - Starfinder Core Rulebook
[7/23/2021 6:12:32 AM] MEASURE: MODULE LOAD - 3.282757 - Starfinder Starship Operations Manual
[7/23/2021 6:12:33 AM] RULESET: SFRPG ruleset (v2021-07-13) for Fantasy Grounds
Copyright 2004-2021 Smiteworks USA, LLC
[7/23/2021 6:12:33 AM] RULESET: Core RPG ruleset (v2021-07-06) for Fantasy Grounds
Copyright 2021 Smiteworks USA, LLC
[7/23/2021 6:12:33 AM] MEASURE: LOAD - PART 2 - 46.5999836
[7/23/2021 6:12:44 AM] [ERROR] Script execution error: [string "scripts/data_library_SFRPG.lua"]:26: attempt to compare number with string

Please attempt to open a fresh campaign with no extensions and see if the error is reproduced. I'm not able to replicate it with the current code.

MeepTheChangeling
July 23rd, 2021, 11:40
Please attempt to open a fresh campaign with no extensions and see if the error is reproduced. I'm not able to replicate it with the current code.

It does not occur on a fresh campaign. How can I get the data from this campaign out and into a new one? I've put days of work into getting things set up, and I have about 30 hours before it's session 1.

superteddy57
July 23rd, 2021, 12:25
Please post your db.xml from your campaign here and I can have a look to see if one of your extensions may have messed with the structure of your NPCs.

MeepTheChangeling
July 23rd, 2021, 19:05
Thank you. I don't know what I'd do without this community to help.

Here's the DB file. (https://drive.google.com/file/d/1_hw2v08hRs0aOrA-Do5kzRjJT6JtBlvb/view?usp=sharing)

superteddy57
July 23rd, 2021, 19:20
Thank you. I don't know what I'd do without this community to help.

Here's the DB file. (https://drive.google.com/file/d/1_hw2v08hRs0aOrA-Do5kzRjJT6JtBlvb/view?usp=sharing)

Thanks. I tested it with a fresh campaign. It loads the data contained in the file. I don't see an issue with the NPC's structure, so something is lingering that is causing the issue. Can you ensure you have all the extensions unloaded and attempt to replicate the error again? If it still continues, then the most straight forward method would be to create a new campaign and replace that new db.xml, for that campaign, with this one you have provided. The images would need to be added to this campaign to ensure linkage is correct. That would prolly be the only issue with the method I just described, as the images may need to be set up again.

MeepTheChangeling
July 23rd, 2021, 19:37
It still has the error. Replacing the DB file seems to have worked. I didn't know you could just do that. Thanks! Any idea what might have caused the error? I rather like the monster importer plugin, and Calendars.

Trenloe
July 23rd, 2021, 19:41
At lease one of the NPCs that is open in that campaign has a CR field of a string (something other than a number). It may be a module that has some incompatible data.

Close all of your non-official modules and see if that helps. I reckon it might be the Content Generator module...

Yep, it's the Content Generator module. The Anti Paladin and Commoner have CR fields of type string.

superteddy57
July 23rd, 2021, 19:42
I was thinking it was the importer, since that would change the structure of the NPC node within the db.xml if it was setup to output a different structure. I didn't see that. You could load each one till you get an error to find out which one is the issue and report it to the developer. I would do this with a throw away campaign. There is always risk of issues like this with extensions as base ruleset code can change and the developer has to make those changes to compensate.

EDIT: Based on Trenloe's response, you can still keep your original campaign and just unload the module. I would reach out to the developer for that module and inform them of the issue.

MeepTheChangeling
July 23rd, 2021, 19:44
Oh. Well then. No big deal! It wont really help with this campaign anyways since it was intended for Pathfinder. Didn't know that could be an issue. I just had it in to look at in order to make my own tables and templates. Thanks!

Trenloe
July 23rd, 2021, 19:45
Oh. Well then. No big deal! It wont really help with this campaign anyways since it was intended for Pathfinder. Didn't know that could be an issue. I just had it in to look at in order to make my own tables and templates. Thanks!
See my post on the previous page - it's the Content Generator module.

Trenloe
July 23rd, 2021, 19:50
Try this: https://www.dropbox.com/s/xfw7opu3fcb91qc/Content%20Generator%202020%20Any%20Ruleset.mod?dl= 0 I've removed the 8 NPC templates that were in there. I'm not sure exactly what they were used for, I don't think it'll effect the generators themselves as they are primarily story templates.

MeepTheChangeling
July 23rd, 2021, 20:50
Thanks for going above and beyond. Works like a charm and I now have a reference to look at for making my own tables.