• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

Fnawaz

Recruit
15 Badges
Sep 13, 2016
2
1
  • Cities in Motion 2
  • Cities: Skylines
  • Cities: Skylines Deluxe Edition
  • Magicka 2
  • Cities: Skylines - After Dark
  • Cities: Skylines - Snowfall
  • Cities: Skylines - Natural Disasters
  • Cities: Skylines - Mass Transit
  • Crusader Kings Complete
  • Surviving Mars
  • Age of Wonders III
  • Cities: Skylines - Green Cities
  • Cities: Skylines - Parklife
  • Cities: Skylines Industries
  • Cities: Skylines - Campus
My game crash everytime and the logs that I found with Skyve is about Discord, what's the problem here ?

Code:
[EXCEPTION] - [16:32:32,709] - (Player.log)
[Discord] [WARN]  Could not initialize Discord Discord.ResultException: InternalError
      at Discord.Discord..ctor (System.Int64 clientId, System.UInt64 flags)
      at Colossal.PSI.Discord.DiscordRichPresence.Initialize (System.Threading.CancellationToken token)
 
  • 1Like
Reactions:
There's no problem with Discord. Why not attach the entire log?
 
My game crash everytime and the logs that I found with Skyve is about Discord, what's the problem here ?

Code:
[EXCEPTION] - [16:32:32,709] - (Player.log)
[Discord] [WARN]  Could not initialize Discord Discord.ResultException: InternalError
      at Discord.Discord..ctor (System.Int64 clientId, System.UInt64 flags)
      at Colossal.PSI.Discord.DiscordRichPresence.Initialize (System.Threading.CancellationToken token)
Yep mine too and absolutely no help from anyone anywhere. Impossible to play the game.
 
I get the same error i just click it away..doesnt seem to effct gameplay..still would be nice to know what the errror message means - would it be possible to have some general error messages wiki? not the complicated ones but basic ones where we could go and see?
 
That error doesn't cause any harm.

It's created by the Discord plugin which shares additional information like population, city name and weather information with the Discord client if installed. When the client is not installed, running or this information cannot be shared for some reason that error is thrown.

However it doesn't cause anything else (no CTDs or anything).

As far as I'm aware the plugin belongs to the Discord Social SDK, so the error is not created by C:S2 and instead by their plugin and just logged in the general C:S2 log. --> https://discord.com/developers/docs/discord-social-sdk/development-guides/debugging-logging

Here is some documentation about how it is implemented:

Here is how it looks in my case on my Discord profile:
1743756876969.png


Some additional example code is also found here:

So: [Discord] [WARN] Could not initialize Discord Discord.ResultException: InternalError

[Discord] = the class or object used by C:S2 to call the Discord Unity plugin
[WARN] = warning level debugging entry, NOT error
"Could not initialize Discord" = custom text added by CO for debugging
Discord.ResultException: InternalError = result of trying to start the Discord plugin from within the Discord object.

The internal error in this case means the plugin itself somehow crashes whenever it cannot establish a connection to the Discord client. Could be resolved more elegant by checking in advance if the discord process is running instead of just trying to establish a connection straight away or by trying to catch that exception but as said also doesn't matter much.
 
Last edited:
  • 1Like
Reactions:
wow ..thank you very much- that information puts my mind at ease- really good to know , how do you know so much stuff..? are you a programmer?
Low level, maybe - I'm a QA engineer and studied informatics at one point. While I'm not that good at programming when it comes down to writing efficient code or to deal with C++ pointers to make fancy stuff I'm at least allowed to complain about bugs, to destroy software and to moan about things not working full time ;)

So reading log entries at least is something I do more regularly besides writing test scripts in C# for Ranorex or in Java for Selenium from time to time, the rest is using a preferred search engine.
 
  • 1Like
Reactions:
Low level, maybe - I'm a QA engineer and studied informatics at one point. While I'm not that good at programming when it comes down to writing efficient code or to deal with C++ pointers to make fancy stuff I'm at least allowed to complain about bugs, to destroy software and to moan about things not working full time ;)

So reading log entries at least is something I do more regularly besides writing test scripts in C# for Ranorex or in Java for Selenium from time to time, the rest is using a preferred search engine.
..impressive..im just a basic user :.not too good with code..great with kids and music :)..would it be possible to mesage you and ask for your opinion on some error messages ?..would be highly appreciated and I would not waste much of your time ...just a quick question now and again...if not no probs...thanks again for the pointer...greets
 
..impressive..im just a basic user :.not too good with code..great with kids and music :)..would it be possible to mesage you and ask for your opinion on some error messages ?..would be highly appreciated and I would not waste much of your time ...just a quick question now and again...if not no probs...thanks again for the pointer...greets

Being good with Kids is the more valuable feature ;)

Sure, if you see something strange feel free to message me, however I'm not active daily over here and on some log entries it might not be that clear what actually failed (usually when some mods crash it might be a more generic message). At least I may be able to provide some impression and/or hint.
 
..impressive..im just a basic user :.not too good with code..great with kids and music :)..would it be possible to mesage you and ask for your opinion on some error messages ?..would be highly appreciated and I would not waste much of your time ...just a quick question now and again...if not no probs...thanks again for the pointer...greets
Putting these questions in a public forum means that more people can benefit from seeing others' questions and answers.
 
  • 1Like
Reactions:
hi I managed to get rid of my error :).....had to re-intsall the Discord app- desktop version which i had previously uninstalled
read somewhere in this forum on how to do it- basically install discord if u dont have it - go into Activity Privacy and disable - Rich Presence
i did this and now no error message from discord :)
 

Attachments

  • disord eror in cs2.PNG
    disord eror in cs2.PNG
    452,6 KB · Views: 0