Question Error loading preset appearance (does not change body?)

henshin

Member
Messages
103
Reactions
10
Points
18
My appearance presets are not loaded correctly anymore (hair and texture are loaded, but not the face, body, clothes, etc)
This is the error I get:

!> Exception during Restore of geometry: System.NullReferenceException:
at (wrapper managed-to-native) UnityEngine.MonoBehaviour:IsObjectMonoBehaviour (UnityEngine.Object)
at UnityEngine.MonoBehaviour.StartCoroutine (IEnumerator routine) [0x00000] in <filename unknown>:0
at Redeyes.DiviningCleavageAndNipples.OnToggleItem (.JSONStorableBool jsb) [0x00000] in <filename unknown>:0
at (wrapper delegate-invoke) JSONStorableBool/SetJSONBoolCallback:invoke_void__this___JSONStorableBool (JSONStorableBool)
at JSONStorableBool.InternalSetVal (Boolean b, Boolean doCallback) [0x00000] in <filename unknown>:0
at JSONStorableBool.set_val (Boolean value) [0x00000] in <filename unknown>:0
at DAZCharacterSelector.SetActiveClothingItem (.DAZClothingItem item, Boolean active, Boolean fromRestore, Boolean skipSyncAnatomy) [0x00000] in <filename unknown>:0
at DAZCharacterSelector.ResetClothing (Boolean clearAll) [0x00000] in <filename unknown>:0
at DAZCharacterSelector.RestoreFromJSON (SimpleJSON.JSONClass jc, Boolean restorePhysical, Boolean restoreAppearance, SimpleJSON.JSONArray presetAtoms, Boolean setMissingToDefault) [0x00000] in <filename unknown>:0
at MeshVR.PresetManager.Restore (SimpleJSON.JSONClass jc) [0x00000] in <filename unknown>:0

Maybe is related with some plugin?
I can see there is "DiviningCleavageAndNipples" there but I don't have active that plugin in my scene, session or female
This happens on any scene, even the ones without animations and only one female

EDIT: restarting VAM seems to solve the problem, but if somebody has any clue about what could causing this is very welcome, because is not the first time this happen
 
Last edited:
Solution
Yes, the error originates from the DiviningCleavageAndNipples plugin. Since you don't have the plugin active in the scene, that's why it produces an error - the clothing item's toggle still has a callback that references code from the plugin, but the plugin has been removed so the callback produces an error.

@redeyes This can be fixed by removing the callbacks that you add to clothing items in the script's OnDestroy - example:

C#:
private List<JSONStorableBool> clothingEnabledBools;
   
private void Init()
{
    clothingEnabledBools = // ... build list of clothing bools
    foreach(var jsb in clothingEnabledBools)
    {
        jsb.setCallbackFunction += OnToggleItem;
    }
}

