Heya,
I'm using the CP Large Sprite Fix plugin by Neon Black, which comes with RMMV (RPG Maker MV\dlc\RPGmakerWeb_plugins\Neonblack).
The plugin is fantastic and I absolutely cannot give up on it, but if I use really big sprites with it, it causes a memory usage spike which eventually crashes my game. Example for such a sprite:
(Image by Nanikasira)
The problem seems to happen when the event passes below a Star-passability tile and activates the plugin's intended purpose.
With what limited plugin coding knowledge I have, I tried pinpointing the problem, and the culprit is apparently the 'setUpperSprite' function, at line 222. If I comment out the entire function, the problem stops... but obviously the plugin stops working, too :hswt:
If anyone more experienced with coding can help out and figure a way to prevent memory spiking, I'll have a cookie or two sent to your house 😀
A video demonstrating the issue:
The memory usage isn't TOO bad in the video, but in my project I have a whole city with lots of vehicles driving around, so... It crashes rather fast :C
To replicate the bug in a new default project, make an event with the truck sprite, and have it move back and forth. Put a star-passability tile above it, with the appropriate Terrain Tag (7 by default). The truck's filename needs the '!$' prefix. It should look kinda like this:
Hopefully I won't have to give up on the plugin and/or the big trucks. They're both too awesome ;-;
Thanks in advance~
I'm using the CP Large Sprite Fix plugin by Neon Black, which comes with RMMV (RPG Maker MV\dlc\RPGmakerWeb_plugins\Neonblack).
The plugin is fantastic and I absolutely cannot give up on it, but if I use really big sprites with it, it causes a memory usage spike which eventually crashes my game. Example for such a sprite:
(Image by Nanikasira)
The problem seems to happen when the event passes below a Star-passability tile and activates the plugin's intended purpose.
With what limited plugin coding knowledge I have, I tried pinpointing the problem, and the culprit is apparently the 'setUpperSprite' function, at line 222. If I comment out the entire function, the problem stops... but obviously the plugin stops working, too :hswt:
If anyone more experienced with coding can help out and figure a way to prevent memory spiking, I'll have a cookie or two sent to your house 😀
A video demonstrating the issue:
The memory usage isn't TOO bad in the video, but in my project I have a whole city with lots of vehicles driving around, so... It crashes rather fast :C
To replicate the bug in a new default project, make an event with the truck sprite, and have it move back and forth. Put a star-passability tile above it, with the appropriate Terrain Tag (7 by default). The truck's filename needs the '!$' prefix. It should look kinda like this:
Hopefully I won't have to give up on the plugin and/or the big trucks. They're both too awesome ;-;
Thanks in advance~