As for the first error, perhaps it is trying to access blocks outside of the current range (although for the given size I don't know why it would). I need to put more checking in. Try running it on a restricted set of chunks and see if it works. If not, I would like a copy of your map to test.
I tested with 2 saves and there are different results for them. (used last version of your tool from previous post)
1) My save i used in my previous post. Success with chunk range:
But without --cxr and --czr it still fails with same error:
>nbtoolkit oregen -b 112 -w testsave2 -r 5 --MinDepth=1 --MaxDepth=127 -s 5 --oi 1 -d 2
Unhandled Exception: System.IO.FileNotFoundException: Unable to find the specified file.
at NBToolkit.Region..ctor(RegionManager rm, Int32 rx, Int32 rz)
at NBToolkit.RegionManager.GetRegion(Int32 rx, Int32 rz)
at NBToolkit.Chunk.GetTree()
at NBToolkit.Chunk.GetBlockID(Int32 x, Int32 y, Int32 z)
at NBToolkit.GenOreBlockManager.SetBlockID(Int32 x, Int32 y, Int32 z, Int32 id)
at NBToolkit.NativeGenOre.Generate(BlockManager blockMan, Random rand, Int32x, Int32 y, Int32 z)
at NBToolkit.Oregen.ApplyChunk(World world, Chunk chunk)
at NBToolkit.Oregen.Run()
at NBToolkit.Program.Main(String[] args)
2) Ink Blot Island V03 map fails with other error regardless of --cxr and --czr params:
>nbtoolkit oregen -b 112 -w "Ink Blot IslandV03" -r 5 --MinDepth=1 --MaxDepth=127 -s 5 --oi 1 -d 2 --cxr 1:10 --czr 1:10
Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.
at NBToolkit.Chunk.GetBlockID(Int32 x, Int32 y, Int32 z)
at NBToolkit.GenOreBlockManager.SetBlockID(Int32 x, Int32 y, Int32 z, Int32 id)
at NBToolkit.NativeGenOre.Generate(BlockManager blockMan, Random rand, Int32x, Int32 y, Int32 z)
at NBToolkit.Oregen.ApplyChunk(World world, Chunk chunk)
at NBToolkit.Oregen.Run()
at NBToolkit.Program.Main(String[] args)
Same error is without --cxr and --czr but it takes much more time like the tool is trying something with the map, and map files size changes.
Ok, it ate capital letters, but crashed after that:
>nbtoolkit oregen -b 112 -w testsave -r 5 --MinDepth=1 --MaxDepth=127 -s 5 --oi 1 -d 2
Unhandled Exception: System.IO.FileNotFoundException: Unable to find the specified file.
at NBToolkit.Region..ctor(RegionManager rm, Int32 rx, Int32 rz)
at NBToolkit.RegionManager.GetRegion(Int32 rx, Int32 rz)
at NBToolkit.Chunk.GetTree()
at NBToolkit.Chunk.GetBlockID(Int32 x, Int32 y, Int32 z)
at NBToolkit.GenOreBlockManager.SetBlockID(Int32 x, Int32 y, Int32 z, Int32 id)
at NBToolkit.NativeGenOre.Generate(BlockManager blockMan, Random rand, Int32x, Int32 y, Int32 z)
at NBToolkit.Oregen.ApplyChunk(World world, Chunk chunk)
at NBToolkit.Oregen.Run()
at NBToolkit.Program.Main(String[] args)
Then i renamed .mcr files to .data like when using RegionTool for conversion to old format:
>rename testsave\region\*.mcr *.data
>nbtoolkit oregen -b 112 -w testsave -r 5 --MinDepth=1 --MaxDepth=127 -s 5 --oi 1 -d 2
Unhandled Exception: System.ArgumentOutOfRangeException: Index was out of range.
Must be non-negative and less than the size of the collection.
Parameter name: index
at System.ThrowHelper.ThrowArgumentOutOfRangeException()
at System.Collections.Generic.List`1.get_Item(Int32 index)
at NBToolkit.RegionEnumerator.get_Current()
at NBToolkit.ChunkEnumerator..ctor(ChunkManager cm, Region region)
at NBToolkit.FilteredChunkEnumerator..ctor(ChunkManager cm, Region reg, IChunkFilter filter)
at NBToolkit.FilteredChunkList.GetEnumerator()
at NBToolkit.Oregen.Run()
at NBToolkit.Program.Main(String[] args)
O_O
The savegame i brought for test is my current game and working so no files missing or damaged structure.
Edit: tried with fresh generated world with no mods and pumpkin instead of custom new ID - and it worked. Strange.
edit2: with id 112 and fresh save works too, so it crashes because of modded world with some new items and blocks?
> nbtoolkit oregen -b 112 -w "Ink_Blot_Island_V03" -r 5 --mindepth=1 --maxdepth=127 -s 5 --oi 1 -d 2
Error: You must specify the minimum depth for non-ore blocks
Error: You must specify the maximum depth for non-ore blocks
Ok a bit of whining below:
Need an option to remove lightstone from loot / extra flowers :-S
and to reduce spawnrate, because they swarm in hundreds all around on desert map, and die in hundreds, and tons of free lightstone dust around, can't resist from loot it :biggrin.gif:
0
0
0
0
http://s3.postimage.org/8sh64dip0/ugly.jpg
0
Pirates don't spam for you?
0
0
0
I tested with 2 saves and there are different results for them. (used last version of your tool from previous post)
1) My save i used in my previous post. Success with chunk range:
But without --cxr and --czr it still fails with same error:
2) Ink Blot Island V03 map fails with other error regardless of --cxr and --czr params:
Same error is without --cxr and --czr but it takes much more time like the tool is trying something with the map, and map files size changes.
0
Then i renamed .mcr files to .data like when using RegionTool for conversion to old format:
O_O
The savegame i brought for test is my current game and working so no files missing or damaged structure.
Edit: tried with fresh generated world with no mods and pumpkin instead of custom new ID - and it worked. Strange.
edit2: with id 112 and fresh save works too, so it crashes because of modded world with some new items and blocks?
0
0
0
Why it cries? I specified the depth...
0
0
0
Need an option to remove lightstone from loot / extra flowers :-S
and to reduce spawnrate, because they swarm in hundreds all around on desert map, and die in hundreds, and tons of free lightstone dust around, can't resist from loot it :biggrin.gif: