Project Zomboid

Project Zomboid

Hard Forage
14 comentarii
Vorshim 17 sept. 2024 la 14:11 
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 febr. 2024 la 0:14 
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 27 nov. 2023 la 4:54 
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?
sanki mermer 15 sept. 2023 la 8:00 
it felt easier to forage for me rn but im not sure
Ashlyn 15 aug. 2023 la 18:59 
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 iul. 2023 la 7:43 
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 iun. 2023 la 9:12 
Thanks, @spoon lml
spoon  [autor] 3 iun. 2023 la 6:05 
Yep, they work with every map.
DaniTresD 3 iun. 2023 la 5:04 
Greetings, does this and hard fishing work with The Forest -- YAGODNYY UPDATE?
spoon  [autor] 5 mart. 2023 la 2:39 
@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 mart. 2023 la 15:35 
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 febr. 2023 la 20:44 
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  [autor] 14 nov. 2022 la 4:38 
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 la 4:13 
Can we get a numbers how long it takes to refill roughly?