I'm not sure I entirely understand. How exactly would you remove "null" tiles? Do you mean filling them with tiles that are entirely transparent?
Nope, I'm calling transparent tiles "null tiles" because there's nothing in them. Sorry if that was confusing!
I'm using a transparent PNG for my tileset and I've accidentally put in some of those blank/transparent tiles on some of the layers. Those layers are the ones that throw the error "
Cannot read property 'getBlockTransferParams' of null ". The reason I know this is because I went into the JSON file and deleted all but one layer, tested that one, then repeated the process with each layer after that. The four layers that triggered the error all have a blank/transparent tile somewhere on them. I confirmed this by erasing every unused/visually empty space in the TileD map editor, and then tested the layer again; no error this time.
I don't know WHY this throws the error. I think it might be a plugin thing more than it's a TileD issue, because all TileD is doing is giving coordinates for each tile. I think the plugin just doesn't know what to do when the tile data is entirely empty, so it throws the error. I think writing a few lines that will skip or ignore those tiles would fix the problem entirely. Can't say for sure though. I haven't had enough time this past week to test any hotfixes.
In any case, to select all the empty tiles on the current tile layer, you can use the "Select Same Tile" tool and click on any existing empty tile. You can then replace the selected area by using the Bucket Fill Tool, holding Shift to have it fill the entire selection.
Does this erase the tiles? Or just replace all the bucket filled tools with another blank tile? Because I want to ERASE all the blank tiles, not replace them with another tile.... like, in the JSON file I want to reduce their value to 0 (I just don't know which ones to do and please don't make me count them because I'll die. Or cry loudly. One of the two).
Please disregard my earlier theories as I was really not clear on how each individual piece was working. I have since gone through every line of the plugin as well as TileD's JSON exported file and I have a much better understanding of what's going on in the background. I'm 100% convinced this isn't an issue with TileD. Thanks for being so patient with me, Bjorn! I really do love your map editor; it's why I'm so motivated to get this working.