DB.getValue() for a shortcut node does not return the entered path
Hi,
I'm trying to run DB.getValue(node, childname) on a node in a module I've created. The function should return the recordname entered at that path, which is "reference.traits.armored@Symbaroum Core Rulebook" but instead I get "npc.test.traits.armored@Badlink test".
The code I'm running is this:
Code:
local the_node = DB.findNode("npc.test.traits.armored@Badlink test")
if the_node then
local shortcut_class, shortcut_nodeid = DB.getValue(the_node, "shortcut")
Debug.chat("FOUND shortcut:", shortcut_class, shortcut_nodeid)
else
Debug.chat("Didn't find in found module ", sModule)
end
and I'm adding it in the manager_version.lua in corerpg, in the end of the function onModuleLoad().
The module can be downloaded from https://web.rahmqvistcloud.se/share/X0Lq62f and is easy to unzip if you want to check the xml-values.
Does anybody understand why this is happening and could please explain to me what I'm doing wrong? I have this issue in a new module that we're writing and we can't complete it unless we find out why our cross-module links don't work. It seems to work nicely linking to nodes within a module.
Thanks,
Simon