jakcron / nstool

General purpose read/extract tool for Nintendo Switch file formats.
MIT License
449 stars 43 forks source link

Data layer block(s) failed hash validation when trying to extract #108

Open tastymeatball opened 1 year ago

tastymeatball commented 1 year ago

When trying to extract Zelda Totk the following error is shown

Saving .\app\1\Cull\MainField\E-5_X0Z1.bcul.zs...
[pie::hac::HierarchicalIntegrityStream ERROR] Data layer block(s) failed hash validation.

With hactool the file could be extracted without issues

Info from nstool about the file that fails to extract.

stream properties: canRead()  = true
stream properties: canWrite() = false
stream properties: canSeek()  = true
[NCA Header]
  Format Type:     NCA3
  Dist. Type:      Download
  Content Type:    Program
  Key Generation:  15
  Sig. Generation: 0
  Kaek Index:      Application (0)
  Size:            0x3fe270000
  ProgID:          0x0100f2c0115b6000
  Content Index:   0
  SdkAddon Ver.:   15.3.1 (v251855104)
  RightsId:        0100F2C0115B6000000000000000000F
jakcron commented 1 year ago

Thanks for reporting, I'll investigate and let you know how I go :)