Akaz Posted August 25, 2021 Report Share 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 Link to comment Share on other sites More sharing options...
Dr. McKay Posted August 26, 2021 Report Share 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 Link to comment Share on other sites More sharing options...
Akaz Posted August 26, 2021 Author Report Share 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 Link to comment Share on other sites More sharing options...
Dr. McKay Posted August 26, 2021 Report Share 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 Link to comment Share on other sites More sharing options...
Akaz Posted August 26, 2021 Author Report Share 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 Link to comment Share on other sites More sharing options...
4049_1572836826 Posted November 17 Report Share Posted November 17 (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 by 4049_1572836826 Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted November 17 Report Share Posted November 17 What version of steam-store? Quote Link to comment Share on other sites More sharing options...
4049_1572836826 Posted November 17 Report Share Posted November 17 v. 2.3.0 I don't know, I temporarily replaced the function, with request post (last image) and this is works. Quote Link to comment Share on other sites More sharing options...
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.