Open Anrock opened 1 year ago
I just had this same issue (I think so anyway, by looking at the error message). I can't help with a harvest if my caravan is a vehicle caravan. I had to set up a temporary camp 2 tiles away and make an on-foot caravan to do the thing.
Also, I've found that setting up an encampment (like a vanilla mining camp) if you're part of a vehicle caravan is a good way to delete whatever pawns were in it and crash the game. Vehicles can be very finnicky. Even with these two actual bugs the most annoying part is still when I try to form a big caravan and have to redo the entire process because I didn't have my garage door open so the vehicles couldn't leave... or one time when everyone gathered the caravan at the border and just refused to exit with some redundant pathing error that I couldn't figure out.
Judging from the IL offset (0x23), it seems that the issue is actually vehicle caravans not having a WorldObjectComp_CaravanComp
attached. Thus the result of caravan.GetComponent<WorldObjectComp_CaravanComp>()
is null
, and setting attributes on it is what causes the NullReferenceException
.
This should be fixable with an XML patch -- essentially the same as this one in the original mod, but for defName="VehicleCaravan"
Describe the bug Mod: More Faction Interaction (Continued) Mod github: https://github.com/emipa606/MoreFactionInteraction
"Help harvest" option in another faction settlement produces NPE
To Reproduce Steps to reproduce the behavior:
Additional context Upon pressing confirm there is an error in devlog
Looks like
caravan
isnull
in https://github.com/emipa606/MoreFactionInteraction/blob/main/Source/MoreFactionInteraction/World%20Incidents/WorldObjectComp_SettlementBumperCropComp.cs#L88I saw mentionins that this mod had to recreate caravan stuff from ground up for vehicles so I assumed this can be fixed better on the Vehicle Framework part (and also because MFI isn't actively deloped too) but I also reported this issue to MFI.
I can provide a save game for repro but it's mod heavy.