"Disposed bitmap" error's with MOG's scripts.

can anyone tell me how to fix this problem that i'm having in 3 scripts. from what i'm told it acts like the image or object to that script is not there and/or counts it as not impotent or something like that. so my game keeps crashing because of this. what do i have to do to stop this?

the scrips that are giving me the problem

https://atelierrgss.wordpress.com/rgss3-boss-hp-meter/

https://atelierrgss.wordpress.com/rgss3-burst-mode/

https://atelierrgss.wordpress.com/rgss3-combo-count/

also would i have to worry about this problem with any other MOG script?
You'd need to give the exact error message and line number that's throwing it
You'd need to give the exact error message and line number that's throwing it

for the combo count it says:

"Sctipt'MOG_Combo_Count' line 185: RGSSError occurred"

"Disposed bitmap"


for the boss meter:

"Script 'MOG_Bodd_HP_Meter' line 442: NameError occurred."

"undefined local variable or method 'dispose_bitmap_face' for #<Boss_HP_Meter:0x10453aac>"

the Burst Gauge seems to work fine from what i can tell. now i just need to learn how to use it right

something i want to point out at this point i removed all disposed commands from the scripts. i can out them back in if needed
for the combo count it says:

"Sctipt'MOG_Combo_Count' line 185: RGSSError occurred"

"Disposed bitmap"


for the boss meter:

"Script 'MOG_Bodd_HP_Meter' line 442: NameError occurred."

"undefined local variable or method 'dispose_bitmap_face' for #<Boss_HP_Meter:0x10453aac>"

the Burst Gauge seems to work fine from what i can tell. now i just need to learn how to use it right

Edit: i fixed the thing with the boss meter for now still doing some more test

Edit2: still havig problems with boss meter. it says the following:

"script 'MON_Boss_HP_Meter' line 286: RGSSError occurred."

"disposed bitmap"

something i want to point out at this point i removed all disposed commands from the scripts. i can out them back in if needed

also sorry for double posting i was never trying to do that i only wanted to edit my other post.
yeah, deleting lines from scripts is never a really good idea.

I'd go grab the original scripts and copy them back over, then see how it goes.

If you can do that then zip up and load your project up somewhere online, I might be able to take a look at it over the weekend.
yeah, deleting lines from scripts is never a really good idea.

I'd go grab the original scripts and copy them back over, then see how it goes.

If you can do that then zip up and load your project up somewhere online, I might be able to take a look at it over the weekend.
ok sent
Can you please rerun and give the full error messages again, now that you've reinstated the original scripts?

And let me know what I need to do to reproduce those error messages - if I can possibly create a new, blank map and only add one or two events to set up the conditions and trigger it, that'd be great. I don't want to spend a lot of time playing before I encounter the errors.
*bump*
I'm sorry - I thought I got back to you with this.

I couldn't find anything obvious, so I did a search on Google. Turns out at least one other has had this problem, and it was fixed by reverting to an earlier version of the script. The version they had is not the one that you have, so it looks like the issue is with more than one latest version.
I'm sorry - I thought I got back to you with this.

I couldn't find anything obvious, so I did a search on Google. Turns out at least one other has had this problem, and it was fixed by reverting to an earlier version of the script. The version they had is not the one that you have, so it looks like the issue is with more than one latest version.
aww pork! as far as i can tell there isn't a back log of MOG's old scripts. even thought its a bad idea i'm going to do what i did before and remove the dispose command becaues they work when thats not in them. unless i can find the old scripts. in the worst case i'll remover the boss meter and look for a different one. that or just give up on that.....which sucks :/
Removing the dispose commands will just mean that the image will stay in memory and not be cleared. If it's the same variable being used each time, it will eventually clean itself up (if XP does garbage collection - I don't remember).
is there a folder or something where this fills up or something?
no, it's just in memory.
ok then i'll just run a few test see what happens and see if i'm just going to have to change up what i'm doing
bump*
bumpy*
Would you like me to take a stab at it? I've learned a fair bit over the last few months and fixed several disposed problems and memory leaks for myself. I still have some that I don't know what to do about and some that are not actually problems. I'm not perfect like other scripters are, but I'm happy to try for you.
sure. want me to send my game or are you going to try on your own? o:
PM me a link to your demo

Original thread: https://forums.rpgmakerweb.com/threads/disposed-bitmap-errors-with-mogs-scripts.93909/