private void OnToggleItem()
{
    if(enabled)
    {...
Sometimes you can reset the appearance to the default look and then load the preset that you want. It worked for me also and then I'll restart vam if it doesn't.
 
Upvote 0
Yes, the error originates from the DiviningCleavageAndNipples plugin. Since you don't have the plugin active in the scene, that's why it produces an error - the clothing item's toggle still has a callback that references code from the plugin, but the plugin has been removed so the callback produces an error.

@redeyes This can be fixed by removing the callbacks that you add to clothing items in the script's OnDestroy - example:

C#:
private List<JSONStorableBool> clothingEnabledBools;
   
private void Init()
{
    clothingEnabledBools = // ... build list of clothing bools
    foreach(var jsb in clothingEnabledBools)
    {
        jsb.setCallbackFunction += OnToggleItem;
    }
}

private void OnToggleItem()
{
    if(enabled)
    {
        this.StartCoroutine... // this is null if called when plugin is removed
    }
}
   
private void OnDestroy()
{
    foreach(var jsb in clothingEnabledBools)
    {
        jsb.setCallbackFunction -= OnToggleItem;
    }
}

EDIT: Redeyes has stated they're no longer supporting this plugin given that Naturalis has clothing profiles built in: https://hub.virtamate.com/threads/diviningcleavageandnipples.44379/page-2
 
Upvote 0
Solution
Yes, the error originates from the DiviningCleavageAndNipples plugin. Since you don't have the plugin active in the scene, that's why it produces an error - the clothing item's toggle still has a callback that references code from the plugin, but the plugin has been removed so the callback produces an error.

@redeyes This can be fixed by removing the callbacks that you add to clothing items in the script's OnDestroy - example:

C#:
private List<JSONStorableBool> clothingEnabledBools;
  
private void Init()
{
    clothingEnabledBools = // ... build list of clothing bools
    foreach(var jsb in clothingEnabledBools)
    {
        jsb.setCallbackFunction += OnToggleItem;
    }
}

private void OnToggleItem()
{
    if(enabled)
    {
        this.StartCoroutine... // this is null if called when plugin is removed
    }
}
  
private void OnDestroy()
{
    foreach(var jsb in clothingEnabledBools)
    {
        jsb.setCallbackFunction -= OnToggleItem;
    }
}

EDIT: Redeyes has stated they're no longer supporting this plugin given that Naturalis has clothing profiles built in: https://hub.virtamate.com/threads/diviningcleavageandnipples.44379/page-2
I've updated the main page to state I'm no longer supporting this plugin and directed them to naturalis
 
Upvote 0
My appearance presets are not loaded correctly anymore (hair and texture are loaded, but not the face, body, clothes, etc)
This is the error I get:



Maybe is related with some plugin?
I can see there is "DiviningCleavageAndNipples" there but I don't have active that plugin in my scene, session or female
This happens on any scene, even the ones without animations and only one female

EDIT: restarting VAM seems to solve the problem, but if somebody has any clue about what could causing this is very welcome, because is not the first time this happen
same problem any solution..i am getting this error log

!> Exception during zip file scan of AddonPackages\14mhz.View2Atom.4.var: ICSharpCode.SharpZipLib.Zip.ZipException: Cannot find central directory
at ICSharpCode.SharpZipLib.Zip.ZipFile.ReadEntries () [0x00000] in <filename unknown>:0
at ICSharpCode.SharpZipLib.Zip.ZipFile..ctor (System.IO.FileStream file) [0x00000] in <filename unknown>:0
!> Exception during zip file scan of AddonPackages\AnythingFashionVR.fishnet_panties.2.var: ICSharpCode.SharpZipLib.Zip.ZipException: Cannot find central directory
at ICSharpCode.SharpZipLib.Zip.ZipFile.ReadEntries () [0x00000] in <filename unknown>:0
at ICSharpCode.SharpZipLib.Zip.ZipFile..ctor (System.IO.FileStream file) [0x00000] in <filename unknown>:0
!> Exception during zip file scan of AddonPackages\Epi.epiGi.2.var: ICSharpCode.SharpZipLib.Zip.ZipException: Cannot find central directory
at ICSharpCode.SharpZipLib.Zip.ZipFile.ReadEntries () [0x00000] in <filename unknown>:0
at ICSharpCode.SharpZipLib.Zip.ZipFile..ctor (System.IO.FileStream file) [0x00000] in <filename unknown>:0
!> Exception during zip file scan of AddonPackages\Korisaki.AdhesiveBandages.1.var: ICSharpCode.SharpZipLib.Zip.ZipException: Cannot find central directory
at ICSharpCode.SharpZipLib.Zip.ZipFile.ReadEntries () [0x00000] in <filename unknown>:0
at ICSharpCode.SharpZipLib.Zip.ZipFile..ctor (System.IO.FileStream file) [0x00000] in <filename unknown>:0
!> Exception during zip file scan of AddonPackages\OniEkohvius.Aunt_of_Sass.1.var: ICSharpCode.SharpZipLib.Zip.ZipException: Cannot find central directory
at ICSharpCode.SharpZipLib.Zip.ZipFile.ReadEntries () [0x00000] in <filename unknown>:0
at ICSharpCode.SharpZipLib.Zip.ZipFile..ctor (System.IO.FileStream file) [0x00000] in <filename unknown>:0
!> Exception during zip file scan of AddonPackages\Oronan.Bob_B10.1.var: ICSharpCode.SharpZipLib.Zip.ZipException: Cannot find central directory
at ICSharpCode.SharpZipLib.Zip.ZipFile.ReadEntries () [0x00000] in <filename unknown>:0
at ICSharpCode.SharpZipLib.Zip.ZipFile..ctor (System.IO.FileStream file) [0x00000] in <filename unknown>:0
!> Exception during zip file scan of AddonPackages\PrettyFrank.Sensor.4.var: ICSharpCode.SharpZipLib.Zip.ZipException: Cannot find central directory
at ICSharpCode.SharpZipLib.Zip.ZipFile.ReadEntries () [0x00000] in <filename unknown>:0
at ICSharpCode.SharpZipLib.Zip.ZipFile..ctor (System.IO.FileStream file) [0x00000] in <filename unknown>:0
!> Exception during zip file scan of AddonPackages\Riddler.LongSword.1.var: ICSharpCode.SharpZipLib.Zip.ZipException: Cannot find central directory
at ICSharpCode.SharpZipLib.Zip.ZipFile.ReadEntries () [0x00000] in <filename unknown>:0
at ICSharpCode.SharpZipLib.Zip.ZipFile..ctor (System.IO.FileStream file) [0x00000] in <filename unknown>:0
!> Exception during zip file scan of AddonPackages\Riddler.PA2_Liner.2.var: ICSharpCode.SharpZipLib.Zip.ZipException: Cannot find central directory
at ICSharpCode.SharpZipLib.Zip.ZipFile.ReadEntries () [0x00000] in <filename unknown>:0
at ICSharpCode.SharpZipLib.Zip.ZipFile..ctor (System.IO.FileStream file) [0x00000] in <filename unknown>:0
!> Exception during zip file scan of AddonPackages\Riddler.PA2_Plates.3.var: ICSharpCode.SharpZipLib.Zip.ZipException: Cannot find central directory
at ICSharpCode.SharpZipLib.Zip.ZipFile.ReadEntries () [0x00000] in <filename unknown>:0
at ICSharpCode.SharpZipLib.Zip.ZipFile..ctor (System.IO.FileStream file) [0x00000] in <filename unknown>:0
!> Exception during zip file scan of AddonPackages\Riddler.Plate_Helmet.3.var: ICSharpCode.SharpZipLib.Zip.ZipException: Cannot find central directory
at ICSharpCode.SharpZipLib.Zip.ZipFile.ReadEntries () [0x00000] in <filename unknown>:0
at ICSharpCode.SharpZipLib.Zip.ZipFile..ctor (System.IO.FileStream file) [0x00000] in <filename unknown>:0
!> Exception during zip file scan of AddonPackages\VAM-YJ.Pearlkini.1.var: ICSharpCode.SharpZipLib.Zip.ZipException: Cannot find central directory
at ICSharpCode.SharpZipLib.Zip.ZipFile.ReadEntries () [0x00000] in <filename unknown>:0
at ICSharpCode.SharpZipLib.Zip.ZipFile..ctor (System.IO.FileStream file) [0x00000] in <filename unknown>:0
!> VAR file AddonPackages\addons\New folder (2)\vamtaco.NippleClippingReducer.4(1).var does not use integer version field in name <creator>.<name>.<version>
!> VAR file AddonPackages\addons\New folder (3)\Lisa.1.var is not named with convention <creator>.<name>.<version>
!> Duplicate package uid Pineapler.VamCuaSuperglue.1. Cannot register
!> VAR file AddonPackages\addons\New folder (4)\Shapes.SexInNature.1.3.var is not named with convention <creator>.<name>.<version>
!> VAR file AddonPackages\addons\New folder (4)\Shapes.SexInNature.2.1.var is not named with convention <creator>.<name>.<version>
!> Duplicate package uid TenStrip.Expressions.1. Cannot register
!> VAR file AddonPackages\addons\New folder (4)\ToumeiHitsuji.SlapStuffAudioPack.2 (1).var does

<Truncated>

!> Exception while reading dynamic item metafile AddonPackages\Clothing\qing\Qing.baiyijun-f.1.var:\Custom\Clothing\Female\Qing\baiyijun\baiyijun-bozi2.vam ICSharpCode.SharpZipLib.Zip.ZipException: Wrong local header signature @C4F4E
at ICSharpCode.SharpZipLib.Zip.ZipFile.TestLocalHeader (ICSharpCode.SharpZipLib.Zip.ZipEntry entry, HeaderTest tests) [0x00000] in <filename unknown>:0
at ICSharpCode.SharpZipLib.Zip.ZipFile.LocateEntry (ICSharpCode.SharpZipLib.Zip.ZipEntry entry) [0x00000] in <filename unknown>:0
at ICSharpCode.SharpZipLib.Zip.ZipFile.GetInputStream (Int64 entryIndex) [0x00000] in <filename unknown>:0
at ICSharpCode.SharpZipLib.Zip.ZipFile.GetInputStream (ICSharpCode.SharpZipLib.Zip.ZipEntry entry) [0x00000] in <filename unknown>:0
at MVR.FileManagement.VarFileEntryStream..ctor (MVR.FileManagement.VarFileEntry entry) [0x00000] in <filename unknown>:0
at MVR.FileManagement.VarFileEntryStreamReader..ctor (MVR.FileManagement.VarFileEntry entry) [0x00000] in <filename unknown>:0
at MVR.FileManagement.FileManager.OpenStreamReader (MVR.FileManagement.FileEntry fe) [0x00000] in <filename unknown>:0
at MVR.FileManagement.FileManager.ReadAllText (MVR.FileManagement.FileEntry fe) [0x00000] in <filename unknown>:0
at DAZCharacterSelector.SyncCustomItems (Gender gender, .DAZDynamicItem[] existingItems, System.String searchPath, UnityEngine.Transform dynamicItemPrefab, UnityEngine.Transform container) [0x00000] in <filename unknown>:0
!> Exception while reading dynamic item metafile AddonPackages\Clothing\qing\Qing.baiyijun-f.1.var:\Custom\Clothing\Female\Qing\baiyijun\baiyijun-erhuan.vam ICSharpCode.SharpZipLib.Zip.ZipException: Wrong local header signature @DA5E6
at ICSharpCode.SharpZipLib.Zip.ZipFile.TestLocalHeader (ICSharpCode.SharpZipLib.Zip.ZipEntry entry, HeaderTest tests) [0x00000] in <filename unknown>:0
at ICSharpCode.SharpZipLib.Zip.ZipFile.LocateEntry (ICSharpCode.SharpZipLib.Zip.ZipEntry entry) [0x00000] in <filename unknown>:0
at ICSharpCode.SharpZipLib.Zip.ZipFile.GetInputStream (Int64 entryIndex) [0x00000] in <filename unknown>:0
at ICSharpCode.SharpZipLib.Zip.ZipFile.GetInputStream (ICSharpCode.SharpZipLib.Zip.ZipEntry entry) [0x00000] in <filename unknown>:0
at MVR.FileManagement.VarFileEntryStream..ctor (MVR.FileManagement.VarFileEntry entry) [0x00000] in <filename unknown>:0
at MVR.FileManagement.VarFileEntryStreamReader..ctor (MVR.FileManagement.VarFileEntry entry) [0x00000] in <filename unknown>:0
at MVR.FileManagement.FileManager.OpenStreamReader (MVR.FileManagement.FileEntry fe) [0x00000] in <filename unknown>:0
at MVR.FileManagement.FileManager.ReadAllText (MVR.FileManagement.FileEntry fe) [0x00000] in <filename unknown>:0
at DAZCharacterSelector.SyncCustomItems (Gender gender, .DAZDynamicItem[] existingItems, System.String searchPath, UnityEngine.Transform dynamicItemPrefab, UnityEngine.Transform container) [0x00000] in <filename unknown>:0
 
Upvote 0
same problem any solution..i am getting this error log

!> Exception during zip file scan of AddonPackages\14mhz.View2Atom.4.var: ICSharpCode.SharpZipLib.Zip.ZipException: Cannot find central directory
at ICSharpCode.SharpZipLib.Zip.ZipFile.ReadEntries () [0x00000] in <filename unknown>:0
at ICSharpCode.SharpZipLib.Zip.ZipFile..ctor (System.IO.FileStream file) [0x00000] in <filename unknown>:0
!> Exception during zip file scan of AddonPackages\AnythingFashionVR.fishnet_panties.2.var: ICSharpCode.SharpZipLib.Zip.ZipException: Cannot find central directory
at ICSharpCode.SharpZipLib.Zip.ZipFile.ReadEntries () [0x00000] in <filename unknown>:0
at ICSharpCode.SharpZipLib.Zip.ZipFile..ctor (System.IO.FileStream file) [0x00000] in <filename unknown>:0
!> Exception during zip file scan of AddonPackages\Epi.epiGi.2.var: ICSharpCode.SharpZipLib.Zip.ZipException: Cannot find central directory
at ICSharpCode.SharpZipLib.Zip.ZipFile.ReadEntries () [0x00000] in <filename unknown>:0
at ICSharpCode.SharpZipLib.Zip.ZipFile..ctor (System.IO.FileStream file) [0x00000] in <filename unknown>:0
!> Exception during zip file scan of AddonPackages\Korisaki.AdhesiveBandages.1.var: ICSharpCode.SharpZipLib.Zip.ZipException: Cannot find central directory
at ICSharpCode.SharpZipLib.Zip.ZipFile.ReadEntries () [0x00000] in <filename unknown>:0
at ICSharpCode.SharpZipLib.Zip.ZipFile..ctor (System.IO.FileStream file) [0x00000] in <filename unknown>:0
!> Exception during zip file scan of AddonPackages\OniEkohvius.Aunt_of_Sass.1.var: ICSharpCode.SharpZipLib.Zip.ZipException: Cannot find central directory
at ICSharpCode.SharpZipLib.Zip.ZipFile.ReadEntries () [0x00000] in <filename unknown>:0
at ICSharpCode.SharpZipLib.Zip.ZipFile..ctor (System.IO.FileStream file) [0x00000] in <filename unknown>:0
!> Exception during zip file scan of AddonPackages\Oronan.Bob_B10.1.var: ICSharpCode.SharpZipLib.Zip.ZipException: Cannot find central directory
at ICSharpCode.SharpZipLib.Zip.ZipFile.ReadEntries () [0x00000] in <filename unknown>:0
at ICSharpCode.SharpZipLib.Zip.ZipFile..ctor (System.IO.FileStream file) [0x00000] in <filename unknown>:0
!> Exception during zip file scan of AddonPackages\PrettyFrank.Sensor.4.var: ICSharpCode.SharpZipLib.Zip.ZipException: Cannot find central directory
at ICSharpCode.SharpZipLib.Zip.ZipFile.ReadEntries () [0x00000] in <filename unknown>:0
at ICSharpCode.SharpZipLib.Zip.ZipFile..ctor (System.IO.FileStream file) [0x00000] in <filename unknown>:0
!> Exception during zip file scan of AddonPackages\Riddler.LongSword.1.var: ICSharpCode.SharpZipLib.Zip.ZipException: Cannot find central directory
at ICSharpCode.SharpZipLib.Zip.ZipFile.ReadEntries () [0x00000] in <filename unknown>:0
at ICSharpCode.SharpZipLib.Zip.ZipFile..ctor (System.IO.FileStream file) [0x00000] in <filename unknown>:0
!> Exception during zip file scan of AddonPackages\Riddler.PA2_Liner.2.var: ICSharpCode.SharpZipLib.Zip.ZipException: Cannot find central directory
at ICSharpCode.SharpZipLib.Zip.ZipFile.ReadEntries () [0x00000] in <filename unknown>:0
at ICSharpCode.SharpZipLib.Zip.ZipFile..ctor (System.IO.FileStream file) [0x00000] in <filename unknown>:0
!> Exception during zip file scan of AddonPackages\Riddler.PA2_Plates.3.var: ICSharpCode.SharpZipLib.Zip.ZipException: Cannot find central directory
at ICSharpCode.SharpZipLib.Zip.ZipFile.ReadEntries () [0x00000] in <filename unknown>:0
at ICSharpCode.SharpZipLib.Zip.ZipFile..ctor (System.IO.FileStream file) [0x00000] in <filename unknown>:0
!> Exception during zip file scan of AddonPackages\Riddler.Plate_Helmet.3.var: ICSharpCode.SharpZipLib.Zip.ZipException: Cannot find central directory
at ICSharpCode.SharpZipLib.Zip.ZipFile.ReadEntries () [0x00000] in <filename unknown>:0
at ICSharpCode.SharpZipLib.Zip.ZipFile..ctor (System.IO.FileStream file) [0x00000] in <filename unknown>:0
!> Exception during zip file scan of AddonPackages\VAM-YJ.Pearlkini.1.var: ICSharpCode.SharpZipLib.Zip.ZipException: Cannot find central directory
at ICSharpCode.SharpZipLib.Zip.ZipFile.ReadEntries () [0x00000] in <filename unknown>:0
at ICSharpCode.SharpZipLib.Zip.ZipFile..ctor (System.IO.FileStream file) [0x00000] in <filename unknown>:0
!> VAR file AddonPackages\addons\New folder (2)\vamtaco.NippleClippingReducer.4(1).var does not use integer version field in name <creator>.<name>.<version>
!> VAR file AddonPackages\addons\New folder (3)\Lisa.1.var is not named with convention <creator>.<name>.<version>
!> Duplicate package uid Pineapler.VamCuaSuperglue.1. Cannot register
!> VAR file AddonPackages\addons\New folder (4)\Shapes.SexInNature.1.3.var is not named with convention <creator>.<name>.<version>
!> VAR file AddonPackages\addons\New folder (4)\Shapes.SexInNature.2.1.var is not named with convention <creator>.<name>.<version>
!> Duplicate package uid TenStrip.Expressions.1. Cannot register
!> VAR file AddonPackages\addons\New folder (4)\ToumeiHitsuji.SlapStuffAudioPack.2 (1).var does

<Truncated>

!> Exception while reading dynamic item metafile AddonPackages\Clothing\qing\Qing.baiyijun-f.1.var:\Custom\Clothing\Female\Qing\baiyijun\baiyijun-bozi2.vam ICSharpCode.SharpZipLib.Zip.ZipException: Wrong local header signature @C4F4E
at ICSharpCode.SharpZipLib.Zip.ZipFile.TestLocalHeader (ICSharpCode.SharpZipLib.Zip.ZipEntry entry, HeaderTest tests) [0x00000] in <filename unknown>:0
at ICSharpCode.SharpZipLib.Zip.ZipFile.LocateEntry (ICSharpCode.SharpZipLib.Zip.ZipEntry entry) [0x00000] in <filename unknown>:0
at ICSharpCode.SharpZipLib.Zip.ZipFile.GetInputStream (Int64 entryIndex) [0x00000] in <filename unknown>:0
at ICSharpCode.SharpZipLib.Zip.ZipFile.GetInputStream (ICSharpCode.SharpZipLib.Zip.ZipEntry entry) [0x00000] in <filename unknown>:0
at MVR.FileManagement.VarFileEntryStream..ctor (MVR.FileManagement.VarFileEntry entry) [0x00000] in <filename unknown>:0
at MVR.FileManagement.VarFileEntryStreamReader..ctor (MVR.FileManagement.VarFileEntry entry) [0x00000] in <filename unknown>:0
at MVR.FileManagement.FileManager.OpenStreamReader (MVR.FileManagement.FileEntry fe) [0x00000] in <filename unknown>:0
at MVR.FileManagement.FileManager.ReadAllText (MVR.FileManagement.FileEntry fe) [0x00000] in <filename unknown>:0
at DAZCharacterSelector.SyncCustomItems (Gender gender, .DAZDynamicItem[] existingItems, System.String searchPath, UnityEngine.Transform dynamicItemPrefab, UnityEngine.Transform container) [0x00000] in <filename unknown>:0
!> Exception while reading dynamic item metafile AddonPackages\Clothing\qing\Qing.baiyijun-f.1.var:\Custom\Clothing\Female\Qing\baiyijun\baiyijun-erhuan.vam ICSharpCode.SharpZipLib.Zip.ZipException: Wrong local header signature @DA5E6
at ICSharpCode.SharpZipLib.Zip.ZipFile.TestLocalHeader (ICSharpCode.SharpZipLib.Zip.ZipEntry entry, HeaderTest tests) [0x00000] in <filename unknown>:0
at ICSharpCode.SharpZipLib.Zip.ZipFile.LocateEntry (ICSharpCode.SharpZipLib.Zip.ZipEntry entry) [0x00000] in <filename unknown>:0
at ICSharpCode.SharpZipLib.Zip.ZipFile.GetInputStream (Int64 entryIndex) [0x00000] in <filename unknown>:0
at ICSharpCode.SharpZipLib.Zip.ZipFile.GetInputStream (ICSharpCode.SharpZipLib.Zip.ZipEntry entry) [0x00000] in <filename unknown>:0
at MVR.FileManagement.VarFileEntryStream..ctor (MVR.FileManagement.VarFileEntry entry) [0x00000] in <filename unknown>:0
at MVR.FileManagement.VarFileEntryStreamReader..ctor (MVR.FileManagement.VarFileEntry entry) [0x00000] in <filename unknown>:0
at MVR.FileManagement.FileManager.OpenStreamReader (MVR.FileManagement.FileEntry fe) [0x00000] in <filename unknown>:0
at MVR.FileManagement.FileManager.ReadAllText (MVR.FileManagement.FileEntry fe) [0x00000] in <filename unknown>:0
at DAZCharacterSelector.SyncCustomItems (Gender gender, .DAZDynamicItem[] existingItems, System.String searchPath, UnityEngine.Transform dynamicItemPrefab, UnityEngine.Transform container) [0x00000] in <filename unknown>:0
You have corrupted var files. Here's a post that may help that a user called "madmarshall" posted on the official Discord a few days ago
Finding and fixing corrupt vars (Sharing this process in case it's useful..maybe it's been posted before but I just went through it to track down some bad VARs).

1) You get the error on launching VAM: "Exception during sync of package json cache: ICSharpCode.SharpZipLib.Zip.ZipException: Wrong local header signature...blah blah blah"

2) This means you have a corrupt VAR somewhere but you don't have any simple recourse on how to find the needle in the haystack.

