RPGMV - Steam Achievements - Failed to Initialize and Bad Arguments

Issue Summary:
Trying to get an RPG Maker MV game to work with Steam Achievements, been trying for a week straight

Details:
I'm using these as recommended and linked by KillerGin's guide (linked below):
NW: 0.49.2
STEAM SDK: 1.50
Greenworks Nodes: 0.49.2
Orange - Greenworks: Version: 1.2
Greenworks.js: greenworks-v0.14.0-nw-v0.33.3

So funnily enough, I had it almost working - achievements didn't fire and I'd get bad Argument but it said my Steam name in console at least
Before posting here I thought I should make absolutely sure I'd done all the steps (mostly from KillerGin though I've tried all of them before) - and now it's somehow broken itself a little further back with a "Failed to initialize" and I can't get it back to where it was after a couple more hours of trying things

More details:
The game has been accepted by Steam so it's public (set to Coming Soon)
I've been testing it by uploading the entire thing over and over again to Steam as well as from the editor - both of which used to connect to Steam and show my username in console but achievement thing would always be a Bad Argument when using:
OrangeGreenworks.activateAchievement('NEW_ACHIEVEMENT_1_1');

Folder structure:
Achievement Structures.png


Frankly I've been trying this for so long and so intensely I can't quite remember everything I've been doing but I've been following all advice I've seen as far as I know

Previous tutorials referenced:

Plugins I'm using:
Far too many but the game's been finished for a year and works (putting it on Steam now):
FriendShapes Plugins.png


I've been trying to do this for a week and the game's coming out soon, if achievements can be made to work I still need to actually make them then have them tested to make sure this massive deck of cards of plugins isn't knocked over by Orange Greenworks somehow...

So where I am now is it says that Greenworks failed to initialize but even if that gets fixed, it'll no doubt go to the next step of "Bad argument" - I don't know js or much about the technical side of things so you may need to explain plainly
Screenshot 2025-01-24 15.03.38.png

Thank you for reading, I hope we get can get this figured out once and for all and others after me with the same problem can have an easier time with it
your YEP plugins are in the INCORRECT order, so correct them first.
also Olivia_Horror Effect has a nasty bug which require a patch.

the patch is needed or your game lags over time if you use it.

but incorrect order of plugin can cause many errors.

so categorize it.
Thanks I found that bug through testing so I just didn't specifically use the effects that trigger it

I'm a little worried about messing with load order when the game's been out for a year with no problems but I can try, do you think that'll actually fix this issue?
One thing to know: even if your setup is correct you can do achievement test from the editor because steam can't get your game id that way, it thinks you are playing MV.
So roll back to the step it says your steam user name and try to launch the game outside of the editor?
Also don't forget to put a steam_appid.txt with your game's id in the game's folder.
your YEP plugins are in the INCORRECT order, so correct them first.
also Olivia_Horror Effect has a nasty bug which require a patch.

the patch is needed or your game lags over time if you use it.

but incorrect order of plugin can cause many errors.

so categorize it.
Reordered.png

Alright for better or for worse (hoping there won't be random crashes or problems, it's a long game with RNG so testing is rough as is) - here's the new order and I put the plugin fixer in
There is no change in the Steam situation
One thing to know: even if your setup is correct you can do achievement test from the editor because steam can't get your game id that way, it thinks you are playing MV.
So roll back to the step it says your steam user name and try to launch the game outside of the editor?
Also don't forget to put a steam_appid.txt with your game's id in the game's folder.
I've been testing it in all 3 things: the editor, the deployed game and by uploading the entire game to Steam over and over again
Sadly I can't roll it back as I've had to redo all the steps so many times I don't have backups since before I started trying to get it to work with Steam
There's a steam_appid.txt in the screenshot in the initial post
Try replacing .initAPI() in orange greenworks with just .init() so it should print some error other than greenworks failed to initialize.
Steam Not Running.png

I've done that now, it says Steam isn't running, though as I'm in-game, Steam turns my name green and says I'm in-game, how confusing
OK at least you got something.
The API thinks steam is not running. Maybe you can try a different version of the sdk starting from the lower version. For example 1.4.3.
Myself just upgraded everything to the newest version but if you need nw 0.49.2 you need to find the matching files.
Alright, I tried changing the Steam SDK to 1.4.3 and there's no difference
Ah, sorry. I don't know anyone who upgraded to nw 0.49.2 successfully used greenworks recently.
The forum search returns lots of topics about steam but most of them have different versions.
There must be some mismatch of something just we can't find which.
I just used the newest of everything when I deployed my game (nw 0.8x at the time, and now it is 0.9x).
I appreciate your any any help whether or not I have to give up on achievements or not !
Oh, it seems the original tutorial for 0.49.2 is here:

