Export tile sheet and map as data

Hey, I know I’m a little late but I wrote a script myself that’ll do the Job.
Not sure If I can post a pastebin-link in here but here you go:

Might have some bugs only tested it on a 64x64 and 16x16 tilemap