Same version mod mismatch overrides mod settings mismatch
Posted: Thu May 04, 2023 9:49 am
Found a case where a mod is exactly the same, but because of how the core system evaluates mod mismatch of same version, it can be possible for a startup setting to cause a same version mod mismatch error.
The root cause is if a require is conditional on a startup setting, then the .lua file that was never required previously is NOT included in the CRC calculation, and instead of getting a setting mismatch error as expected, a same version mod mismatch error instead happens.
The problem was first found in Robot Attrition version 0.5.13, and happens in the case of the "Robot Repair" startup setting being different between server and client.
The root cause is if a require is conditional on a startup setting, then the .lua file that was never required previously is NOT included in the CRC calculation, and instead of getting a setting mismatch error as expected, a same version mod mismatch error instead happens.
The problem was first found in Robot Attrition version 0.5.13, and happens in the case of the "Robot Repair" startup setting being different between server and client.