Steam Achievements Issues...

Hello!
I recently followed this tutorial on updating RPGMakerMV's NW.js files as well as Steam Integration..
tutorial

I followed every step and the console commands do display my steam username in the top. (which is something the tutorial suggests checking to see if Steam Integration works or not.) But I still get this error when calling for a Steam Achievement in-game...

Any insight would be greatly appreciated! ^^

This is where the script call is made...
Control-V (47).png


This is the error in-console...
Control-V (48).png
I don't use orange greenwork, but original greenworks.activateAchievement takes 3 arguments.

This is what my plugin looks like. I'm just lazy and use empty functions. So I just need to call ActiveAchievement('achievement001')

JavaScript:
var greenworks = null;
try{
  greenworks = require('./js/greenworks/greenworks'); //path to your greenworks.js
  greenworks.init();
}catch(ex){
  console.log(ex);
  greenworks = null;
};

function ActiveAchievement(achievement, success_callback, error_callback){
  try{
    success_callback = success_callback||function(){};
    error_callback = error_callback||function(){};
    greenworks.activateAchievement(achievement, success_callback, error_callback);
  }catch(ex){
    console.log('failed to active achievement: ', achievement);
    console.log(ex);
  }
}
I'm not sure I follow when you say "I don't use orange greenwork, but original..." what do you use instead? Do you mean some kinda plugin called "greenworks"? Sorry I'm not super knowledgeable on technical MV stuff
I don't use orange greenwork, but original greenworks.activateAchievement takes 3 arguments.

This is what my plugin looks like. I'm just lazy and use empty functions. So I just need to call ActiveAchievement('achievement001')

JavaScript:
var greenworks = null;
try{
  greenworks = require('./js/greenworks/greenworks'); //path to your greenworks.js
  greenworks.init();
}catch(ex){
  console.log(ex);
  greenworks = null;
};

function ActiveAchievement(achievement, success_callback, error_callback){
  try{
    success_callback = success_callback||function(){};
    error_callback = error_callback||function(){};
    greenworks.activateAchievement(achievement, success_callback, error_callback);
  }catch(ex){
    console.log('failed to active achievement: ', achievement);
    console.log(ex);
  }
}
Orange greenworks uses greenworks(by greenheartgames). So it is possible you downloaded a different version of greenworks and the steamapi has changed since the plugin was made (it is just my guess).


The code I posted was my own little plugin which uses greenworks. I can't check orange greenworks because the links don't work from my working place. lol
I don't use orange greenwork, but original greenworks.activateAchievement takes 3 arguments.

This is what my plugin looks like. I'm just lazy and use empty functions. So I just need to call ActiveAchievement('achievement001')

JavaScript:
var greenworks = null;
try{
  greenworks = require('./js/greenworks/greenworks'); //path to your greenworks.js
  greenworks.init();
}catch(ex){
  console.log(ex);
  greenworks = null;
};

