Does this happen to anyone else? Unable to save with parallel balloon

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,848
First Language
English
While saving, the console kept saying "Object too deep", which sounds like a problem when it's trying to serialize the data using JsonEx.


I was wondering why my game couldn't save. Spent maybe 10 mins turning off all plugins, turning them back on, thinking maybe it's a combination of them that caused problems.


Then I finally narrowing it down to this:





It's an event that just keeps showing a balloon on the event itself.


When I try to save my game, it doesn't want to save.
 
Last edited by a moderator:

Hudell

Dog Lord
Veteran
Joined
Oct 2, 2014
Messages
3,546
Reaction score
3,717
First Language
Java's Crypt
Primarily Uses
RMMZ
If the problem is happening on the serialization, it's probably a circular reference.

We just need to find out what is causing it. I glanced over the character class and it appears that the balloon is only referenced by id, but I'll check better.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,111
Reaction score
13,713
First Language
English
Primarily Uses
RMMV
Someone else posted the same error message earlier.  Of course there was no indication if they had something similar happening.
 

Hudell

Dog Lord
Veteran
Joined
Oct 2, 2014
Messages
3,546
Reaction score
3,717
First Language
Java's Crypt
Primarily Uses
RMMZ
When the balloon is playing, it receives a reference to the Game_Interpreter instance. This means that JsonEx is trying to serialize the whole interpreter on the save file :/

Edit: Actually, any running parallel process would cause the interpreter to be serialized, but when a balloon is playing, the interpreter receives a reference to the character that is playing it, making a circular reference.
 
Last edited by a moderator:

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,111
Reaction score
13,713
First Language
English
Primarily Uses
RMMV
I wonder if you could make the bubble into an animation, and use my Looping Animations plugin, as a way around it?  Doesn't require parallel process.  Though a normal parallel process event to show an animation on an event might have the same issue, as I think animations & balloons on events are done in a similar way.

Is the issue because it's a parallel process?  If it were just a single iteration, and you tried to save at exactly the time it was playing, would it also give you the error?  (This might be easier to test with an animation that has a lot more than 8 frames, if the issue happens with animations on parallel process events too)
 
Last edited by a moderator:

Hudell

Dog Lord
Veteran
Joined
Oct 2, 2014
Messages
3,546
Reaction score
3,717
First Language
Java's Crypt
Primarily Uses
RMMZ
The event has it's own interpreter because it is parallel. With any other trigger, the interpreter class wouldn't be serialized.

Still, is there even a reason to serialize the interpreter? I have to check how it worked on ace, but I imagine this is just a simple problem of not paying attention to what they were doing when they wrote the serialization.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,049
Messages
1,018,546
Members
137,835
Latest member
yetisteven
Top