← Back to joiplay

Patreon

Temporary workaround for Pokémon Essentials based games

Published 04/01/2020, 06:34:19 PM · Edited 04/01/2020, 07:09:09 PM

Hi everyone, as you know there some bugs on Pokemon Essentials based games. Probably the most common one is tilemap rendering issues. I want to give some detail about this issue. Tilemap rendering issue usually occurs when a map uses tileset that bigger than OpenGL texture limit and unfortunately a lot of games do that. RPG Maker Plugin is based on MKXP which is an open source project. MKXP uses SDL_Surface struct to create mega surfaces which used for tileset bitmap as workaround but mega surfaces don't support operations except blitting to regular bitmap. Pokemon Essentials uses a custom tilemap class. This class uses unsupported operations to resize and blit tiles so some tiles aren't rendered as intended. I'm working on this issue and I created a postload script to temporarily fix black tile bug on some Pokemon Essentials based games. This script overrides PokemonMapFactory class to disable seamless map transition and changes mapviewmode to original. I tested it on Pokémon Clockwork and it seems working. You can copy the script to game folder to try it. This script will be executed after loading game scripts. Also you can create a script named preload.rb if you want to execute a script before loading other scripts.I will add it to next build as an option and setbyte/getbyte functions will be fixed. If you have other issues, you can use comments.Download ScriptEdit: Link updated with correct script