hxmtmapper

User avatar
xyz
Member
 
Posts: 449
Joined: Thu Nov 10, 2011 14:25

hxmtmapper

by xyz » Sat Nov 10, 2012 18:30

LazyJ wrote:*bump*

not-so-unrelated: There's another mapper for Minetest (rewritten from scratch) — https://github.com/Nemo08/hxmtmapper
 

LazyJ
Member
 
Posts: 479
Joined: Wed Sep 12, 2012 12:29

by LazyJ » Tue Nov 13, 2012 18:55

Thanks xyz for the hxmtmapper link.

I've installed haxe and neko (Ubuntu repositories) and tried running "compile' (./compile in the hxmtmapper-master directory). It stops to tell me that I have to run haxelib setup first.

Ok, when I run "haxelib setup" it asks me for the path to the haxelib repository with write access.

Now I'm stuck because I don't know where this repository is (I've never dealt with Haxe before this).

What is your recommedation for getting this to work, xyz?

Thanks!
.: Minetest 0.4.14 ~ Linux Mint ~ A moka pot, a French press, a dirty coffee cup, and a spoiled-rotten kitty :.
Visit our Minetest server at: LinuxGaming2.com, port 30000
Screenshots, overview maps, and server info at: http://forum.minetest.net/viewtopic.php?f=10&t=5684
My blog: http://lazyjminetest.blogspot.com/
 

LazyJ
Member
 
Posts: 479
Joined: Wed Sep 12, 2012 12:29

by LazyJ » Wed Nov 14, 2012 05:32

Made a little progress but still haven't been able to compile the hxmtmapper.

After running

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
./compile.sh


in the hxmtmapper-master folder, I get this error message:

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
~/haxe_mtmapper/nme/3,4,3/neash/Loader.hx:9: characters 0-22 : Class not found : sys.io.Process


Any ideas what to do next?
.: Minetest 0.4.14 ~ Linux Mint ~ A moka pot, a French press, a dirty coffee cup, and a spoiled-rotten kitty :.
Visit our Minetest server at: LinuxGaming2.com, port 30000
Screenshots, overview maps, and server info at: http://forum.minetest.net/viewtopic.php?f=10&t=5684
My blog: http://lazyjminetest.blogspot.com/
 

User avatar
xyz
Member
 
Posts: 449
Joined: Thu Nov 10, 2011 14:25

by xyz » Wed Nov 14, 2012 12:12

LazyJ wrote:Made a little progress but still haven't been able to compile the hxmtmapper.

After running

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
./compile.sh


in the hxmtmapper-master folder, I get this error message:

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
~/haxe_mtmapper/nme/3,4,3/neash/Loader.hx:9: characters 0-22 : Class not found : sys.io.Process


Any ideas what to do next?

Try again with nme 3.4.4
 

LazyJ
Member
 
Posts: 479
Joined: Wed Sep 12, 2012 12:29

by LazyJ » Wed Nov 14, 2012 16:12

Ok, some more progress made but still having errors.

Downloaded NME (with Haxe included) from: http://www.haxenme.org/download/

Extracted and installed the NME/Haxe bundle:

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
./nme-installer.sh


Next I ran:

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
haxelib install sqlite


Then xyz's:

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
./compile.sh


Everything seemed to be installed at this point so I tried to run hxmtmapper with the example for creating a jpg file (with file path altered to match my minetest world map.sqlite location)

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
Hxmtmapper -bp ~/stable/043/worlds/LazyLand/map.sqlite  -i ~/minetestmapper_haxe/hxmtmapper-master/cpp/test/2012_11_13_LazyLand.jpg


This is where the next stumbling block occurs. This error message pops up in the terminal and the process stops:

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
Error : Could not load module sqlite3@sqlite_connect__1


I've checked through Synaptic to make sure SQLite3 is installed... it is.

Now what should I try?

Thanks!
.: Minetest 0.4.14 ~ Linux Mint ~ A moka pot, a French press, a dirty coffee cup, and a spoiled-rotten kitty :.
Visit our Minetest server at: LinuxGaming2.com, port 30000
Screenshots, overview maps, and server info at: http://forum.minetest.net/viewtopic.php?f=10&t=5684
My blog: http://lazyjminetest.blogspot.com/
 

User avatar
xyz
Member
 
Posts: 449
Joined: Thu Nov 10, 2011 14:25

by xyz » Wed Nov 14, 2012 18:21

LazyJ wrote:Now what should I try?

Thanks!

Try `haxelib install sqlite`
 

LazyJ
Member
 
Posts: 479
Joined: Wed Sep 12, 2012 12:29

by LazyJ » Thu Nov 15, 2012 17:37

Thanks for your patience xyz.

I did run

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
haxelib install sqlite


(mentioned towards the upper-part of my last post) and still that sqlite error popped up. I also ran the other two examples that are provided in the "Readme.md" file (with file path changes to my worlds' map, of course).

ATTENTION FORUM ADMINS
Perhaps this portion of the thread should be moved to its own topic. Origianlly this was to discuss Mireq's minetestmapper rewritten in c++ but xyz and I have added several posts now that are detailing a different program. Besides, I think xyz's work deserves its own thread. Peaking into the html folder, xyz's minetestmapper appears to, possibly, function like Google Maps.

Thanks. :)
.: Minetest 0.4.14 ~ Linux Mint ~ A moka pot, a French press, a dirty coffee cup, and a spoiled-rotten kitty :.
Visit our Minetest server at: LinuxGaming2.com, port 30000
Screenshots, overview maps, and server info at: http://forum.minetest.net/viewtopic.php?f=10&t=5684
My blog: http://lazyjminetest.blogspot.com/
 

User avatar
xyz
Member
 
Posts: 449
Joined: Thu Nov 10, 2011 14:25

by xyz » Fri Nov 16, 2012 13:10

LazyJ wrote:ATTENTION FORUM ADMINS
Perhaps this portion of the thread should be moved to its own topic. Origianlly this was to discuss Mireq's minetestmapper rewritten in c++ but xyz and I have added several posts now that are detailing a different program. Besides, I think xyz's work deserves its own thread. Peaking into the html folder, xyz's minetestmapper appears to, possibly, function like Google Maps.

Thanks. :)

