udoprog / c10t

A minecraft cartography tool
Other
225 stars 50 forks source link

isometric file error #142

Closed madcap closed 12 years ago

madcap commented 13 years ago

c10t 1.6 fails to write isometric map

C:\Users\madcap\Desktop\MC Tools\c10t>c10t -v c10t - a cartography tool for minecraft version: 1.6, built on Mar 2 2011 by: Udoprog johnjohn.tedro@gmail.com et. al (see README) site: http://github.com/udoprog/c10t

Running the following script: cd C:\Users\madcap\Desktop\MC Tools\c10t c10t -w C:\Users\madcap\AppData\Roaming.minecraft\saves\World1 -o maps\normal.png -r 270 c10t -w C:\Users\madcap\AppData\Roaming.minecraft\saves\World1 -o maps\oblique.png -q -r 270 c10t -w C:\Users\madcap\AppData\Roaming.minecraft\saves\World1 -o maps\night.png -n -r 270 c10t -w C:\Users\madcap\AppData\Roaming.minecraft\saves\World1 -o maps\height.png -H -r 270 c10t -w C:\Users\madcap\AppData\Roaming.minecraft\saves\World1 -o maps\caves.png -c -r 270 c10t -w C:\Users\madcap\AppData\Roaming.minecraft\saves\World1 -o maps\iso.png -z -r 270

All the maps render correctly except the last one (isometric):

Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Users\madcap>cd "Desktop\MC Tools"

C:\Users\madcap\Desktop\MC Tools>cd c10t

C:\Users\madcap\Desktop\MC Tools\c10t>c10t -w C:\Users\madcap\AppData\Roaming.m inecraft\saves\World1 -o maps\iso.png -z -r 270

Generating PNG Map

Threads: 2 --- SCANNING WORLD DIRECTORY --- world: C:/Users/madcap/AppData/Roaming/.minecraft/saves/World1 ............................... 3100 parts ............................... 6200 parts ............................... 9300 parts ............................... 12400 parts ............................... 15500 parts ............................... 18600 parts ............................... 21700 parts ............................... 24800 parts ............................... 27900 parts ............................... 31000 parts ............................... 34100 parts ............................... 37200 parts ............................... 40300 parts ............................... 43400 parts ............................... 46500 parts ............................... 49600 parts ............................... 52700 parts ............................... 55800 parts ............................... 58900 parts ................. 60657 parts --- BUILDING SWAP --- NOTE: A swap file is being built to accommodate high memory usage swap file: swap.bin swap size: 1622.09 MB memory limit: 1048.58 ............................... 32.51 MB 2% ............................... 65.01 MB 4% ............................... 97.52 MB 6% ............................... 130.02 MB 8% ............................... 162.53 MB 10% ............................... 195.04 MB 12% ............................... 227.54 MB 14% ............................... 260.05 MB 16% ............................... 292.55 MB 18% ............................... 325.06 MB 20% ............................... 357.56 MB 22% ............................... 390.07 MB 24% ............................... 422.58 MB 26% ............................... 455.08 MB 28% ............................... 487.59 MB 30% ............................... 520.09 MB 32% ............................... 552.60 MB 34% ............................... 585.11 MB 36% ............................... 617.61 MB 38% ............................... 650.12 MB 40% ............................... 682.62 MB 42% ............................... 715.13 MB 44% ............................... 747.63 MB 46% ............................... 780.14 MB 48% ............................... 812.65 MB 50% ............................... 845.15 MB 52% ............................... 877.66 MB 54% ............................... 910.16 MB 56% ............................... 942.67 MB 58% ............................... 975.18 MB 60% ............................... 1007.68 MB 62% ............................... 1040.19 MB 64% ............................... 1072.69 MB 66% ............................... 1105.20 MB 68% ............................... 1137.70 MB 70% ............................... 1170.21 MB 72% ............................... 1202.72 MB 74% ............................... 1235.22 MB 76% ............................... 1267.73 MB 78% ............................... 1300.23 MB 80% ............................... 1332.74 MB 82% ............................... 1365.25 MB 84% ............................... 1397.75 MB 86% ............................... 1430.26 MB 88% ............................... 1462.76 MB 90% ............................... 1495.27 MB 92% ............................... 1527.78 MB 94% ............................... 1560.28 MB 96% ............................... 1592.79 MB 98% ........................... 1622.09 MB 100% --- RENDERING --- swap.bin: No errorterminate called after throwing an instance of 'std::ios_base: :failure' what(): basic_ios::clear

This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information.

madcap commented 13 years ago

Running it on linux works, however the final png file has an error in it that some viewers complain about.

Here is the map file: http://blockworld.org/content/maps/iso.png

Trying to open it in firefox gives me:

The image cannot be displayed, because it contains errors.

TheMonkey commented 13 years ago

I have this error as well. It has to do with using the swap file. It errors when re-reading it.

To avert this (as long as you have the memory) use the -M and set a memory limit in MB. This will increase the cap from 1048 to whatever you want. In the case of the above, you need 1623 MB, so using the -M 1624 should render the map. I would suggest increasing your -M to 2000 at the least for this.

udoprog commented 12 years ago

Could someone please supply a world and reopen this issue if still valid.