gamesdk-and-dispatch icon indicating copy to clipboard operation
gamesdk-and-dispatch copied to clipboard

GameSDK crashing unity project

Open chowder908 opened this issue 5 years ago • 3 comments

I don't know what is causing the crash as there is not crash log the DiscordController script when I assign it to the camera or any entity really when I go to build and run the game opens then instantly closes with no error to report in sight. Removing the script game runs fine and I've even tried the template from the example it still crashes.

chowder908 avatar Mar 18 '21 06:03 chowder908

Without code from DiscordController, we cannot deduce it is something wrong with your code syntax. Are you statically creating the SDK and calling it from a Mono Script then exposing the rest of the functions to the rest of your scripts?

Jump-Suit avatar Mar 21 '21 16:03 Jump-Suit

Without code from DiscordController, we cannot deduce it is something wrong with your code syntax. Are you statically creating the SDK and calling it from a Mono Script then exposing the rest of the functions to the rest of your scripts?

It's literally the script from the template on the Development page of discord. It says to attach it to the camera in the tutorial which is what I've done after compiling the game instantly closes, when the script is attached to something. There's no errors given from the script or unity itself.

chowder908 avatar Mar 21 '21 22:03 chowder908

Did you expect the user to always have Discord open? If not, try looking into the Discord.CreateFlags.NoRequireDiscord flag.

aDu avatar Nov 22 '21 16:11 aDu