MapEditr: The Fastest Command-Line World Editor

Post Reply
random_geek
Member
Posts: 54
Joined: Wed Jun 20, 2018 18:55
GitHub: random-geek
In-game: Techy5 random_geek

MapEditr: The Fastest Command-Line World Editor

by random_geek » Post

Image

MapEditr is an external command-line world editor for Minetest. It shares much of the functionality of WorldEdit, but is significantly faster and can edit areas as large as an entire world. MapEditr is designed for server administrators, mod developers, and anyone else who wants to quickly edit large portions of Minetest maps.

Déjà vu? MapEditr is the successor to MapEdit (without the 'r'). Although the two are similar, MapEditr is faster, more advanced, and hopefully easier to use.

Features:
  • 12 subcommands: set, replace, or modify nodes; copy areas; combine multiple worlds; replace items in chests and other nodes; selectively delete entities; delete mapblocks; and vacuum (shrink) map files.
  • Target specific nodes or entities, include or exclude a given area, or do both or neither.
  • Edit any size area (even the entire map, if you want).
Downloads, details, and full documentation are available in the GitHub repository. Feel free to ask questions, and please submit any bug reports on GitHub (or here, if you don't have a GitHub account).

GitHub: https://github.com/random-geek/MapEditr
License: MIT
I have not failed. I've just found 10,000 ways that won't work. —Thomas Edison

twoelk
Member
Posts: 1482
Joined: Fri Apr 19, 2013 16:19
GitHub: twoelk
IRC: twoelk
In-game: twoelk
Location: northern Germany

Re: MapEditr: The Fastest Command-Line World Editor

by twoelk » Post

sounds pretty cool (havn't tested yet though)

looking at the replace/delete nodes functions, maybe being able to read from an input file might be useful. It might be easier to create a list of nodes to be manipulated in a file than typing every node name into a command line.
Thinking about that - how about using input files for coordinates as well.
Imagine defining several sets of coordinates that the tool works on in series like some batch command file.

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

Re: MapEditr: The Fastest Command-Line World Editor

by rubenwardy » Post

MapEditr sounds like a dating site for cartographers

Looks cool though
Renewed Tab (my browser add-on) | My Twitter | Mods | Minetest Modding Book

Hello profile reader

DOOM_possum
Member
Posts: 152
Joined: Sat Mar 27, 2021 22:06
In-game: DOOM_possum

Re: MapEditr: The Fastest Command-Line World Editor

by DOOM_possum » Post

cool, it's good to focus on Map Editors, every now and then

random_geek
Member
Posts: 54
Joined: Wed Jun 20, 2018 18:55
GitHub: random-geek
In-game: Techy5 random_geek

Re: MapEditr: The Fastest Command-Line World Editor

by random_geek » Post

twoelk wrote:
Fri May 28, 2021 10:16
sounds pretty cool (havn't tested yet though)

looking at the replace/delete nodes functions, maybe being able to read from an input file might be useful. It might be easier to create a list of nodes to be manipulated in a file than typing every node name into a command line.
Thinking about that - how about using input files for coordinates as well.
Imagine defining several sets of coordinates that the tool works on in series like some batch command file.
That's an interesting thought, although I can see it getting complicated pretty fast. Maybe some sort of JSON or YAML type file would be needed?
rubenwardy wrote:
Fri May 28, 2021 12:35
MapEditr sounds like a dating site for cartographers

Looks cool though
Yeah, I figured I'd jump on the bandwagon of dropping random vowels from names. 😉
I have not failed. I've just found 10,000 ways that won't work. —Thomas Edison

User avatar
DrFrankenstone
Member
Posts: 226
Joined: Tue May 24, 2016 05:36
GitHub: treer
Location: Australia
Contact:

Re: MapEditr: The Fastest Command-Line World Editor

by DrFrankenstone » Post

<wrongheaded request deleted>

c56
Member
Posts: 254
Joined: Wed Apr 21, 2021 03:05
GitHub: tigercoding56
In-game: bm5 or bemo5 also sell_her_on55

Re: MapEditr: The Fastest Command-Line World Editor

by c56 » Post

DrFrankenstone wrote:
Tue Aug 10, 2021 03:12
<wrongheaded request deleted>
this makes forums so much less readable just make the text a spoiler with the title <wronghead request deleted >
this is a signature not a place to post messages also if i could change my username i would change it to sell_her_on55

Hop1701
New member
Posts: 2
Joined: Sun Oct 09, 2022 20:37

Re: MapEditr: The Fastest Command-Line World Editor

by Hop1701 » Post

Hello, Mapeditr does not work correctly with Maps from 5.50 or newer... no Zstd Compression.
No Errors, but newly generated (Zstd-compressed) Blocks could not be read by mapeditr and are simply missing.
It would be really nice if this could be updated.

random_geek
Member
Posts: 54
Joined: Wed Jun 20, 2018 18:55
GitHub: random-geek
In-game: Techy5 random_geek

Re: MapEditr: The Fastest Command-Line World Editor

by random_geek » Post

Hop1701 wrote:
Sun Oct 09, 2022 21:03
Hello, Mapeditr does not work correctly with Maps from 5.50 or newer... no Zstd Compression.
No Errors, but newly generated (Zstd-compressed) Blocks could not be read by mapeditr and are simply missing.
It would be really nice if this could be updated.
Thanks, I wasn't aware of the mapblock serialization version bump. I will add this to my list.
I have not failed. I've just found 10,000 ways that won't work. —Thomas Edison

random_geek
Member
Posts: 54
Joined: Wed Jun 20, 2018 18:55
GitHub: random-geek
In-game: Techy5 random_geek

Re: MapEditr: The Fastest Command-Line World Editor

by random_geek » Post

Update: MapEditr v1.1.0 released! Now works with maps from Minetest 5.5.0 and later. Check the GitHub page for changes, downloads, etc.
I have not failed. I've just found 10,000 ways that won't work. —Thomas Edison

User avatar
Mr. Rar
Member
Posts: 55
Joined: Tue Oct 04, 2016 20:13
GitHub: MrRar
In-game: MrRar

Re: MapEditr: The Fastest Command-Line World Editor

by Mr. Rar » Post

I was able to prune my old world from 800MB to 30MB!
This program solved my problem: viewtopic.php?f=12&t=28828

This software is the bomb!
"Only in Christ do we find real love, and the fullness of life. And so I invite you today to look to Christ." - St. John Paul II

random_geek
Member
Posts: 54
Joined: Wed Jun 20, 2018 18:55
GitHub: random-geek
In-game: Techy5 random_geek

Re: MapEditr: The Fastest Command-Line World Editor

by random_geek » Post

Mr. Rar wrote:
Thu Nov 03, 2022 14:28
I was able to prune my old world from 800MB to 30MB!
This program solved my problem: viewtopic.php?f=12&t=28828

This software is the bomb!
Thank you, I'm glad you found it helpful!
I have not failed. I've just found 10,000 ways that won't work. —Thomas Edison

Hop1701
New member
Posts: 2
Joined: Sun Oct 09, 2022 20:37

Re: MapEditr: The Fastest Command-Line World Editor

by Hop1701 » Post

Thank you so much! I cant live without this great Tool anymore...
My Map - I am playing it since 2014 - has a large "Core Area" and some far away "Colonies", and i dont want to let it get bigger than 1,2GB or so.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest