discord / discord-api-docs

Official Discord API Documentation
https://discord.com/developers/docs/intro
Other
5.92k stars 1.25k forks source link

InvalidCastException while trying to run the Developer Portal examples (Game SDK/Unity) #923

Closed srylain closed 5 years ago

srylain commented 5 years ago

InvalidCastException: Specified cast is not valid. Discord.LobbyTransaction.get_Methods () (at Assets/DiscordGameSDK/Core.cs:461) Discord.LobbyTransaction.SetCapacity (System.UInt32 capacity) (at Assets/DiscordGameSDK/Core.cs:493)

This is from trying to just set the lobby capacity, although setting other values like the lobby metadata gives the same InvalidCastException results.

return (FFIMethods)MethodsStructure;

This is the line that errors out.

msciotti commented 5 years ago

Hey @srylain! Sorry you hit this error; we actually fixed it in the newest SDK release. You can get the latest version—2.5.3—here:

https://dl-game-sdk.discordapp.net/2.5.3/discord_game_sdk.zip

srylain commented 5 years ago

Very nice, thank you.