BG3-Community-Library-Team / BG3-Compatibility-Framework

An API-based Driven Compatibility Framework for Baldur's Gate 3 Mods
MIT License
38 stars 13 forks source link

Nil value RetrieveModHandleAndAuthor #106

Closed Kitthaven closed 3 months ago

Kitthaven commented 3 months ago

Hi! On my race mod I am trying to insert new values into a passive selector with an addon for Half-Tiefs but I get this error in the console when trying to do it:

[ERROR]: [string "SubclassCompatibilityFramework/Utils/QueueUti..."]:120: attempt to call a nil value (field 'RetrieveModHandleAndAuthor') stack traceback: SubclassCompatibilityFramework/Utils/QueueUtils.lua:120: in field 'ShipToQueue' SubclassCompatibilityFramework/CompatibilitySupport/SelectorSupport/_SelectorAddition.lua:126: in upvalue 'AddSelector' SubclassCompatibilityFramework/CompatibilitySupport/SelectorSupport/_SelectorAddition.lua:132: in global 'HandleSelector' SubclassCompatibilityFramework/API/SelectorApi.lua:10: in field 'Selector' SubclassCompatibilityFramework/JsonLayer/_Utils.lua:144: in field 'ParseAndSubmitSelectors' SubclassCompatibilityFramework/JsonLayer/ProgressionHandler.lua:28: in upvalue 'ProgressionSubSectionHandler' SubclassCompatibilityFramework/JsonLayer/ProgressionHandler.lua:53: in global 'ProgressionJsonHandler' SubclassCompatibilityFramework/JsonLayer/_JsonLoader.lua:6: in upvalue 'SubmitData' SubclassCompatibilityFramework/JsonLayer/_JsonLoader.lua:39: in function <SubclassCompatibilityFramework/JsonLayer/_JsonLoader.lua:32> [C++ Code]: in function 'xpcall' SubclassCompatibilityFramework/JsonLayer/_JsonLoader.lua:54: in global 'LoadConfigFiles' SubclassCompatibilityFramework/Init/_InitDefaults.lua:2: in function <SubclassCompatibilityFramework/Init/_InitDefaults.lua:1> [C++ Code]: in function 'xpcall' builtin://Libs/Event.lua:129: in method 'Throw' builtin://Libs/Event.lua:184: in function <builtin://Libs/Event.lua:183>

This is the json I am trying to use. The first part is for the passive selector and the second is for trying to insert visuals which also doesn't work, but I know Rando has already reported that on my behalf lol. The visual insertion doesn't give an error in the console, it just skips over it seemingly.

{ "FileVersion": 1, "Progressions": [ { "UUID": "4ce40e68-f07e-4689-aebb-41237348f721", "Selectors": [ { "modGuid": "e089da25-fad8-4eef-b924-d0a8a838130f", "Action": "Insert", "Function": "SelectPassives", "Params": { "Guid": "f16c342e-8f54-4815-a081-27f4e8405442", "Amount": "1" } } ] } ], "Races": [ { "UUID": "e83ab2f3-e5e9-48f1-b00f-06fcd38d2206", "Children": [ { "Type": "Visuals", "modGuid": "144130e9-5eaf-48c3-b28f-446a0c2481aa", "Values": ["2860681e-6510-4104-91d7-629f169bcea8", "1b05c4a2-82a8-4a00-9a9d-f765b6a1891c", "d25a7d72-8a9b-44d3-a287-06cf7156b6d8"], "Action": "Insert" } ] } ] }

Thanks!

RandoRuda commented 3 months ago

Short version:

You're looking for the List Module rather than the Progression Module.

Longer version:

Details on Discord.