I'm either really dumb, or I managed to make this plugin explode. Not sure which yet.
Plugin Name: YED_Tilemap
Error Message:
Ok, so when I downloaded the YED_Tilemap.js file from the dropbox link on the first post here, this error gets thrown. If I download and use the YED_Tilemap.js file downloaded straight from Yami's Github this error doesn't throw. (
https://github.com/suppayami/yami-engine-delta/tree/master/build/Tilemap) I have no idea what the fundamental differences are between the two versions as they should be the same version...
TypeError: Cannot read property 'getBlockTransferParams' of null
at Layer._drawTile (file:///C:/Users/chloe/Documents/Games/ashistestproject/js/plugins/YED_Tilemap.js:1044:30)
at Layer._renderTileLayer (file:///C:/Users/chloe/Documents/Games/ashistestproject/js/plugins/YED_Tilemap.js:915:18)
at Layer.renderLayer (file:///C:/Users/chloe/Documents/Games/ashistestproject/js/plugins/YED_Tilemap.js:877:18)
at Core.render (file:///C:/Users/chloe/Documents/Games/ashistestproject/js/plugins/YED_Tilemap.js:1554:19)
at Core._updateRender (file:///C:/Users/chloe/Documents/Games/ashistestproject/js/plugins/YED_Tilemap.js:1541:18)
at Core.update (file:///C:/Users/chloe/Documents/Games/ashistestproject/js/plugins/YED_Tilemap.js:1536:14)
at file:///C:/Users/chloe/Documents/Games/ashistestproject/js/rpg_core.js:3918:19
at Array.forEach (native)
at Tilemap.update (file:///C:/Users/chloe/Documents/Games/ashistestproject/js/rpg_core.js:3916:19)
at file:///C:/Users/chloe/Documents/Games/ashistestproject/js/rpg_core.js:3290:19
How to Replicate Bug:
NOTES: My tileset is 24x24px, and my TileD map is 30x30 tiles. Therefore the map I made in MV was 15x15 tiles. I'm using the first map, 001:MAP001. Plugin is at the top of the list (well, it's the only plugin on the list... soooooo...). Maps folder is in the game's root, and the TileD map settings are set to CSV and Orthangonal.
I followed the instructions on the first post;
- downloaded YED_tilemap.js, put it in the plugins folder of my test project (which is a blank project)
- exported my map out of TileD as map1.json (and took care of the following before exporting)
two layers have custom properties (collision) set to true, the rest have no custom properties
- changed the tilset reference image to be the one in my game's folder> img/tilesets
[*]made sure my tileset image (I only have one) is in my game's folder > img/tilesets
[*]imported the plugin into RPG maker MV and turned the plugin ON
[*]created an event at tile 14,0 and added a comment box with <position: 29,0> in it
[*]set my character starting position to a place where I know there's no collisions, saved and hit test game.
If I use the JS file from the first post's dropbox link, I get the error message above. If I use the JS file from the GitHub, then I get a black screen with a sprite that can't move. That said, if I add tiles from the MV editor, my sprite can move. It's almost like at that point that version of the plugin isn't doing anything at all. I have tried putting in Yanfly's Core engine plugin above this one with no changes.
I did just update MV today via steam, so I have no idea if that has anything to do with it. Shouldn't, but you never know.
I can provide the game files and screenshots if needed. Files would probably be better, but I have the sneaking suspicion that I'm just missing something super basic. (TT^TT)
Thank you! <3