Second of these lines in expansion.gd is spelled wrong('daysumilked').
if !person.lactating.has('daysunmilked'):
person.lactating['daysumilked'] = 0
line 650 in statstab says: resource.cum it should say resources.cum it fixed the problem of not being about to talk to the farm manager about the farm. 608 says: expansion.quirk , i believe it's supposed to say: person.quirk . this fixes an option inside the farm managers "menu".
I'm still getting the last two errors on the log above, I'm not sure how to fix them.
Except that those are the only two errors showing up
Edit: nevermind, the last one is the same, but there’s a different one here
Edit 2:it appears, that in the save, the variable "Restrained" is False for some slaves, and "none" for others, I think the error is due to false being a boolean, and the code is looking for a string
From what I've heard, "Restrained" was a boolean in earlier versions, but it changed to a String. Replacing those False values with "none" should bring the save file up to date.
Otherwise you could add these lines above 1640 in expansion.gd(1 tab, and 2 tabs):
if typeof(person.restrained) == TYPE_BOOL:
person.restrained = "none"
now that that is done, after i fixed that, im getting these: this is from going to the next day twice, the first time was with the cattle being locked in, the next they weren't, a few of the errors is because there isn't a restraintype or stress_mod in the save file (i think), but the Invalid operands errors are not
The stress_mod issue likely means an error created while editing save files, as I am not aware of any changes in the mod and the error points to vanilla content. Hopefully you can undo, or have a backup of that save file. Though it's not hard to add it back to the stats dictionary with default value of 1, but if they are still present then the issue is a typo somewhere else.
restraintype should be apart of the expandedfarm dictionary inside the state dictionary. These are the default values, adding any missing should bring save file up to date.
var expandedfarm = {restraincattle = false, restraintype = "none", bottlesprice = 10, bottlesowned = 0, storingpiss = false}
String + Nil for Mansion.gd:690 is a derived error.
The following line appears to be wrong(Edit: expansion.gd:2208): if farmmanager.jobskills.farmmanager == null:
It should be: if farmmanager.jobskills.has("farmmanager") == false:
Nil > int for Mansion.gd:1238 is also derived.
Ah right, with the earlier changes your line numbers don't match my line numbers.
That picture is horrendous, better than no picture but still would prefer a proper screenshot. If you are on a windows system with a keyboard, then the PrtSc key will save the entire current screen to the clipboard and can be pasted into any picture editor(I use Paint to crop the pictures). Alt + PrtSc will produce a screenshot of only the selected window.
Cause of error for line 2209 is in function "getFarmFactors" of expansion.gd (line 2306 for me). It's returning a string, but function "dailyMilking" is expecting a bool. Change the first 2 lines:
var result = str(person.farmexpanded[factor])
if result == "default":
to(1 tab each):
var result = person.farmexpanded[factor]
if typeof(result) == TYPE_STRING && result == "default":
Edit: grammar