All Projects → bedrock-viz → bedrock-viz

bedrock-viz / bedrock-viz

Licence: GPL-2.0 license
Minecraft Bedrock Edition World Visualization & Reporting Tool with Web App

Programming Languages

C++
36643 projects - #6 most used programming language
HTML
75241 projects
javascript
184084 projects - #8 most used programming language
CMake
9771 projects
CSS
56736 projects
shell
77523 projects
Dockerfile
14818 projects

Projects that are alternatives of or similar to bedrock-viz

WaterdogPE
Brand new proxy server for Minecraft: Bedrock Edition
Stars: ✭ 164 (-15.46%)
Mutual labels:  mcpe, bedrock
bedrock-server
Minecraft Bedrock (MCPE) Server on Docker
Stars: ✭ 47 (-75.77%)
Mutual labels:  mcpe, bedrock
Extropy
Custom version of PocketMine-MP for the @ConflictPE network! 🚀🕹️
Stars: ✭ 16 (-91.75%)
Mutual labels:  mcpe, bedrock
BedrockProxy
Allow Minecraft Bedrock players on your BungeeCord server!
Stars: ✭ 16 (-91.75%)
Mutual labels:  mcpe, bedrock
minecraft-worldedit-bedrock
World Edit for Minecraft bedrock
Stars: ✭ 48 (-75.26%)
Mutual labels:  mcpe, bedrock
bedrock-emotes
A collection of all Bedrock Edition emote UUIDs currently in the game.
Stars: ✭ 70 (-63.92%)
Mutual labels:  mcpe, bedrock
BeeCloud-Proxy
BeeCloud Minecraft Bedrock Edition proxy server software with UDP protocol.
Stars: ✭ 22 (-88.66%)
Mutual labels:  mcpe
regolith
A WordPress installation template that's a little bit looser than Bedrock
Stars: ✭ 24 (-87.63%)
Mutual labels:  bedrock
Volt
A painless web server for PocketMine-MP
Stars: ✭ 24 (-87.63%)
Mutual labels:  mcpe
CommandShop
Players have to pay items or money to use specific commands! A PocketMine plugin.
Stars: ✭ 32 (-83.51%)
Mutual labels:  mcpe
KitUI
Advance AdvancedKits! Select Kits from a form, just do /kit and get kits info and select it if available! For Minecraft Bedrock Edition!
Stars: ✭ 44 (-77.32%)
Mutual labels:  mcpe
SAC
An AntiCheat software for PockeMine-MP made to detect unfair gamplay advantages.
Stars: ✭ 52 (-73.2%)
Mutual labels:  mcpe
Leveryl
An Advanced & Feature Rich Server Software for MC:PE 1.1.x
Stars: ✭ 45 (-76.8%)
Mutual labels:  mcpe
Vector-Network-Project
Minecraft Bedrock Edition server plugin
Stars: ✭ 28 (-85.57%)
Mutual labels:  mcpe
FactionsPE
Most advanced factions plugin for PocketMine-MP
Stars: ✭ 46 (-76.29%)
Mutual labels:  mcpe
boundstone
High Performance / Fast Compilation / Lightweight MCBE Server
Stars: ✭ 42 (-78.35%)
Mutual labels:  mcpe
release-notes
Release notes and system requirements for our various Firefoxen
Stars: ✭ 15 (-92.27%)
Mutual labels:  bedrock
InvSee
A PocketMine-MP plugin that lets you view and modify offline and online players' inventories in real-time!
Stars: ✭ 19 (-90.21%)
Mutual labels:  mcpe
enveigle
Deceive Ansible to template Trellis .env files to local Bedrock
Stars: ✭ 18 (-90.72%)
Mutual labels:  bedrock
mcpe-ping
Pings an MCPE server for simple data.
Stars: ✭ 20 (-89.69%)
Mutual labels:  mcpe

Bedrock Viz

GitHub release (latest by date including pre-releases) GitHub last commit GitHub Workflow Status GitHub issues GitHub pull requests

