Survivalist: Invisible Strain

Survivalist: Invisible Strain

121 ratings
SIS Pick Berries
2
2
   
Award
Favorite
Favorited
Unfavorite
Tags: IsMod
File Size
Posted
Updated
11.499 MB
16 Jun, 2024 @ 9:55am
2 Nov, 2024 @ 7:57am
4 Change Notes ( view )

Subscribe to download
SIS Pick Berries

Description
What is this?
This mod makes it possible to pick different types of berries from berry bushes around the world. You will find blueberries, blackberries and redberries, which can all be eaten and used as animal bait. A tasty treat while surviving the apocalypse!

It adds three berry bush models with visible berries on them which spawn on map generation, and berries can be picked either by hand (if enabled) or using tools. You can specify the amount of berries that a particular tool will harvest. Picking the berries will destroy the berry bush.

Can be added to current saves but will need to generate a new map (Hit the Road) to spawn the berry bushes. Recommended to start a new save.

The recurring function does not work

Not tested in Story mode.

Settings
  • TimeTakenInSeconds. The time in seconds taken to pick berries. (default 3)
  • ChanceSpawnBlueBerryBush. Spawn factor for blue berry bushes. (default 0.05)
  • ChanceSpawnRedBerryBush. Spawn factor for red berry bushes. (default 0.05)
  • ChanceSpawnBlackBerryBush. Spawn factor for black berry bushes. (default 0.05)
  • MinAmountBerriesWithTool. Minimum number of berries that can be picked from a bush with a tool. (default 2)
  • MaxAmountBerriesWithTool. Maximum number of berries that can be picked from a bush with a tool. (default 4)
  • MinAmountBerriesByHand. Minimum number of berries that can be picked from a bush with your hands. (default 0)
  • MaxAmountBerriesByHand. Maximum number of berries that can be picked from a bush with your hands. (default 2)
  • RequiresTool. Whether you need to have one of the specified tools to pick berries. If disabled, you will also be able to pick berries with your bare hands. (default true)
  • Tools. The settings for all the tools can be used to pick berries. Here you can set different amounts of berries picked depending on the tool.
  • HuntingKnifeTypesAreTools. Whether all items with the HuntingKnife typename can be used to pick berries. This would mean all weapons in similar size/utility to hunting knives. (default true)

Notes
Be careful when editing the spawn factor probabilities of the bushes, as the setting is very sensitive. Recommended to keep them below 0.1.

Compatibility
Shouldn't have any incompatibilities. Report any problems in the comments section!

Credits
Erikem, Luo2430, and Bob!
18 Comments
AlphaWolf 9 Jul @ 2:20pm 
yeah its true, the bushes look weird now, Does it respawn after a certain times?
Ruiji 6 Jul @ 8:42pm 
Hello, the v253 was not kind with your bushes prefabs, they looks weird (the alpha mask seems to not be applied)

There is this line in the update, which I think is the cause of this :
"Fix for lighting on props from asset bundles in mods being inconsistent with props from the base game using the same material settings (a little darker)"
saavedra 5 Jul @ 4:05pm 
I really like this, but the default spawn chance is way too much, every wood patch had tons of berry bushes. Will try setting them to 0.01 and start over.
digiPixel 11 Apr @ 12:50am 
Mod doesn't work with game v239. The following error is displayed:

Error (v239): Load resource failed: assets/sweetcaptn/pickberries/blueberry.prefab UnityEngine.Debug:LogError (object)
dragon_0_0_0 4 Mar @ 3:50am 
can you adjust the hit box on berry bushes it expands further then the image and gets hit by cars
SweetCaptn  [author] 3 Nov, 2024 @ 5:38am 
The same error was coming from SIS Clean Trash, should be fixed now
SweetCaptn  [author] 2 Nov, 2024 @ 7:59am 
I have no clue what the error was because that exception didn't come from any of the patched functions. But I uploaded a patch with some changes, and I haven't had any errors come up. Let me know if you get another error
SweetCaptn  [author] 2 Nov, 2024 @ 6:23am 
Thanks for reporting it, I'll fix it soon
WaOa 31 Oct, 2024 @ 10:59pm 
there is an error debug:
NullReferenceException: Object reference not set to an instance of an object
at HudBehaviour.UpdateUnityActionMenu () [0x085d7] in C:\Survivalist2\Assets\Scripts\Hud\HudBehaviour.cs:3935
at GameImpl.Update () [0x01723] in C:\Survivalist2\Assets\Scripts\Game\GameImpl.cs:2278
at Launcher.Update () [0x00088] in C:\Survivalist2\Assets\Scripts\Game\Launcher.cs:213

(Filename: C:/Survivalist2/Assets/Scripts/Hud/HudBehaviour.cs Line: 3935)

Unloading 1 Unused Serialized files (Serialized files now loaded: 6)
Unloading 6177 unused Assets / (18.2 MB). Loaded Objects now: 138632.
Memory consumption went from 1.12 GB to 1.10 GB.
Total: 56.338400 ms (FindLiveObjects: 9.868500 ms CreateObjectMapping: 5.230300 ms MarkObjects: 29.694100 ms DeleteObjects: 11.544800 ms)
MithranArkanere 3 Oct, 2024 @ 11:00am 
I noticed that new trees can spawn in certain areas even after you clean them up. They start as bushes and eventually become trees.

The same could be done with the berry and mushrooms mods to make them work in story if it was possible to intercep those bushes that will become trees, and ocassionally make them become berry bushes or mushrtoom patches instead.