Closed angryoptimist closed 13 years ago
Seems to be fixed. Getting the palette with "-W" completes and produces a file that's 239 lines long (including the header). Output of ./c10t --version
is
c10t - a cartography tool for minecraft
version: git 17738f5, built on Feb 2 2011
by: Udoprog <johnjohn.tedro@gmail.com> et. al (see README)
site: http://github.com/udoprog/c10t
So, thanks! :)
It does however, give an exit code of 1 and this output on the shell when run like ./c10t -W palette
:
Threads: 4
Sucessfully wrote palette to palette
Type `-h' for help
./c10t: You must specify a world to render using `-w <directory>'
Log written to /home/angryoptimist/build/c10t/build/c10t.log
For all I know, this is the intended behavior, and, hey, writing the palette works, but I figured I ought to give a heads up on that anyway. Certainly, it's unlikely that anyone will be using c10t like that in a script. :)
yeah, was a bit unexpected, I've been working on improving task logic in another branch (two-oh-zero?), and it's checked in, this is major cosmetic surgery, and a bit experimental so I'm not very keen on moving it to master yet : ).
When I run
./c10t -W foo
, I get: Threads: 4 Type `-h' for help ./c10t: Failed to write palette to foo Log written to /home/angryoptimist/build/c10t/build/c10t.logc10t.log is empty and in foo I have
and all this is the same if I run it with "--debug". My output for
./c10t --version
is c10t - a cartography tool for minecraft version: git 96b32fa, built on Jan 18 2011 by: Udoprog johnjohn.tedro@gmail.com et. al (see README) site: http://github.com/udoprog/c10tand I run it on an x86_64 Debian Sid machine.
Also: I looked into the source to see if it was something simple that I could fix (despite not really being that familiar with C++) and, while I didn't see why it was doing was it was doing, did fiddle around with the stream bit inside the loop in do_write_palette. When I removed the name of of the block (and it's formatting bit), it ran without giving an error. Unfortunately, I no longer have the output of that on hand--after nuking the directory, and cloing/building again just to make sure--but it was quite a bit longer (IIRC, 238 entries, minus the comment at the top) and, of course, missing the leftmost column (of names).
Anyway, that's about all I know about it. I hope that's enough detail.