How are maps stored in the database?

For people working on the C++ code.
User avatar
burli
Member
 
Posts: 1564
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: 397
Joined: Thu Oct 13, 2016 10:45
Location: DE

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" ?
 

User avatar
sfan5
Moderator
 
Posts: 3712
Joined: Wed Aug 24, 2011 09:44
Location: Germany
GitHub: sfan5
IRC: sfan5
 


Return to Partly official engine development



Who is online

Users browsing this forum: No registered users and 1 guest