ReportCI Codecov

Discord

A fork of mcpe_viz.

Bedrock Viz is a tool that parses Minecraft Bedrock Edition world files. It creates overview images from the world files, and reports lots of details on your world.

It can also create a powerful Google Maps-like Web App for viewing your world.

Additional Features:

  • Create a powerful Google Maps-like web app viewer for your world.

    • Browse through all 256 layers of your world (Overworld and Nether) from bedrock to build limit.
    • Examine the location and details of mobs and items in your world.
    • Visualize chunk boundaries -- consider it an extremely cumbersome F3/debug mode!
    • Find slime chunks -- well, probably... slime chunk finding code is currently a bit weird in MCPE, it appears to work, but please be sure to confirm slimes are spawning in a chunk before you do a ton of work :)
    • Explore the biomes of your world.
    • Shaded-relief elevation overlay -- get a sense of the topography of your world.
    • Measure distances in your world
  • Create many types of images:

    • All layers of your world
    • Biomes in your world (very interesting!)
    • Block height in your world (kind of like a topographic map)
  • Create movies of all layers from bedrock to build limit (ffmpeg required)

Quick Start

For Windows users:

  • Download the zip file and unzip that file
  • Inside you will find bedrock-viz.exe
  • Run bedrock-viz.exe in your favorite terminal program (such as Command Prompt or Power Shell)

For macOS users(requires macOS 10.15 and above):

  • Install via homeberw:
    brew tap bedrock-viz/homebrew-tap && brew install bedrock-viz
    

For Linux users:

DO NOT RUN THIS ON YOUR ORIGINAL WORLD SAVES

MAKE A BACKUP COPY OF YOUR DATA AND RUN THIS AGAINST THAT COPY ONLY

Use the app to select the MCPE world file, the output directory, output name, and mode. Press "Go!". Watch the progress of bedrock-viz. If it completes successfully, you can click the "Launch Web App" button. If there was a problem, you should look in the "Progress" window for details that might help you resolve the issue.

See below for Web App usage notes.

Quick Start -- How to run it on Windows from the command-line

  • Same as above to get the files.
  • Open a command prompt and run it something like this:
bedrock-viz.exe --db path-to-your-world-file-dir/ --out out1 --html-most

Note: Replace "path-to-your-world-file-dir/" with the actual directory which contains your world files -- it wants the directory that has level.dat in it.

DO NOT RUN THIS ON YOUR ORIGINAL MCPE DATA FILES; MAKE A BACKUP COPY OF YOUR DATA AND RUN THIS AGAINST THAT COPY ONLY!

This will produce a bunch of image files and "index.html" in the directory out1. Open "index.html" in your browser.

Web App

You can create a browser-based viewer for your world files. It will allow you to pan, zoom and switch between the different images. It's pretty spiffy!

To make a quick viewer (with all regular images, but without indvidual layers), do something like this:

> ./bedrock-viz --db ./mcpe/another1/ --out ./mcpe/output/out1 --html-most

To make a complete viewer (with all images and all layers), do something like this:

> ./bedrock-viz --db ./mcpe/another1/ --out ./mcpe/output/out1 --html-all

This will create a LOT of images -- individual images for each layer of the overworld and nether, as well as all the regular images. It will also create "./mcpe/output/out1.html". Load this file in your browser and you will have an Openlayers-based viewer for your world! Openlayers (http://openlayers.org/) is a powerful javascript library for mapping.

Web App Usage Notes:

  • Zoom in with double click or press the "+" button (upper left)
  • Zoom out with shift-double click or press the "-" button (upper left)
  • Move with click and drag
  • Rotate with shift-alt click and drag
  • Your mouse position is shown in the upper right in world coordinates and image coordinates
  • You can go full-screen (button under mouse position window)
  • Tool bar at the bottom of the screen:
    • Choose Overworld or Nether
    • Scroll through the layers from 0 (bedrock) to 255 (build limit)
    • Choose Overview, Biome etc
    • Show Mobs and Objects -- click on an entry and the map will be updated with labeled points. You can toggle on as many different types as you like. Click on the points or labels to get more info on the item. Note that labels are not drawn when you are zoomed out.
    • Enable elevation overlay (shaded relief)
    • Enable chunk grid overlay

Web App Notes

If you are loading the web app from a local file -- that is, not accessing it from a web server -- your browser may impose restrictions on image loading and access to image pixels which makes it very difficult for the web app to deliver the best experience. Currently, Firefox appears to be the browser most willing to play nicely. The web app will let you know if you are impacted by this issue. For example, on Chrome, you will not see block information on mouse over, or be able to see the elevation overlay -- both of which are totally cool :)

