Write a Blob in map.sqlite

Post Reply
Eoldar
New member
Posts: 2
Joined: Wed Mar 15, 2017 10:18

Write a Blob in map.sqlite

by Eoldar » Post

Hello everyone,

In order to create my own map, i want to write the map.sqlite file.
There is no problem for the pos column but i do have one for the data column.
I know which blocks i want to put in a specific chunk but i have no idea how to write it. Is there a simple way of writing it into this data column (or understanding how it is done ?) ?
I already read the world_format.txt but i do not understand a single line on how the blob is encoded.
Help plz :(

Thank you !

Eoldar

Sokomine
Member
Posts: 4276
Joined: Sun Sep 09, 2012 17:31
GitHub: Sokomine
IRC: Sokomine
In-game: Sokomine

Re: Write a Blob in map.sqlite

by Sokomine » Post

Eoldar wrote: I already read the world_format.txt but i do not understand a single line on how the blob is encoded.
There is a mod out there somewhere that reads MC worlds and converts them directly to MT maps afaik. And there's the minetestmapper program which reads the map in order to create a 2d overview. Those might be starting points; but I'm afraid they'll be more complex than the documentation in the world_format.txt file. Understanding it takes time.
A list of my mods can be found here.

hajo
Member
Posts: 606
Joined: Thu Oct 13, 2016 10:45
Location: DE
Contact:

Re: Write a Blob in map.sqlite

by hajo » Post

Eoldar wrote:i want to write the map.sqlite file.
Have a look at fixmap, that should be able to repair a map.
It might have bugs, but at least it has code that does something similar to what you want.

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests