PDA

View Full Version : 2.4.1 labelnode error



Lithl
June 23rd, 2009, 23:21
There's two fixes posted for the labelnode error here (https://www.fantasygrounds.com/forums/showthread.php?t=10491). For me, Oberoten's fix gets rid of the error, but doesn't solve the problem of being able to create local characters; Tenian's solution didn't fix either problem.

However, the following fix solved the issue for my Exalted ruleset:

function onInit()
activeidentities = User.getAllActiveIdentities();

getWindows()[1].close();
createWindowWithClass("identityselection_newentry");

localIdentities = User.getLocalIdentities();
for n, v in ipairs(localIdentities) do
local localnode = v.databasenode;
if localnode then
local labelnode = v.databasenode.createChild("name", "string");
if labelnode then
addIdentity(v.id, labelnode.getValue(), localnode);
end
end
end

User.getRemoteIdentities("charsheet", "name", addIdentity);
end