bbradson / Performance-Fish

Performance Mod for RimWorld
Mozilla Public License 2.0
423 stars 34 forks source link

[1.4] Red Error from FieldInfo.SetValue on compile-time const. Possibly VEFramework compat issue. #33

Closed InsanityPrelude closed 3 months ago

InsanityPrelude commented 3 months ago

Hi Bradson, I recently got a couple of red errors when running. It's with a fairly extensive mod list, so I'm probably going to pare it back and try to recreate it with less going on. However, I didn't see it all last night on my new save until I reloaded the game and tried it this morning.

The error appears twice in this relatively short (2500 lines) player.log, starting with "FieldInfo.SetValue has been called on 'public const'", but my in-game log uploader doesn't appear to be working. (As I recall, there's a workaround for this, but I don't currently have it installed.)

Player.log image

bbradson commented 3 months ago

Fish logs this intentionally when detecting misuse of the method by other mods. This is not going to change and needs to be fixed on VE framework's side instead.