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
EDIT: Added some screen shots into spoiler...
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
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
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:
When bug occurs:
End Result:
When bug occurs:
End Result:
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