Olá, hoje fui tentar instalar o Stardew Valley por meio de um pacote .sh, a instalação correu tudo certo mas ao tentar abrir o executável do game é me dada a seguinte mensagem :
exception inside UnhandledException handler: The type initializer for ‘System.Console’ threw an exception.
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: The type initializer for ‘System.Console’ threw an exception. —> System.TypeInitializationException: The type initializer for ‘System.ConsoleDriver’ threw an exception. —> System.Exception: Magic number is wrong: 542
at System.TermInfoReader.ReadHeader (System.Byte[] buffer, System.Int32& position) <0x412a2920 + 0x00127> in :0
at System.TermInfoReader…ctor (System.String term, System.String filename) <0x412a2760 + 0x00127> in :0
at System.TermInfoDriver…ctor (System.String term) <0x412a16b0 + 0x00193> in :0
at System.ConsoleDriver.CreateTermInfoDriver (System.String term) <0x412a1670 + 0x00027> in :0
at System.ConsoleDriver…cctor () <0x412a1380 + 0x000a7> in :0
— End of inner exception stack trace —
at System.Console.SetupStreams (System.Text.Encoding inputEncoding, System.Text.Encoding outputEncoding) <0x412a0d30 + 0x00043> in :0
at System.Console…cctor () <0x412a0a40 + 0x00173> in :0
— End of inner exception stack trace —
at StardewValley.Game1.set_gameMode (Byte value) <0x412a3c30 + 0x00053> in :0
at StardewValley.Program.handleException (System.Object sender, System.UnhandledExceptionEventArgs args) <0x412a31f0 + 0x0006b> in :0
Olha, sou iniciante no OS por isso tive de pesquisar como saber a versão do DLS. Acredito que seja isso :
ii libsdl-image1.2:amd64 1.2.12-12 amd64 Image loading library for Simple DirectMedia Layer 1.2, libraries
ii libsdl1.2debian:amd64 1.2.15+dfsg2-5 amd64 Simple DirectMedia Layer
Pode ser que o programa tenha sido linkado contra uma biblioteca SDL com nome ligeiramente diferente. Eu não sei como você fez a instalação de uma versão “tapa-olho”, mas no Linux, nós conseguimos ver se alguma biblioteca está faltando usando o comando ldd contra o nome do programa. Se você informar o diretório em que o programa foi instalado, fica mais fácil para conduzir alguns testes.