RimWorld

RimWorld

Way Better Romance
ましろ May 22, 2024 @ 11:37pm
weird bug
Hello, during the test MOD, only the following were loaded:

- Harmony
- core
- DLC Biotech
- HugsLib
- Humanoid Alien Races
- Way Better Romance
- Yuran race

When entering the game, the log displayed the following error message:
"Error in static constructor of BetterRomance.OnStartup: System.TypeInitializationException: The type initializer for 'BetterRomance.OnStartup' threw an exception. ---> System.Exception: Somehow -9998 % 3 does not equal 0, 1, or 2"

Detailed log:
https://gist.github.com/HugsLibRecordKeeper/40f2cc99b8005a0bc518e50b8c9d9448
< >
Showing 1-3 of 3 comments
divineDerivative  [developer] May 23, 2024 @ 8:35am 
Yuran_Race_Miko_BlackSnake has messed up life stage ages. There's BlackSnakeYuran that starts at age 0, then HumanlikeTeenager starts at 9997, HumanlikeChild starts at 9998, and HumanlikeAdult starts at 9999. Aside from being completely unneeded if the race is supposed to start as adults, the extra life stages are also completely nonsensical. Adult, Adult, Child, Adult??? With the other Yuran races, the life stage ages make sense, they just didn't match the growth ages, so I was able to recalculate the growth ages. With the Black Snake they're completely out of order. I have no idea how I would be able to account for this.

I'll look for way to make failure less catastrophic, but this is really something that needs to be fixed in the race mod. The author can always come to the HAR discord if they need help getting things to work correctly.
Thursday May 24, 2024 @ 1:05am 
Hi,

Got a similar error on startup with this mod and integrated creep joiners:

Error in static constructor of BetterRomance.OnStartup: System.TypeInitializationException: The type initializer for 'BetterRomance.OnStartup' threw an exception. ---> HarmonyLib.HarmonyException: Patching exception in method System.Single RimWorld.Pawn_RelationsTracker::CompatibilityWith(Verse.Pawn otherPawn) ---> System.InvalidProgramException: Invalid IL code in (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:RimWorld.Pawn_RelationsTracker.CompatibilityWith_Patch0 (RimWorld.Pawn_RelationsTracker,Verse.Pawn): IL_001b: call 0x0000000b

It makes pawns unable to generate so a new game can't even be started.

https://gist.github.com/HugsLibRecordKeeper/529c4ed01630b87d829f3fc26c246417
divineDerivative  [developer] May 24, 2024 @ 11:25am 
That's not the same error at all, but it will be fixed with the next update. I prefer that each issue have it's own thread please.
< >
Showing 1-3 of 3 comments
Per page: 1530 50