greenheartgames / greenworks

a node.js plugin to integrate nw.js/electron games with steamworks
MIT License
1.49k stars 153 forks source link

API `greenworks.getTicketSteamId` throw an exception #319

Closed qq253498229 closed 1 year ago

qq253498229 commented 1 year ago
ERROR TypeError: Bad arguments

Does this prompt mean that the parameters I passed is incorrect, or the number of parameters is incorrect, or the type of parameters is incorrect?

I tried use like these, but no one worked:

greenworks.getTicketSteamId(); 
greenworks.getTicketSteamId('my_ticket'); //my_ticket is get from greenworks.getEncryptedAppTicket method
greenworks.getTicketSteamId('user_content');
greenworks.getTicketSteamId('my_ticket', (r:any)=>{
  console.log('r',r)
});