Moved. Actually, it's not mine but Nemo08's work (mostly).
 

Nemo08
Member
 
Posts: 132
Joined: Mon Dec 26, 2011 04:59

by Nemo08 » Fri Nov 16, 2012 19:58

LazyJ wrote:... and still that sqlite error popped up...

Try to copy sqlite3.ndll to folder where is your compiled Hxmtmapper
Last edited by Nemo08 on Fri Nov 16, 2012 19:58, edited 1 time in total.
 

LazyJ
Member
 
Posts: 479
Joined: Wed Sep 12, 2012 12:29

by LazyJ » Sat Nov 17, 2012 17:01

Nemo08 wrote:Try to copy sqlite3.ndll to folder where is your compiled Hxmtmapper


Ok, found and copied the sqlite3.ndll to the cpp folder where Hxmtmapper (executable) has been compiled.

Ran the command in the terminal, in the "cpp" directory where the Hxmtmapper executable is.

Instantly after hitting the "enter" button, a new, blank line came up in the terminal just as if the command had been completed, however there is no jpg file nor was there any error message.

Here is the directory tree under the "hxmtmapper-master" folder:

/hxmtmapper-master/
|_ /hxmtmapper-master/cpp/ (copied sqlite3.ndll below to this folder so it exists in both places)
|_ /hxmtmapper-master/html/
|_ /hxmtmapper-master/mods/
|_ /hxmtmapper-master/src/
|_ /hxmtmapper-master/temporary/
/hxmtmapper-master/colormapping.txt
/hxmtmapper-master/compile-debug.sh
/hxmtmapper-master/compile-win.bat
/hxmtmapper-master/compile.sh
/hxmtmapper-master/READMD.md
/hxmtmapper-master/sqlite3.ndll (copied this to cpp folder above so it exists in both places)

I'm running Ubuntu 12.04 if that provides any useful information.

What's the next step?
.: Minetest 0.4.14 ~ Linux Mint ~ A moka pot, a French press, a dirty coffee cup, and a spoiled-rotten kitty :.
Visit our Minetest server at: LinuxGaming2.com, port 30000
Screenshots, overview maps, and server info at: http://forum.minetest.net/viewtopic.php?f=10&t=5684
My blog: http://lazyjminetest.blogspot.com/
 

Nemo08
Member
 
Posts: 132
Joined: Mon Dec 26, 2011 04:59

by Nemo08 » Tue Nov 20, 2012 19:41

@LazyJ, sorry, i forgot, "colormapping.txt" file must be in folder with hxmtmapper executible :(
P.S. clone mapper from git, i merge last dev branch
P.P.S also, i dont know, whether the mapper to work with the latest base format and mapper dont generete single image from large bases.
Last edited by Nemo08 on Tue Nov 20, 2012 19:48, edited 1 time in total.
 

User avatar
nomohakon
Member
 
Posts: 207
Joined: Fri Aug 10, 2012 16:34
IRC: nomohakon
In-game: nomohakon

by nomohakon » Mon Feb 18, 2013 14:31

How can i compile this on windows xp?
"To learn who rules over you, simply find out who you are not allowed to criticize." - Voltaire
"Knowledge, like air, is vital to life. Like air, no one should be denied it." - Alan Moore, V for Vendetta
- - -
"To never die... and to conquer all, that is winning." ―Illyria
 


Return to Minetest-Related

Who is online

Users browsing this forum: No registered users and 4 guests

cron