Steam4C2-Basic

Discuss Scirra's 2D Asset Store

Post » Sat Feb 10, 2018 12:15 am

Hi,

After a few days, I'm still unable to make the achievements work in my game.
Here's my test code

Image

When exported to Steam, the screen displays "SteamOK", then "Error" when I press spacebar (espace).
I'm using NW.JS v0.27 (even though I can't preview the game with it for some reason) and the corresponding Steam4C2-Basic version.

Is there anything else that should be configured in steamworks (except the normal configuration of achievements, as shown below the code) in order to have achievements to work?

Any suggestion of what I'm doing wrong? @AJ2DI maybe?
Thanks!

[Edit] I'm using SDK 1.41.0.1 with plugin v. 1.5.1, which seems correct. At the time of posting I was using SDK 1.42, but changing everything to 1.41.0.1 didn't help in any way. I placed all the files from the SDK in the project files as mentionned in the plugin's documentation.
B
39
S
10
G
1
Posts: 369
Reputation: 3,448

Post » Sat Feb 10, 2018 11:47 am

Hello @Rable ,
You can try to enable "Debug Mode" in plugin properties, the console should display a message about achievement on error/fail.
Regards,
Image Image
B
27
S
16
G
154
Posts: 887
Reputation: 80,202

Post » Sat Feb 10, 2018 1:38 pm

Hi @MadSpy and thanks a lot for the help.
I was very surprised to see the following error message in the console:
Image

The achievement name seems to be somehow not valid, even though it is just "test". I double checked that there was no space added in Steam, but it's not the case. As you can see from the screenshot in my previous post, the name seems to be the same in Steam and in the code so I'm still scratching my head here. I even tried to add a capital to "Test" in C2 in case it is the actually displayed name which needed to be put in the code, but it's not working either.

Could the Uncaught ReferenceError be the problem?
Anything else I can try?

Thanks!
B
39
S
10
G
1
Posts: 369
Reputation: 3,448

Post » Sat Feb 10, 2018 8:06 pm

Rable wrote:Could the Uncaught ReferenceError be the problem?

No, remove the line
Code: Select all
<script src="Steam4C2.js"></script>
in your index.html file and the warning message will disappear.

Do you save and publish your achievements? You can hide them and publish them to test them in your beta branch so your players won't be spoiled while you are testing achievements.

Regards,
Image Image
B
27
S
16
G
154
Posts: 887
Reputation: 80,202

Post » Sun Feb 11, 2018 5:13 am

It's working now! I just forgot to hit that big "publish" button at the back of the Steamworks interface. :|
Thanks a lot for the help, @MadSpy .
B
39
S
10
G
1
Posts: 369
Reputation: 3,448

Post » Sun Feb 11, 2018 8:12 pm

Hi,

Basic version 1.6 submitted to Scirra Store:
Supported Nw.js version: 18.7 - 19.4 - 20.0 - 21.1 - 22.0 - 27.2 - 28.0
- Add nw.js 0.27.2 support
- Add nw.js 0.28.0 support
- Drop support for nw.js 20.3 - 23.0 - 24.0 - 27.0 (overlay and compatibility issues)
- Update Steamworks SDK from 1.41 to v1.42
- Fix typos in steamworks error log.

Regards,
B
19
S
6
G
3
Posts: 53
Reputation: 2,354

Post » Tue Feb 13, 2018 10:49 am

Thanks a lot for the update. This is much appreciated!
Supporting NW 0.28 is life changing, as for some reason preview with NW didn't work with 0.27 for me.
Updating to SDK 1.42 right now. :)
B
39
S
10
G
1
Posts: 369
Reputation: 3,448

Previous

Return to Scirra Store

Who is online

Users browsing this forum: No registered users and 2 guests