udoprog / c10t

A minecraft cartography tool
Other
225 stars 50 forks source link

Cache files not being written #132

Closed kbart0 closed 12 years ago

kbart0 commented 13 years ago

After upgrading Minecraft to 1.3 and building the newest c10t from source (c87261244a0bf4c05258), cache files aren't being written to disk. I've created a new cache key and the directory is being created, but nothing else.

/x/mc/c10t/c10t -w /x/mc/minecraft-alpha/world -o test.png --cache-dir cache --cache-key oblique -q -m 2 --show-players --ttf-path /usr/local/lib/X11/fonts/webfonts/arial.ttf --ttf-size 30 --ttf-color 0,255,255,0 --debug >> debug.log

Debug output, extra 19000 lines removed.

Creating directory for caching: cache/oblique
Caching to directory: cache/oblique
Cache compression: OFF

Generating PNG Map

Threads: 2
 --- LOOKING FOR DATABASES --- 
players: /x/mc/minecraft-alpha/world/players: 4 player(s) OK
 --- SCANNING WORLD DIRECTORY --- 
world: /x/mc/minecraft-alpha/world
...............................     3100 parts
...............................     6200 parts
...............................     9300 parts
...............................    12400 parts
...............................    15500 parts
...............................    18600 parts
....    19099 parts
 --- DEBUG WORLD INFO --- 
mc::world
  min_x: -123
  max_x: 55
  min_z: -167
  max_z: 95
  levels: 19099
  chunk pos: 0x0
 --- ALLOCATING MEMORY --- 
memory usage: 50.36 MB
memory limit: 1048.58 MB
 --- RENDERING --- 
/x/mc/minecraft-alpha/world/region/r.-1.-6.mcr(-7,-167): queued OK
/x/mc/minecraft-alpha/world/region/r.-1.2.mcr(-24,95): queued OK
    19099 parts 100%
cache_hits: 0/19099
 --- SAVING IMAGE --- 
path: /x/mc/c10t/test.png
/x/mc/c10t/test.png: OK
Hint 1: To use less memory, specify a memory limit with `-M ', if it is reached c10t will swap to disk instead

/x/mc/c10t/c10t: all done!
Log written to /x/mc/c10t/c10t.log
udoprog commented 13 years ago

This is intentional, the new region format needs a cache rework in order to be most effective.

seifertk commented 13 years ago

Any update on whether cache will be fixed?

uap-universe commented 12 years ago

See 822a1c1aeac24d4e13e6b06c9cee0455158efef3.