Mapping for Minecraft
C C++ JavaScript Objective-C CSS QMake Other
Clone or download
mrkite Merge pull request #123 from distalzou/fbsd-sysconf-fix
Enable compilation on non-Linux unix such as FreeBSD
Latest commit ececca1 Nov 29, 2017
Permalink
Failed to load latest commit information.
debian prepped for 2.1.2 Jun 19, 2017
definitions Some naming corrections and small additions Jul 12, 2017
web First public commit of v2.0 beta Mar 15, 2013
zlib update to zlib 1.2.8 Dec 8, 2014
.gitignore fix typo Oct 6, 2017
LICENSE linted the code, follows google c++ standards May 27, 2016
MyWixUI_InstallDir.wxs Windows installer changes Oct 31, 2013
README.md linted the code, follows google c++ standards May 27, 2016
biomeidentifier.cpp Added the suggested changes Mar 29, 2017
biomeidentifier.h add separate color mixing method and adapt Leave colors Dec 29, 2016
blockidentifier.cpp Fixed compiler errors Mar 29, 2017
blockidentifier.h read usage of Biome based colorizer from Block definition file Dec 27, 2016
check.sh linted the code, follows google c++ standards May 27, 2016
chunk.cpp add Chunk getter methods with combined X and Z coordinate Dec 26, 2016
chunk.h add Chunk getter methods with combined X and Z coordinate Dec 26, 2016
chunkcache.cpp Enable compilation on non-Linux unix such as FreeBSD Nov 19, 2017
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
clamp.h move clamp function to own file Dec 27, 2016
definitionmanager.cpp fix definition update for multi-packet-transfers Jan 2, 2017
definitionmanager.h do auto-update only weekly Dec 10, 2016
definitionupdater.cpp fix definition update for multi-packet-transfers Jan 2, 2017
definitionupdater.h fix definition update for multi-packet-transfers Jan 2, 2017
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 Item detail in tooltip Nov 20, 2016
entity.h linted the code, follows google c++ standards May 27, 2016
entityidentifier.cpp simplified code Nov 20, 2016
entityidentifier.h fix Item detail in tooltip Nov 20, 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 Fixed compiler errors Mar 29, 2017
json.h linted the code, follows google c++ standards May 27, 2016
jumpto.cpp Implementation of a "Location" window requested in #110 May 2, 2017
jumpto.h Implementation of a "Location" window requested in #110 May 2, 2017
jumpto.ui Implementation of a "Location" window requested in #110 May 2, 2017
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 add command line parameter for cave mode Oct 14, 2017
make_installer.bat linted the code, follows google c++ standards May 27, 2016
mapview.cpp implemented cave mode Oct 13, 2017
mapview.h implemented cave mode Oct 13, 2017
minutor.cpp implemented cave mode Oct 13, 2017
minutor.desktop Version Release Oct 1, 2010
minutor.h add UI dialog for PNG export options Oct 6, 2017
minutor.plist prepped osx release May 6, 2013
minutor.png Version Release Oct 1, 2010
minutor.pro add UI dialog for PNG export options Oct 6, 2017
minutor.qrc adding EntityIdentifier Dec 10, 2014
minutor.wxs prepped for 2.1.2 Jun 19, 2017
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
pngexport.cpp add UI dialog for PNG export options Oct 6, 2017
pngexport.h add UI dialog for PNG export options Oct 6, 2017
pngexport.ui use meaningful title for dialog Oct 6, 2017
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 11, 2014
settings.cpp Settings: Fixed loading and defaults. Oct 9, 2017
settings.h Settings: Fixed loading and defaults. Oct 9, 2017
settings.ui add UI dialog for PNG export options Oct 6, 2017
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 add UI dialog for PNG export options Oct 6, 2017
worldsave.h add UI dialog for PNG export options Oct 6, 2017
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.