Loading ...
Sorry, an error occurred while loading the content.

Re: [pcgen_developers] Formula Coder help... getting this in a set I'm debugging

Expand Messages
  • Eric C Smith
    I checked the course and it should be 1+CL/3+CL/5 Maredudd
    Message 1 of 7 , Feb 4, 2013
    • 0 Attachment
      I checked the course and it should be 1+CL/3+CL/5

      Maredudd

      On Feb 4, 2013, at 7:25 PM, Andrew wrote:

      >
      >
      > Hi,
      >
      > I honestly don't know. I can't make heads or tales of what it's mean
      >
      > # Tal Kanath Dancer of the Elements
      > Armor Bonus Ability CATEGORY:Special Ability TYPE:Internal.Extraordinary VISIBLE:NO SAB:Armor Bonus (Ex) BONUS:COMBAT|AC|1+(CL>=3)+(CL>=5)|TYPE=Shield|PREMULT:2,[PREVAREQ:ENCUMBERANCE,0],[PREEQUIP:1,TYPE=Armor.Medium,TYPE=Armor.Heavy]
      >
      >
      > I'm debugging the Arcanis Players Guide in 3.5 mode, and it's one of the massive flood of errors I'm working through.
      >
      > On 2/4/2013 4:05 PM, James Dempsey wrote:
      >> Hi Andrew,
      >>
      >> Yep, that doesn't look valid to me. What are you trying to achieve?
      >>
      >> Cheers,
      >> James Dempsey
      >> PCGen Code SB
      >>
      >>
      >> On 5 February 2013 10:57, Andrew <drew0500@...> wrote:
      >>
      >>
      >> Hi,
      >>
      >> BONUS:COMBAT|AC|1+(CL>=3)+(CL>=5)
      >>
      >> 15:46:28.78 SEVERE Thread-6 LstObjectFileLoader:466 Error parsing filefile:/D:/pcgen/pcgen_dev/Trunk/pcgen/data/d20ogl/paradigm_concepts/arcanis/players_guide_to_arcanis/playersguidetoarcanis_abilities_class_prestige.lst line 437: COMBAT|AC|1+(CL>=3)+(CL>=5 reached end of String while attempting to match: )
      >> 15:46:28.79 SEVERE Thread-6 LstObjectFileLoader:468 Errors.LstFileLoader.Ignoring: COMBAT|AC|1+(CL>=3)+(CL>=5 reached end of String while attempting to match: ) not defined.
      >>
      >> --
      >> Andrew Maitland (LegacyKing)
      >> Admin Silverback - PCGen Board of Directors
      >> Data 2nd, Docs Tamarin, OS Lemur
      >> Unique Title "Quick-Silverback Tracker Monkey"
      >> Unique Title "The Torturer of PCGen"
      >>
      >>
      >>
      >
      > --
      > Andrew Maitland (LegacyKing)
      > Admin Silverback - PCGen Board of Directors
      > Data 2nd, Docs Tamarin, OS Lemur
      > Unique Title "Quick-Silverback Tracker Monkey"
      > Unique Title "The Torturer of PCGen"
      >
      >
      >
    • thpr
      The formula: BONUS:COMBAT|AC|1+(CL =3)+(CL =5) should be valid in JEP. It allows the = stuff to do a boolean (and would resolve the same way as the if
      Message 2 of 7 , Feb 4, 2013
      • 0 Attachment
        The formula:

        BONUS:COMBAT|AC|1+(CL>=3)+(CL>=5)

        should be valid in JEP. It allows the >= stuff to do a "boolean" (and would resolve the same way as the if based code Andrew Wilson provided)

        That being said, the current parser is not nearly smart enough to pick up on such support. It is simply trying to match parenthesis. It caught a perfectly valid error in the data...

        The formula Andrew Maitland provided at the beginning of his note:

        BONUS:COMBAT|AC|1+(CL>=3)+(CL>=5)

        is NOT what the error reads. (This seems to be a case of human being filling in what it thinks should be there, not what is actually present.) Let's review the message:

        > 15:46:28.78 SEVERE Thread-6 LstObjectFileLoader:466 Error parsing file
        > file:/D:/pcgen/pcgen_dev/Trunk/pcgen/data/d20ogl/paradigm_concepts/arcanis/players_guide_to_arcanis/playersguidetoarcanis_abilities_class_prestige.lstline 437: COMBAT|AC|1+(CL>=3)+(CL>=5 reached end of String while attempting
        > to match: )
        > 15:46:28.79 SEVERE Thread-6 LstObjectFileLoader:468
        > Errors.LstFileLoader.Ignoring: COMBAT|AC|1+(CL>=3)+(CL>=5 reached end of
        > String while attempting to match: ) not defined.

        Note 2 things here:
        (1) This is referencing Line 437, which is Deflect Attack. (Not what Andrew M later provided). The Deflect Attack line that should be analyzed for a problem.
        (2) The token on that line and in the error message is: BONUS:COMBAT|AC|1+(CL>=3)+(CL>=5

        Note the missing parenthesis at the end. That is the error the loading system is catching. Just add a close parenthesis (give or take that Eric just provided a different answer to what the formula should be)

        TP.
      • Andrew
        Hi, Thanks for all the help. Yes, it caught the missing parenthesis. I m down to 700 lines of error log (woot!) ... -- Andrew Maitland (LegacyKing) Admin
        Message 3 of 7 , Feb 4, 2013
        • 0 Attachment
          Hi,

          Thanks for all the help. Yes, it caught the missing parenthesis.

          I'm down to 700 lines of error log (woot!)

          On 2/4/2013 5:22 PM, thpr wrote:
          The formula:
          
          BONUS:COMBAT|AC|1+(CL>=3)+(CL>=5)
          
          should be valid in JEP.  It allows the >= stuff to do a "boolean" (and would resolve the same way as the if based code Andrew Wilson provided)
          
          That being said, the current parser is not nearly smart enough to pick up on such support.  It is simply trying to match parenthesis.  It caught a perfectly valid error in the data... 
          
          The formula Andrew Maitland provided at the beginning of his note:
          
          BONUS:COMBAT|AC|1+(CL>=3)+(CL>=5)
          
          is NOT what the error reads.  (This seems to be a case of human being filling in what it thinks should be there, not what is actually present.)  Let's review the message:
          
          
          15:46:28.78 SEVERE Thread-6 LstObjectFileLoader:466 Error parsing file
          file:/D:/pcgen/pcgen_dev/Trunk/pcgen/data/d20ogl/paradigm_concepts/arcanis/players_guide_to_arcanis/playersguidetoarcanis_abilities_class_prestige.lstline 437: COMBAT|AC|1+(CL>=3)+(CL>=5 reached end of String while attempting
          to match: )
          15:46:28.79 SEVERE Thread-6 LstObjectFileLoader:468
          Errors.LstFileLoader.Ignoring: COMBAT|AC|1+(CL>=3)+(CL>=5 reached end of
          String while attempting to match: ) not defined.
          
          Note 2 things here:
          (1) This is referencing Line 437, which is Deflect Attack.  (Not what Andrew M later provided).  The Deflect Attack line that should be analyzed for a problem.
          (2) The token on that line and in the error message is: BONUS:COMBAT|AC|1+(CL>=3)+(CL>=5
          
          Note the missing parenthesis at the end.  That is the error the loading system is catching.  Just add a close parenthesis (give or take that Eric just provided a different answer to what the formula should be)
          
          TP.
          
          
          
          
          ------------------------------------
          
          Yahoo! Groups Links
          
          <*> To visit your group on the web, go to:
              http://groups.yahoo.com/group/pcgen_developers/
          
          <*> Your email settings:
              Individual Email | Traditional
          
          <*> To change settings online go to:
              http://groups.yahoo.com/group/pcgen_developers/join
              (Yahoo! ID required)
          
          <*> To change settings via email:
              pcgen_developers-digest@yahoogroups.com 
              pcgen_developers-fullfeatured@yahoogroups.com
          
          <*> To unsubscribe from this group, send an email to:
              pcgen_developers-unsubscribe@yahoogroups.com
          
          <*> Your use of Yahoo! Groups is subject to:
              http://docs.yahoo.com/info/terms/
          
          
          

          --
          Andrew Maitland (LegacyKing)
          Admin Silverback - PCGen Board of Directors
          Data 2nd, Docs Tamarin, OS Lemur
          Unique Title "Quick-Silverback Tracker Monkey"
          Unique Title "The Torturer of PCGen"
        Your message has been successfully submitted and would be delivered to recipients shortly.