Halftonex / npc-generator-gpt

Foundry VTT module - NPC generator for D&D5e powered by ChatGPT
Creative Commons Attribution 4.0 International
7 stars 6 forks source link

[BUG]: Error: This is not a registered game setting [Detected 1 package: npc-generator-gpt] #7

Closed tap90 closed 8 months ago

tap90 commented 8 months ago

Bug Description

After successfully installing the module, I go to the actor tab, click on 'generate NPC', and select everything I need from the various dropdown menus. But when I press 'Create NPC', nothing happens.

The error mentioned in the title appears in the console.

When I go to 'Configure Settings', there is no reference to this plugin.

Steps To Reproduce

1- Install the module. 2 - Go to the actor tab. 3 - Click on 'generate NPC'. 4 - Select options from dropdown menus. 5 - Press 'Create NPC' - no response. 6 - Notice error in console. 7 - Go to 'Configure Settings' - no plugin reference.

Foundry Version

11 Stable 313

Additional Information

DnD 5e Fifth edition system version 2.3.1

Halftonex commented 8 months ago

The error mentioned in the title appears in the console.

Can you provide a screenshot of the error you get from the console (F12)? It would be very helpful.

When I go to 'Configure Settings', there is no reference to this plugin.

Can you try to run a world with just my module enabled and check if it is still no reference?

tap90 commented 8 months ago

debug-1

This is the error.

debug-2

This appears to be the line of code that goes wrong.

So I have forced this one in console and the result is as expected.

debug-3

It appears as if npc-generator-gtp has not been loaded in game.settings.

If I create a new world works like a charm so probably is a conflict problem?

Halftonex commented 8 months ago

If I create a new world works like a charm so probably is a conflict problem?

yea, definitely. If you want, hit me on discord so we can figure out how to resolve it