Mapping for Minecraft
C C++ JavaScript CSS QMake Shell Other
Latest commit 6640376 Jun 15, 2016 @mrkite committed on GitHub Merge pull request #89 from EtlamGit/update-1.10
Update 1.10
Failed to load latest commit information.
debian linted the code, follows google c++ standards May 27, 2016
definitions updates for 1.10 16w20a Jun 15, 2016
web First public commit of v2.0 beta Mar 14, 2013
zlib update to zlib 1.2.8 Dec 8, 2014
.gitignore First public commit of v2.0 beta Mar 15, 2013
LICENSE linted the code, follows google c++ standards May 27, 2016
MyWixUI_InstallDir.wxs Windows installer changes Oct 30, 2013
README.md linted the code, follows google c++ standards May 27, 2016
biomeidentifier.cpp linted the code, follows google c++ standards May 27, 2016
biomeidentifier.h linted the code, follows google c++ standards May 27, 2016
blockidentifier.cpp linted the code, follows google c++ standards May 27, 2016
blockidentifier.h linted the code, follows google c++ standards May 27, 2016
check.sh linted the code, follows google c++ standards May 27, 2016
chunk.cpp linted the code, follows google c++ standards May 27, 2016
chunk.h linted the code, follows google c++ standards May 27, 2016
chunkcache.cpp prepped for 2.1 release May 27, 2016
chunkcache.h linted the code, follows google c++ standards May 27, 2016
chunkloader.cpp linted the code, follows google c++ standards May 27, 2016
chunkloader.h linted the code, follows google c++ standards May 27, 2016
definitionmanager.cpp linted the code, follows google c++ standards May 27, 2016
definitionmanager.h linted the code, follows google c++ standards May 27, 2016
definitionupdater.cpp linted the code, follows google c++ standards May 27, 2016
definitionupdater.h linted the code, follows google c++ standards May 27, 2016
dimensionidentifier.cpp linted the code, follows google c++ standards May 27, 2016
dimensionidentifier.h linted the code, follows google c++ standards May 27, 2016
entity.cpp fix for unknown Entities are not shown as Overlay Jun 15, 2016
entity.h linted the code, follows google c++ standards May 27, 2016
entityidentifier.cpp Merge pull request #89 from EtlamGit/update-1.10 Jun 15, 2016
entityidentifier.h linted the code, follows google c++ standards May 27, 2016
generatedstructure.cpp fixed bug that spams debug console Jun 15, 2016
generatedstructure.h linted the code, follows google c++ standards May 27, 2016
icon.icns Re-added icons Mar 16, 2013
icon.ico Version Release Oct 1, 2010
json.cpp linted the code, follows google c++ standards May 27, 2016
json.h linted the code, follows google c++ standards May 27, 2016
labelledslider.cpp linted the code, follows google c++ standards May 27, 2016
labelledslider.h linted the code, follows google c++ standards May 27, 2016
main.cpp linted the code, follows google c++ standards May 27, 2016
make_installer.bat linted the code, follows google c++ standards May 27, 2016
mapview.cpp linted the code, follows google c++ standards May 27, 2016
mapview.h linted the code, follows google c++ standards May 27, 2016
minutor.cpp fix for missing .png suffix Jun 12, 2016
minutor.desktop Version Release Oct 1, 2010
minutor.h linted the code, follows google c++ standards May 27, 2016
minutor.plist prepped osx release May 6, 2013
minutor.png Version Release Oct 1, 2010
minutor.pro linted the code, follows google c++ standards May 27, 2016
minutor.qrc adding EntityIdentifier Dec 10, 2014
minutor.wxs prepped for 2.1 release May 28, 2016
minutor.xpm Version Release Oct 1, 2010
nbt.cpp linted the code, follows google c++ standards May 27, 2016
nbt.h linted the code, follows google c++ standards May 27, 2016
overlayitem.h linted the code, follows google c++ standards May 27, 2016
properties.cpp linted the code, follows google c++ standards May 27, 2016
properties.h linted the code, follows google c++ standards May 27, 2016
properties.ui Support for viewing/browsing entities on the map Oct 10, 2014
settings.cpp linted the code, follows google c++ standards May 27, 2016
settings.h linted the code, follows google c++ standards May 27, 2016
settings.ui added configuration for vertical/horizontal depth slider Oct 13, 2014
village.cpp linted the code, follows google c++ standards May 27, 2016
village.h linted the code, follows google c++ standards May 27, 2016
winicon.rc Re-added icons Mar 16, 2013
worldsave.cpp linted the code, follows google c++ standards May 27, 2016
worldsave.h linted the code, follows google c++ standards May 27, 2016
zipreader.cpp linted the code, follows google c++ standards May 27, 2016
zipreader.h linted the code, follows google c++ standards May 27, 2016

