nifskope icon indicating copy to clipboard operation
nifskope copied to clipboard

Dev9, SkyrimSE, BSDismemberSkinInstance to NiSkinInstance

Open Meridiano opened this issue 1 year ago • 2 comments

BSDismemberSkinInstance to NiSkinInstance conversion doesn't work in Dev9 for SkyrimSE meshes.

Steps to reproduce:

  • right mouse button on BSDismemberSkinInstance
  • Block > Convert > NiS... > NiSkinInstance // here you can see block changes but block content does not
  • File > Save // nothing happens, file is not saved
  • File > Save As... > Save with a different filename
  • File > Reload // here come errors

Parsing warnings: NiSkin Data [6]\Bone List, updateArraySize Impl: Array size -2147483648 is invalid.

The NIF file could not be read. See Details for more information. Pos 1003: failed to load block number 6 (NiSkinData) pre vious block was NiSkinInstance Failed to load C:/Users/User/Desktop/silverring_1_mod.nif

2 related meshes attached. 1st is original, 2nd is processed and saved. SilverRing_1.zip

Meridiano avatar Feb 01 '24 15:02 Meridiano

Fixed by this commit. A previous commit on July 30, 2023 made a change so that the name of the original block type (btype) is only stored by reference instead of copying it to a new string, but this breaks the code a few lines below. I reverted to making a copy.

fo76utils avatar Feb 03 '24 23:02 fo76utils

@fo76utils I wonder how many other bugs you, guys, have found in my "carpet bombing" refactors from 2023?

gavrant avatar Jul 05 '24 23:07 gavrant