Akaz Posted August 25, 2021 Report Posted August 25, 2021 Hey, For exemple, this game is currently free on demand, looks like package for it is 622258, but requestFreeLicense([622258]) doesn't seems to work, shall I use another function for promotional free games? Thanks! Quote
Dr. McKay Posted August 26, 2021 Report Posted August 26, 2021 Use the game's appid with requestFreeLicense, not the packageid you want. Steam will figure out which package to give you. Quote
Akaz Posted August 26, 2021 Author Report Posted August 26, 2021 Hey, thanks for the answer Sadly I just tried with client.requestFreeLicense([640890], (err, grantedPackages, grantedAppIDs) => { log("Adding 640890"); if (err) log("Error adding 640890 : " + err); else log("New packages added : " + grantedPackages + " | New apps added : " + grantedAppIDs); }); But it didn't added the game. I got the result : New packages added : | New apps added : Am I missing something? Or maybe it's because it's promotional free? Quote
Dr. McKay Posted August 26, 2021 Report Posted August 26, 2021 (edited) Yes, promotional free licenses are not the same as free-on-demand licenses. Those have to be added through the store site. You can use steamstore's addFreeLicense method to acquire a promotional free license. Edited August 26, 2021 by Dr. McKay Akaz 1 Quote
Akaz Posted August 26, 2021 Author Report Posted August 26, 2021 (edited) Thanks, I didn't knew this module I'll have a look Edit : Thanks, that's what I was looking for Edited August 26, 2021 by Akaz Dr. McKay 1 Quote
4049_1572836826 Posted November 17, 2023 Report Posted November 17, 2023 (edited) Hey, I also tried adding a free license through the steam store but it keeps returning me an error Malformed response steamStore.steamID contains the correct ID subId get from working (200) request, response is empty Any Help ? Im try "manual" request : and this working Edited November 17, 2023 by 4049_1572836826 Akaz 1 Quote
Dr. McKay Posted November 17, 2023 Report Posted November 17, 2023 What version of steam-store? Quote
4049_1572836826 Posted November 17, 2023 Report Posted November 17, 2023 v. 2.3.0 I don't know, I temporarily replaced the function, with request post (last image) and this is works. Quote
Akaz Posted March 7 Author Report Posted March 7 Same issue here with 2.3.0 The code provided above worked great Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.