Seasons Error preventing me from starting game

Your forum for all discussions around Modding.
User avatar
Dairydeere
Posts: 2736
Joined: Sun Mar 03, 2019 6:11 pm
Location: Washington, United States
Contact:

Seasons Error preventing me from starting game

Post by Dairydeere »

Hello, so I'm currently working on an edit of Goldcrest Valley that adds fruit types and extended feeding from Mercer County DFMEP. I copied the crops.xml and all the other files in the built-in GEO straight from the Mercer map, since there were additional fruit types it needed to register, and whenever I open the map with the latest version of Seasons, I receive this error

2021-03-03 21:20 C:/Users/___/Documents/My Games/FarmingSimulator2019/mods/FS19_RM_Seasons/src/weather/SeasonsWeatherForecast.lua:319: attempt to index a nil value

I looked into the lua via Notepad++, and this is the code it's indexing a nil value from

function SeasonsWeatherForecast:getForecastForDay(day)
local firstDay = self.items[1].day
return self.items[day - firstDay + 1]
end

I got a suggestion to remove the materialHolder.i3d from the custom GEO and replace it with a blank one, however this did not work.
Dairy farmer, college student, part-time modder, always looking to drive a tractor

Discord Server
Facebook page

Where should you download mods from? Try this! - A Guide to Respectful Downloads and Original Mods

Driving up a wall because my brain turned off the gravity

Happy farming!