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

SadiQ

  • Posts: 1795
The same happens to me, which leads me to believe it could be a firewall issue on Nuggeta's end. I posted a message in their forums to let them know there is a possible problem.
Proud member of the League of Idiotic Stencylers! Doing things in Stencyl that probably shouldn't be done.

SadiQ

  • Posts: 1795
Apparently when the game was paused or the game is created for the first time you need to hit that Deploy Sandbox button for the game to become active on the Nuggeta website (I mentioned it somewhere but I forgot about it) :(
Proud member of the League of Idiotic Stencylers! Doing things in Stencyl that probably shouldn't be done.

FranAlt

  • Posts: 169
I did hit "Deploy Sandbox" several times but that didn't work for me... :'( However I re-installed Stencyl and Nuggeta, cleaned project and it started working, it connects, loads leaderboards, everything. I surely did something wrong at some point. Maybe its related to the fact that when I first installed Nuggeta the libraries where in a wrong place. Gracias por tu ayuda! :D
Swipe - FREE          Cloud Run - FREE              
                                  
         iOS                                Android
    Android

Max Finch

  • *
  • Posts: 2174
Will there be a more "Real Time" multiplayer option in the updates to come? The current multiplayer demo has too much lag and I would love to give my new iOS game multiplayer in the updates to come.

SadiQ

  • Posts: 1795
They might eventually add real-time communications to the haxe libraries but I don't think it's gonna happen too soon.
Proud member of the League of Idiotic Stencylers! Doing things in Stencyl that probably shouldn't be done.

Max Finch

  • *
  • Posts: 2174

Max Finch

  • *
  • Posts: 2174
I'm getting this error and I don't know what's going on :(

« Last Edit: August 14, 2014, 08:12:06 pm by Max Glockling Games »

mdotedot

  • Posts: 1654
Hello Max,

At least you could copy-paste the error!?!

Is it this:
Code: [Select]
stencyl.sw.util.StreamGobbler:  - Running command: haxe Export/android/haxe/release.hxml -D android -D android-9
2014-08-14 16:36:30,585 INFO  [Thread-22] stencyl.sw.util.StreamGobbler: /Users/maxglockling/stencylworks/engine-extensions/nuggeta/MyNuggeta.hx:498: characters 26-52 : com.nuggeta.ngdl.nobjects.NLeaderboardEntry has no field getPlayer (Suggestions: getPlayerId, setPlayerId)
2014-08-14 16:36:30,588 ERROR [Thread-22] stencyl.sw.io.write.resource.HXWriter: Error: ' com.nuggeta.ngdl.nobjects.NLeaderboardEntry has no field getPlayer (Suggestions' in Behavior: MyNuggeta
 at Line: 498
 Columns: 26-52
2014-08-14 16:36:30,613 ERROR [Util-CommandMonitor] stencyl.sw.io.write.resource.HXWriter: Building for Android failed. (Return code: 1)
2014-08-14 16:36:30,614 ERROR [AWT-EventQueue-0] root: Unexpected problem on thread Thread-22: null
java.lang.NullPointerException
at stencyl.sw.io.write.resource.HXWriter$HXError.toString(HXWriter.java:135)
at stencyl.sw.io.write.resource.HXWriter.checkErrors(HXWriter.java:2704)
at stencyl.sw.io.write.resource.HXWriter.parseForErrors(HXWriter.java:2645)
at stencyl.sw.io.write.resource.HXWriter$9.run(HXWriter.java:3422)
Source: 2014-08-14_16-36-09.log

My guess is that the Nuggeta Team changed the library code again. I can't confirm since I'm at work.
Did you download a new library?
If you did, hopefully you kept a previous version of the library and use that.
For the record: you don't need to download the library when you already had one. Re-downloading and putting the files into the extensions directory only makes sense if you want to use Nuggeta code in the extension code. I assume you don't want to change the HaXe code in the Extension and just use the blocks from the extension?!?

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

Max Finch

  • *
  • Posts: 2174
I don't really understand the log errors so I post the whole thing like a lot of other people do...

That looks like what's popping up though, I want to use blocks from the extension yes. I don't really understand what you're saying but I added my Nuggetta API into the extensions folder, that's what you're supposed to do right?

mdotedot

  • Posts: 1654
Yes you download the Nuggeta API library (com) directory into the extension directory. But you only need to do that once for the extension. Sometimes Nuggeta will send you a message that you have to re-deploy/download the API, but that is only when they changed the code or that the Nuggeta servers didn't receive communication from your game-id.

1. So if you never have downloaded the code we need to check if Nuggeta changed anything that conflicts with our code.
2. If you did have a previous working library: check if you have the old library code (com directory + your own gameid directory)

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.

SadiQ

  • Posts: 1795
They changed the API again. I get about 6 errors on my test game. I'll try to look into it as soon as I can.
Proud member of the League of Idiotic Stencylers! Doing things in Stencyl that probably shouldn't be done.

bonzero

  • Posts: 488
Has there been progress on fixing those bugs? I really want to give this extension a go while I still have a few days of holidays :) thanks SadiQ for making this great extension

SadiQ

  • Posts: 1795
If you only plan on using the leaderboard and achievements part try this one: http://community.stencyl.com/index.php/topic,34536.0.html

I haven't had time to look at this one yet but I believe MdotEdot has made some progress on it (unless I misunderstood him)
Proud member of the League of Idiotic Stencylers! Doing things in Stencyl that probably shouldn't be done.

mdotedot

  • Posts: 1654
Hey SadiQ / Rest,

The code can be compiled after the change but I don't have an example that uses the leaderboard so I can't test, but I assume that it should work.

The line should be changed into:
(Line 498)  var playername:String=leaderboardEntry.getPlayerName();
 
Best regards from
M.E.
Proud member of the League of Idiotic Stencylers! Doing things in Stencyl that probably shouldn't be done.

bonzero

  • Posts: 488
So is the leaderboard part included in this extension or do i have to use that other one? Are the leaderboards the same in both extensions? Mdotedot is that version that compiles ok uploaded somewhere to try? I might start by testing the leaderboards if i can help too