Nuggeta Extension: for multiplayer online games, Leaderboard, Chat and Inventory

SadiQ

  • Posts: 1788
Thank you very much, we were banging our heads to figure a way to implement leadboards in Android. Just applied for signup. waiting for your mail :)

If you need assistance after your account gets created let us know and we'll do our best to help. Unfortunately the signup process is on Nuggeta's end and there's nothing we can do about the time it takes to get an account accepted.
And MdotEdot's use of the word "Scoreboard" instead of "Leaderboard" in the topic's title was probably not the best choice either.
Proud member of the League of Idiotic Stencylers! Doing things in Stencyl that probably shouldn't be done.

mdotedot

  • Posts: 1569
And MdotEdot's use of the word "Scoreboard" instead of "Leaderboard" in the topic's title was probably not the best choice either.

Changed the title :)

Hanging out in the Chat:  http://www.stencyl.com/chat/

Proud member of the League of Idiotic Stencylers! Doing things in Stencyl that probably shouldn't be done.

mvmsaikrishna

  • Posts: 83
Update

My bad, I dint include the libraries.

If you need assistance after your account gets created let us know and we'll do our best to help. Unfortunately the signup process is on Nuggeta's end and there's nothing we can do about the time it takes to get an account accepted.
And MdotEdot's use of the word "Scoreboard" instead of "Leaderboard" in the topic's title was probably not the best choice either.

Thank you. I tried to implement Nuggeta Leaderboards, but I'm getting the following errors during compiling. Please see the screenshots of the error and implementation.

Ps: In the previous scene, I used Nuggeta: connect to address.

« Last Edit: May 28, 2014, 09:43:22 am by mvmsaikrishna »

mdotedot

  • Posts: 1569
Hello mvmsaikrishna,

Thank you for trying out the leaderboard.

"MyNuggeta class not found"

This looks like there is a problem in finding the extension.

1. Install the extension into this directory: stencylworks/engine-extensions/nuggeta
2. Download your game library from : http://developer.nuggeta.com
3. Put the library directory  "com"  in the nuggeta folder
4. Put your game name folder in the nuggeta folder

So you see something like this:
 MyNuggeta.hx
 READ-ME.txt
blocks.xml
 com <-- this is a directory/folder containing the nuggeta library
 icon.png
 include.nmml
 info.txt
 yourgame <-- this is a directory/folder containing your game downloaded from nuggeta

Hope this helps.

Best regards from
M.E.
Hanging out in the Chat:  http://www.stencyl.com/chat/

Proud member of the League of Idiotic Stencylers! Doing things in Stencyl that probably shouldn't be done.

mvmsaikrishna

  • Posts: 83
Hi mdotedot,

Thank you so much for your quick reply. Doing that solved the issue. (I updated the post infact).
Now, it is not posting the scores. Does it take  few hours before the Leadboards are accessible after creating them on Nuggeta's site?

mdotedot

  • Posts: 1569
OK, so if it is not failing compilation then you have to check your IDs and check the score on the Nuggeta developer website.
If you have downloaded the libraries you obviously have an account. When you have an account you should see the scores immediately.
My guess is that you didn't put the right ID(s) in Stencyl. Also, the fact that you have three IDs could well be working, but I don't think you created three leaderboards or did you?

Please turn on debugging by putting the   ] Nuggeta: Debug [on]  [  and copy paste the logviewer output for further inspection.

Best regards from
M.E.
Hanging out in the Chat:  http://www.stencyl.com/chat/

Proud member of the League of Idiotic Stencylers! Doing things in Stencyl that probably shouldn't be done.

sandsoftimer

  • Posts: 316
Third party login is working only on flash... what about mobile ? and where is friends list block.... did this implemented or not. Thanks.
iOS ->          

Android ->
iOS -> Bubble Tapping
 Android -> Bubble Tapping

SadiQ

  • Posts: 1788
Third party login should work on flash and iOS, but we haven't tested on android. As for the friends list...I'm still working on it. Slow process due to lack of time :(
If you REALLY need it and can't wait we could try to use code over PM's but it will still be a slow process on my end :(
Proud member of the League of Idiotic Stencylers! Doing things in Stencyl that probably shouldn't be done.

mvmsaikrishna

  • Posts: 83
Hi mdotedot,

The scores are posted successfully ( and yes, i turned on the debugger mode).
When I use the request leaderboard block ,  the score screen is not shown.  I'm guessing it should work like 'show leaderboard for lbID' in gamecentre for iOS.

Please help.

Log viewer:
[LOG] I/trace   ( 9800): MyNuggeta.hx:124: Nuggeta:  (Debug)[] [StartResponse --> _StartStatus=StartStatus.READY| _PlayerSessionType=PlayerSessionType.ANONYMOUS| _Player=[NPlayer --> _ID=140****************9| _Connected=true| _Lang=en_US| ]| ]
[LOG] I/trace   ( 9800): MyNuggeta.hx:124: Nuggeta:  (Debug)[] [GetLeaderboardResponse --> _MessageId=e****************2_1| _GetLeaderboardStatus=GetLeaderboardStatus.SUCCESS| _Leaderboard=[NLeaderboard --> _Id=HighScoreLB| _Name=High Score| _leaderboardEntries=NList| ]| ]


Ps: Find the screenshot

« Last Edit: May 29, 2014, 06:13:28 am by mvmsaikrishna »

mdotedot

  • Posts: 1569
Almost there Mvmsaikrishna,

You have to get the data from the request: https://googledrive.com/host/0B9mpX1WSL_poRU9nenZOd3BtblE/Nuggeta_Leaderboards/Nuggeta_Leaderboards.html
So in an update event check for the if .. response is [succes]  get leaderboard  <- this returns a list

Hope this helps

Best regards from
M.E.
Hanging out in the Chat:  http://www.stencyl.com/chat/

Proud member of the League of Idiotic Stencylers! Doing things in Stencyl that probably shouldn't be done.

mdotedot

  • Posts: 1569
Well the myLeaderboard is a stencyl attribute we made it to demonstrate the use of the block.
Create a list yourself with the name myLeaderboardlist and you can mimmic the code.
Hanging out in the Chat:  http://www.stencyl.com/chat/

Proud member of the League of Idiotic Stencylers! Doing things in Stencyl that probably shouldn't be done.

mvmsaikrishna

  • Posts: 83
well..im unbelievable, how dint it strike me !!
I'm sorry..and anyways thank you very much :)

snake13

  • Posts: 126
Wait, is this only for Turn-Based Games?????????????????????????????????????????????????????????????????????????????????????????
Ludum Dare Game: Connected Worlds
URL:http://www.stencyl.com/game/play/27958

mdotedot

  • Posts: 1569
Hello Snake13,

You could use the coordinate system in the Nuggeta Extension to send your actor movements to the rest of the players but Nuggeta made their infrastructure for HaXe for turn-based systems. You can send (raw) messages to the others but you cannot get frame-perfect - collision detection-perfect or any other real-time coordinates from the other systems.
Work around it or wait for a real-time coordinate system to be made by someone.

Best regards from
M.E.
Hanging out in the Chat:  http://www.stencyl.com/chat/

Proud member of the League of Idiotic Stencylers! Doing things in Stencyl that probably shouldn't be done.

mvmsaikrishna

  • Posts: 83
Hi mdotedot,

Thanks for the extension and your help in implementing it. Currently, I'm submitting the scores in the game and retrieving the top 20 scores and writing them on a scene. Is there any chance to show the player position/score (like the apple's game centre) ?