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

ErLuiSS

  • Posts: 125
with nuggeta can create games same as ogame? for example  you build a tower and need 2 mins for lvl 1, 2 hours for lvl 2 etc..
i think whit stencyl its impossible because if game is closed the time reset..

mdotedot

  • Posts: 1654
Hello ErLuiSS,

Yes, you can do database storage with Nuggeta. The term to look for is Inventory or Items.

This is an explanation of how the items / properties / inventory is used:
https://googledrive.com/host/0B9mpX1WSL_poRU9nenZOd3BtblE/Nuggeta_Items_Example/Nuggeta_Items_Example.html

The data is persistent which means that the data is available after you reconnect to the game.

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

amir82a

  • Posts: 16
Hi
Does it shows daily, weekly and all scores together  in a game?
I am trying show scores in scores scene!
I have 3 different Attributes to save daily, weekly and all scores in game and use to show them
but when I try to get them from leaderborad it does not works and just save all scores not daily and weekly!
I have used even 3 different leaderborad id for each one! but does not work too!
please check attachment and tell me what is problem?

SadiQ

  • Posts: 1795
Try NOT to request a leaderboard from inside the Always event, as that should only be called once.
Since you will request the leaderboard 3 times I'd use a temp attribute to check the number of times you receive that leaderboard. If temp is 0 you'd get the daily readerboard and you should increment temp, if temp is 1 you'd get weekly leaderboard and so on.
Proud member of the League of Idiotic Stencylers! Doing things in Stencyl that probably shouldn't be done.

SadiQ

  • Posts: 1795
@mdotedot: Found a possible bug with changing turns.
Code: [Select]
If <Nuggeta: It is my turn?>
     //useless code here
     Nuggeta: Change turn
When using the above code I can run my "useless code" more than once because MyNuggeta.myTurn gets set to false only when we receive a PlayerTurnNotification message.
To fix it, in my case, I had to add a line in the changeTurn function:
Code: [Select]
public static function changeTurn()
{
nuggetaPlug.nextPlayerTurn(gameId);
//immediately end the turn for the current player.
myTurn = false; //<---- I added this line
}

If you agree please update the extension.
I have the incomplete version 1.1 and I don't want to add unfinished things in there.
Proud member of the League of Idiotic Stencylers! Doing things in Stencyl that probably shouldn't be done.

mdotedot

  • Posts: 1654
There is now a new file under the link in the documentation page: Nuggeta_2016_06_18.zip

After each call to nextPlayerTurn the myTurn becomes false.

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

SadiQ

  • Posts: 1795
There is now a new file under the link in the documentation page: Nuggeta_2016_06_18.zip

Love how futuristic things look in that date you have :P
Thanks for the update mate.
Proud member of the League of Idiotic Stencylers! Doing things in Stencyl that probably shouldn't be done.

Joraanpe

  • Posts: 287
Wow this seems awesome, would it work for mobile games too?
Also i was checking the toturial on your website, looking forward for the next step of it!

SadiQ

  • Posts: 1795
So far it works on iOS, android and flash so you should have no problems with mobile games.
The next part of the tutorial should be done within this next week. Slow process due to lack of free time :(
Proud member of the League of Idiotic Stencylers! Doing things in Stencyl that probably shouldn't be done.

sandsoftimer

  • Posts: 316
So far it works on iOS, android and flash so you should have no problems with mobile games.
The next part of the tutorial should be done within this next week. Slow process due to lack of free time :(
But third party login is only working for flash, not for mobile. also still i can't get friend list to work with that. waiting for a update with solutions for above problems.
iOS ->          

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

SadiQ

  • Posts: 1795
But third party login is only working for flash, not for mobile. also still i can't get friend list to work with that. waiting for a update with solutions for above problems.

Could you try in the iOS simulator and check for the log messages when you try to login with thirdparty?
As for the friends list, you will only get that after you successfully logged in to fb or g+.

MdotEdot mentioned that the browser MAY open in the background when you try to login, so you'll have to hit the home button to view it. ThirdpartyLogin could also work if you're already logged in a social network, and you could check that with the log viewer and the simulator.
Unfortunately I can't test myself due to the Stencyl licence I have and the lack of a device :(
Proud member of the League of Idiotic Stencylers! Doing things in Stencyl that probably shouldn't be done.

sandsoftimer

  • Posts: 316
Could you try in the iOS simulator and check for the log messages when you try to login with thirdparty?
As for the friends list, you will only get that after you successfully logged in to fb or g+.

MdotEdot mentioned that the browser MAY open in the background when you try to login, so you'll have to hit the home button to view it. ThirdpartyLogin could also work if you're already logged in a social network, and you could check that with the log viewer and the simulator.
Unfortunately I can't test myself due to the Stencyl licence I have and the lack of a device :(

Ok i will let you know about my experiment on that.... i didn't try this in the simulator.....but tried on actual device but nothing got helpful.
iOS ->          

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

LePoulpe

  • Posts: 181
Hi
I try to save all player's data on nuggeta to synchronize data between iPhone and iPad  for the same player.
I managed this by using the block :  "set property name ... with value .... "
In set property name, I put the game center ID of player (which is a unique player identifier string).
With the game center ID, I can request the same property of the player between iPhone/iPad.

But I don't see any player's data on nuggeta website ?
Is the set property block corresponds to savePlayerProfile   ?
How can we access to saveStorable ?

Thanks

« Last Edit: June 26, 2014, 02:13:09 pm by LePoulpe »

mdotedot

  • Posts: 1654
Hello LePoulpe,

We have worked with the Nuggeta Team to store properties without having to create them on the Nuggeta Developers Page.
Usually you first have to create properties on the nuggeta environment and store the class in the nuggeta environment, download the library from nuggeta and put the library into the extension folder. And then you have to adjust the extension source file to address it.
This route was so user-unfriendly that we decided that we do the Item generation completely dynamic and therefore you can't see them in the nuggeta pages as they aren't created in that user interface.

We didn't made a block for savePlayerProfile.
We use the saveStorable to store the Items that are created dynamically. You can access all items of all games with the [request property list] and [get property list]  blocks.

Be adviced that properties only work with DISCONNECTED type games (you do that on the developer page as a setting of the game) as they have to be persistent to have any use.



Hope this helps.

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

LePoulpe

  • Posts: 181
Ok, I understand better now.
The set property block corresponds to saveStorable and not to savePlayerProfile.
I didn't undestand when I tried multiples times to create custom storables on the nuggeta environment, store class and download the library,  why I didn't see the storables objects in the developer site in data section.
Indeed it's more user-friendly to create item generation completely dynamic.

So there is no way to browse storables objects from the developer site ?
Even if we create them before in the user interface (in Game model definition > New dynamic object) ?

Thanks mdotedot