Jump to content

  • Curse Sites
Become a Premium Member! Help
Latest News Article

NBToolkit - Map Processing Tools

updated 5.18.13

  • Please log in to reply
306 replies to this topic

#301

Rahz
    Rahz

    Redstone Miner

  • Members
  • 604 posts

Posted 05 May 2013 - 03:31 PM

Trying to run oregen on a map. I think I'm using the same command line I've used in the past but I'm getting an error.

c:\nbtoolkit>nbtoolkit oregen -w "C:\nbtoolkit\Terynas" -b 16 -v

Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.
at NBToolkit.Oregen.Run<>
at NBToolkit.Program.Main<String[] args>

I've tried the same command on a different map and it works fine. Does this mean the map is corrupted? Seems odd since I'm able to load the map in Minecraft with no issues.

Register or log in to remove.

#302

jaquadro
    jaquadro

    Diamond Miner

  • Curse Premium
  • Curse Premium
  • 794 posts

Posted 05 May 2013 - 03:56 PM

It doesn't necessarily mean the map is corrupt, but there's something about it NBToolkit isn't expecting.  Send me the map (if it's large, remove all but a couple regions -- test on the reduced map first to make sure it's still erroring), and I'll try and see why it's breaking.
NBToolkit - Collection of automated map processing tools
Substrate - Minecraft map editing library for C#/.NET

#303

Rahz
    Rahz

    Redstone Miner

  • Members
  • 604 posts

Posted 05 May 2013 - 07:17 PM

The map was an export from World Painter (worked fine in the past). I'm going to export again and see if it works before I bother you with it.

#304

Mogsington

Posted 17 May 2013 - 11:16 PM

I'm puzzled (as usual).
I was trying to add Copper / Silver / Tin Ores to an old map, but I hit the 255 ID limit. I thought I'd downloaded the latest version of NBToolkit, but checking on GitHub has "Convert.ToByte(v) % 256" as well.

How do I specify block ID's like Copper Ore (ID 925)?
And while I'm here, I'm guessing the -d sets the bit after the colon in what commonly gets written as 925:3 for example (Lead in theory).

Have I missed something stupidy obvious? :)

Thanks!

#305

jaquadro
    jaquadro

    Diamond Miner

  • Curse Premium
  • Curse Premium
  • 794 posts

Posted 18 May 2013 - 06:34 AM

It looks like I took the limits off of filtering / block replace, but forgot to do the same for ore generation.

I've pushed up a new version, give it a try.

And yes, -d specifies the data value, since colon has a different meaning in the options processor I'm using.
NBToolkit - Collection of automated map processing tools
Substrate - Minecraft map editing library for C#/.NET

#306

Mogsington

Posted 18 May 2013 - 03:26 PM

View Postjaquadro, on 18 May 2013 - 06:34 AM, said:

I've pushed up a new version, give it a try.
Perfect. Thank you huge! Maybe I'm weird but I've spent what feels like months on that world. Nice to finally be able to use it with the advanced modpacks :-)
[Tested ore gen, mined to ore's, dug out and correct drops appear]

#307

jaquadro
    jaquadro

    Diamond Miner

  • Curse Premium
  • Curse Premium
  • 794 posts

Posted 19 May 2013 - 07:04 AM

Just a note, I've updated the tool again to add a --dim option to specify the folder name of a dimension.  Example: "DIM-1", "DIM1", "DIM_MYST4"

Now that I'm starting to play with mods, trying to make my tools a little more mod-friendly.
NBToolkit - Collection of automated map processing tools
Substrate - Minecraft map editing library for C#/.NET