This is a little urgent so I don't really have time to look into the intricacies of this (probably best if someone with experience in this particular area handles this), but I think we're dealing with the RAM here.
Anyway, would it be possible to have a script activateable by script call that safely clears the entire cache/ram for the game? (And loads up the current map again if necessary)
I ask this because there is a segment of game where a lot of image files appear and thus enter the ram/cache, and from what I've seen and read, it isn't cleared out until the game is closed. Incidentally, before the game is closed, battles stop working and then when the game is reopened and reloaded, they work again. This leads me to believe there is a cacheing issue going on here. Like, new things cannot enter the cache because the cache is too full of old images or something like that.
(Basically, battles stop working until the game is saved and reloaded which is really odd)
Otherwise, a forced save and reload MIGHT work here if the above is too difficult.
Will take further suggestions.
Thanks!