Thread: Adding Talent to Sidebar - Error
-
March 25th, 2024, 21:22 #11
One observation. The Talent list does NOT have title. Trying to find where you define those.
Daniel A George
-
March 25th, 2024, 21:23 #12
This was the cause. LUA is case sensitive, so you need to be careful to use the exact same case for variables, etc..
Use this, I've highlighted what had incorrect case:
Code:function onInit() LibraryData.aRecords["talent"]= { bExport = true, aDataMap = {"talent","reference.talent"}, sRecordDisplayClass = "talent" } end
Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!
-
March 25th, 2024, 21:36 #13
I will dig into this. As I coder I should have known better
THANK YOU!Daniel A George
-
March 25th, 2024, 22:32 #14
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,639
Also, you should be using LibraryData.setRecordTypeInfo("talent", { ... }) or LibraryData.overrideReceordTypeInfo("talent", { ... }), instead of trying to modify the table directly. This is how existing rulesets and extensions do it.
Regards,
JPG
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks