Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ugc.Query does not provide setters for creatorApp or consumerApp #685

Open
kornman00 opened this issue Nov 1, 2022 · 2 comments · May be fixed by #759
Open

Ugc.Query does not provide setters for creatorApp or consumerApp #685

kornman00 opened this issue Nov 1, 2022 · 2 comments · May be fixed by #759
Assignees

Comments

@kornman00
Copy link

Describe the bug
I hope the title is clear and concise enough.

To Reproduce
Steps to reproduce the behavior:

  1. View latest code https://github.com/Facepunch/Facepunch.Steamworks/blob/master/Facepunch.Steamworks/Structs/UgcQuery.cs#L15
  2. Search "creatorApp" or "consumerApp"
  3. Observe there are no ways for the caller to explicitly set these, while consumerApp will implicitly use SteamClient.AppId when it is zero and then creatorApp will be set to consumerApp when zero too.

Calling Code
https://github.com/Facepunch/Facepunch.Steamworks/blob/master/Facepunch.Steamworks/Structs/UgcQuery.cs#L15

Expected behavior
When you're using this wrapper to implement a Workshop tool that publishes for a different app (the game), one needs to be able to set these individually. The Workshop tool is the creatorApp, and the game is the consumerApp. So without APIs to set these existing fields, this throws a wrench in things.

Desktop (please complete the following information):

  • OS: Windows, but this isn't platform specific
  • Unity: Not using Unity

Additional context
If no one else takes the time to address this, I'll probably set aside time in December to throw up a PR for adding some APIs which are needed here (WithConsumerAppId, etc as it appears that is the pattern used elsewhere).

@MarshMello0
Copy link

A long shot with how old this is: I assume you never got around to it?

I've attempted to just fork it and add the ability to set these values however Steam always returns 0 items when I pass two different apps. One for consumer one for creator.

@MarshMello0
Copy link

For future searches: Okay so it turns out even though it had access to list workshop items from another app. It will only show ones that where uploaded from the tool. Not ones uploaded from the app.

Once I uploaded a workshop item from my tool to the app. Querying for all users published items from the tool only returned that one I just uploaded, when there was 3 others uploaded directly from the app.

Also another intresting note I found when researching, aparently you can only get the users published stuff across apps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants