Pearl ABS V3 Crashing to desktop.

Discussion in 'RGSSx Script Support' started by gregbaby, Aug 10, 2017.

  1. gregbaby

    gregbaby Evil Genius. o_O Veteran

    Messages:
    255
    Likes Received:
    11
    Location:
    The world.
    First Language:
    English
    Primarily Uses:
    RMVXA
    Hello again!

    Script in question:
    https://falcaorgss.wordpress.com/2012/12/02/falcao-pearl-abs-liquid-v1/
    I've been having problems with my game crashing a lot due to this error message:

    Script '- Pearl Kernal' line 101: RGSSError occured.

    disposed bitmap

    def self.draw_i_gauge(bitmap, x, y, back, image, nm, max, tag, name)
    cw = back.width - IT REFERS TO THIS LINE HERE
    ch = back.height
    max = 1 if max == 0
    src_rect = Rect.new(0, 0, cw, ch)
    bitmap.blt(x - 10, y - ch + 30, back, src_rect)
    cw = image.width * nm / max
    ch = image.height
    src_rect = Rect.new(0, 0, cw, ch)
    bitmap.blt(x - 10, y - ch + 30, image, src_rect)
    bitmap.draw_text(x - 4, y + back.height - 14, back.width, 32, tag)
    bitmap.draw_text(x - 12, y + back.height - 14, back.width, 32, nm.to_s, 2)
    bitmap.draw_text(x - 6, y - 10, back.width, 32, name, 1) if !name.nil?
    end

    EDIT: Added some screen shots into spoiler...

    Before the error: example2.png

    When bug occurs: example.png

    End Result: error.png

    Whats basically happening is when a player transfers a map the Skillbar fades out then fades back in, this is normal for the ABS but sometimes it fails to load back in properly, if I then go on to attack an enemy or try to speak with an NPC I get a crash to desktop.

    However if I press the N Key to open up the Quick Tool menu it refreshes the skillbar and I can keep playing as normal, if I'm mindful while playtesting I wont get crashes so long as I refresh the skillbar every time it happens but I doubt a prospective gamer is going to tolerate a bug like this lol.

    I need to find a way of refreshing the the skill bar when I enter a map because at the moment this happens every now and again and its frustrating.

    I've tried using the script calls to show the huds/skillbar upon entering a map but it still loads the skillbar in wonky, I'm not quite sure whats causing the issue. All you see is the icons and a smudged version of the skillbar.

    Any advice or tips would be greatly appreciated as at present this is a game breaking bug that destroys immersion lol
     
    Last edited: Aug 10, 2017
    #1
  2. bgillisp

    bgillisp Global Moderators Global Mod

    Messages:
    11,776
    Likes Received:
    11,804
    Location:
    USA
    First Language:
    English
    Primarily Uses:
    RMVXA

    I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.


    RGSSx Script Requests is for a script made from the beginning.
     
    #2
    gregbaby likes this.
  3. Sixth

    Sixth Veteran Veteran

    Messages:
    2,122
    Likes Received:
    792
    First Language:
    Hungarian
    Primarily Uses:
    RMVXA
    You certainly have some issues with the toolbar, but the error you get is not because of that.
    It is referring to a method used in drawing the HP/MP/EXP bars with images.
    This can be from the enemy HP bars or from the Actor HP/MP/EXP bars.

    Debugging this without your project is close to impossible.
    I don't even know how can those bitmaps be disposed, since Falcao only loads them and never disposes them afterwards at all.
    Have you modified something in the Life Bars addon script or in the PearlKernel script?
    I never used Falcao's image bars in his ABS, so no idea if it has any bugs or not by default.

    Just to test it, remove the Life Bars addon script and see if the error keeps popping up or not.
     
    #3
  4. gregbaby

    gregbaby Evil Genius. o_O Veteran

    Messages:
    255
    Likes Received:
    11
    Location:
    The world.
    First Language:
    English
    Primarily Uses:
    RMVXA
    I use custom images for the life bars and I did edit the script to hide the text (HP, MP) etc but left the numbers on the right as is, but besides that it's the same and no major modifications. I'll try removing the script and testing and also replacing with original unedited version of the script to see if that helps. It's an odd issue!
     
    #4

Share This Page