[plugin] Steam+leaderboard +experimental lobby [WIP]

Post your work in progress addons and get feedback

Post » Sun Nov 06, 2016 12:53 am

Hi,

An update was submitted to scirra store

Basic version (v1.2.1):
* Update Support for nw.js 0.18.3 to 0.18.5
* Update Support for nw.js 0.17.1 to 0.17.6
* Add Support for nw.js 0.19.0-beta1

Full version (v1.4.1):
* Fix leaderboard: if player nickname is null, returns player name
* Change leaderboard: separator "," change to " &,& "
* Add expression getSeparatorValue (avoid to write the separator each time)
* Update Support for nw.js 0.18.3 to 0.18.5
* Update Support for nw.js 0.17.1 to 0.17.6
* Add Support for nw.js 0.19.0-beta1

Regards,
B
17
S
6
G
3
Posts: 42
Reputation: 2,282

Post » Mon Nov 07, 2016 5:19 pm

Thanks for the update!

I have a question regarding the Linux steamworks redistributable files - both the 32bit and 64bit files are named the same.

The quick start guide only tells me to be careful about this but doesn't tell me what to do. Should I add both files with the same name? Do I have to add the 32bit .so file, export, then delete it and add the 64bit .so file and export again?

edit - oops nevermind, I can just add these files after the export.. I was so focused on following the guide I totally forgot about it, sorry.

I have another question though - can I change my game's name to whatever or do I have to keep it "nw" like it is for the greenworks plugin?

Thanks once again!
B
124
S
43
G
41
Posts: 849
Reputation: 28,235

Post » Mon Nov 07, 2016 6:37 pm

The exe name must be nw.exe

Important note 1: on Windows the engine's executable file must have the name nw.exe for addons to work (i.e. you cannot rename nw.exe if you need any addon-containing modules). They use parts of the engine to sustain their execution.

(source: https://github.com/nwjs/nw.js/wiki/using-node-modules)
Image Image
B
25
S
14
G
137
Posts: 876
Reputation: 71,510

Post » Mon Nov 07, 2016 9:31 pm

I understand.. it's not a problem.

Just tested my game with nwjs 0.18.5 and everything is working just fine on linux/osx/windows. Controllers working fine in Windows, fullscreen working great on osx/linux, that arg to make the game run in only one process also is working just fine.

Thanks once again for this amazing plugin!
B
124
S
43
G
41
Posts: 849
Reputation: 28,235

Post » Tue Nov 08, 2016 10:19 pm

@andreyin , thank you.

*************

Quick news :
I'm working (and testing) on get steam stat by synch method instead of asynch
Edit: instead of waiting for triggers when you request the stat value, an expression returns the value
Image Image
B
25
S
14
G
137
Posts: 876
Reputation: 71,510

Post » Sun Nov 13, 2016 9:31 am

Hi,

first of all thanks for this amazing plugin!

I'm having a bit of an issue with the leaderboards though.

Updating the leaderboard with the method "Keep best score" works once, but then it doesn't update the score for that entry.
The method "Force update" always works, however this is not quite what I want, since the player should be listed always with his highest achieved score.
Am I missing something?

I'm using 18.5 nw / version 1.4.1. of your plugin, Construct 2 R239

Thanks in advance & cheers!
Image
B
18
S
6
G
1
Posts: 122
Reputation: 2,055

Post » Sun Nov 13, 2016 11:29 am

Hi,

Thank you.
The method "Keep best score" is related to the sort method of your leaderboard (ascending or descending)
When you use "Keep best score", Steam will compare the user's new score with his score already stored in the leaderboard, and keep the user's best score (the lowest score for leaderboards with an ascending sort order; the highest score for leaderboards with a descending sort order). eg: For highscore, use Descending.

Regards,
Image Image
B
25
S
14
G
137
Posts: 876
Reputation: 71,510

Post » Sun Nov 13, 2016 11:41 am

Hey, it was the sorting method (had it on Ascending). Works perfectly now, thanks!
Image
B
18
S
6
G
1
Posts: 122
Reputation: 2,055

Post » Sun Nov 13, 2016 3:58 pm

Colonel Justice wrote:Hey, it was the sorting method (had it on Ascending). Works perfectly now, thanks!

You're welcome
Image Image
B
25
S
14
G
137
Posts: 876
Reputation: 71,510

Post » Mon Nov 14, 2016 9:41 am

Hi all,

A new update is coming with the following (end of this week):

For basic and full version, how achievements work will change a bit:
- Triggers "on achievement activate success/error" will become "On any unlock achievement request success/error "
- New triggers "On unlock achievement request success/error" by achivement name will be created.

For full version:
Add expression "getSteamStatSynch"(by stat name) returns the stat value or a string with the error.
Note: The request action will be available too.
Action "Update Steam Stat" will be named "Set Steam Stat Value" and triggers for success/error too
A new action "Update Steam Stat" will be created; allow to add a value to an existing stat (with the related success/error triggers)

I was thinking about dropping support for NW12/15/16

As usual, feel free to :
- post and/or send me a PM about this.
- share the name or the steam page of your game (here or via PM)
- rate and review the plugin.

Regards,
Image Image
B
25
S
14
G
137
Posts: 876
Reputation: 71,510

PreviousNext

Return to Work in Progress Addons

Who is online

Users browsing this forum: No registered users and 1 guest