liuweireign / tectonicus

Automatically exported from code.google.com/p/tectonicus
0 stars 0 forks source link

No blocks found for 'anvil' style save file #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. build the system
2. run the system
3. observe no output

The program runs without error but produces an empty map when run against an 
"anvil" style save file.  A diagnostic message indicates that no blocks were 
found.

I know nothing about the internals of either Tectonicus or minecraft, but I can 
run a debugger.  After doing so, I found that the "region" files were not being 
read.  Apparently, in the old save file format the file names ended with 
'.mcr', while in the new format they end with '.mca'.  A filename filter in the 
code was not finding the new format files.

Without knowing anything about the guts of either program, there's no way to 
know whether this would work, but I simply modified the filter to also accept 
files ending with '.mca'.  See the attached patch.  This seems to have fixed 
the problem (although some apparently unrelated quirks remain).

Original issue reported on code.google.com by joe.d...@gmail.com on 18 Apr 2012 at 6:44

Attachments:

GoogleCodeExporter commented 9 years ago
Resolved in v2.09

Original comment by sambened...@gmail.com on 18 Apr 2012 at 8:43