Are there errors before the top one? Often with non-fatal errors you get cascading errors caused by a single problem that starts an avalanche. That top error is probably not the first, since String plus a Nil from a function usually means the function had an error and aborted. Also, a new version has been released, be sure to update. I am curious about your error for allnpcs, though I suspect I need to see your save file, it would seem that the state variable is messed up.
Edit: That last error seems to be related to v0.05 and is not present in any later versions. So a proper update seems to be the solution.
The Strive Discord is a great place to quickly resolve errors and has drag and drop file upload: https://itch.io/t/284398/discord
Viewing post in Aric's Expansion Rebred
By proper update I mean trying to ensure that the old files are removed and the new files are applied. I felt like maybe you had tried to update, but I'm not certain. Not everyone understands the process and they find ways to mess stuff up. There are 2 approaches to updating the mod; I recommend the first unless problems continue.
1) The low effort way. Delete the old AricsExpansion mod folder in AppData and add newest mod folder. Run the game and apply the mod.
2) The highly effective way. Rename "Strive" folder in AppData and extract a new set of downloaded game files. Run game to main menu and quit in order to generate a new" Strive" folder, add newest AricsExpansion mod folders, and apply the mod.
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"