If you are running Firefox or serving the files from a web server, you can make the web app load a little bit faster by adding the option "--no-force-geojson" to your command line. This prevents bedrock-viz from using a workaround for the above issue.

Using an NGINX Webserver in Docker to display your world

If you want to display your map locally through a webserver in Docker, these commands will set up an NGINX webserver with your data copied into a volume mounted to the /usr/share/nginx/html directory. The webserver is exposed on port 8080 and the web app can be viewed at http://localhost:8080.

Be aware of what folder will be copied to avoid copying sensitive files/folders. It is recommended to always ouput to a new directory.

docker volume create bedrock-viz-http
docker create --name bedrock-viz -p 8080:80 -v bedrock-viz-http:/usr/share/nginx/html -d nginx
# This cmd will copy the entire /path/to/output/folder recursively. Be careful!
docker cp /path/to/output/folder:/usr/share/nginx/html bedrock-viz
docker run bedrock-viz

To clean up your webserver and data when you are done:

docker rm bedrock-viz
docker volume rm bedrock-viz-http

Usage

MAKE A COPY OF YOUR DATA AND RUN THIS AGAINST THAT COPY ONLY!

Here's an example invocation:

> ./bedrock-viz --grid --db ./mcpe/another1/ --out ./mcpe/output/out1

This will read the leveldb from the "./mcpe/another1" folder and name output files starting with "./mcpe/output/out1", and it will draw chunk boundaries on your output image. This also dumps the voluminous output to "out1.log". The log file has a ton of interesting information about your world. "grep" is your friend.

Please note that --db expects the directory which contains "level.dat".

To view all command line options, run

"./bedrock-viz --help"

For extended usage instructions, see USAGE.md

How to backup your MCPE world files

On Android, see this link.

On iOS or Windows 10, see this link

Note that MCPE is sometimes weird about actually closing world files -- that is, you think that MCPE is closed and should be done with the world file, but a backup of it may not work correctly. To be certain that you get a good backup, you should reboot and then do the backup before starting MCPE again.

Automated backup to Dropbox using DropSync (Android)

On Android, you can use DropSync to automatically backup your MCPE world to your dropbox account. You configure this tool to backup any of your world files to dropbox. As you play on your device, DropSync will copy the updated world files to Dropbox. Very cool! Install Dropbox's client (there's even one for Linux) on the machine you use for MCPE Viz. It is recommended to copy the data from your local Dropbox folder to another folder to prevent Dropbox from syncing from your MCPE Viz machine. Running MCPE Viz on the world files does change the world files. This method has only been lightly tested, so be careful.

Error messages

This program uses a lot of file handles and depending on your OS's defaults (OS X's are too low) you can have a failure that resembles the following:

  Generate full-size slices
    Writing all images in one pass
  ERROR: Failed to open output file (../worlds/output/images/kYQJAGOeAQA=.mcpe_viz_slice.full.overworld.247.png) errno=Too many open files(24)
  libpng error: No IDATs written into file
  ERROR: PngWriter setjmp triggered -- image might be too large (2672 x 1600)
  zsh: segmentation fault  ../bedrock-viz/build/bedrock-viz --db ../worlds/kYQJAGOeAQA= --out  --html-all

You can check your limits and temporarily set file descriptors with the following:

ulimit -a
ulimit -n 8192

Compiling from source

see BUILD.md

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].