Gwindalmir / SEWorkshopTool

Tool which allows batch upload and download of mods for both Space and Medieval Engineers.
32 stars 16 forks source link

Throws spurious errors when Steam is not running. #2

Closed midspace closed 8 years ago

midspace commented 8 years ago

When Steam is not running, it will still attempt to run.

Also, it should be noted that on Windows 8 and 10, that if Steam is running under UAC, SEWorkshopTool must also be run under UAC otherwise it will believe that Steam is not running, and fail.

Gwindalmir commented 8 years ago

I can look into that. But why would you run Steam elevated under UAC?

Gwindalmir commented 8 years ago

Ugh, Trying to change the commit message just adds noise. I hate github.

midspace commented 8 years ago

I use UAC, because whenever I switch SE branches, I use MKLINK to create a symbolic link to the directory that I store that branch on. This saves me from having to redownload the entire branch delta. MKLINK requires UAC to create a symbolic link. The batch file I use will create links and then automatically restarts Steam.

Otherwise, some Steam users have had issues in the past when playing some games, and resort to starting Steam under UAC to fix it.

midspace commented 8 years ago

If there was a reliable way of de-elevating UAC to run Steam, I'd use it. I haven't found one.

Gwindalmir commented 8 years ago

There is, I ran into the same problem, you can create junctions without admin permissions. I actually updated the script on the forums with what I use, and I don't need admin. http://forums.keenswh.com/threads/how-to-easily-switch-between-steam-branches-for-modding.7385481/

Basically:

rmdir SpaceEngineers
mklink /j SpaceEngineers SpaceEngineers.%BRANCH%
:: Swap the steam manifest
del ..\appmanifest_244850.acf
mklink /h ..\appmanifest_244850.acf ..\appmanifest_244850.acf.%BRANCH%
midspace commented 8 years ago

It looks like the /h for the hardlink on the .acf file does the trick. 👍

Gwindalmir commented 8 years ago

...and hardlinks... :-)

It's a lot better than the directory copy of my first iteration. I can have open files (VS, explorer), and it still works.