Rpg maker vx ace Marshall_dump error

Hello. I been reading about the marshal_dump error on certain scripts. I have it and I know exactly where it`s coming from. Its Moghunter`s schala battle system script. If I new game by a save point and save then it will allow me. However when I enter a different area like transfer to anywhere and then come back to save it wont let me. If I start off in a different map location then the save point then transfer to the same map where the save point is it wont let me save. It will only let me save if I new game in the same area as the save point. Otherwise it plays a buzzer sound. Any help?? I need it.
How do you know it's coming from that script? If you disable that script completely, start a new game and follow the same steps, does the issue still happen?
How do you know it's coming from that script? If you disable that script completely, start a new game and follow the same steps, does the issue still happen?
No. When I disable all of it, it works fine. I love this script and I want it to work with the engine. It was working before I got it so I knew what it was and I just confirmed it by deleting it and it works and bringing it back and it doesnt.
Is that all it tells you? "marshal_dump" is ALL of the error text? In the past, this has happened because of some kind of animation or balloon that's set to repeating on an event. It could also be that one of the $game_... classes has a sprite as a property, and that could be what the problem is in this case.

The only way I've been able to find out the cause of the problem in these situations is to get into the script where it tries to save, and put in a heap of debug statements to output stuff to the screen, so I can see exactly what it's objecting to.
Is that all it tells you? "marshal_dump" is ALL of the error text? In the past, this has happened because of some kind of animation or balloon that's set to repeating on an event. It could also be that one of the $game_... classes has a sprite as a property, and that could be what the problem is in this case.

The only way I've been able to find out the cause of the problem in these situations is to get into the script where it tries to save, and put in a heap of debug statements to output stuff to the screen, so I can see exactly what it's objecting to.
You want me to send you the script? I looked this problem up and somebody else had a similar problem and one guy said replace some in datamanager so it can crash and tell you the problem. I did that and it said somthing about Marshall_dump
But you could be right. I heard somebody said something similar to what you`re saying but the problem they had was they couldn`t `locate it. I know the script is the problem. it has its on save mechanics in there. I never found where somebody actually told somebody the solution once they located the script causing the problem
It needs to be more specific than just marshall_dump though. When I had to do this last, I tracked it down to a specific event that had a reference to a specific sprite, and that's what was causing the issue.

I'm afraid I don't have time to help you look at this - only got half a day of my weekend left and I haven't done anything on my OWN game yet ...

have you got a link to the script itself? I can take a quick look at it, but not if it's a demo that I'd have to download.
@Shaz Moghunter's scripts are usually demos, sadly.
@KOC-316 Try to open up your game again, and when it gives you the error, take a screenshot of it so that we can see the exact wording. I have the script, so I should be able to follow along.
@Shaz Moghunter's scripts are usually demos, sadly.
@KOC-316 Try to open up your game again, and when it gives you the error, take a screenshot of it so that we can see the exact wording. I have the script, so I should be able to follow along.
no marshal_dump is defined for class Proc ---thats the error
My bad. It`s this error right here. I added a script to locate the problem and it`s this. I attached the screenshot
All right, so it may be what Shaz says in that case since it's mentioning Bitmaps. If that's not the issue, then there's very likely either a conflicting script or you've tampered with the core scripts in some way, so the fix for that would be to try it in a blank project and see if it works.
@KOC-316
please follow the link "how to use a script" in my signature to the bughunting sections, download and install the backtracer linked there.
then activate the console before playtest, play again until the error happens and give us a screenshot of the console output of that error's backtrace.
this might help in pinpointing what exactly is involved.
All right, so it may be what Shaz says in that case since it's mentioning Bitmaps. If that's not the issue, then there's very likely either a conflicting script or you've tampered with the core scripts in some way, so the fix for that would be to try it in a blank project and see if it works.
what do you mean? Get a new project and import the schala battle system in there and try it?
@KOC-316
please follow the link "how to use a script" in my signature to the bughunting sections, download and install the backtracer linked there.
then activate the console before playtest, play again until the error happens and give us a screenshot of the console output of that error's backtrace.
this might help in pinpointing what exactly is involved.
I did what you said. Is this right? I showed all of this when I did it.
I did what you said. Is this right? I showed all of this when I did it.
My bad I mean this.
Yes.
The backtrace names all scripts involved in that error, the cause can only be in one of those, no where else.
It will still be a lot of work to find the cause, but it usually eliminates a lot of other error causes.

In this case I suggest completely disabling that "locate save error" script and try again how the backtracer looks without it.
Yes.
The backtrace names all scripts involved in that error, the cause can only be in one of those, no where else.
It will still be a lot of work to find the cause, but it usually eliminates a lot of other error causes.

In this case I suggest completely disabling that "locate save error" script and try again how the backtracer looks without it.
That locate save error is whats telling me the problem along side your backtrace script. I disabled it and that backtrace didnt work. It went back to square one which is make that buzzer sound preventing me from saving
Yes.
The backtrace names all scripts involved in that error, the cause can only be in one of those, no where else.
It will still be a lot of work to find the cause, but it usually eliminates a lot of other error causes.

In this case I suggest completely disabling that "locate save error" script and try again how the backtracer looks without it.
There won't be any error report that way, the save method got that nasty rescue method which will prevent the game from crashing.

And in this case, that backtracer alone won't help one bit.
You need to find the exact object which contains that Bitmap, and the backtracer script won't lead you any closer to that.
That bitmap is somewhere in any of the objects listed in the make_save_header method in the DataManager module.
You will need to manually debug this, no way around it.

In the method mentioned, comment out each line (but leave the first and last lines alone!), one by one and try to save the game afterwards. You will always need to start a new game, do the stuff which triggers this issue, and try to save afterwards, you can NOT load any save files during this debug process.
If you can save the game without the error after you commented out a line, than the object from that line contains the problematic bitmap.
If you still can't save the game, restore the line you previously commented out, and move on to the next one.
Once you pinpoint the object holding the bitmap, you will have to dig deeper, manually check every single instance variable which could be connected to any kind of bitmaps (well, sprites, most probably, which contains bitmaps).

And make sure to search the method I mentioned above in your custom scripts as well. Many of those can overwrite or alias it, and obviously, if that happens, you will need to move your debugging (or part of it) to these custom scripts.

Let us know which line from that method is causing the issue, and we can continue from there.
what do you mean? Get a new project and import the schala battle system in there and try it?
Yes, it's the way to make sure the script is problematic or not
This issue is not present in Moghunter's demo, so you can spare the time of testing it, I did that yesterday out of curiosity.
I used the 2.0 version of the Schala demo, so if it's updated, you should test it, otherwise, don't waste your time.

Original thread: https://forums.rpgmakerweb.com/threads/rpg-maker-vx-ace-marshall_dump-error.92477/