FG Spreadshirt Swag
  1. #1
    Varsuuk's Avatar
    Join Date
    Dec 2015
    Location
    New York
    Posts
    2,075

    RulesetWizard - corrupted file or error updating or?

    I just finished committing some work on the layout of some "details" screens and renamed (thanks Moon) some labels on front sheet (charsheet_main) and I went to look at "charsheet" (no idea why, might just have been clicking) and I got the following error:

    RWerror.JPG

    I am running RW 0.8.8. I previously had 0.8.7 and updated.
    From my commit comment, it was the commit that I realized I didn't need the "alignment" text box I originally had since I had superimposed the alignment combobox control over it.
    Code:
        Removed Alignment Stringfield
        
        - Interim commit: added some unconfigured numberfields
        - Added new AC frame for "main" AC and intend on using original for "Surprised"/"Flanked"
    Now, since the gui appears to pile all the remaining controls on top of each other with same h/w/x/y settings, maybe that is simply it - I did something there that pulled the rug out form my controls? But his sheet I did purely by WYSIWYG placement. The charsheet_main was mostly with template positioning.
    The odd thing, is if it happened here... on Jun14 checkin, it is odd that I didn't notice it bite me until now. I've been generating for days (including today many times) until the moment I clicked on "charsheet" and it tossed this error. Then I purposely "generated" to see what would happen and only THEN did the output look messed up like the RW gui now for that sheet (wish I saved first output, but I can recreate charsheet from way older dir copy on 6th since it was the first thing I created)

    charsheet_now.JPG
    generatedcharsheet.JPG
    generatedcharsheet_now.JPG

    And this is what the last N contols on "charsheet" have for x/y/h/w which appears to be evidence of the corruption:
    charsheet_badcontrols_have_these_values_now.JPG

    PS-> I see that the Ruleset.rwp file contains stuff in windname.rwf files. If the answer to this is not obvious, is there a way I can grab an earlier charsheet.rwf and "import it" or use it to "replace" the current one and have it get "loaded"? into add.rwp project correctly?
    Or maybe I delete the "charsheet" element in the project then "import" charsheet.rwf from a prior save in git???


    The diff of the last time I changed charsheet.rwf
    Code:
    $ git diff HEAD~4 ./AdventuresDarkAndDeep/windows/charsheet.rwf
    diff --git a/AdventuresDarkAndDeep/windows/charsheet.rwf b/AdventuresDarkAndDeep/windows/charsheet.rwf
    index c7bad3c..59672ce 100644
    --- a/AdventuresDarkAndDeep/windows/charsheet.rwf
    +++ b/AdventuresDarkAndDeep/windows/charsheet.rwf
    @@ -1,29 +1,29 @@
     <DocumentElement xmlns="https://tempuri.org/Ruleset.xsd">
       <WindowControls>
         <WindowName>charsheet</WindowName>
    -    <ControlName>abilities</ControlName>
    -    <ZIndex>2</ZIndex>
    -    <ControlClass>FGSubWindow</ControlClass>
    +    <ControlName />
    +    <ZIndex>18</ZIndex>
    +    <ControlClass>FGCustomControl</ControlClass>
         <Definition>{"ArrayOfFGControlPropertyInfo":{"@xmlns:xsd":"https://www.w3.org/2001/XMLSchema","@xmlns:xsi":"https://www.w3.org/2001/XMLSchema-instance","FGControlPropertyInfo":[
    -      {"Name":"Activate"},
           {"Name":"AdvancedAnchoring","Value":{"@xsi:type":"ArrayOfAdvancedAnchor"}},
    -      {"Name":"AdvancedTemplate"},
    ...
    +      {"Name":"YPos","Value":{"@xsi:type":"xsd:int","#text":"5"}}
     ]}}</Definition>
         <LUACode />
         <GroupIndex>0</GroupIndex>
    @@ -56,49 +54,40 @@
       </WindowControls>
       <WindowControls>
         <WindowName>charsheet</WindowName>
    -    <ControlName>alignment</ControlName>
    -    <ZIndex>16</ZIndex>
    -    <ControlClass>FGStringField</ControlClass>
    +    <ControlName>abilities</ControlName>
    +    <ZIndex>2</ZIndex>
    +    <ControlClass>FGSubWindow</ControlClass>
         <Definition>{"ArrayOfFGControlPropertyInfo":{"@xmlns:xsd":"https://www.w3.org/2001/XMLSchema","@xmlns:xsi":"https://www.w3.org/2001/XMLSchema-instance","FGControlPropertyInfo":[
    +      {"Name":"Activate"},
           {"Name":"AdvancedAnchoring","Value":{"@xsi:type":"ArrayOfAdvancedAnchor"}},
           {"Name":"AdvancedTemplate"},
    ...
    +      {"Name":"XPos","Value":{"@xsi:type":"xsd:int","#text":"5"}},
    +      {"Name":"YPos","Value":{"@xsi:type":"xsd:int","#text":"100"}}
     ]}}</Definition>
         <LUACode />
         <GroupIndex>0</GroupIndex>
    @@ -119,8 +109,8 @@
       </WindowControls>
       <WindowControls>
         <WindowName>charsheet</WindowName>
    -    <ControlName>alignment_combo</ControlName>
    -    <ZIndex>20</ZIndex>
    +    <ControlName>alignment</ControlName>
    +    <ZIndex>22</ZIndex>
         <ControlClass>FGComboBox</ControlClass>
         <Definition>{"ArrayOfFGControlPropertyInfo":{"@xmlns:xsd":"https://www.w3.org/2001/XMLSchema","@xmlns:xsi":"https://www.w3.org/2001/XMLSchema-instance","FGControlPropertyInfo":[
           {"Name":"AdvancedAnchoring","Value":{"@xsi:type":"ArrayOfAdvancedAnchor"}},
    @@ -128,7 +118,7 @@
           {"Name":"BackgroundColor","Value":{"@xsi:type":"xsd:string","#text":"0;0;0;0"}},
    ...
           {"Name":"Tooltip"},
    @@ -179,7 +169,7 @@
       <WindowControls>
         <WindowName>charsheet</WindowName>
         <ControlName>alignment_label</ControlName>
    -    <ZIndex>17</ZIndex>
    +    <ZIndex>19</ZIndex>
         <ControlClass>FGLabel</ControlClass>
         <Definition>{"ArrayOfFGControlPropertyInfo":{"@xmlns:xsd":"https://www.w3.org/2001/XMLSchema","@xmlns:xsi":"https://www.w3.org/2001/XMLSchema-instance","FGControlPropertyInfo":[
           {"Name":"AdvancedAnchoring","Value":{"@xsi:type":"ArrayOfAdvancedAnchor","AdvancedAnchor":{"EdgeAnchor":"right","AnchorTo":"right","Parent":"name"}}},
    @@ -360,7 +350,7 @@ end</LUACode>
       <WindowControls>
         <WindowName>charsheet</WindowName>
         <ControlName>charsheet_header_details</ControlName>
    -    <ZIndex>23</ZIndex>
    +    <ZIndex>25</ZIndex>
         <ControlClass>FGButton</ControlClass>
         <Definition>{"ArrayOfFGControlPropertyInfo":{"@xmlns:xsd":"https://www.w3.org/2001/XMLSchema","@xmlns:xsi":"https://www.w3.org/2001/XMLSchema-instance","FGControlPropertyInfo":[
           {"Name":"AdvancedAnchoring","Value":{"@xsi:type":"ArrayOfAdvancedAnchor"}},
    @@ -421,7 +411,7 @@ end</LUACode>
       <WindowControls>
         <WindowName>charsheet</WindowName>
         <ControlName>class</ControlName>
    -    <ZIndex>18</ZIndex>
    +    <ZIndex>20</ZIndex>
         <ControlClass>FGStringField</ControlClass>
         <Definition>{"ArrayOfFGControlPropertyInfo":{"@xmlns:xsd":"https://www.w3.org/2001/XMLSchema","@xmlns:xsi":"https://www.w3.org/2001/XMLSchema-instance","FGControlPropertyInfo":[
           {"Name":"AdvancedAnchoring","Value":{"@xsi:type":"ArrayOfAdvancedAnchor"}},
    @@ -484,7 +474,7 @@ end</LUACode>
       <WindowControls>
         <WindowName>charsheet</WindowName>
         <ControlName>class_label</ControlName>
    -    <ZIndex>19</ZIndex>
    +    <ZIndex>21</ZIndex>
         <ControlClass>FGLabel</ControlClass>
         <Definition>{"ArrayOfFGControlPropertyInfo":{"@xmlns:xsd":"https://www.w3.org/2001/XMLSchema","@xmlns:xsi":"https://www.w3.org/2001/XMLSchema-instance","FGControlPropertyInfo":[
           {"Name":"AdvancedAnchoring","Value":{"@xsi:type":"ArrayOfAdvancedAnchor","AdvancedAnchor":{"EdgeAnchor":"right","AnchorTo":"right","Parent":"name"}}},
    @@ -593,7 +583,7 @@ end</LUACode>
       <WindowControls>
         <WindowName>charsheet</WindowName>
         <ControlName>level</ControlName>
    -    <ZIndex>21</ZIndex>
    +    <ZIndex>23</ZIndex>
         <ControlClass>FGNumberField</ControlClass>
         <Definition>{"ArrayOfFGControlPropertyInfo":{"@xmlns:xsd":"https://www.w3.org/2001/XMLSchema","@xmlns:xsi":"https://www.w3.org/2001/XMLSchema-instance","FGControlPropertyInfo":[
           {"Name":"AdvancedAnchoring","Value":{"@xsi:type":"ArrayOfAdvancedAnchor"}},
    @@ -657,7 +647,7 @@ end</LUACode>
       <WindowControls>
         <WindowName>charsheet</WindowName>
         <ControlName>level_label</ControlName>
    -    <ZIndex>22</ZIndex>
    +    <ZIndex>24</ZIndex>
         <ControlClass>FGLabel</ControlClass>
         <Definition>{"ArrayOfFGControlPropertyInfo":{"@xmlns:xsd":"https://www.w3.org/2001/XMLSchema","@xmlns:xsi":"https://www.w3.org/2001/XMLSchema-instance","FGControlPropertyInfo":[
           {"Name":"AdvancedAnchoring","Value":{"@xsi:type":"ArrayOfAdvancedAnchor","AdvancedAnchor":{"EdgeAnchor":"right","AnchorTo":"right","Parent":"name"}}},

    EDIT: Is there a log file for more specifics on the RW error in the first image?
    Last edited by Varsuuk; June 25th, 2023 at 08:43.

  2. #2
    Varsuuk's Avatar
    Join Date
    Dec 2015
    Location
    New York
    Posts
    2,075
    A link to the full diff of charsheet.rwf:
    https://1drv.ms/u/s!AnwhQ1k_7ppfnepC...BM6TA?e=87G7AG

    OOPS - I am not familiar with linking from any of my clouds (onedrive/icloud) it seems this asks for login. Will see if can edit (and update this note) tomorrow after investigate. I would tonight but it is past 3:30am for me now.

  3. #3
    Hi Varsuuk,

    If you have a previous backup copy of the rwf file just replace it in your project folder and reload it. The wizard will use that version of the file.


    Regarding the error, I have never seen it, send me a copy of the rwf file to check it, please.
    Ruleset Wizard
    The Ruleset Development Environment
    www.rulesetwizard.com
    Ruleset Wizard Tutorials
    Damned's Ruleset Wizard Tutorials

  4. #4
    Varsuuk's Avatar
    Join Date
    Dec 2015
    Location
    New York
    Posts
    2,075
    Will do, is there an email or site I can give you the file? Like if I should use a Discord or something? I don't know where you mainly address it etc.

    I do have an earlier one in rwf form (missing only some minor offset changes easily made). I wasn't sure if that was sufficient since I noticed that the RWP seemed to also have the stuff in rwfs so I worried mix and match wouldn't work. Good to know.

    I havw been busy all day and only just saw this since we are preparing for my 16yo son's flight to Spain next Saturday (ALONE! - he is going for a 3 week Spanish program in Sevilla) - then right after he gets home we fly to Florida so he can practice his improved speaking skills (he already understands them well) with grandma - my parents and I left Habana in '67 to come to the United States.

    I love what you did btw, very cool. I wish I had the time and ability to make a useful program like that. My day job is software engineering but in finance (mainly Treasury trading systems) for decades and I couldn't care less about finance but I am in NY and... that's where you end up after enough experience.

    EDIT: Yup, replacing it with an rwf from June 5th took care of the issue (once I moved everything down 2 pixels as I had done post June 5th but didn't have a backup of it. Going to save this file and then pull a Jun14th commit to git of this file - that one should have the pixel changes and I'd rather use that than the "saved by copy to another folder" backup in case I made other changes that I forgot about )
    Last edited by Varsuuk; June 26th, 2023 at 00:41.

  5. #5
    Varsuuk's Avatar
    Join Date
    Dec 2015
    Location
    New York
    Posts
    2,075
    PS - Looking at the layout, it appears index "16" got skipped/lost (most likely corrupted, we cannot exclude that >>I<< might be at fault as I have VI'ed filed to see how things are stored. Perhaps I hit a key and corrupted something. But in case it was due to the 0.8.8 switch since it happened right after that, I wanted to send you the info)

    The corrupted one, but I am not 100% sure this was initial corruption or, after I removed or modified a field in the GUI stopping the error report. However, I do see it goes 0-24 with #16 missing after looking again today.
    Code:
    DanDe@Celeborn MINGW64 /d/Development/Ruleset Wizard/Adventures Dark and Deep (feature/feature/charsheet_main__layout_implementation)
    $ grep -i zindex ./AdventuresDarkAndDeep/windows/charsheet.rwf
        <ZIndex>2</ZIndex>
        <ZIndex>21</ZIndex>
        <ZIndex>20</ZIndex>
        <ZIndex>17</ZIndex>
        <ZIndex>9</ZIndex>
        <ZIndex>0</ZIndex>
        <ZIndex>24</ZIndex>
        <ZIndex>18</ZIndex>
        <ZIndex>19</ZIndex>
        <ZIndex>3</ZIndex>
        <ZIndex>22</ZIndex>
        <ZIndex>23</ZIndex>
        <ZIndex>1</ZIndex>
        <ZIndex>12</ZIndex>
        <ZIndex>13</ZIndex>
        <ZIndex>4</ZIndex>
        <ZIndex>8</ZIndex>
        <ZIndex>7</ZIndex>
        <ZIndex>14</ZIndex>
        <ZIndex>15</ZIndex>
        <ZIndex>10</ZIndex>
        <ZIndex>5</ZIndex>
        <ZIndex>11</ZIndex>
        <ZIndex>6</ZIndex>
    Then the older one I had saved (goes 0-23):
    Code:
    DanDe@Celeborn MINGW64 /d/Development/Ruleset Wizard/Adventures Dark and Deep (feature/feature/charsheet_main__layout_implementation)
    $ grep -i zindex ../SAVE2_AdventuresDarkandDeep/AdventuresDarkAndDeep/windows/charsheet.rwf
        <ZIndex>2</ZIndex>
        <ZIndex>16</ZIndex>
        <ZIndex>20</ZIndex>
        <ZIndex>17</ZIndex>
        <ZIndex>9</ZIndex>
        <ZIndex>0</ZIndex>
        <ZIndex>23</ZIndex>
        <ZIndex>18</ZIndex>
        <ZIndex>19</ZIndex>
        <ZIndex>3</ZIndex>
        <ZIndex>21</ZIndex>
        <ZIndex>22</ZIndex>
        <ZIndex>1</ZIndex>
        <ZIndex>12</ZIndex>
        <ZIndex>13</ZIndex>
        <ZIndex>4</ZIndex>
        <ZIndex>8</ZIndex>
        <ZIndex>7</ZIndex>
        <ZIndex>14</ZIndex>
        <ZIndex>15</ZIndex>
        <ZIndex>10</ZIndex>
        <ZIndex>5</ZIndex>
        <ZIndex>11</ZIndex>
        <ZIndex>6</ZIndex>
    Edit:

    Looking at the last change for that file, I realize I don't have a "newish" one in git I made too many changes before checking in. So the one I reloaded then adjusted for the pixel shift is probably best way to go. That said, it DOES appear that the issue was the last thing I changed - which makes sense. I recall saying I do not need the Stringfield for alignment because I now will use a combo field for that.

    So I suspect, if the issue was caused IN THE GUI and not be my doing something I wasn't supposed to in file, then it probably went something like this:

    I had
    stringfield [alignment]
    label [alignment_label]
    ...
    ... other fields
    ...
    combobox [alignment] -->added later

    Then I recall trying to save and being told I had 2 controls of the same name. I had renamed aligment_combobox to aligment above, creating a dupe.
    So I deleted alignment - I think while BOTH were called that, maybe that messed up some index. Then I think I renamed the [combobox] alignment to alignment_combobox and moved it more into background order.

    So maybe testing having 2 controls with same name (ie: can't save) then hitting "delete" one one (the older/earlier one, in my case) and then renaming the other one to a new name before/after saving not sure.
    Last edited by Varsuuk; June 26th, 2023 at 01:03.

  6. #6
    Hi Varsuuk,

    In the Fantasy Grounds discord there is a channel dedicated to Ruleset Wizard: https://discord.gg/fantasygrounds , you can also send me an email to [email protected].


    I'm glad you solved the problem, although I would still like to have the corrupted file to investigate the source of the problem. If not I will try replicating the steps you have indicated.

    I'm sure your son will have a great time in Sevilla, the city is very nice and the people are very friendly, although it is quite hot at this time of the year.
    Ruleset Wizard
    The Ruleset Development Environment
    www.rulesetwizard.com
    Ruleset Wizard Tutorials
    Damned's Ruleset Wizard Tutorials

  7. #7
    Varsuuk's Avatar
    Join Date
    Dec 2015
    Location
    New York
    Posts
    2,075
    I will definitely send the files tomorrow. I will also see if I can replicate it (I’ve all my recent updates and redo in git so it’s safe). I’m already in bed before I read this.

    Yeah, we JUST looked this evening after walking home from a deli and thinking how hot it was once we get inside to the AC. It was 81F. I suspected, and was right and told him I see it was like 107F in Sevilla today hehe. And it looks like it is predicted to have “cooled off” to 97F by the time he arrives (he leaves Sat but has a 6 hour layover at Gatwick.)

    Eep, I thought Texas was bad those times I had to go there in the 80s for Annual meetings

    NY gets bad some Augusts but 101F is crazy hot here. Not at all usual though (unlike Dog Day Afternoon implies, I think it was only 87F then but it CAN get horribly muggy in the city)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
DICE PACKS BUNDLE

Log in

Log in