Spoons / rmm

An Open Source RimWorld mod package manager and sorting tool.
GNU General Public License v3.0
24 stars 7 forks source link

[Linux] [Workaround aviable] Downloading a mod fails, the path is wrong #6

Closed HonzoNebro closed 1 year ago

HonzoNebro commented 2 years ago

When downloading a mod from the workshop with RMM, when trying to move it to the game folder it crashes because the path is wrong

`Connecting anonymously to Steam Public...OK

Waiting for client config...OK

Waiting for user info...OK

Downloading item 2202185773 ...

Success. Downloaded item 2202185773 to "/tmp/rmm-7hc2cik5/Steam/steamapps/workshop/content/294100/2202185773" (791381 bytes) Traceback (most recent call last):

File "/home/honzo/.local/bin/rmm", line 8, in sys.exit(run())

...[several more errors]... FileNotFoundError: [Errno 2] No such file or directory: '/tmp/rmm-7hc2cik5/.steam/steamapps/workshop/content/294100' ` Notice the correct path of the download is .../Steam/steamapps/workshop/... and not .../.steam/steamapps/workshop/...

Anyway, you can manually copy the downloaded mod to the Mods folder of the game

HonzoNebro commented 2 years ago

Maybe is an issue of paths? I installed the gog version of the game through Lutris

Spoons commented 1 year ago

That is unusual. SteamCMD is largely a black box. In my experience, steamcmd should place files in /tmp-identifier/.steam/steamapps/workshop/content not /tmp-ident/Steam/steamapps/workshop/content.

Frankly, I have no idea why this is happening for you. It's probably not worth the time to trace the binary. However, I'll create a patch that detects this behavior. It might take me a minute.

Spoons commented 1 year ago

Hey, sorry about the delay. I've pushed a change which should fix this issue for you! Let me know if it does not.

nikitabel229 commented 11 months ago

Somehow I have the opposite issue: Success. Downloaded item 2910865748 to "/tmp/rmm-7eo2d0ur/.steam/SteamApps/workshop/content/294100 FileNotFoundError: [Errno 2] No such file or directory: '/tmp/rmm-7eo2d0ur/Steam/steamapps/workshop/content/294100'