How are maps stored in the database?

User avatar
burli
Member
 
Posts: 1313
Joined: Fri Apr 10, 2015 13:18

How are maps stored in the database?

by burli » Tue Jan 03, 2017 10:20

I'm curious and I looked into a sqlite file with a DB Browser. There is just one table with a pos column and a blob. In the pos column there are coordinates as a hash value, I guess. But I'm a little bit surprised that I can find something like this in the blob

default:snowair default:stone default:dirt_with_snow  default:dirt default:stone_with_coal


What is stored in these blobs? Is each blob one map block?
 

hajo
Member
 
Posts: 262
Joined: Thu Oct 13, 2016 10:45

Re: How are maps stored in the database?

by hajo » Tue Jan 03, 2017 13:23

burli wrote:I'm curious and I looked into a sqlite file with a DB Browser.
There is just one table with a pos column and a blob. ..
What is stored in these blobs?

Searching the forum for chunk/mapchunk/sql/database/mapgen ...

How about "HELP: minetest .sqlite format" ?
Some of 'my' wiki-pages: Build-a-home - basic-robot - basic-machines - digtron
 

User avatar
sfan5
Member
 
Posts: 3636
Joined: Wed Aug 24, 2011 09:44
GitHub: sfan5
IRC: sfan5

Re: How are maps stored in the database?

by sfan5 » Tue Jan 03, 2017 14:39

Mods: Mesecons | WorldEdit | Nuke
Minetest builds for Windows (32-bit & 64-bit)
 


Return to Minetest Engine

Who is online

Users browsing this forum: No registered users and 3 guests

cron