Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
I run a private dedicated server from my desktop. In order to activate mods, I create a batch file using the following:
Within the server folder I designate, it copies all files to the server folder for me, rather than having to manually do it.
The /s command does the following:
When I want to deactivate it, I create a batch file using the following:
The command "rmdir" removes the entire directory, whereas the command "del" simply removes an individual file.
ex.
if exist "filename" del /q "filename"
if exist "path" rmdir /s /q "path"
Actually I wanted to suggest that all you need to do is rename "winhttp.dll" to disable BepInEx completely.
eg. sth like "ToggleAllVHmods.cmd"
SETLOCAL ENABLEEXTENSIONS
setlocal ENABLEDELAYEDEXPANSION
set "regPath=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Steam App 892970"
set "regVar=InstallLocation"
set "file2ren=winhttp.dll"
set "renPart=_DISABLED"
set "errMSG="
set "ERL=0"
set "filePath="
for /F "usebackq tokens=3 skip=1" %%I IN (`reg.exe query "!regPath!" /v "!regVar!" 2^>NUL `) do set "filePath=%%~I"
if not defined filePath (
set "errMSG=Quering the registry for Valheim's path failed.!errMSG!"
set "ERL=10"
goto :ERR
)
pushd "!filePath!"
if not exist "%file2ren:~0,-4%*.%file2ren:~-3%" (
set "errMSG=Couldn't find '%file2ren%' or its '%renPart%' variant in '!filePath!'. Is BepInEx installed?"
set "ERL=11"
goto :ERR
)
set "renamed=%file2ren:~0,-4%%renPart%.%file2ren:~-3%"
echo[
if exist "%file2ren%" (
set "MSG=DISABLED"
ren "%file2ren%" "%renamed%"
set "ERL=!ERRORLEVEL!"
) else if exist "%renamed%" (
set "MSG=ENABLED"
ren "%renamed%" "%file2ren%"
set "ERL=!ERRORLEVEL!"
) else (
set "errMSG=There's a wrongly named '%file2ren:~0,-4%*.%file2ren:~-3%' in '!filePath!'."
set "ERL=12"
goto :ERR
)
if !ERL! NEQ 0 (
set "errMSG=Couldn't %MSG:~0,-1% BepInEx for Valheim. Renaming failed (not enough rights?)."
goto :ERR
)
set "MSG=Successfully %MSG% BepInEx for Valheim."
echo[ %MSG%
msg.exe "!USERNAME!" /TIME:0 %MSG%
goto :EOFi
:ERR
echo[
color 4F
echo[
echo[ --- ERROR (%ERL%):
echo[ !errMSG!
echo[
pause
REM set /A ERL+=1
:EOFi
endlocal
exit /B %ERL%
Should work with every Windows but I'm not sure if one is normally able to rename the "winhttp.dll" file without elevated rights (my whole Steam is somewhere else and not installed as usual).
---------- EDIT --------------
You're welcome and thanks for the award spree (thou I don't think I helped that much here).
But what exactly was at fault? The mod-platform/-loader BepInEx or a specific other mod?
No worries.
I find it easier for troubleshooting purposes to remove the mod entirely. Lets me introduce each piece one by one till I find the cause.