RimWorld

RimWorld

Harmony Fix For Penguins
71 Comments
A dead rat Nov 28, 2023 @ 4:39pm 
> This mod isn't needed anymore.
Please put that in the mod name or description.
smitty_the_smith Oct 22, 2022 @ 3:10pm 
@PS Charlotte is correct. I'm running Linux Mint and RImworld is doing great. 1.4 and all.
ParasiticSquid Aug 22, 2022 @ 4:26pm 
And yet my arch linux system can't run anything but the proton version. I know it's a linux only issue because the exact safe mods on a proton install on the same system or a windows install on another system it works perfectly.. but native dies while loading and on the off chance I get into the game it randomly crashes occasionally
Charlotte  [author] Jul 11, 2022 @ 6:48pm 
This mod isn't needed anymore.
Kyrox Jul 11, 2022 @ 6:12pm 
My Steam Deck fails to load my mod list. Just sits on. LoadTerrqinDef, or something. Anyone know what mods don't work with Steam Deck?
Charlotte  [author] Dec 3, 2021 @ 5:14pm 
Harmony has the fix included already. It's not needed for 1.3
Cosmic Dec 3, 2021 @ 12:45pm 
Is this still working and/or necessary for 1.3? I just tried enabling it and get an error in the console.
rat Nov 9, 2021 @ 7:04pm 
is there a version of this for windows? will there be in the future?
tuk0z Oct 28, 2021 @ 5:09am 
1. https://forum.unity.com/threads/solved-il2cpp-android-mmap-prot_none-failed.1112581/ Couple interesting links here also make sure to read post #4 (GC_realloc / GC_register_finalizer_ignore_self abort due to mmap(PROT_NONE))
2. Also affects Unturned3 hosts: https://github.com/ivmai/bdwgc/issues/334
3. And the Oxyde/umod community: https://umod.org/community/rust/23870-linux-server-crashing-with-caught-fatal-signal
All from 2020-10 (earliest mention I found) onwards.
Charlotte  [author] Oct 27, 2021 @ 8:21pm 
Yeah, that could help. Tynan is investigating some Linux crash that has been reported (I'm not experiencing it)
tuk0z Oct 27, 2021 @ 10:16am 
Want links Charlotte, I mean about this Unity on Linux CTD and its cause?
Charlotte  [author] Oct 27, 2021 @ 7:57am 
That's very weird. I've never heard of that.
tuk0z Oct 26, 2021 @ 9:17pm 
@Charlotte might well have found what's causing the Game-starts-to-furiously-crash-after-a-few-IG-years CTD (nmap): the Linux kernel vm.max_map_count default setting isn't really adapted to huge (feet-coded?) Unity/Mono processes as Windows is, curiously ;)
Will wait before crying victory but no more crash for 24h is already big. It's been ages all my colonies ended up crashing.
tuk0z Oct 22, 2021 @ 9:50am 
Hey Charlotte, crash and errors both reproducible.
- Original mods pack, causing the 'nmap' crash *after* 4 IG years:
https://gist.github.com/13b9b04d6752632d19e70510c3a3ab5e
- Current mods pack having the same game/campagin running just fine: https://gist.github.com/b0555f768f4a95d1e16fc4768a6a097e But I'm not yet done testing all my mods (still a dozen atm).
Charlotte  [author] Oct 18, 2021 @ 10:02am 
What's your modpack? Your only hope is that it's reproducible. Otherwise, it may likely be memory corruption/failure, on your hardware.
tuk0z Oct 18, 2021 @ 9:00am 
Question @Dorsai!, @woeflele and any player having the issue, when using some of these mods does your game crash immediately (i.e. from day 1) or after a while in your campaign?
Am asking as my own campaign was perfectly stable for ~6 weeks before the game crashed once. And even then it only crashed a few times during weeks, before becoming fully unplayable last Sunday (crash crash crash ...).
I opened a bug report on https://ludeon.com/forums/index.php?topic=55734.msg492884#msg492884 . Not that I have high hopes it'll get any coverage but hey!
Tornadocholo Sep 23, 2021 @ 8:04pm 
Thanks for caring about us:)
Draconicrose Aug 12, 2021 @ 1:38am 
I added a bunch of mods so I can't really say. :/
Charlotte  [author] Aug 11, 2021 @ 6:41pm 
That's so weird... Which mod?
Draconicrose Aug 11, 2021 @ 1:45pm 
That's interesting. I was having a crash consistently before activating this mod (couldn't even interact with the UI much) and now it's gone without any other change.
Charlotte  [author] Aug 11, 2021 @ 1:43pm 
It doesn't work at all. Harmony won't let the patches of this mod run.
Draconicrose Aug 11, 2021 @ 1:30pm 
This is definitely needed in Rimworld 1.3. Thankfully it doesn't actually seem to need an update.
lilwhitemouse Jul 31, 2021 @ 10:06pm 
Thank you Charlotte for taking care of us all this time :)
CouilleGrinder Jul 26, 2021 @ 6:27pm 
Thanks @Brrainz for taking care of the penguins
Charlotte  [author] Jul 25, 2021 @ 4:26pm 
Nice! This mod is deprecated now.
Dorsai! Jul 25, 2021 @ 3:32pm 
Nice work! All the mods I had problems with (VFE:Mechanoids, Visual Exceptions and Animal Controls) now work without problems. Thank you!
Brrainz Jul 25, 2021 @ 3:28pm 
Yep, at your service. Hope it works well for all patch cases.
Sir Humphrey Appleby Jul 25, 2021 @ 3:21pm 
Brrainz has updated Harmony. You can now play with VFE Mechanoids on native linux.
Charlotte  [author] Jul 23, 2021 @ 6:54am 
Yeah, I noticed that 1.2 mods that were fixed by this mod are crashing again in 1.3 but the methods can't be patched. I suspect it's something to do with the inheritance. May try and patch the whole tree from an offending method.
woeflele Jul 22, 2021 @ 11:19pm 
Running VFE throws some world generation errors in my case (each factions gets only one base on map). I have noticed that telkir.tmods.morefloors and voult.betterpawncontrol mods cause the same crash like some mods on 1.2 without using this fix for penguins, Here's my log and mod list running Better Pawn Control: https://pastebin.com/uHPHCRhb

