Export part of world from client side

Post Reply
guyou
New member
Posts: 2
Joined: Mon Jan 01, 2018 18:10
GitHub: guyou

Export part of world from client side

by guyou » Post

Hi,

I'm currently looking for a way to export a part of a Minetest World from the client side.

Reading at the forum and wiki, there are some mods (BlockExport, WorldEdit...) that enable a similar feature, but they always work on the server side (generate the file in the mod directory on the server). As we are playing in a shared server, we wish to export the part of the world directly on our desktop.

Is there any existing solution I missed?
Is it planned (I don't see anything related in https://github.com/minetest/minetest/projects/4)? I saw that CSM (Client Side Mod) are gaining a StorageRef but it does not seems ideals for something like a .obj or .mts export.
Perhaps an evolution of the ScreenShot feature using a .obj / .mts file format instead of PNG.

Reading at the forum, it seems that exporting data is a sort of hot topic. Allowing to export from client could be really useful to many people (I'm quite sure my needs are not original at all).

Thanks in advance for any help (and solution ;-)).

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

Re: Export part of world from client side

by sfan5 » Post

There happens to be a feature that saves all of the map you see to a local world.
You can then open this map in singleplayer.

Here's the relevant entry in the example config: https://github.com/minetest/minetest/bl ... e#L319L321
Mods: Mesecons | WorldEdit | Nuke & Minetest builds for Windows (32-bit & 64-bit)

guyou
New member
Posts: 2
Joined: Mon Jan 01, 2018 18:10
GitHub: guyou

Re: Export part of world from client side

by guyou » Post

sfan5 wrote:There happens to be a feature that saves all of the map you see to a local world.
You can then open this map in singleplayer.

Here's the relevant entry in the example config: https://github.com/minetest/minetest/bl ... e#L319L321
Thanks! I successfully fetched a map.sqlite. I now have to found the simplest way to convert this file into a .mts or .obj file. ;-)

I tried with https://github.com/LeMagnesium/python-minetest but it seems to not support the version 28 of the storage protocol yet.

User avatar
rubenwardy
Moderator
Posts: 6444
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: United Kingdom
Contact:

Re: Export part of world from client side

by rubenwardy » Post

You can use WorldEdit to convert to a MTS by selecting the area and doing

/mtschemcreate filenamewithoutextension

User avatar
GreenXenith
Member
Posts: 1336
Joined: Wed Oct 28, 2015 01:26
GitHub: GreenXenith
IRC: GreenXenith
In-game: GreenXenith
Location: The singularity
Contact:

Re: Export part of world from client side

by GreenXenith » Post

guyou wrote:
sfan5 wrote:There happens to be a feature that saves all of the map you see to a local world.
You can then open this map in singleplayer.

Here's the relevant entry in the example config: https://github.com/minetest/minetest/bl ... e#L319L321
Thanks! I successfully fetched a map.sqlite. I now have to found the simplest way to convert this file into a .mts or .obj file. ;-)

I tried with https://github.com/LeMagnesium/python-minetest but it seems to not support the version 28 of the storage protocol yet.
Make a new world and set the mapgen to singlenode. use your generated map.sqlite instead of the one it creates. It should show up somewhere in your world (I think it is relative to the coordinates you saved it from). From there you can use WorldEdit as rubenwardy said.
rubenwardy wrote:You can use WorldEdit to convert to a MTS by selecting the area and doing

/mtschemcreate filenamewithoutextension
He has to have an area to do that on first ;)
Y▹uTube | Mods | Patre●n | Twitter | Minetest Discord | GreenXenith#3232

Hey, you. You're finally awake.
You were trying to view their profile, right? Found the rest of their signature, same as us, and that guest over there.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest