Project Zomboid

Project Zomboid

Hard Forage
14 Comments
Vorshim 17 Sep, 2024 @ 2:11pm 
Hi Spoon! Nice to meet you!

Today, while exploring, I found the file saves/multiplayer/serverIp_id/global_mod_data.bin. It's a mini-database with globalModData tables fetched by the server at game start and client-generated data. This .bin file is saved only when the game closes.

On our server, used for a year, long-term players accumulate a huge file—95-99% of it is from the forageData table. One player has 800,000 lines and an 18MB file.

Could this negatively impact anything? I saw commented-out functions in the mod to reinitialize forageData. Since I’m unsure how the mod and vanilla logic work, would it be better to periodically reset them?

Could you share your thoughts and explain the purpose of forageData?

Thanks!
ArcadeBulls 6 Feb, 2024 @ 12:14am 
Is this mod working as of right now? Would love to use it on our server with Camden County, but I'm not sure about the errors mentioned.
[PSS] Ave ΛVΞ 27 Nov, 2023 @ 4:54am 
Is there a chance for an addon that will also make it difficult for vegetables with the Soul Filcher's Farming Time and Soul Filcher's Awesome Time mods?
wazzupbeijing 15 Sep, 2023 @ 8:00am 
it felt easier to forage for me rn but im not sure
Ashlyn 15 Aug, 2023 @ 6:59pm 
I'm getting similar error messages. In practice, nothing will come up while foraging. At first I just had to toggle it off and back on, and it worked. Now I can toggle it multiple times and it won't show anything. It also randomly completely blacks out everything outside the investigation circle instead of being transparent.

function: getRefillBonus -- file: forageSystem.lua line # 1035 | MOD: Hard Forage
function: fillZone -- file: forageSystem.lua line # 329 | MOD: Hard Forage
function: createZoneData -- file: forageSystem.lua line # 296 | MOD: Hard Forage
function: getAndActivateZoneAtXY -- file: ISSearchManager.lua line # 985 | Vanilla
function: updateCurrentZone -- file: ISSearchManager.lua line # 995 | Vanilla
function: doUpdateEvents -- file: ISSearchManager.lua line # 1219 | Vanilla
function: toggleSearchMode -- file: ISSearchManager.lua line # 1446 | Vanilla
function: onMouseUp -- file: ISButton.lua line # 56 | Vanilla.
Alximik 30 Jul, 2023 @ 7:43am 
Hello spoon, with the help of the errorMagnifier mod, I noticed the following error: function: getRefillBonus -- file: forageSystem.lua line # 1035 | MOD: Hard Forage - Harder Version
function: fillZone -- file: forageSystem.lua line # 329 | MOD: Hard Forage - Harder Version
function: createZoneData -- file: forageSystem.lua line # 296 | MOD: Hard Forage - Harder Version
function: createForageZone -- file: forageSystem.lua line # 950 | MOD: Hard Forage - Harder Version
function: getAndActivateZoneAtXY -- file: ISSearchManager.lua line # 985 | Vanilla
function: updateCurrentZone -- file: ISSearchManager.lua line # 995 | Vanilla
function: doUpdateEvents -- file: ISSearchManager.lua line # 1219 | Vanilla
function: toggleSearchMode -- file: ISSearchManager.lua line # 1446 | Vanilla
function: onMouseUp -- file: ISButton.lua line # 56 | Vanilla
java.lang.RuntimeException: __div not defined for operands in getRefillBonus
DaniTresD 3 Jun, 2023 @ 9:12am 
Thanks, @spoon lml
spoon  [author] 3 Jun, 2023 @ 6:05am 
Yep, they work with every map.
DaniTresD 3 Jun, 2023 @ 5:04am 
Greetings, does this and hard fishing work with The Forest -- YAGODNYY UPDATE?
spoon  [author] 5 Mar, 2023 @ 2:39am 
@ditoseadio Yes fog is included too. In vanilla map it all won't make much difference anyways as its forage zones are made in a wrong way. I made this mod mostly for my own Camden County map.
ditoseadio 4 Mar, 2023 @ 3:35pm 
Hello, what would be the "weather events" that refill the zones again?

Rain and snowfall I guess.
Is fog considered a weather event?

Thanks in advance.
PSPSoldier534 25 Feb, 2023 @ 8:44pm 
In the forageDefinitions.lua under the regular HardForage folder, I found this line under Rosehips (which I have yet to find any of):

months = { 1, 2, 5, 6, 7, 8, 9, 10, 11, 12, },

I'm not sure if that extra comma at the end of the array has any effect on spawn probabilities or I was just unlucky, but I just wanted to bring it to your attention for any potential future updates.
spoon  [author] 14 Nov, 2022 @ 4:38am 
Usually zones get refilled 3-5 percent per day. Now they get refilled same amount only with weather events. In most maps it wont really matter because they have huge overlayed forage zones and th.- .. well basically what I already said in mod description. My new map is out now too btw - it has the fixed zones.
AstrayCuriosity 14 Nov, 2022 @ 4:13am 
Can we get a numbers how long it takes to refill roughly?