Also I'm getting some harmony exceptions for What The Hack, as seen in the log, however they don't cause any crashes yet

giantspacehamster.moody is also broken in my Rimworld, however author seems to already know about issues
Brrainz Jul 22, 2021 @ 9:11pm 
@Charlotte I don’t think I understand the new crashes with 1.3 and Linux yet. You and all other people in this section are probably most likely able to test and analyze the problem. It could be Harmony or just a new Mono version in an updated Unity player. No idea and I am not running at full capacity bc of me being on holiday for another 2 weeks at least. But I’ll sub here to keep up with the issue a bit.
Dorsai! Jul 22, 2021 @ 2:15pm 
I've bisected my list of 1.3-compatible mods and found that "Animal Controls" and "Visual Exceptions" crash the game right on the start screen, after opening and closing a menu (like Options or Mods). Also, as many others mentioned, VFE: Mechanoids crashes the game on loading or starting a game.

This is the same behavior as on 1.2 when not using this mod.
DreamSequence Jul 22, 2021 @ 4:52am 
linuxbros we got too cocky... :steamsad:
alliephante Jul 21, 2021 @ 7:10pm 
Definitely VFE Mechanoids is causing a crash. Adding it in results in this crash during game start. Removing just VFE Mechanoids and there is no crash.

Log: https://pastebin.com/2r6fpHrm
Seems like it's GenerateMap_Patch0
Charlotte  [author] Jul 21, 2021 @ 5:49pm 
Bad news. This mod can't be updated to 1.3. The issues this mod patched, no longer apply for Harmony 2.1.0, it won't let you patch them anymore.

If you are crashing, there must be some other issue with Harmony. It'd be helpful if you can gather which mod cause issues.

I looked at RangeFinder source code and it is seemingly harmless, I don't see where it could be crashing, there is no "in console open" event.
alliephante Jul 21, 2021 @ 4:26pm 
Oh okay great! No rush of course, real life always comes first and all :) I'm always annoyed by the entitled people that demand updates immediately lol

seems like only VFE mechanoids caused the problem and I've been doing 'mod light' anyway to try out all the ideology features as vanilla as I can stand so I removed it. I know gastronomy caused the same issue on 1.2 but it hasn't been updated yet so no worries on that front either.
Charlotte  [author] Jul 21, 2021 @ 1:30pm 
I'll update it
alliephante Jul 21, 2021 @ 12:48pm 
Can confirm I got the telltale crashing from VFE mechanoids on game start. Same kind of crashing on/shortly after game start that I had with other mods in 1.2 before adding this.

Running the game with proton isn't an ideal solution especially since rimworld *is* native. I might look to see what it would take to update this to 1.3 when I have some spare time (assuming the author isn't already).
tetaybabie Jul 21, 2021 @ 6:49am 
I have found that any mod which changes the bottom UI bar without adding a new tab crashes my game to desktop.
Charlotte  [author] Jul 20, 2021 @ 8:25pm 
Yeah... As an alternative you can run RimWorld with proton, performance hit is minimal and it won't crash.
Brother Erectus Jul 20, 2021 @ 7:49pm 
Also getting a crash with VFE Mechanoids on game start.
Dorsai! Jul 20, 2021 @ 7:47pm 
Whatever makes 1.2 crash with certain mods still crashes 1.3. I wonder what it is that makes it so hard to integrate this fix into mainline Harmony. Or is it just a communications issue (Harmony devs don't seem to be very approachable)?
Sir Humphrey Appleby Jul 20, 2021 @ 1:07pm 
I'm still getting crashes with 1.3 and VFE Mechanoids on game start. My temp solution was to change Rimworld to use Proton.
Charlotte  [author] Jul 19, 2021 @ 5:34pm 
Supposedly not needed for 1.3, let's see how it goes...
DreamSequence Jul 9, 2021 @ 12:16pm 
I never even thought to check if the reason my stuff was crashing was linux, thanks a bunch for the fix!
not_waifu Jul 9, 2021 @ 7:34am 
could you tell me is this still neded in 1.3, like is the problem still there or hamony fixed it themselves?
Charlotte  [author] May 27, 2021 @ 10:13pm 
Try with updated Harmony, I heard it works.
Honshitsu May 27, 2021 @ 7:58pm 
Yep, still crashing with SOS2... What a giant pain in the ass this bug is.

If anyone has suggestions I'd appreciate it.
lilwhitemouse May 18, 2021 @ 11:01am 
One possibility:
this mod is forcing methods to be actually compiled even if empty, but they still have almost 0 memory space. This is fine if the Harmony patch is simple, but fails if the Harmony patch needs to use the local variables?

Don't know if that helps; thanks for the work with this :)
Quicksilver May 18, 2021 @ 8:16am 
No worries; I'm sure they'll turn up eventually. Thanks for the fix all the same.