Update: I think I actually found the problem.
It isn't a memory leak but somethign similiar. Once a enemy is fought the event gets ereased until the player reentering the map. And all currently earased events take up memory so by exsample fighting many enemies on various maps without revisiting the areas to reset the enemies will fill up the memory until the programm will crash once it exceeds 4gb. I also did some test runs now in the sewers with the new changes and the memory usage dosen't increases after every fight now. So this should be fixed.
The easiest solution would be to make random map encounters like most rpg's have to avoid using the erase event function so much. But I decided for soemthing different. Enemies won't get erased now then fighting with them, they only get pushed away, meaning tehy can be refighted as many times as you want. That's the solution I came up with.
Yeah, i made a lot of extra code that needs to get read when putting characters in or out the party so it sadly cant done from the menu. But i could make a lot more spots where party members can be added. Like at every warp crystal for exsample.
Skills are arrange by their id in the rpg maker engine. There is sadly not much that can be done against that. But if i should find a way i certainy would like to add a sorting feature.
Yeah taht certainly is something that can be included, i will do that.
I see, then i will remove the possibility of being able to encounter two fairies at once there for a test. And good to know, i will nerf that skill for the manticore boss.
Also thanks a lot for the feedback
Most likly will be released next month, I certainly wnat to get rid of this game crash before!