MZ [Solved (With Guide)]Need help setting Steam achievements for RMMZ game
BMM Archive · July 15, 2026
Original Source
- Original title: MZ [Solved (With Guide)]Need help setting Steam achievements for RMMZ game
- Original author: LunarHillz
- Original date: August 24, 2024
- Source thread: https://forums.rpgmakerweb.com/threads/solved-with-guide-need-help-setting-steam-achievements-for-rmmz-game.171374/
- Source forum path: Game Development Engines > RPG Maker Javascript Plugins > Javascript/Plugin Support
Summary
NOTE (Dec 11, 2024): I've succeeded in activating Steam achievements with greenworks.js, and wrote a step-by-step guide here. (FYI: I'm using Windows 64-bit and my game was made executable for the same.) And here's the original post: I've been testing around and still cannot unlock Steam achievement. Now I'm trying to set it up simply using greenworks and create an initial plugin for it like newly mentioned in this thread: https://forums.rpgmakerweb.com/inde...evements-to-work-in-rmmz.170981/#post-1465965 but the achievements still cannot be activated. Can someone tell me what I did wrong? Edit: Just found the...
Archived First Post
And here's the original post:
I've been testing around and still cannot unlock Steam achievement. Now I'm trying to set it up simply using greenworks and create an initial plugin for it like newly mentioned in this thread: https://forums.rpgmakerweb.com/inde...evements-to-work-in-rmmz.170981/#post-1465965 but the achievements still cannot be activated. Can someone tell me what I did wrong?
Edit: Just found the reason, the path to greenworks.js was wrong. All other settings here stay the same!
I'm using Windows 11 (64 bit), NWjs v0.89.0 (if I need to change this I may not be able to change it to versions lower than 0.86.0 cuz there would be text glitches), Greenworks v0.17.0, Steamworks SDK 1.60.
Since I somehow cannot summon the dev tool whenever Steam's on, here's the newest Error message I got:
Here's what my files look like:
And here's the code in the created plugin:
var greenworks = null;
try{
greenworks = require('../../greenworks'); //path to your greenworks.js
greenworks.init();
}catch(ex){
console.log(ex);
greenworks = null;
}
function UnlockAchievement(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);
}
}
function ClearAchievement(achievement, success_callback, error_callback){
try{
success_callback = success_callback||function(){};
error_callback = error_callback||function(){};
greenworks.clearAchievement(achievement, success_callback, error_callback);
}catch(ex){
console.log('failed to clear achievement: ', achievement);
console.log(ex);
}
}
Edit: Here's the correct code, copy this one if you want:
var greenworks = null;
try{
greenworks = require('./greenworks'); //path to your greenworks.js
greenworks.init();
}catch(ex){
console.log(ex);
greenworks = null;
}
function UnlockAchievement(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);
}
}
function ClearAchievement(achievement, success_callback, error_callback){
try{
success_callback = success_callback||function(){};
error_callback = error_callback||function(){};
greenworks.clearAchievement(achievement, success_callback, error_callback);
}catch(ex){
console.log('failed to clear achievement: ', achievement);
console.log(ex);
}
}
UnlockAchievement("ACH_29");andClearAchievement("ACH_29"); I've tried 'ACH_29' instead of "ACH_29" but nothing changes.Edit: My store page is still not online, but the achievement can be activated now!
Downloads / Referenced Files
Log in, then follow the RPG Maker Developers Group to see these download links.
Log in to downloadCreator Claims / Removal
If you are the original creator and want this listing reassigned, edited, or removed, join BMMPlay and contact the moderators with proof that matches the original RPG Maker Web profile, linked GitHub, itch.io page, or another public creator identity.
Replies (0)
No replies yet.
Topic Summary
Loading summary...