OpenPrograms / Magik6k-Programs

A place full of magical stuff
Other
27 stars 18 forks source link

ivew bug (?) #5

Open shadoxxhd opened 8 years ago

shadoxxhd commented 8 years ago

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.

magik6k commented 8 years ago

It's due do fact that NBT reading was removed from OC as discussed there: https://github.com/MightyPirates/OpenComputers/issues/649

shadoxxhd commented 8 years ago

"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

magik6k commented 8 years ago

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

shadoxxhd commented 8 years ago

did you find something out yet?

shadoxxhd commented 7 years ago

bumping for attention :P

TaiGel commented 5 years ago

I'm still interesting in this issue =)

shadoxxhd commented 5 years ago

Is this project dead?

ABCRic commented 5 years ago

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/.