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

ErLuiSS

  • Posts: 125
want to see scores on mobiles,  when im work on stencyl to create the game (flash) the scores work but if i export to android the game draw "null" because its not publish on nuggeta, when i publish the game on nuggeta i can see scores on android but i cant send scores and if i create a new leaderboard dont show the scores too, i guess its because on nuggeta is still not approved.

when nuggeta approved my game  i comment :) and yes  i speak spanish (sorry for my bad english :D)

SadiQ

  • Posts: 1778
Make sure you use all the options from the "If leaderboard response is []" block to see exactly what the response message is.
And you can post your message in both languages here (I speak some spanish as well.)
Proud member of the League of Idiotic Stencylers! Doing things in Stencyl that probably shouldn't be done.

ErLuiSS

  • Posts: 125
look image, need draw any numer (1,2,3,4,5) but dont draw nothing, i think is because nuggeta have my game on "Version 1   Production - Awaiting validation"  when nuggeta validate my game may work leaderboard :D

thanks! :)

mira en la imagen.. tendria que dibujarse algun numero 1,2,3,4,5 pero no dibuja ninguno.. sigo pensando que es porque nuggeta tiene  mi juego en "Version 1   Production - Awaiting validation" hasta que no lo valide puede que no funcione.

Gracias!

SadiQ

  • Posts: 1778
What's happening is this:
--You're using the Leaderboard Response inside the drawing event and on every frame your game checks what is the leaderboard response message you get from the server.
--The problem is that you only receive that message ONCE so your game will only draw the number 1 for the duration of 1 frame, and then it won't draw anything because you won't receive the server message in the second frame.

To get over your problem use the Always event and use attributes for the scores.
Your game will work anywhere, so you're not forced to publish it on the Nuggeta website if you don't want to (but it would be nice to have a Stencyl game in there)
Proud member of the League of Idiotic Stencylers! Doing things in Stencyl that probably shouldn't be done.

ErLuiSS

  • Posts: 125
Thanks! the problem is for my code no from nuggeta.  the leaderboard work good! the fault is:

i open the game, go to the scene "leaderboard", the leaderboard is load correctly, press button "back" and go to menu and if now i want see scores again on "leaderboard" the leaderboar dont load.. only can load 1 time :/

EDIT: only work if i go from "menu" to "leaderboard" and now press back, go to menu and again press on leaderboard, dont work if i go to "play" scene

« Last Edit: April 23, 2014, 10:18:36 am by ErLuiSS »

SadiQ

  • Posts: 1778
Can you show the relevant code?
Proud member of the League of Idiotic Stencylers! Doing things in Stencyl that probably shouldn't be done.

ErLuiSS

  • Posts: 125
I think I fixed it.. i just move the code to load leaderboard from "when created" to "always" and work good :D,

the problem now is if the code is on "always" will use more data(internet) on mobiles?

SadiQ

  • Posts: 1778
Only if you use the Request Leaderboard with ID block. NEVER use that block inside the Always event without it being behind a boolean attribute.
To be sure, post a screenshot of your behavior.
Proud member of the League of Idiotic Stencylers! Doing things in Stencyl that probably shouldn't be done.

ErLuiSS

  • Posts: 125
this is my code for leaderboard.

thanks for the help! :)

SadiQ

  • Posts: 1778
Things are ok there. You're checking the response inside the always event, and you're requesting ONLY ONCE, which is how things should be done.
Proud member of the League of Idiotic Stencylers! Doing things in Stencyl that probably shouldn't be done.

MyChairHasALooIn

  • Posts: 310
Without wanting to completely clog up your thread, what can this extension do?

Can I have players create a game for other players to join? (lobby system in-game)
Can I have multiple (more than two) players in one game?
Would asynchronous multipayer work? (IE player army fights another offline players army that was saved online)
Basically how complex can the nuggeta end get?

Also love you guys :)

mdotedot

  • Posts: 1551
Hello MyChairHasLooin,

Thank you for your interest.

Lobby system : Check out rooms example

More than two players : Check the same page for coordinates and start 4 sessions and see for yourself (YES)

Asynchronous : Not really done, but you can take a look at the inventory system where you can store persistent values to be viewed/used later.

Complex: As complex as you want to make it but no real-life multi-player. So no real life coordinates, frame perfect or whatever you want to call it.

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
i am loving it.....
iOS ->          

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

SadiQ

  • Posts: 1778
i am loving it.....
Let us know if you make a game with it :)
Proud member of the League of Idiotic Stencylers! Doing things in Stencyl that probably shouldn't be done.

mvmsaikrishna

  • Posts: 83
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 :)