You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*[ ] Optionally an ability to locate and use `csc` to compile scripts when mcs cannot be used
86
+
Starting 1.2.4.0, you might see the following error when loading a script:
87
+
88
+
```
89
+
Skipping loading `...` because it references outdated HarmonyWrapper and BepInEx.Harmony. To fix this, refer to github.com/denikson/BepInEx.ScriptLoader#upgrading-to-1240.
90
+
```
91
+
92
+
This error happens when using older ScriptLoader scripts with ScriptLoader 1.2.4.0 or newer.
93
+
94
+
In most cases, you can fix the script yourself. Open the script specified in the error into Notepad or some other text editor and do the following changes:
95
+
96
+
* Remove `using BepInEx.Harmony;` line
97
+
* Replace `HarmonyWrapper.PatchAll` with `Harmony.CreateAndPatchAll`
98
+
99
+
Then try to run the game again. If the error persists or you get some other error, the script is too complex to fix by this guide. In that case please conact the developer of the script and ask them to fix it.
Logger.LogError($"Skipping loading `{scriptFile}` because it references outdated HarmonyWrapper and BepInEx.Harmony. To fix this, refer to github.com/denikson/BepInEx.ScriptLoader#upgrading-to-1240");
0 commit comments