Mapping for Terraria
C C++ Other
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
debian updated for 1.3.5.3 Apr 26, 2017
res Updates to tiles.json Apr 20, 2017
zlib switch to qt for crossplatform Aug 11, 2015
.gitattributes Introduce end-of-line normalization Jun 10, 2016
.gitignore ignore more files Jun 10, 2016
LICENSE added bsd license Aug 11, 2015
MyWixUI_InstallDir.wxs Introduce end-of-line normalization Jun 10, 2016
README.md updated osx build instructions Mar 16, 2016
Terrafirma.pro Brought calls to deprecated GLSL function names into compliance with Mar 14, 2016
aes128.cpp switch to qt for crossplatform Aug 11, 2015
aes128.h switch to qt for crossplatform Aug 11, 2015
chestview.cpp switch to qt for crossplatform Aug 11, 2015
chestview.h switch to qt for crossplatform Aug 11, 2015
chestview.ui switch to qt for crossplatform Aug 11, 2015
findchests.cpp Add search filter to findchests. Jul 4, 2016
findchests.h Add search filter to findchests. Jul 4, 2016
findchests.ui Add search filter to findchests. Jul 4, 2016
glmap.cpp Update for 1.3.3 Sep 9, 2016
glmap.h switch to qt for crossplatform Aug 11, 2015
gltextures.cpp Wire Rendering Updates Jun 9, 2016
gltextures.h switch to qt for crossplatform Aug 11, 2015
handle.cpp switch to qt for crossplatform Aug 11, 2015
handle.h switch to qt for crossplatform Aug 11, 2015
hilitedialog.cpp Add search filter to hilitedialog. Jul 3, 2016
hilitedialog.h Add search filter to hilitedialog. Jul 3, 2016
hilitedialog.ui Add search filter to hilitedialog. Jul 3, 2016
icon.icns added osx icon Dec 15, 2015
infodialog.cpp switch to qt for crossplatform Aug 11, 2015
infodialog.h switch to qt for crossplatform Aug 11, 2015
infodialog.ui switch to qt for crossplatform Aug 11, 2015
killdialog.cpp switch to qt for crossplatform Aug 11, 2015
killdialog.h switch to qt for crossplatform Aug 11, 2015
killdialog.ui switch to qt for crossplatform Aug 11, 2015
lzx.c switch to qt for crossplatform Aug 11, 2015
lzx.h switch to qt for crossplatform Aug 11, 2015
main.cpp updated for 1.3.5.3 Apr 26, 2017
mainwindow.cpp updated for 1.3.2, fixed chest caching Jul 21, 2016
mainwindow.h Introduce end-of-line normalization Jun 10, 2016
mainwindow.ui Introduce end-of-line normalization Jun 10, 2016
makeinstaller.bat Introduce end-of-line normalization Jun 10, 2016
render.cpp switch to qt for crossplatform Aug 11, 2015
render.h switch to qt for crossplatform Aug 11, 2015
settingsdialog.cpp Portable fix to load textures on Apple OS X Mar 18, 2016
settingsdialog.h Added remote worlds Aug 15, 2015
settingsdialog.ui switch to qt for crossplatform Aug 11, 2015
signview.cpp switch to qt for crossplatform Aug 11, 2015
signview.h switch to qt for crossplatform Aug 11, 2015
signview.ui switch to qt for crossplatform Aug 11, 2015
steamconfig.cpp Introduce end-of-line normalization Jun 10, 2016
steamconfig.h Introduce end-of-line normalization Jun 10, 2016
terrafirma.desktop switch to qt for crossplatform Aug 11, 2015
terrafirma.ico switch to qt for crossplatform Aug 11, 2015
terrafirma.png switch to qt for crossplatform Aug 11, 2015
terrafirma.qrc switch to qt for crossplatform Aug 11, 2015
terrafirma.wxs updated for 1.3.4.4 Dec 13, 2016
uvrules.cpp switch to qt for crossplatform Aug 11, 2015
uvrules.h switch to qt for crossplatform Aug 11, 2015
winicon.rc Fixed bug in armor textures Aug 12, 2015
world.cpp Updates for 1.3.5.1 Apr 20, 2017
world.h updated for 1.3.5.3 Apr 26, 2017
worldheader.cpp Introduce end-of-line normalization Jun 10, 2016
worldheader.h Introduce end-of-line normalization Jun 10, 2016
worldinfo.cpp Updates for 1.3.5.1 Apr 20, 2017
worldinfo.h Updates for 1.3.5.1 Apr 20, 2017

README.md

Cross-platform mapping for Terraria

COMPILING:

All Platforms: Use QtCreator and open terrafirma.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, 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 forever.

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 inside qtbase\bin. Then create a new Kit that uses the Qt Version you just created.

Building for Linux:

Use qmake to generate a makefile then run make.

To make a package,

$ debuild

To make a package for another distrubtion

$ pbuilder-dist vivid create  # generate the 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 Terrafirma:

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