HELLJUMPERS21 Posted May 7, 2021 Share Posted May 7, 2021 Hey all. I have just uploaded my mod and ran into some issues. My fish hatchery works great! Unless I walk away to another cell. Once I come back, EVERYTHING is gone. Also the Mudcrabs get killed by a wolf or something and never respawn even though respawn is ticked. Here is the script for fish hatchery: Scriptname BYOHHouseFishHatcheryScript extends ObjectReference {script on the fish hatchery activator} import debugimport utility Actor Property FishContainer auto hidden; float fLastSpawnTime ; this is a timestamp of the last time this spawned anythingfloat Property fSpawnDays = 1.0 auto ; days between spawning int Property iSpawnCount = 0 auto{ number of types of fish that have been spawned } Bool AlreadyLoaded = FALSE EVENT OnCellAttach()FishContainer = GetLinkedRef() as ActorSpawnFish()endEVENT EVENT OnActivate(ObjectReference TriggerRef); debug.trace(self + " OnActivate")FishContainer = GetLinkedRef() as ActorFishContainer.ShowGiftMenu(abGivingGift = true, apFilterList = BYOHHouseFishContainerList, abShowStolenItems = true, abUseFavorPoints = false)endEVENT ; called onCellAttach to see if it's time to spawn new fishfunction SpawnFish(); debug.trace(self + "SpawnFish"); see if enough time has passed since last spawnif GameDaysPassed.GetValue() >= fLastSpawnTime + fSpawnDays; reset spawn time stampfLastSpawnTime = GameDaysPassed.GetValue(); run through the fish form listiSpawnCount = 0int iIndex = 0; debug.trace(self + "SpawnFish: spawning...")while iIndex < BYOHHouseFishContainerList.GetSize(); if we have any of this kind of fish in the hatchery container, enable the matching refif FishContainer.GetItemCount(BYOHHouseFishContainerList.GetAt(iIndex)) > 0FishReferences[iIndex].Enable(); increment spawn countiSpawnCount += 1elseFishReferences[iIndex].Disable(); decrement spawn countiSpawnCount += -1endifiIndex+=1endWhileendif endFunction FormList Property BYOHHouseFishContainerList autoObjectReference[] Property FishReferences autoGlobalVariable Property GameDaysPassed auto Link to comment Share on other sites More sharing options...
HELLJUMPERS21 Posted May 8, 2021 Author Share Posted May 8, 2021 Dang people are steering clear of this post haha Link to comment Share on other sites More sharing options...
Adventurer1111 Posted May 13, 2021 Share Posted May 13, 2021 I think everything is gone because you have respawn clicked on your cell? You only need to click respawn on your NPCs (ie. fish in this instance) Respawn on cell will reset the entire cell. If that is not it, I am not sure but I suspect it is some combination within these settings. Good Luck! Link to comment Share on other sites More sharing options...
HELLJUMPERS21 Posted May 14, 2021 Author Share Posted May 14, 2021 Huh.....never thought to look. Checking........No option in wilderness cell to check or uncheck respawn. Link to comment Share on other sites More sharing options...
Recommended Posts