Hello, I'm trying to set up Steam achievements with OrangeGreenworks but when I come across a script, the game breaks, even though in the console log everything is looking good and is connected to Steam ( also the name in the script and achievement's API name match). I also used Killer Gin's guide - https://forums.rpgmakerweb.com/inde...-updated-nw-js-super-high-performance.132405/
MV Script call "Bad Arguments" when using OrangeGreenworks
Javascript/Plugin SupportWelcome!
Your post of the crash error and the Console tab don't appear to have been taken at the same time - otherwise we'd see the error and its trace with the files and line numbers in the Console.
For future reference, please provide links to the plugins you're asking for help with, per the section guidelines.
That said, the error is pretty self-explanatory - the type of argument you provided (a string) doesn't match what the function is expecting to work with.
Please press F8 while that error is on the screen and see what the Console tab says then.
Your post of the crash error and the Console tab don't appear to have been taken at the same time - otherwise we'd see the error and its trace with the files and line numbers in the Console.
For future reference, please provide links to the plugins you're asking for help with, per the section guidelines.
That said, the error is pretty self-explanatory - the type of argument you provided (a string) doesn't match what the function is expecting to work with.
Please press F8 while that error is on the screen and see what the Console tab says then.
This is what comes up... Also the name in the script and in the steamworks achievements 100%
match.
what is your nwjs version? if its lower or higher than 4.9.2 it wont work.
as 4.9.2 works with orange steamworks though
as 4.9.2 works with orange steamworks though
It is exactly 0.49.2, I did everything thoughtfully as it is written in the guide
I'm still very confused by the screenshots you're providing.
The error that shows when the game crashes (in your first post, the bad arguments) should be displayed in the Console tab also - that's where the text is gotten from.
Instead, your Console is showing those intervention warnings and no error.
I don't see any way to start troubleshooting the issue from that.
The error that shows when the game crashes (in your first post, the bad arguments) should be displayed in the Console tab also - that's where the text is gotten from.
Instead, your Console is showing those intervention warnings and no error.
I don't see any way to start troubleshooting the issue from that.
That's really all I get, just to prove you, I did a video. And now for some reason nothing at all shows up...
Here are some screenshots from the video, I can also post it on YouTube
Here is the video if you need it
Here are some screenshots from the video, I can also post it on YouTube
Here is the video if you need it
it's seems it crashing to go to page 5 (self switch D)
what happens if you put a wait of 5 in between? before and after scriptcall?
is this also running through steam or as playtest?
what happens if you put a wait of 5 in between? before and after scriptcall?
is this also running through steam or as playtest?
The error is not about the name, but about the type and/or format.
I'll give a different example.
for a human, 2 and two are both the same value and the same.
but for a computer one is a number and the other is letters.
"bad arguments" means that you have given something in the wrong format or wrong type or something like that - the value itself isn't even checked at that moment.
can you give a link to the plugin so that we can check its original instructions?
Nothing changes
Here is the plugin link - https://github.com/Hudell/mv-plugins/blob/master/OrangeGreenworks.js, although there are many other factors besides the plugin which were done by navigating with this guide https://forums.rpgmakerweb.com/inde...-updated-nw-js-super-high-performance.132405/
Have you tried on a clean project?
Just tried it, the same error pops up
what do you get if you do: OrangeGreenworks.getAchievementNames() ?
also, can you screenshot your lib folder?
also, can you screenshot your lib folder?
I attached images of what I get when I use OrangeGreenworks.getAchievementNames() script.
Also here is my lib
it seems you miss a lot of steam plugins required as well.
if you read this [tutorial] and there is 1 on steam how to add it,
but it shows around 10 files for greenworks and SDK one, and you miss
a lot, specially mac and 32bit ones.
try to redo the steps and see if it works out.
if you read this [tutorial] and there is 1 on steam how to add it,
but it shows around 10 files for greenworks and SDK one, and you miss
a lot, specially mac and 32bit ones.
try to redo the steps and see if it works out.
I don't know what that would accomplish - the plugin file the OP linked to doesn't have any getAchievementNames() function, so of course trying to call it will produce an error.
its in the greenworks, so it should return an array of all achievements set.
so it could be used for debugging, as it has getAchievementNames.
as activateAchievement(name, function, [callback])
so it was worth a shot though.
so it could be used for debugging, as it has getAchievementNames.
as activateAchievement(name, function, [callback])
so it was worth a shot though.
I had them removed because I didn't need Linux, Mac and Windows 32bit versions for my game. Anyways I added them all back, but nothing changed...
steam require them, especially the 32bit and 64bit (depending on on steam
and their OS to match it, so its safer to have).
if everything exactly match the steam part, SDK and nwjs, I'm out of options though.
and their OS to match it, so its safer to have).
if everything exactly match the steam part, SDK and nwjs, I'm out of options though.
Everything matches..
Original thread: https://forums.rpgmakerweb.com/threads/script-call-bad-arguments-when-using-orangegreenworks.166947/