Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
I had a look through the other mod's DLL and it does appear they it also make a harmony patch towards "OpinionOf" that seems to conflict and causes my mod's patch to be nullified as well. I was hoping that it might be solvable with some load order adjustments but I haven't had any luck on my end with either arrangement (No matter where I put it, it seems my mod patches first unfortunately).
The conflict comes from the Kyulen mod re-clamping the values back between -100 and 100 (Line: __result = Mathf.Clamp(num, -100, 100);), and it seems my detection method for changing those values was not robust enough to catch that.
I might see if I can wriggle it around and find a way for the two mods to work, but for now it I'll add it as a known incompatibility. Thank you for letting me know!
(You can ignore this section this is me basically thinking out loud)
The harmony patch I wrote only actually changes the "OpinionOf" method, and for calculating when pawns should have sex or "lovin" is referenced in the "GetLovinMtbHours" method. The problem is that this value is inversely proportional to their mutual opinion of each other. This LerpDouble method, given entries beyond the expected bounds seems to return values less than 0, but Rimworld interprets anything less than 0 as invalid, since it uses -1 as a return value to rule out things like starving pawns.
I'll see if it's as easy as replacing the LerpDouble method with a LerpDoubleClamped, that should in theory solve the issue, I'll also do a scan of the other methods that use OpinionOf and make sure none of them could cause issues like this.
If it doesn't work, just let me know I can probably look into making one up sometime if it's important to you! But I can't promise anything since I'm still learning my way around harmony and modding Rimworld in general.
Ok, I stopped writing bc I remembered I have a DRM free copy of rimworld at 1.3 lying around so I can test it on that without having to change my steam version, and yeah it works! I'll fix the version label at some point but I've got no issues in 1.3, so I imagine 1.4 is also fine!
If you are ever in doubt and want to make sure it's working, it should print 3 things in the console
"Uncapped Besties Loaded!"
"Patched lower relation bound from -100 to -10000"
"Patched upper relation bound from 100 to 10000"
If they show up, the transpiler was successful and it should be patched!
TL;DR - It should work for 1.4! I'll add in official compatibility for it at some point, but it should work without it just fine!