MZ Is it possible to access or add autotiles via plugin script

I am trying once again to create the Excavating system for my game, Dragon Bones, but this time my plan is to utilize autotiling wherever any of my tools hit the surface.

So is it possible to access autotiles and draw one or more of the same tile on a custom scene. Of course I can assume this could require using Scene_Map.

Thanks in advance.
you'll need a full plugin for that, because by default changes to maps are not saved on map change.
but there are plugins to do that, I just don't have a link to the MZ ones.
Unfortunately, there's no function in the JS codes to perform Autotiling. In fact, the editor computes the Autotiles, so we cannot access its function - only replicate.

Right now, I don't know any stand-alone script that one could use. But I know of 3 plugins that deal with Autotiling, where you can "have a look" and check if you can extract something useful for you.

I once ALMOST completed procedural in-game map generator. But before it's release my PC and it's HD decided to retire... and of course I had no backups in any external media (how stupid was I).

Only thing that is left for it is below...


Shortly this will set tile to anything you like: $dataMap.data[[(z * $dataMap.height + y) * $dataMap.width + x]] = tile_id

When setting tile then you should scan tiles around said x y and set 'edges' for it. For B-E tiles it won't be necessary thing to do ofc.

And THEN you might want to update passability for said tiles... Which can found from $dataTilesets[$dataMap.tilesetId].flags

Manipulating maps in-game is easier said than done ;D

Edit: I just tested what I wrote here and it seems that passabilities are automatically updated 😳
Hello!

I decided to make in-game autotiling plugin for everybody. This plugin won't need OcRam_Core.js and it's free-to-use with credits. Official release link below.


This plugin provides JS calls to paint tiles in-game and for saving / loading edited map data and it has no overrides at all so it should be very low in your plugin list.

Set plugin parameter "Auto save/load" to true if you wish all edits are saved automatically. Install it in editor like you would install any other plugin.

@GreenTree-Studios - Please let me know if this worked for you.


Happy RPG Making!

EDIT: Fixed some bugs (accidently deleted few characters while posted that here)
EDIT 2: Released the plugin!

Original thread: https://forums.rpgmakerweb.com/threads/is-it-possible-to-access-or-add-autotiles-via-plugin-script.151637/