Giter VIP home page Giter VIP logo

Comments (17)

FrogTheFrog avatar FrogTheFrog commented on August 15, 2024

@byzod could you upload your shortcut.vdf (after taking screenshot, but before saving) in a zip file? I am away from my PC at the moment but I could analyze it in notepad anyway.

from steam-rom-manager.

byzod avatar byzod commented on August 15, 2024

Config

  • Actual Emulator folder: K:\Game\_Emu\WiiU\Cemu
  • Actual Game path:
    • K:\Game\_Emu\WiiU\ROMS\Xenoblade Chronicles X (USA) [Loadiine]\code\spaceTravel.rpx
    • K:\Game\_Emu\WiiU\ROMS\Fake\code\fake.rpx
  • SRM config:
    • Type: Glob-Regex
    • Steam category: ${Exotic}
    • Executable: K:\Game\_Emu\WiiU\Cemu\Cemu.exe
    • Roms folder: K:\Game\_Emu\WiiU\ROMS
    • Steam folder: K:\Game\Steam
    • User glob-regex: ${/([^\(]+)/}/code/*.rpx
    • Arguments: -f -g "${filepath}"

Shortcut.vdf trace

  • Attachment 1: .vdf files
    • 1 shortcuts.vdf: generated by SRM after step 2 of reproduce steps.
    • 2 shortcuts.vdf: generated by Steam after step 3, i.e. after screenshot taken and Steam terminated.
    • 3 shortcuts.vdf: generated by SRM after step 4
    • 4 shortcuts.vdf: generated by Steam after launching it. Exact same as 3 shortcuts.vdf (same hash) so I didn't included it.
  • Attachment 2: screenshots
    • 2A.png: taken in step 3, before screenshot in Steam.
    • 2B.png: taken in step 3, after screenshot in Steam.
    • 4.png: taken after step 4, after 4 shortcuts.vdf generated.
      a1 vdf.zip
      a2 img.zip

from steam-rom-manager.

FrogTheFrog avatar FrogTheFrog commented on August 15, 2024

V1.1.4 should fix it. Technically it should work (doesn't mean it will) with any shortcuts.vdf, because it was not corrupted. Steam just changed my AppName to appname. I wish they would stick to one capitalization style instead of 2. As a result too many entries were added and Steam got "confused". Later this week I will also add option to remove generated and all added entries.

If V1.1.4 fails to fix it, reply here and I'll reopen this Issue.

from steam-rom-manager.

byzod avatar byzod commented on August 15, 2024

Nope, still not working.

p.s. there's no way to tell the current version of the application when using it, I have to check the file version to make sure it's the latest.

Config

  • SRM version: 1.1.4
  • Actual Emulator folder: K:\Game\_Emu\WiiU\Cemu
  • Actual Game path:
    • K:\Game\_Emu\WiiU\ROMS\Xenoblade Chronicles X (USA) [Loadiine]\code\spaceTravel.rpx
    • K:\Game\_Emu\WiiU\ROMS\Fake\code\fake.rpx
    • K:\Game\_Emu\WiiU\ROMS\中文\code\fake.rpx (Make sure UTF-8 is working, just in case)
  • SRM config:
    • Type: Glob-Regex
    • Steam category: ${Exotic}
    • Executable: K:\Game\_Emu\WiiU\Cemu\Cemu.exe
    • Roms folder: K:\Game\_Emu\WiiU\ROMS
    • Steam folder: K:\Game\Steam
    • User glob-regex: ${/([^\(]+)/}/code/*.rpx
    • Arguments: -f -g "${filepath}"
  • Test steps
    1. Close steam, delete shortcuts.vdf, generate & save list with SRM
    2. Open Steam, check result
    3. Run 中文, then take a screenshot, close Steam
    4. Add title prefix 2, generate & save list again
    5. Open Steam, check result
    6. Run 中文, then take a screenshot again, close Steam

Shortcut.vdf trace

  • Attachment 1: test files
    • 1 shortcuts.vdf: generated by SRM after step 1 of test steps.
    • 1.png: taken after step 2
    • 2 shortcuts.vdf: generated by Steam after step 3
    • 3 shortcuts.vdf: generated by SRM after step 4
    • 4 shortcuts.vdf: generated by Steam after step 6 (I found that steam will never overwrite the shortcut file without actions like screenshot, adding new shortcut)

a1.zip

from steam-rom-manager.

FrogTheFrog avatar FrogTheFrog commented on August 15, 2024

Now that shortcuts.vdf parser is fixed, I'm giving my VDF manager a total rewrite as I noticed "holes" in my logic. Many of them were fixed but many may still remain.

from steam-rom-manager.

FrogTheFrog avatar FrogTheFrog commented on August 15, 2024

Steam changes utf-8 encoding to something else. Parser changes it back to utf-8. Now, this drives Steam nuts if "LastTimePlayed" is set. Need to figure out what encoding Steam uses.

Edit:
False conclusion once again, but it has something to do with "LastTimePlayed".

Edit2:
It seems to be related to shortcuts.vdf parser after all. It fails to read or write integer properly.

from steam-rom-manager.

FrogTheFrog avatar FrogTheFrog commented on August 15, 2024

@byzod could you try out the new v1.2.0 pre-release?

from steam-rom-manager.

byzod avatar byzod commented on August 15, 2024

@FrogTheFrog OK it works now.

Just a small flaw: it overwrites the original Xenoblade Chronicles X shortcut (same name) created before I notice this project, it's ok since the detailed config is exactly the same.

But all screenshot I taken are "gone": the new Xenoblade Chronicles X created a new, different folder in \Steam\userdata\{userID}\760\remote\ to store screenshots, so I have to manually move all screenshots images to the new one.

from steam-rom-manager.

FrogTheFrog avatar FrogTheFrog commented on August 15, 2024

@byzod I intentionally disallow same titles as they could mess up appId. For the second problem (even the first one maybe), could you give me full where emulator executable was (for the original title), or are they at the same location?

from steam-rom-manager.

byzod avatar byzod commented on August 15, 2024

@FrogTheFrog
I have only one Cemu so yes, they (it) are (is) at the same location. But the shortcut entries stored in the shortcuts.vdf are slightly different, the case: Ceme/cemu

Content of Down.zip
Before SRM edition: shortcuts.backup
After SRM overwrite it: shortcuts.vdf
(Only the XCX part, cut off from the original .vdf)

Down.zip

p.s. about the icon thing, I added it AFTER all things happened, I think it has nothing to do with the issue.

from steam-rom-manager.

FrogTheFrog avatar FrogTheFrog commented on August 15, 2024

@byzod "K:\Game\_Emu\WiiU\cemu\Cemu.exe" change to "K:\Game\_Emu\WiiU\Cemu\Cemu.exe". AppId is generated from "%exe%"%appname%. Thus even a slightest change changes appId. That's the feature of Steam.

from steam-rom-manager.

byzod avatar byzod commented on August 15, 2024

@FrogTheFrog OK, linux-friendly, understandable.

Steam create one (same) library shortcut for XCX(Cemu) and XCX(cemu), but create two (different) screenshot folder for it (them). That's legit.

from steam-rom-manager.

FrogTheFrog avatar FrogTheFrog commented on August 15, 2024

@byzod Actually, I prevent Steam from creating duplicate title entries (even if appId is different), because at the time of writing it made no sense to me to have 2 identical entries in the library. For that reason I added prefix and suffix options. Sorry :D

from steam-rom-manager.

FrogTheFrog avatar FrogTheFrog commented on August 15, 2024

@byzod If you have no other problems related to this Issues, I'll close it.

from steam-rom-manager.

byzod avatar byzod commented on August 15, 2024

@FrogTheFrog Correct me if I'm wrong:

When I added a shortcut "%exe%"%appname% (case sensitive)

Steam:

  • create appId generated from "%exe%"%appname%
  • create a library shortcut from appId
  • create media folder: \Steam\userdata\{userId}\760\remote\{appId}
  • store grid picture if I set one: \Steam\userdata\{userId}\config\grid\{appId}.png or .jpg or .tga
  • create other things related to appId that I didn't know yet

Steam-Rom-Manager:

  • Prevent multiple shortcut that have different appId but "%exe1%"%app1name%.toLowerCase() == "%exe2%"%app2name%.toLowerCase() is True

Then I think SRM should prevent other things too, at least the screenshot folder, because it's a little bit confusing, especially all screenshots are "gone" after the list saved. Not every user will check their \Steam\userdata\{userId}\760\remote folder like me.

from steam-rom-manager.

FrogTheFrog avatar FrogTheFrog commented on August 15, 2024

@byzod
Steam-Rom-Manager:

  • Prevents multiple shortcuts when %app1name% === %app2name%. %app1name%'s appId is replaced with %app2name%'s appId. Thus replacing images. I could rename media folder to new appId if you want.
  • Manages (removes, adds) grid pictures to \Steam\userdata\{userId}\config\grid\{appId}.*

from steam-rom-manager.

byzod avatar byzod commented on August 15, 2024

Any way, the .vdf corruption problem is fixed, please close the issue.

If anyone found that "screenshots disappeared" problem is vital they should create an issue themselves :)

from steam-rom-manager.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.