./minetest_mapper ... 6,96s user 0,16s system 99% cpu 7,181 total
python minetestmapper.py ... 531,58s user 1,66s system 99% cpu 8:55,13 total
mireq wrote:I rewrote the minetestmapper.py tool to C++. It is at least 50 times faster than original.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
./minetest_mapper ... 6,96s user 0,16s system 99% cpu 7,181 total
python minetestmapper.py ... 531,58s user 1,66s system 99% cpu 8:55,13 total
Source code is on github (https://github.com/mireq/minetest-mapper-cpp).
Rquired dependencies are:
- libgd
- boost
- sqlite3
Commandline arguments are that same as used in minetestmapper.py. Input directory (-i) must end with /.
mireq wrote:I rewrote the minetestmapper.py tool to C++. It is at least 50 times faster than original.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
./minetest_mapper ... 6,96s user 0,16s system 99% cpu 7,181 total
python minetestmapper.py ... 531,58s user 1,66s system 99% cpu 8:55,13 total
Source code is on github (https://github.com/mireq/minetest-mapper-cpp).
Rquired dependencies are:
- libgd
- boost
- sqlite3
Commandline arguments are that same as used in minetestmapper.py. Input directory (-i) must end with /.
terminate called after throwing an instance of 'std::length_error'
what(): basic_string::_S_create
Aborted (core dumped)
VanessaE wrote:Since it's in C++ now, what is the possibility of integrating this into the game, i.e. as some kind of map viewer one can call up with a keypress?
mireq wrote:I rewrote the minetestmapper.py tool to C++. It is at least 50 times faster than original.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
./minetest_mapper ... 6,96s user 0,16s system 99% cpu 7,181 total
python minetestmapper.py ... 531,58s user 1,66s system 99% cpu 8:55,13 total
Source code is on github (https://github.com/mireq/minetest-mapper-cpp).
Rquired dependencies are:
- libgd
- boost
- sqlite3
Commandline arguments are that same as used in minetestmapper.py. Input directory (-i) must end with /.
mireq wrote:I rewrote the minetestmapper.py tool to C++. It is at least 50 times faster than original.
/home/us_0gb/.minetest/minetest-mapper-cpp-master/TileGenerator.cpp:13:22: fatal error: gdfontmb.h: No such file or directory
0gb.us wrote:mireq wrote:I rewrote the minetestmapper.py tool to C++. It is at least 50 times faster than original./home/us_0gb/.minetest/minetest-mapper-cpp-master/TileGenerator.cpp:13:22: fatal error: gdfontmb.h: No such file or directory
I get an error when I try to compile it. What is gdfontmb.h, and where do I get it?
Thanks!
leetelate wrote:gdfontmb.h is in here --> https://github.com/zer0x304/gd-2.0.35 - download then extract it seemed to work and fixed the make error
Users browsing this forum: No registered users and 10 guests