[Game Integration] My Dystopian Robot Girlfriend v0.95+

To anyone trying this on Linux, there’s some issues with the upstream MelonLoader and BepInEx that require tweaking for this Unity release in particular. Here’s the findings I got from working an unreasoanble amount of hours on this.

BepInEx has 1 problem which makes the mod unusable: the game segfaults during Il2CppInterop initialization (not the mod’s fault) because BepInEx / Il2Cpp pass wrong parameters around due to Unity version differences. Solution is to wait for an upstream fix.

MelonLoader works but has 4 problems to solve.

First, if you’re on Debian 13, you’ll probably get:

/lib/x86_64-linux-gnu/libc.so: invalid ELF header

because Debian uses a linker script at that path. You can fix this by doing:

mkdir -p melonloader-compat
ln -s /lib/x86_64-linux-gnu/libc.so.6 melonloader-compat/libc.so
export LD_LIBRARY_PATH="$PWD/melonloader-compat${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"

Second, Il2cpp startup hooks are missed during boot due to some race condition, which makes the mod not load. I fixed this by using LD_BIND_NOW=1 ./run_melonloader.sh.

Third, Debian does not have dotnet6, which is required for this mod / game. You can manually install dotnet6 runtime from Download .NET 6.0 (Linux, macOS, and Windows) | .NET and put it into the game folder. Then start the game with:

LD_BIND_NOW=1 ./run_melonloader.sh \
    --melonloader.hostfxr \
    "$PWD/dotnet6/host/fxr/6.0.36/libhostfxr.so"

Fourth, the bundled Il2CppInterop crashes on Unity 6000.3 (not mod’s fault). The fix is to install nightly build of MelonLoader with 6000/metadata-v39 Il2CppInterop support. I got mine from nightly.link | Repository LavaGang/MelonLoader | Workflow build.yml | Branch master. Just remove the mod’s bundled MelonLoader folder + MelonLoader.Bootstrap.so and replace them with the nightly build.

This is the final runner script I use:

export LD_LIBRARY_PATH="$PWD/melonloader-compat${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"
DOTNET_ROOT="$PWD/dotnet6" \
LD_BIND_NOW=1 \
./run_melonloader.sh \
--melonloader.hostfxr "$PWD/dotnet6/host/fxr/6.0.36/libhostfxr.so"
1 Like

I’m having a hard time trying to install this. On Windows I get an error message stating some file is missing, can’t remember exactly what it said off the top of my head but I believe it’s something related to BepInEx for installing the mod/script.

On Linux the executables don’t even launch properly, I’m on Garuda (Arch-based) so I’m guessing it might be something to do with my distro not being Debian/Ubuntu based? When I try running it through the terminal I get this message:

[NOTFOUND] sudo bash chmod +x ./mnt/Games/Fangames+Free Games/Favorites/MDRG/Intiface Script+Mod/Linux/HandyMod-v1.
14.1-MDRG-linux HandyMod-Installer
[sudo] password for colin:
/usr/bin/chmod: /usr/bin/chmod: cannot execute binary file

The game also won’t launch when I add it to Steam for Linux, I can launch it with the game file directly but not there. Any help would be appreciated.