Make sure you have the correct tokentype. Also, Plothos's 2.xx is not compatible with 3.0. I think if you set CasterInfo to {} you can then load and redo.wolph42 wrote:ok checked out your lib and its even worse... I replaced the one in the campaign file and on running 'spell menu' with the 'caster selected' I got: 'value for casterInfo' here again a part of the log:
Spoiler
2013-02-25 16:11:04,668 [client.MapToolLineParser:1293] DEBUG - net.rptools.parser.ParserException: Unresolved value "CasterInfo".
2013-02-25 16:11:06,525 [macro.MacroManager:373] DEBUG - Starting macro: ImpersonateMacro----------------------------------------------------------------------------------
2013-02-25 16:11:06,527 [client.MapToolLineParser:1276] DEBUG - "Spell Main@Lib:spells"
2013-02-25 16:11:06,527 [client.MapToolLineParser:1276] DEBUG - ""
2013-02-25 16:11:06,530 [client.MapToolLineParser:1276] DEBUG - "Spells: "+getName()
2013-02-25 16:11:06,542 [client.MapToolLineParser:1276] DEBUG - ""
2013-02-25 16:11:06,545 [client.MapToolLineParser:1276] DEBUG - "Spell Main Text@Lib:spells"
2013-02-25 16:11:06,549 [client.MapToolLineParser:1276] DEBUG - ""
2013-02-25 16:11:06,567 [client.MapToolLineParser:1276] DEBUG - chardata = CasterInfo
Here is the Spell Menu macro I wrote for the Campaign Frame:
Code: Select all
[H: id = getSelected()]
[H: switchToken(id)]
[H: spellManager = getProperty("am.spellManager")]
[H: casterInfo = getProperty("casterInfo")]
[H, if(json.isEmpty(spellManager) && ! json.isEmpty(casterInfo)), code: {
[H: abort(input("tip|<html><b>Previous versions of Plothos and Wrathgon data is incompatible<br>so, this question will only be asked once.</b><br><br></html>||LABEL|SPAN=TRUE","clearInfo|NO,YES|Clear Caster Info?|RADIO"))]
[H: setProperty("am.spellManager",1)]
};{}]
[H, macro("Spell Main@Lib:spells"): ""]