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

Can this plugin be used to queue subIDs obtained from SteamDB? #4

Closed
woctezuma opened this issue Oct 4, 2023 · 2 comments
Closed
Labels
question Further information is requested

Comments

@woctezuma
Copy link

woctezuma commented Oct 4, 2023

I see that some IDs can appear in Bot_FreePackages.db. For instance:

{
    "Activations": [
        "2023-10-04T10:06:02.5033286+02:00",
        "2023-10-04T10:02:40.8233594+02:00"
    ],
    "Packages": [
        {
            "Type": 0,
            "ID": 2630450,
            "StartTime": null
        },
        {
            "Type": 0,
            "ID": 2453970,
            "StartTime": null
        }
    ]
}

I don't know what "Type" is, but I can see that "ID" is the appID here:

Can this ASF plugin be used to queue subIDs manually copied from the source page of SteamDB's /freepackages/? This would allow the plugin to manage the rate-limit, so this could be handy to activate many packages from before the first run of the plugin.

I understand this is not the point of the plugin, but I wonder if you think this would be a bad idea to manually edit the JSON file with many IDs. If you believe this is possible, would you mind clarifying if changing the Type would allow to submit a subID instead of an appID as ID.

Edit: I suspect the Type is used to distinguish between games, demos, etc.

EAppType type = kv["common"]["type"].AsEnum<EAppType>();
if (type == EAppType.Demo) {
return true;
}

@Citrinate
Copy link
Owner

Citrinate commented Oct 4, 2023

Type is defined here, it's used to differentiate between apps and subs, which are activated in different ways. (Demo there should instead be Beta, which means playtests)

This is something I do plan on implementing in the future. I'd like to create an alternative to ASF's addlicense command which adds items to this plugin's queue. I'd also like to create a userscript which will display a command on SteamDB's Free Packages page the same way it currently displays the addlicense command.

@Citrinate Citrinate added the question Further information is requested label Oct 4, 2023
@woctezuma
Copy link
Author

woctezuma commented Oct 4, 2023

Thank you for the reply!

ASF currently supports a queue for redeem, but it is only for Steam keys. A way to queue items for addlicense would be nice!

Edit: Queuing subIDs (with Type 1) works fine! 🥳 For instance:

{
    "Activations": [
    ],
    "Packages": [
        {
            "Type": 1,
            "ID": 943397,
            "StartTime": null
        },
        {
            "Type": 1,
            "ID": 883270,
            "StartTime": null
        }
    ]
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants