Valheim

Valheim

Velvet Apr 15, 2023 @ 3:08pm
Game Hacked & Password Protected Help Plz
I did not think I had it on multiplayer, it was just solo. I went to login, and there was a 3rd character named Rhagnar, and my two toons were naked. I can no longer login to either of my solo worlds they seem PW protected. How crazy sad is this. Is there a way to get into my worlds without loosing mt builds? So lame.
Last edited by Velvet; Apr 15, 2023 @ 3:24pm
< >
Showing 16-24 of 24 comments
umop-apisdn Apr 16, 2023 @ 8:39am 
Originally posted by Blud:
When ever the game malfunction and asking a question ALWAYS mention if it modded or not. It seems to be the problem most the time.
Better still, remove the mods and try again... thus keeping you from having to ask a silly question on the forums and have everyone tell you to uninstall the mods and try again.
Tarc Novar Apr 16, 2023 @ 8:50am 
I use mods and noticed the same thing the other day. Immediately looked at the date the game was updated and found my problem. The mod needed to be updated in order to keep functioning. Something I did to make it easier to track issues was to create two batch files, one that activates the mods, and one that removes them, all in a single click.
Last edited by Tarc Novar; Apr 16, 2023 @ 8:50am
L1m3r (Banned) Apr 16, 2023 @ 11:59am 
Originally posted by Tarc Novar:
... create two batch files, one that activates the mods, and one that removes them, all in a single click.
How do you deactivate mods specifically?
Tarc Novar Apr 16, 2023 @ 12:09pm 
Originally posted by L1m3r:
Originally posted by Tarc Novar:
... create two batch files, one that activates the mods, and one that removes them, all in a single click.
How do you deactivate mods specifically?

Please keep in mind that I use Windows 10 Pro, so all this is native to that OS.

I run a private dedicated server from my desktop. In order to activate mods, I create a batch file using the following:

xcopy /s /y "F:\Dedicated server\Valheim config\ValheimPlus Windows Server\*.*" "D:\Dedicated Server\Valheim\Veizlaheimr" timeout /t 2

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:

Originally posted by Xcopy:
Use this option to copy directories, subdirectories, and the files contained within them, in addition to the files in the root of source. Empty folders will not be recreated.

The /y command tells it to not prompt you to overwrite existing files.

When I want to deactivate it, I create a batch file using the following:

rmdir /s /q "D:\Dedicated Server\Valheim\Veizlaheimr\BepInEx" rmdir /s /q "D:\Dedicated Server\Valheim\Veizlaheimr\doorstop_libs" rmdir /s /q "D:\Dedicated Server\Valheim\Veizlaheimr\unstripped_corlib" del /q "D:\Dedicated Server\Valheim\Veizlaheimr\winhttp.dll" del /q "D:\Dedicated Server\Valheim\Veizlaheimr\doorstop_config.ini" timeout /t 2

The command "rmdir" removes the entire directory, whereas the command "del" simply removes an individual file.
Last edited by Tarc Novar; Apr 16, 2023 @ 4:39pm
_I_ Apr 16, 2023 @ 12:19pm 
use if exist first for del/rmdir, will check first so no error are given
ex.
if exist "filename" del /q "filename"
if exist "path" rmdir /s /q "path"
Velvet Apr 16, 2023 @ 1:32pm 
First let me say a BIG thank you to all of you for taking time to answer it is appreciated SO MUCH <3 - It was the MOD. I can only say it's been a really really rough week. Thanks for not being too harsh on me & whats left of my zombie brain. You ALL ROCK and are EPIC individuals. I can't say enough kind words. <3 Peace <3 May all your loot be epic
L1m3r (Banned) Apr 16, 2023 @ 6:25pm 
Originally posted by Tarc Novar:
Originally posted by L1m3r:
How do you deactivate mods specifically?
...
When I want to deactivate it, I create a batch file using the following:
rmdir /s /q "D:\Dedicated Server\Valheim\Veizlaheimr\BepInEx" ... del /q "D:\Dedicated Server\Valheim\Veizlaheimr\winhttp.dll" ...
Thx for the elaborate replay & I'm sorry my question wasn't more precise (or that it even was a question at all).
Actually I wanted to suggest that all you need to do is rename "winhttp.dll" to disable BepInEx completely.

eg. sth like "ToggleAllVHmods.cmd"
@echo off
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 --------------
Originally posted by Velvet:
First let me say a BIG thank you to all of you for taking time to answer it is appreciated SO MUCH <3 - It was the MOD. I can only say it's been a really really rough week. Thanks for not being too harsh on me & whats left of my zombie brain. You ALL ROCK and are EPIC individuals. I can't say enough kind words. <3 Peace <3 May all your loot be epic
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?
Last edited by L1m3r; Apr 17, 2023 @ 5:13am
Tarc Novar Apr 16, 2023 @ 6:44pm 
Originally posted by L1m3r:
Originally posted by Tarc Novar:

...
When I want to deactivate it, I create a batch file using the following:
rmdir /s /q "D:\Dedicated Server\Valheim\Veizlaheimr\BepInEx" ... del /q "D:\Dedicated Server\Valheim\Veizlaheimr\winhttp.dll" ...
Thx for the elaborate replay & I'm sorry my question wasn't more precise (or that it even was a question at all).
Actually I wanted to suggest that all you need to do is rename "winhttp.dll" to disable BepInEx completely.

eg. sth like "ToggleAllVHmods.cmd"
@echo off
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).

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.
Last edited by Tarc Novar; Apr 16, 2023 @ 6:45pm
Velvet Apr 17, 2023 @ 10:01am 
All fixed - thank you so much for all your effort it's very appreciated!
< >
Showing 16-24 of 24 comments
Per page: 1530 50

Date Posted: Apr 15, 2023 @ 3:08pm
Posts: 24