OpenPrograms/Magik6k-Programs

ivew bug (?)

shadoxxhd opened this issue · 8 comments

when i call iview (all required libraries are installed) it only gets to "Decode NBT", prints a table id and then terminates without printing the serialized version of the NBT data.

It's due do fact that NBT reading was removed from OC as discussed there: MightyPirates/OpenComputers#649

"As for get (or whatever it'd be called), I'd imagine it to return what getItemStack does now, minus the NBT (or, if so configured in the settings, including the NBT, I'd still leave that in for those that want it, but defaulting to false)."
I turned on NBT values in the settings, so theoretically it should work

Oh, so it's apparently not removed. I'll take a look if I have time.

did you find something out yet?

bumping for attention :P

I'm still interesting in this issue =)

Is this project dead?

I spent a good amount of time hammering on this issue and it seems to be fixed by taking a couple steps:

  1. disable the crc32 check by editing the following line in item.lua:
    output = function(byte)out[#out+1]=string.char(byte)end})
    to
    output = function(byte)out[#out+1]=string.char(byte)end, disable_crc=true})
  2. edit nbt.lua from libnbt to replace the following line:
    local bit32 = bit32
    with
    local bit32 = require "bit32"
    If the packages were installed via oppm, both files are in /usr/lib/.