discord / gamesdk-and-dispatch

Public issue tracker for the Discord Game SDK and Dispatch
22 stars 7 forks source link

GameSDK crashing unity project #117

Open chowder908 opened 3 years ago

chowder908 commented 3 years ago

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.

Jump-Suit commented 3 years ago

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?

chowder908 commented 3 years ago

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.

aDu commented 2 years ago

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