XUnity.AutoTranslator icon indicating copy to clipboard operation
XUnity.AutoTranslator copied to clipboard

How to unistallreipatcher?

Open Fealow opened this issue 3 years ago • 4 comments

I know this isn't an issue per say, but I can not find an answer anywhere I have looked.

As the title suggests how do I uninstall reipatcher from a game? I am unable to find a means to do so (anywhere on the internet) that doesn't stop the game from executing incorrectly or crashing on start up. I have my own methods of translating/modding games via bepinex but often find that a game I want to play already comes with reipatcher installed. And reipatcher is incompatible with anything other than itself.

Fealow avatar Apr 04 '22 18:04 Fealow

Well. It must be done manually. -> Remove any folders that are generated by it in the root game directory. -> Go to the _Managed folder and remove the files that were added. (try installing it to a game to see which files these are. It is all written out in the console) -> Find the UnityEngine.CoreModule.dll OR UnityEngine.dll, delete it and replace it with the backup of said file which should be located in the same directory, with a date appended to it.

gravydevsupreme avatar Apr 16 '22 17:04 gravydevsupreme

There are two ways to clean your folder.... Check files with same modified timestamp as when reipatcher was installed or follow the steps below.

Delete the following.... Folders.... AutoTranslator ReiPatcher

Files in xxx_data/Managed... UnityEngine.CoreModule.dll 0Harmony.dll ExIni.dll Mono.Cecil.dll MonoMod.RuntimeDetour.dll MonoMod.Utils.dll ReiPatcher.exe XUnity.AutoTranslator.Plugin.Core.dll XUnity.AutoTranslator.Plugin.ExtProtocol.dll XUnity.Common.dll XUnity.ResourceRedirector.dll

Rename file in xxx_data/managed Rename UnityEngine.CoreModule.dll.{TIMESTAMP}.bak to UnityEngine.CoreModule.dll

After that game will be as new. I made a bath script I made for automating the process for me. If you want to do something similar.... IMPORTANT: Edit Line 36,38,44,45. To match your game. If you want you can delete 44,45 entirely and rename the file yourself since the {TIME_STAMP}is created when reipatcher is installed.

@echo off
title REIPATCHER CLEANUP
chcp 65001
color 0a
cls

:start
echo.
echo Make sure you're running this .bat file from the game folder.
echo -------------------------------------
echo Select a funcion.
echo -------------------------------------
echo.
echo [1] Full clean up - Remove REI
echo.
echo [2] Close
echo.


choice /c 12 /m "Choose one:"

if errorlevel 2 (
cls
echo.
goto end
)


if errorlevel 1 (
cls.
echo.
echo Removing Plugins please wait...
rd /q /s AutoTranslator
rd /q /s ReiPatcher
cls
echo Moving to {CHANGE_TO_YOUR_GAME_FOLDER}_Data\Managed
timeout 5
cd {CHANGE_TO_YOUR_GAME_FOLDER}_Data\Managed
cls.
echo Resuming cleanup
timeout 5
rd /q /s Translators
del /q /f "UnityEngine.CoreModule.dll" "0Harmony.dll" "ExIni.dll" "Mono.Cecil.dll" "MonoMod.RuntimeDetour.dll" "MonoMod.Utils.dll" "ReiPatcher.exe" "XUnity.AutoTranslator.Plugin.Core.dll" "XUnity.AutoTranslator.Plugin.ExtProtocol.dll" "XUnity.Common.dll" "XUnity.ResourceRedirector.dll"
ren "UnityEngine.CoreModule.dll.{IMPUT_YOUR_TIMESTAMP_HERE}.bak" "UnityEngine.CoreModule.dll.bak"
copy "UnityEngine.CoreModule.dll.bak" "UnityEngine.CoreModule.dll"
exit
)

:done
cls.
echo Process Complete...
echo Exiting in...
timeout 5
exit

:end
cls.
echo Exiting...
timeout 5
exit

PS: You may be able to do a cleaner script for it if you know what you're doing.

NamelessButler avatar Apr 18 '22 22:04 NamelessButler

Thank you for the help! That script is great!

Fealow avatar Jun 24 '22 02:06 Fealow