crash in ivanilla

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • fizzix
    Prophet
    • Aug 2009
    • 2969

    crash in ivanilla

    I think it has something to do with reaching clevel 41. I've crashed 3 times in a row after killing the great swamp wyrm.
    Attached Files
  • fizzix
    Prophet
    • Aug 2009
    • 2969

    #2
    well I've verified that a warrior crashes after reaching level 40 too. Still haven't figured out why.

    doesn't crash with mages probably has something to do with PSEUDO_ID_IMPROV

    actually, warriors crash at clevel 31, I think it crashes when this calculation goes negative, probably because all of the variables are unsigned...

    rate = cp_ptr->sense_base - (p_ptr->lev * cp_ptr->sense_div);

    sweet, changing rate from an unsigned int to a regular int seems to solve it.
    Last edited by fizzix; October 29, 2010, 03:10.

    Comment

    • ewert
      Knight
      • Jul 2009
      • 718

      #3
      PSEUDO_ID_IMPROV is totally gone so shouldn't be that yep.

      Just reusing code already there has pitfalls it seems, changed it to regular int in the source too.

      PS. You using also the p_class.txt etc. changed lib files in your gaming directory?

      Comment

      • fizzix
        Prophet
        • Aug 2009
        • 2969

        #4
        Originally posted by ewert
        PSEUDO_ID_IMPROV is totally gone so shouldn't be that yep.

        Just reusing code already there has pitfalls it seems, changed it to regular int in the source too.

        PS. You using also the p_class.txt etc. changed lib files in your gaming directory?
        yup, using your p_class file. the problem was entirely because rate was an unsigned int. (this was the bug alluded to in the chardump.)

        Comment

        Working...
        😀
        😂
        🥰
        😘
        🤢
        😎
        😞
        😡
        👍
        👎