Project Zomboid

Project Zomboid

Soul Filcher's Farming Time
frack 27 Apr, 2021 @ 6:57am
Duplicate options in sowing menu
Hey!

While playing with your mod (and with the "More common seeds" mod which is based off this mod), I have noticed that the list in the sowing menu has duplicate entries for the crops that are added in both mods.

The entries that are on the bottom of the list don't work at all, resulting in LUA errors by selecting them and nothing else. The entries to the top of the list work as intended.

By taking a look at the "SFFarmMenu.lua" file in the mod folder, I was able to identify a block of code which seems to be the cause of this issue. By commenting it off and reloading the mod (and doing the same in the More common seeds mod and it's equivalent file which contains the same block of code), the duplicate entries no longer appear and the existing ones still work correctly as intended.

The block of code in question is the following:

--[[
--What you use to add to the existing farm submenu in your own script:
local subMenu = nil;
local farmOption = nil;
for i,v in ipairs(context.options) do
if v.name == getText("ContextMenu_Sow_Seed") then
farmOption = v;
subMenu = context:getSubMenu(farmOption.subOption);
end
end
--]]

By taking a look at past discussion in this page about similar issues, this seems to have been connected to issues with controller users. But I'm not using a controller, so I'm not sure if other keyboard + mouse users are facing the same issue.

Hope this helps. Cheers!
< >
Showing 1-1 of 1 comments
Junateg 6 Jun, 2021 @ 2:51pm 
Same issue here with keyboard+mouse, same mods More common seeds and this one
< >
Showing 1-1 of 1 comments
Per page: 1530 50