Getting this error in the browser console after building the game. Im using NGIO for Unity and it all works perfectly in the Unity Editor, so I'm not sure what to do
Just tried to build the game with compression format disabled, still getting this error
Everything worked good in the Unity Editor, but when I built it out and previewed the game, I get this error in the web console and the game is stuck waiting for the version. The version number is the same between the NGIO.Init() method and the version on Newgrounds. Could this error be caused by the compression format in the player settings?
At 9/26/23 07:14 PM, orbitz wrote:At 9/26/23 12:39 AM, DevGio wrote: I have a class which is supposed to call the NGIO.Init() method in a preload scene before the game scene, and a Score class which loads high score data in the game scene. I am getting an error however, telling me that I cant use GetSaveSlot() without setting preloadSaveSlots option to true, however I do have it set to true, in fact I have all the options set to true like how it shows in the github docsI believe you need to call NGIO.openLoginPage() to open the passport login page before you can use any of the methods
Could this be because I have to add Unity as an app with axis?
Do I need to have a valid user session to use these methods? If so, how do I "Pull a session ID from the Newgrounds API" as it says in the github docs?
(At least I was having that same message in construct)
You could try joining the newgrounds.io discord as mentioned in the wiki, and search the chat
Yeah, I downloaded the example project, and I tried using NGIO.OpenLoginPage() before, and it didnt work, but I think thats because I didn't include NGIO.KeepSessionAlive() in the Update method, because adding this in allowed me to actually use the OpenLoginPage method
I have a class which is supposed to call the NGIO.Init() method in a preload scene before the game scene, and a Score class which loads high score data in the game scene. I am getting an error however, telling me that I cant use GetSaveSlot() without setting preloadSaveSlots option to true, however I do have it set to true, in fact I have all the options set to true like how it shows in the github docs
// Set up the options for NGIO. var options = new Dictionary<string,object>() { { "version", "1.0.0" }, { "checkHostLicense", true }, { "autoLogNewView", true }, { "preloadMedals", true }, { "preloadScoreBoards", true }, { "preloadSaveSlots", true } };
Could this be because I have to add Unity as an app with axis?
Do I need to have a valid user session to use these methods? If so, how do I "Pull a session ID from the Newgrounds API" as it says in the github docs?