4) Install 7zip. Open it and browse to your AddonPackages folder.

5) Select all the VARs, right click --> 7zip --> test archive

6) Wait for it to test every single VAR file

7) Look at the results. It will point out VARs that have "data errors", but not all of these will be the guilty VAR...you've simply narrowed down your list of suspects. Any that say "Cannot open file as archive" are probably causing issues. Ones with a single "Headers Error" usually aren't the problem in my limited experience.

8) Remove every one of these potentially bad VARs from your AddonPackages folder and quarantine them in a separate folder for now. Or if you're feeling lucky just remove the ones with the most errors.

9) Restart VAM and see if you get the error (hopefully you won't)

10) Add back in the VARs one or a few at a time till you get the error again (no need to restart VAM, just go to "open package manager" in the hub screen and tap "rescan packages" every time you want to check

11) Once you find the VAR(s) that cause the error(s), you can delete them or repair them.

12) Repairing just means opening them in WinRAR, go to top menu-->tools-->repair archive. It'll rename it, but you can change that and pop it back into the AddonPackages folder and it should load fine now.
 
Upvote 0
You have corrupted var files. Here's a post that may help that a user called "madmarshall" posted on the official Discord a few days ago
didn't help
My appearance presets are not loaded correctly anymore (hair and texture are loaded, but not the face and body with morphs (custom made).
 
Last edited:
Upvote 0
Back
Top Bottom