jpw1991 / chebs-necromancy

Cheb's Necromancy adds Necromancy to Valheim via craftable wands and structures. Minions will follow you, guard your base, and perform menial tasks.
The Unlicense
10 stars 4 forks source link

despawn of ship problem with skeletons onboard? #191

Closed jpw1991 closed 1 month ago

jpw1991 commented 1 year ago

Describe the bug

[Error  : Unity Log] Found bug: ZNetView destroyed without being destroyed through the ZNetScene: ChebGonaz_SkeletonArcher(Clone)
  at System.Environment.get_StackTrace () [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0
  at DevMod.DevMod+TrackZNetViewDestruction.Postfix (ZNetView __instance) [0x00000] in <81f70b850fde43c09ee6819a4d7a2907>:0
  at ZNetView.DMD<ZNetView::OnDestroy> (ZNetView ) [0x00000] in <49d9aaa0119f4006a902669e02c0ad15>:0
[Error  : Unity Log] Found bug: ZNetView destroyed without being destroyed through the ZNetScene: ChebGonaz_SkeletonArcher(Clone)

Chat log

Criten β€” Yesterday at 11:16 PM I am using chebs necromancy I summon skellis in my ship all is good but when I go away from the ship and come back the skeletons are despawned and I get the following error continuously: [Error : Unity Log] NullReferenceException: Object reference not set to an instance of an object Stack trace: ZNetScene.RemoveObjects (System.Collections.Generic.List1[T] currentNearObjects, System.Collections.Generic.List1[T] currentDistantObjects) (at <49d9aaa0119f4006a902669e02c0ad15>:0) (wrapper dynamic-method) ZNetScene.DMD(ZNetScene) ZNetScene.Update () (at <49d9aaa0119f4006a902669e02c0ad15>:0) Azumatt β€” Yesterday at 11:17 PM That means that @Cheb Gonaz needs to register some effect, sfx, or something in ZNetScene. You can download and use this to tell him what is the issue. πŸ’ͺ🏻-mod-dev-resources πŸͺ πŸ₯› β€” Yesterday at 11:17 PM Hello, I am back πŸ˜„ Criten β€” Yesterday at 11:19 PM tyvm Cheb Gonaz β€” Yesterday at 11:25 PM Thanks Azumatt. @Criten plz if you can do that, that'd be good Maybe as a workaround take them off the boat before leaving πŸͺ πŸ₯› β€” Yesterday at 11:26 PM If the summons are disappearing, doesn't that mean you don't have persistent on? Criten β€” Yesterday at 11:26 PM @Cheb Gonaz can you DM me Cheb Gonaz β€” Yesterday at 11:27 PM seems like it's on Image Criten β€” Yesterday at 11:28 PM so... I just drop devmod.dll in plugings? blacks7ar β€” Yesterday at 11:29 PM check tameables unsummon distance or something if you're too far away from summons they despawn Criten β€” Yesterday at 11:29 PM I went far away and came back Cheb Gonaz β€” Yesterday at 11:29 PM Image blacks7ar β€” Yesterday at 11:30 PM so 0 means they wont despawn but they're on the boat and cant get off and the summoner went too far away so maybe that cause an error on the znetscene Criten β€” Yesterday at 11:33 PM I was making them fight lol Image they are my ballistas so I noticed that the boat despawns when you go away then the engine reloads it when you go back Cheb Gonaz β€” Yesterday at 11:35 PM maybe that's the issue? idk Criten β€” Yesterday at 11:36 PM almost there to test again blacks7ar β€” Yesterday at 11:37 PM the vanilla friendly skeletons unsummon distance is set to 40 or 50 something i cant remember Criten β€” Yesterday at 11:37 PM [Error : Unity Log] Found bug: ZNetView destroyed without being destroyed through the ZNetScene: ChebGonaz_SkeletonArcher(Clone) at System.Environment.get_StackTrace () [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0 at DevMod.DevMod+TrackZNetViewDestruction.Postfix (ZNetView __instance) [0x00000] in <81f70b850fde43c09ee6819a4d7a2907>:0 at ZNetView.DMD (ZNetView ) [0x00000] in <49d9aaa0119f4006a902669e02c0ad15>:0 [Error : Unity Log] Found bug: ZNetView destroyed without being destroyed through the ZNetScene: ChebGonaz_SkeletonArcher(Clone) blacks7ar β€” Yesterday at 11:39 PM they got destroyed on the znetview because the summoner went far away but not on the znetscene because its not set to unsummon? Criten β€” Yesterday at 11:42 PM I found the skellis under the ship lol\ can unsummon them? Cheb Gonaz β€” Yesterday at 11:44 PM beating them with the wand kills them. So does a butcher's knife there's also a console command but it's indiscriminate Criten β€” Yesterday at 11:47 PM got ya thanks will try the wand Cheb Gonaz β€” Yesterday at 11:50 PM Unfortunately I got 0 clue what to do about that. But uhh. Hmm. Do they become children of the boat or something while on it? I guess so. That'd be what causes them to move with the boat I guess? So then they are the boat's children and the boat is not persistent, but they are, so the boat despawns and they can't but they're children so it crunches If that's the case, I could do something like check for if the player is on the boat and if they get off the boat, the minions do as well But you know, once I left skeleton archers on a boat and got killed and came back to the continent like a week later and they were still on the boat just fine