The dlc3 additions the TRAITS class introduce the exact same issue as MinionConfig had here:
Its referencing the db in the static initializer for TRAIT_CREATORS when getting the attribute IDs for the "BionicBaseline" trait
This makes the class impossible for mods to patch, breaking mods that want to add their own traits or modify existing traits.
Please try to avoid doing meaningful work in static initializers in general.
Static initializers should not throw an exception, nor should they reference strings (which causes localization failures on patching) or the Db.
(these localization failures happen for example with the classes RoomConstraints, TRAITS and CustomGameSettingConfigs)
- Make any mod that tries to use TRAITS
-
Mod will fail to load with
(as for the localization failure side note, patching any of the mentioned classes while having any non-english translation active will cause the strings referenced inside these classes to load too early, keeping them untranslated)
-
1
A developer has marked this issue as fixed. This means that the issue has been addressed in the current development build and will likely be in the next update.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now