Varsuuk
July 18th, 2020, 07:14
Whenever I wanted to save the old values or add my own comment (as in the example below) to the top of record_car_more.xml that I copied from MoreCore to make my changes, it reports errors.
Moving the comment to where you see it above <root> lets me continue fine.
<!-- cas2 bounds must match combatframe's x(45) + h(170) = 215 -->
<root>
<!-- New WindowClass "charsheet_more" -->
<windowclass name="charsheet_more">
<script>
function onInit()
self.onSizeChanged = resizeFrames;
end
function resizeFrames(sourceWindow)
local nWidth,_ = getSize();
combatframe.setStaticBounds((nWidth/3*2)-15, 45, (nWidth/3)-15, 170)
cas2.setStaticBounds((nWidth/3), 0, (nWidth/3)-15, 215)
end
</script>
<sheetdata>
Error (ignore the warnings, I haven't looked at those yet - they appear even when things "work" - the errors after the ">>>>" marked one seem to just be cascading from the initial but I included for completeness.)
:
Runtime Notice: Reloading ruleset
Runtime Notice: s'aMajor: ' | { s'CoreRPG' = #4, s'MoreCore' = #1 } | s' aMinor: ' | { s'CoreRPG' = #0, s'MoreCore' = #58 }
Runtime Notice: s'onInit: registerResultHandler'
Ruleset Warning: window: Anchored static height ignored for control (pcclasslink) in windowclass (charsheet)
Ruleset Warning: window: Anchored static height ignored for control (pcclasslink) in windowclass (charsheet)
>>>>Script Error: [string "charsheet_more"]:1: 'end' expected near '<eof>'
Ruleset Warning: window: Anchored static height ignored for control (pcclasslink) in windowclass (charsheet)
Ruleset Error: window: No vertical anchor defined for control (cas2) in windowclass (charsheet_more)
Ruleset Error: window: Control (cas2_label) anchoring to uncalculated control (cas2) in windowclass (charsheet_more)
Ruleset Error: window: Control (cas2_label) anchoring to uncalculated control (cas2) in windowclass (charsheet_more)
Ruleset Error: window: Control (cas2_label) anchoring to uncalculated control (cas2) in windowclass (charsheet_more)
Ruleset Error: window: Control (cliroller) anchoring to uncalculated control (cas2) in windowclass (charsheet_more)
Ruleset Error: window: Control (cliroller) anchoring to uncalculated control (cas2) in windowclass (charsheet_more)
Ruleset Error: window: Control (cliroller) anchoring to uncalculated control (cas2) in windowclass (charsheet_more)
Ruleset Error: window: Control (cliroller) anchoring to uncalculated control (cas2) in windowclass (charsheet_more)
Ruleset Error: window: Control (scroll_2) anchoring to uncalculated control (cas2) in windowclass (charsheet_more)
Ruleset Error: window: Control (scroll_2) anchoring to uncalculated control (cas2) in windowclass (charsheet_more)
Ruleset Error: window: Control (scroll_2) anchoring to uncalculated control (cas2) in windowclass (charsheet_more)
Ruleset Error: window: Control (cas2a) anchoring to uncalculated control (cas2) in windowclass (charsheet_more)
Ruleset Error: window: Control (cas2a) anchoring to uncalculated control (cas2) in windowclass (charsheet_more)
Ruleset Error: window: Control (cas2a) anchoring to uncalculated control (cas2) in windowclass (charsheet_more)
Ruleset Error: window: Control (cas1) anchoring to uncalculated control (cas2) in windowclass (charsheet_more)
Ruleset Error: window: Control (cas1) anchoring to uncalculated control (cas2) in windowclass (charsheet_more)
Ruleset Error: window: Control (cas1) anchoring to uncalculated control (cas2) in windowclass (charsheet_more)
Ruleset Error: window: Control (cas3a) anchoring to uncalculated control (cas2) in windowclass (charsheet_more)
Moving the comment to where you see it above <root> lets me continue fine.
<!-- cas2 bounds must match combatframe's x(45) + h(170) = 215 -->
<root>
<!-- New WindowClass "charsheet_more" -->
<windowclass name="charsheet_more">
<script>
function onInit()
self.onSizeChanged = resizeFrames;
end
function resizeFrames(sourceWindow)
local nWidth,_ = getSize();
combatframe.setStaticBounds((nWidth/3*2)-15, 45, (nWidth/3)-15, 170)
cas2.setStaticBounds((nWidth/3), 0, (nWidth/3)-15, 215)
end
</script>
<sheetdata>
Error (ignore the warnings, I haven't looked at those yet - they appear even when things "work" - the errors after the ">>>>" marked one seem to just be cascading from the initial but I included for completeness.)
:
Runtime Notice: Reloading ruleset
Runtime Notice: s'aMajor: ' | { s'CoreRPG' = #4, s'MoreCore' = #1 } | s' aMinor: ' | { s'CoreRPG' = #0, s'MoreCore' = #58 }
Runtime Notice: s'onInit: registerResultHandler'
Ruleset Warning: window: Anchored static height ignored for control (pcclasslink) in windowclass (charsheet)
Ruleset Warning: window: Anchored static height ignored for control (pcclasslink) in windowclass (charsheet)
>>>>Script Error: [string "charsheet_more"]:1: 'end' expected near '<eof>'
Ruleset Warning: window: Anchored static height ignored for control (pcclasslink) in windowclass (charsheet)
Ruleset Error: window: No vertical anchor defined for control (cas2) in windowclass (charsheet_more)
Ruleset Error: window: Control (cas2_label) anchoring to uncalculated control (cas2) in windowclass (charsheet_more)
Ruleset Error: window: Control (cas2_label) anchoring to uncalculated control (cas2) in windowclass (charsheet_more)
Ruleset Error: window: Control (cas2_label) anchoring to uncalculated control (cas2) in windowclass (charsheet_more)
Ruleset Error: window: Control (cliroller) anchoring to uncalculated control (cas2) in windowclass (charsheet_more)
Ruleset Error: window: Control (cliroller) anchoring to uncalculated control (cas2) in windowclass (charsheet_more)
Ruleset Error: window: Control (cliroller) anchoring to uncalculated control (cas2) in windowclass (charsheet_more)
Ruleset Error: window: Control (cliroller) anchoring to uncalculated control (cas2) in windowclass (charsheet_more)
Ruleset Error: window: Control (scroll_2) anchoring to uncalculated control (cas2) in windowclass (charsheet_more)
Ruleset Error: window: Control (scroll_2) anchoring to uncalculated control (cas2) in windowclass (charsheet_more)
Ruleset Error: window: Control (scroll_2) anchoring to uncalculated control (cas2) in windowclass (charsheet_more)
Ruleset Error: window: Control (cas2a) anchoring to uncalculated control (cas2) in windowclass (charsheet_more)
Ruleset Error: window: Control (cas2a) anchoring to uncalculated control (cas2) in windowclass (charsheet_more)
Ruleset Error: window: Control (cas2a) anchoring to uncalculated control (cas2) in windowclass (charsheet_more)
Ruleset Error: window: Control (cas1) anchoring to uncalculated control (cas2) in windowclass (charsheet_more)
Ruleset Error: window: Control (cas1) anchoring to uncalculated control (cas2) in windowclass (charsheet_more)
Ruleset Error: window: Control (cas1) anchoring to uncalculated control (cas2) in windowclass (charsheet_more)
Ruleset Error: window: Control (cas3a) anchoring to uncalculated control (cas2) in windowclass (charsheet_more)