README.md

This is the source code for Minutor 2.1 web/ contains the source code for the web-based pack builder. The live version can be found at http://seancode.com/minutor/packs

The Makefile inside web/ will use the Closure Compiler to compile all the .js files into a single editor.min.js. To host the pack builder on your own website, you only need editor.min.js, index.html, main.css, and the mods/ folder.

CONVENTIONS:

The coding convetion is standardized on the result of Google's cpplint. https://github.com/google/styleguide/tree/gh-pages/cpplint

We also use clang's static analyzer. The options tested are in check.sh.

COMPILING:

All Platforms: Use QtCreator (Qt5 version) and open minutor.pro

How to do a static compile on Windows:

Download the qt5.5 sourcecode.

Unzip it whereever you wish, it's a large file and contains a lot of nested subdirectories, so you'll probably want to put it in C:\Qt5\src or something similar since you could end up running into Windows' path-length limitations otherwise.

Now edit qtbase\mkspecs\common\msvc-desktop.conf

Find the CONFIG line and remove embed_manifest_dll and embed_manifest_exe from that line.

Next find QMAKE_CFLAGS_* and change -MD to -MT and -MDd to -MTd.

Open your developer command prompt (64-bit), cd into the qtbase folder and run:

configure -prefix %CD% -debug-and-release -opensource -confirm-license
    -platform win32-msvc2013 -nomake tests -nomake examples
    -opengl desktop -static
nmake

If nmake complains about python or perl, install ActivePerl and ActivePython and try again. This compile will take a long time.

This should make a static Qt5 with both debug and release libraries. Now in QtCreator, go to Tools → Options... and select Qt Versions from Build & Run. Add a new Qt Version and locate the qmake.exe that is inside qtbase\bin of the Qt5 you just compiled. There will be a warning flag because we didn't compile qmlscene or qmlviewer or any helpers. You can ignore that warning.

Then switch over to Kits and make a new kit that uses the Qt version you just created. Again, there will be a warning flag for the same reasons as before, ignore it.

Now compile Minutor using the static Kit. You should end up with a statically linked minutor.exe which doesn't require any dlls to run.

Building for Linux:

Use qmake to generate a makefile then run make. Or use QtCreator.

If you want to make a .deb package,

$ debuild

To make a package for another distribution:

$ pbuilder-dist vivid create   # called only once to generate environment
$ debuild -S -us -uc
$ cd ..
$ pbuilder-dist vivid build *.dsc

Building on OSX:

Make a static compile of Qt 5.5:

$ git clone https://code.qt.io/qt/qt5.git
$ cd qt5
$ perl init-repository --module-subset=default,-qtwebkit,-qtwebkit-examples,-qtwebengine
(wait forever)
$ git checkout 5.5
$ ./configure -prefix $PWD -opensource -confirm-license -nomake tests -nomake
examples -release -static
$ make
(wait forever)

Then compile Minutor:

$ cd minutor
$ ~/qt5/qtbase/bin/qmake
$ make

You'll end up with a minutor.app in the current directory.