Idol Manager

Idol Manager

Not enough ratings
BepInEx HarmonyIntegration Patch (Linux)
By Illusio0n ☯
Fix for BepInEx HarmonyIntegration (LINUX)
   
Award
Favorite
Favorited
Unfavorite
1) Download and extract
Download and extract IM-HarmonyIntegration inside the game folder

https://github.com/ui3TD/IM-HarmonyIntegration/releases/tag/1.1


2) Add execute permission
Open a terminal inside the folder of the game and run:

chmod u+x run_bepinex.sh


This allow the file (run_bepinex.sh) to run as a program
3) Edit the file: run_bepinex.sh
Replace the run_bepinex.sh with this code:

#FIX LINUX #!/bin/sh # BepInEx running script # # This script is used to run a Unity game with BepInEx enabled. # # Usage: Configure the script below and simply run this script when you want to run your game modded. a="/$0"; a=${a%/*}; a=${a#/}; a=${a:-.}; BASEDIR=$(cd "$a"; pwd -P) executable_name="IdolManager.x86_64" # The rest is automatically handled by BepInEx # Whether or not to enable Doorstop. Valid values: TRUE or FALSE export DOORSTOP_ENABLE=TRUE # What .NET assembly to execute. Valid value is a path to a .NET DLL that mono can execute. export DOORSTOP_INVOKE_DLL_PATH="$BASEDIR/BepInEx/core/BepInEx.Preloader.dll" # If specified, Doorstop will load core libraries from this folder instead of the normal Managed folder # Mainly usable to unstrip assemblies in some games export DOORSTOP_CORLIB_OVERRIDE_PATH="$BASEDIR/UnstrippedLibs" # Special case: program is launched via Steam # In that case rerun the script via their bootstrapper to ensure Steam overlay works if [ "$2" = "SteamLaunch" ]; then "$1" "$2" "$3" "$4" "$5" "$6" "$0" "$7" exit fi doorstop_libs="$BASEDIR/doorstop_libs" arch="" executable_path="$BASEDIR/${executable_name}" lib_postfix="so" # Special case: if there is an arg, use that as executable path # Linux: arg is path to the executable # MacOS: arg is path to the .app folder which we need to resolve to the exectuable if [ -n "$1" ]; then case $os_type in Linux*) executable_path="$1" ;; esac fi abs_path() { echo "$(cd "$(dirname "$1")" && pwd)/$(basename "$1")" } _readlink() { # relative links with readlink (without -f) do not preserve the path info ab_path="$(abs_path "$1")" link="$(readlink "${ab_path}")" case $link in /*);; *) link="$(dirname "$ab_path")/$link";; esac echo "$link" } resolve_executable_path () { e_path="$(abs_path "$1")" while [ -L "${e_path}" ]; do e_path=$(_readlink "${e_path}"); done echo "${e_path}" } executable_path=$(resolve_executable_path "${executable_path}") echo "${executable_path}" executable_type=$(LD_PRELOAD="" file -b "${executable_path}"); case $executable_type in *PE32*) echo "The executable is a Windows executable file. You must use Wine/Proton and BepInEx for Windows with this executable." echo "Uninstall BepInEx for *nix and install BepInEx for Windows instead." echo "More info: https://docs.bepinex.dev/articles/advanced/steam_interop.html#protonwine" exit 1 ;; *64-bit*) arch="x64" ;; *32-bit*|*i386*) arch="x86" ;; *) echo "Cannot identify executable type (got ${executable_type})!" echo "Please create an issue at https://github.com/BepInEx/BepInEx/issues." exit 1 ;; esac doorstop_libname=libdoorstop_${arch}.${lib_postfix} export LD_LIBRARY_PATH="${doorstop_libs}":${LD_LIBRARY_PATH} export LD_PRELOAD=$doorstop_libname:$LD_PRELOAD export DYLD_LIBRARY_PATH="${doorstop_libs}" export DYLD_INSERT_LIBRARIES="${doorstop_libs}/$doorstop_libname" "${executable_path}" "$@"
4) Set Steam Launch Options


LAUNCH OPTIONS:

./run_bepinex.sh %command%
5) Run the game