Log in

View Full Version : New sidebar button help (cross-posted to Discord)



Weepdrag
June 19th, 2024, 23:35
I'm trying to add a functioning sidebar button in the 5e ruleset (copied directly from QUESTS) using notepad++ to find all of the occurrences of "quest" and renaming to "augmentation". This works to open an "Augmentations" window, but when I try to create a new item, I get the following error.

[ERROR] Script execution error: [string "CoreRPG:..n/scripts/campaign_button_new.lua"]:28: attempt to index local 'w' (a nil value)

The following sections were added to:

base.xml
<includefile source="campaign/record_augment.xml" />

strings.xml
<string name="library_recordtype_label_augmentation">Augmentations</string>
<string name="library_recordtype_single_augmentation">Augmentation</string>
<string name="library_recordtype_empty_augmentation">&#171; New Augmentation &#187;</string>
<string name="library_recordview_label_augmentation_bytype">By Type</string>

data_library.lua
["augmentation"] = {
aDataMap = { "augmentation", "reference.augmentationdata" },
},

manager_desktop.lua
["augmentation"] = "create",

and I created a duplicate of record_quest.xml and renamed it record_augment.xml

Thanks in advance for any pointers on what I'm missing

Moon Wizard
June 19th, 2024, 23:47
Answered in Discord #mod_creation.

JPG