Fix autotiles in runtime

Helo.

I'm working on a map generator script and got a problem with mountain autotiles (FTP).

I got that fix from KilloZapit, which is the last thing the script runs after generating the map:

http://www.rpgmakervxace.net/blog/121/entry-454-autotile-update-script/

which works, but as you can see it does not work well on mountains... or at last not for me.

I really don't know how to work with autotiles, so... any help?

I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.
Sorry for your troubles.

Bump...
closing due to OP request

Original thread: https://forums.rpgmakerweb.com/threads/fix-autotiles-in-runtime.54159/