tl;dr
If you scroll down to page 2, it appears the site no longer has a link to the prebuild node file for nw 0.49.2, so you need to go to their github page to find by yourself:

There must be a ton of files there you need to find the correct one. Follow the guide's steps, and replace the .node file. I wish you good luck.
Sorry, wrong again.
You need to change the filter of the site to find 0.49.2
😅
1737769884373.png
That's what I've done before posting the thread yeah, it's such an extremely unintuitive design I had to have someone explain to me a few days ago

Edit: I've tried downgrading everything, as Landshark said it worked for him:
(Though my MV is 1.6.2 rather than 1.6.3, so don't know if that affects anything)

I can revert it and may as well given I'm getting his earlier post about dynamic link:
Screenshot 2025-01-25 02.53.30.png

I am totally lost as to why I can't get it to work
Yeah, it is a bit strange no one reported that before (2024?).
So I assume steam itself changed so their old APIs might act strangely?

Despite that error message, although greenworks says steam is not running, I can still get steam id from the api. Also achievements

This is my test using greenworks directly in the console, you can see everything just works.
1737775246459.png



Edit*
Well, not everything. Still get bad argument error if the function actually needs an argument.
That's what I've done before posting the thread yeah, it's such an extremely unintuitive design I had to have someone explain to me a few days ago

Edit: I've tried downgrading everything, as Landshark said it worked for him:
(Though my MV is 1.6.2 rather than 1.6.3, so don't know if that affects anything)

I can revert it and may as well given I'm getting his earlier post about dynamic link:
View attachment 329765
I am totally lost as to why I can't get it to work
It has nothing to do with MV, I tried that only blank html it still works. Don't forget to rename files.
I read landshark's post, and downloaded nw 0.49.1 and steam sdk 1.43, node file for nw 0.45.4-0.49.1
I think you are a bit confused about those files, here's my folder:

1737781282961.png

1737781251844.png


1737781430012.png


So the node file for 0.49.2 must be bad for some reason.
I tried a few things including downloading the node you linked there, and input the console code you used and it didn't recognise the command lines you showed
BUT the top one said that the node needed to be 88 and that it was currently 83, (I switched back to NW: 0.49.2 last night) so I went and specifically got that one once again and now it says my Steam name like before...?
None of the commands you used work on it, but it'd connected now, so I think I'm back to my original Bad Argument problem - I don't even know what I changed to make it work, I think maybe it's using the slightly older Steam SDK 1.43 with NW 0.49.2...??
I've no idea what's going on or why this is so capricious, but thank you for sticking with it so far - here's the console from the deployed but not uploaded to steam version (had an error about there not being a Steam_AppID in the topmost folder of the new deployment so added that in too:
Reconnected.png
OK there's an easier way to do things. Since the node file for 0.49.2 doesn't work, there's no point to try again and again.
You can just download KillerGin's game and use his files (nw.js, lib, greenworks). I compared his node file with the one from the site and they were definitely different. It means at some point the site's files were changed( 1 years ago).
KillerGin has a free demo and it seems he used the versions in his post.
I got the demo and copied their lib, greenworks and OrangeGreenworks in and it gave me the achievement even in the RPG Maker itself, what on earth?? The NW is still 0.49.2 according to console

Screenshot 2025-01-25 13.27.38.png


So it turns out that the guide is just incorrect now for anyone trying to follow it because of files being altered without warning? Gosh I hope they can change it (or people can find this and get the help they need!
I honestly don't know what to say, it just seems to connect and work now without issue (not much testing yet obviously but literally it spoke to Steam and achieved the ment

Thank You Very Much.png

Thank you very much utunnels, I'm certainly going to include your name in the "Plugin/engine help" section, you're a life saver - I was about to give up for my own health - I hope this thread helps others after me that are trying to do this <3
lol
I don't think the guide is incorrect. It is just the site's fault.

Original thread: https://forums.rpgmakerweb.com/threads/rpgmv-steam-achievements-failed-to-initialize-and-bad-arguments.174919/