Closed different-name closed 2 years ago
Check that you have the correct Steam install selected in options. Make sure that the program opens Steam as admin if you normally open Steam as admin.
This is an odd error, as it doesn't do anything to Steam itself, other than swapping out files and starting it again. This isn't an error that should be caused by this program.
I ran into this same error after an OS reinstall. Note my Steam install uses a non-default path on a secondary HDD so all of my config files remained after the OS wipe, plus I migrated by hand all of my old appdata from "C:\Users\xxx\Appdata\Local\Steam" into my fresh OS, so the Account Switcher saw both of my Steam accounts right away even before logging properly into both of them. Weirdly enough, both of my Steam accounts launched fine when logging in though the Steam client, but the Account switcher returned this "Failed to load steamui.dll" error no matter what. I solved it by going into "Settings wheel>Other Tools>Advanced Cleaning>Clean my login history" and chose to delete loginusers.vdf. After that I re-added my accounts from within the Account Switcher and everything worked fine this time.
Super odd, as far as I understand that file doesn't hold any info on where the Steam files are located...
I ran into this same error after an OS reinstall. Note my Steam install uses a non-default path on a secondary HDD so all of my config files remained after the OS wipe, plus I migrated by hand all of my old appdata from "C:\Users\xxx\Appdata\Local\Steam" into my fresh OS, so the Account Switcher saw both of my Steam accounts right away even before logging properly into both of them. Weirdly enough, both of my Steam accounts launched fine when logging in though the Steam client, but the Account switcher returned this "Failed to load steamui.dll" error no matter what. I solved it by going into "Settings wheel>Other Tools>Advanced Cleaning>Clean my login history" and chose to delete loginusers.vdf. After that I re-added my accounts from within the Account Switcher and everything worked fine this time.
I ran into this error also today while using a secondary hard drive.
I was able to get this while adding a new account on a fresh install of Windows, so I may be able to figure out why :)
Edit: This was a once-off thing... I can't recreate it. Is this is something that occurs after doing something specific, does it stop you from using the software at all? Or does it just happen once in a while?
I had the same issue, I managed to fix it tho. I just deleted SteamUI.dll and libswscale-5.dll files from the Steam/ folder (after making a backup of those), then, restarting Steam will update and recreate the files fixing the issue.
Do you still have both copies? Upload the old and new ones to VirusTotal.com so you can easily see the hashes. (Long 'random' string of characters that uniquely identify the file) - You can tell if something actually changed or not... Just to see if these files did cause the issue somehow. If they're the same for old and new - the files weren't the cause of the issue. If you're curious, of course.
This is happening as well for me. It could be because I have steam installed at "C:\Steam" not "C:\Program Files (x86)\Steam"
I just had this issue. Logged into 2 different accounts on Steam using the Change Account...
option, then installed TcNo, both accounts showed up right away but would throw the error. Fixed it by deleting loginusers.vdf
and loginusers.vdf_last
and forgetting both accounts in TcNo, then logging into 1 account via normally started Steam so loginusers.vdf
would get recreated. Then starting TcNo again and adding both accounts, starting with the account I logged in with first (don't know if that matters).
This was on a plain Steam install in C:\Program Files (x86)\Steam
, with nothing modified.
~~ Is everyone here on Windows 10? I have only done extensive testing on Windows 10 x64. I don't want to update to 11 tbh
Yes, I had this issue on Windows 10.
I was having this on Windows 10. After a simple restart of the program It was fixed.
Yes, I tested it on Windows 10 Enterprise LTSC x64.
This is an ancient issue, though I think I've finally found the cause. Essentially: Steam can't find it's own program files (SteamUI.dll, etc.), as the working directory was not set when launching the program, leading the exe to believe it was alone in a folder somewhere.
This update should fix it for the next release, as well as have a ton of new features!
Assuming fixed - Next major update will include this change.
I'm still running into this problem Win11
just re-installed windows and transfered my tcno folder from %appdata% of the old user. running into this. steam is installed in the default location, didnt change between installs. steam folder in tcno was already set to the correct location, re-selected anyway, didnt fix. i do not think this is fixed, @TcNobo. its unfortunate to have to re-log into multiple accounts. i am using the may26 release in /releases. would be happy to provide u with any info u need.
I ran into this problem on Win11, and TcNo's cleaner did not seem to want to delete the loginusers.vcf file through the cleaner as recommended by https://github.com/TcNobo/TcNo-Acc-Switcher/issues/58#issuecomment-906212627 .
However, I found the file in c:\Program Files (x86)\Steam\config and renamed it, started up Steam, logged in again.
Interestingly, each login had a new pair of keys that weren't in the old file.
"SkipOfflineModeWarning" "0"
"AllowAutoLogin" "1"
If I added those to the end of each section in a restored copy of the old file, it worked fine.
Restart steam and load it back up as admin and restart tcno too, worked for me.
Launching steam through the application causes the error "Failed to load steamui.dll". Steam still opens fine when opened normally. This occurs when pressing any button in the application that will open steam