function ActiveAchievement(achievement, success_callback, error_callback){
  try{
    success_callback = success_callback||function(){};
    error_callback = error_callback||function(){};
    greenworks.activateAchievement(achievement, success_callback, error_callback);
  }catch(ex){
    console.log('failed to active achievement: ', achievement);
    console.log(ex);
  }
}
Okay so I added the custom script in a .JS file and made it into a plugin for my game, as well as replacing my greenworks file with a new one (placing that new file in the game's main directory), but I still get an error once doing a script call for "ActiveAchievement('insert-achievement')" maybe I made a mistake in my process though.
console commands look like this. (also "rpgforum.js" is the code you sent.)
Control-V (49).png


I suspect it is because of this error that plays when the game launches with orangeworks deactivated...
Control-V (50).png
Oh I forgot to say I put greenworks files inside js f older.
So you need to move the files or change the path in the code.

./js/greenworks/greenworks

to

./greenworks
Oh I forgot to say I put greenworks files inside js f older.
So you need to move the files or change the path in the code.

./js/greenworks/greenworks

to

./greenworks
Changing ./js/greenworks/greenworks to ./greenworks got rid of the missing file error!
Although upon running the game I still get a "bad argument" error.
Control-V (51).png

I should also mention this is the script call I'm making...
Control-V (52).png

I should also also probably mention that I have no idea what I'm looking for that constitutes an achievement working or not. I'm testing this in MV on steam so obviously I won't be able to unlock achievements for a game I'm not playing, I just figure the console would have no errors and THAT would mean the achievement would work?
Thanks for the help thus far btw ^^
Well no. It is not supposed to have an error message like that.
What versions are you using? nw.js and, steamsdk and greenworks versions I mean.
Well no. It is not supposed to have an error message like that.
What versions are you using? nw.js and, steamsdk and greenworks versions I mean.
For NW.js I'm using SDK version 0.49.2 as suggested by the tutorial I linked, the SteamSDK im pretty sure is the latest release(not entirely sure how to check that.), as well as greenworks being the latest update on github.
Well nw.js should match the greenworks release. The version required can be found at greenworks release page where you download them, make sure to read them before downloading.
Try using older versions of the Steam SDK. Perhaps that will help.
You can find them here: https://partner.steamgames.com/downloads/list
Well nw.js should match the greenworks release. The version required can be found at greenworks release page where you download them, make sure to read them before downloading.
Hey there, sorry I was gone for a few days.
Now that I've returned, I went back to the original tutorial and ensured that yes, Greenworks' Node files, Steam SDK files, and NW.JS files all match in versions, at least according to the tutorial.
I Disabled OrangeGreenworks, enabled your custom .js script, and still I end up with this error about a bad argument.
and again, "rpgforum.js" is the script you had written.
I'm gonna try and mess with Greenworks a bit more, but it seems like the .js file itself doesn't change much between versions but rather the nodes it uses. for clarity I got greenworks node from THIS page.
Control-V (53).png


At this point I assume the issue is related to how I installed greenworks, rather than orangegreenworks or your code
Maybe. Since both orange greenworks and my code reported the same error.

I use official build from here: https://github.com/greenheartgames/greenworks/releases
Maybe. Since both orange greenworks and my code reported the same error.

I use official build from here: https://github.com/greenheartgames/greenworks/releases
I guess at this point I should just ask, what version of NW.JS, STEAM SDK, and Greenworks do you use? Because in the link you sent there is no greenworks release for NW.JS version 49.2,(the version i upgraded to) or at least that I could find.
I use NW.js 0.86.
I think you can just grab the newest, since you already upgraded why not just upgrade to the newest.
Screenshot_20240815_024633_com.huawei.browser_edit_1325083300207702.jpg
I have been having the same issues.
I think it has to do with how old the original orangegreenworks plugin was made (For it's intended rpg maker version)
I use NW.js 0.86.
I think you can just grab the newest, since you already upgraded why not just upgrade to the newest.
Because many versions break RPG Maker's code and plugins, especially newer ones.

Both MV and MZ have had official versions where the NW.js was downgraded because it caused instability in the engine; and you can find many people in the NW.js upgrading thread and other support threads asking for help because upgrading it broke their game.

There are, generally speaking, specific versions that will work correctly.
Because many versions break RPG Maker's code and plugins, especially newer ones.

Both MV and MZ have had official versions where the NW.js was downgraded because it caused instability in the engine; and you can find many people in the NW.js upgrading thread and other support threads asking for help because upgrading it broke their game.

There are, generally speaking, specific versions that will work correctly.
What version were you using, If any, With greenworks then ATT? Maybe i'll see if i can downgrade to it, Without breaking any plugins..
What version were you using, If any, With greenworks then ATT?
Sorry, I have no clue where that came from 😛 I never said I've used Greenworks (I haven't).

I can only suggest using the versions of everything that people have written guides about getting to work.
Sorry, I have no clue where that came from 😛 I never said I've used Greenworks (I haven't).

I can only suggest using the versions of everything that people have written guides about getting to work.
yeah that seems to be the general issue, this video's comments are a great example. the certain versions that do and don't break MV/MZ aren't well documented. Even in my case, all the versions I used match according to this tutorial and it still doesn't work properly.
It really is a shame. I'll keep messing with greenworks because that's where I assume the issue is, but really there doesn't seem like there is much I can do.

Original thread: https://forums.rpgmakerweb.com/threads/steam-achievements-issues.170975/