Loading...
  OR  Zero-K Name:    Password:   

Doesn't start on Debian

6 posts, 436 views
Post comment
Filter:    Player:  
sort
3 years ago
Hey, long time since I could play Zero-K! ^^

I'm running Debian Testing. I downloaded the semi-portable installer, extracted to ~/ext/zk/, cd'd to it, and ran...

$ ./Zero-K_linux64
quote:

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) [0x0002b] in <8f2c484307284b51944a1a13a14c0266>:0
at System.TermInfoReader..ctor (System.String term, System.String filename) [0x00065] in <8f2c484307284b51944a1a13a14c0266>:0
at System.TermInfoDriver..ctor (System.String term) [0x00058] in <8f2c484307284b51944a1a13a14c0266>:0
at System.ConsoleDriver.CreateTermInfoDriver (System.String term) [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0
at System.ConsoleDriver..cctor () [0x00062] in <8f2c484307284b51944a1a13a14c0266>:0
--- End of inner exception stack trace ---
at System.Console.SetupStreams (System.Text.Encoding inputEncoding, System.Text.Encoding outputEncoding) [0x0000a] in <8f2c484307284b51944a1a13a14c0266>:0
at System.Console..cctor () [0x000a8] in <8f2c484307284b51944a1a13a14c0266>:0
--- End of inner exception stack trace ---
at System.Diagnostics.ConsoleTraceListener..ctor () [0x00000] in <bd46d4d4f7964dfa9beea098499ab597>:0
at (wrapper remoting-invoke-with-check) System.Diagnostics.ConsoleTraceListener:.ctor ()
at ChobbyLauncher.Program.Main (System.String[] args) [0x0002a] in <a6762436fde34b81aaef6d3dbec0723c>:0
[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) [0x0002b] in <8f2c484307284b51944a1a13a14c0266>:0
at System.TermInfoReader..ctor (System.String term, System.String filename) [0x00065] in <8f2c484307284b51944a1a13a14c0266>:0
at System.TermInfoDriver..ctor (System.String term) [0x00058] in <8f2c484307284b51944a1a13a14c0266>:0
at System.ConsoleDriver.CreateTermInfoDriver (System.String term) [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0
at System.ConsoleDriver..cctor () [0x00062] in <8f2c484307284b51944a1a13a14c0266>:0
--- End of inner exception stack trace ---
at System.Console.SetupStreams (System.Text.Encoding inputEncoding, System.Text.Encoding outputEncoding) [0x0000a] in <8f2c484307284b51944a1a13a14c0266>:0
at System.Console..cctor () [0x000a8] in <8f2c484307284b51944a1a13a14c0266>:0
--- End of inner exception stack trace ---
at System.Diagnostics.ConsoleTraceListener..ctor () [0x00000] in <bd46d4d4f7964dfa9beea098499ab597>:0
at (wrapper remoting-invoke-with-check) System.Diagnostics.ConsoleTraceListener:.ctor ()
at ChobbyLauncher.Program.Main (System.String[] args) [0x0002a] in <a6762436fde34b81aaef6d3dbec0723c>:0


I also tried -
$ ./Zero-K_linux64.sh
quote:

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) [0x0002b] in <8f2c484307284b51944a1a13a14c0266>:0
at System.TermInfoReader..ctor (System.String term, System.String filename) [0x00065] in <8f2c484307284b51944a1a13a14c0266>:0
at System.TermInfoDriver..ctor (System.String term) [0x00058] in <8f2c484307284b51944a1a13a14c0266>:0
at System.ConsoleDriver.CreateTermInfoDriver (System.String term) [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0
at System.ConsoleDriver..cctor () [0x00062] in <8f2c484307284b51944a1a13a14c0266>:0
--- End of inner exception stack trace ---
at System.Console.SetupStreams (System.Text.Encoding inputEncoding, System.Text.Encoding outputEncoding) [0x0000a] in <8f2c484307284b51944a1a13a14c0266>:0
at System.Console..cctor () [0x000a8] in <8f2c484307284b51944a1a13a14c0266>:0
--- End of inner exception stack trace ---
at System.Diagnostics.ConsoleTraceListener..ctor () [0x00000] in <bd46d4d4f7964dfa9beea098499ab597>:0
at (wrapper remoting-invoke-with-check) System.Diagnostics.ConsoleTraceListener:.ctor ()
at ChobbyLauncher.Program.Main (System.String[] args) [0x0002a] in <a6762436fde34b81aaef6d3dbec0723c>:0
[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) [0x0002b] in <8f2c484307284b51944a1a13a14c0266>:0
at System.TermInfoReader..ctor (System.String term, System.String filename) [0x00065] in <8f2c484307284b51944a1a13a14c0266>:0
at System.TermInfoDriver..ctor (System.String term) [0x00058] in <8f2c484307284b51944a1a13a14c0266>:0
at System.ConsoleDriver.CreateTermInfoDriver (System.String term) [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0
at System.ConsoleDriver..cctor () [0x00062] in <8f2c484307284b51944a1a13a14c0266>:0
--- End of inner exception stack trace ---
at System.Console.SetupStreams (System.Text.Encoding inputEncoding, System.Text.Encoding outputEncoding) [0x0000a] in <8f2c484307284b51944a1a13a14c0266>:0
at System.Console..cctor () [0x000a8] in <8f2c484307284b51944a1a13a14c0266>:0
--- End of inner exception stack trace ---
at System.Diagnostics.ConsoleTraceListener..ctor () [0x00000] in <bd46d4d4f7964dfa9beea098499ab597>:0
at (wrapper remoting-invoke-with-check) System.Diagnostics.ConsoleTraceListener:.ctor ()
at ChobbyLauncher.Program.Main (System.String[] args) [0x0002a] in <a6762436fde34b81aaef6d3dbec0723c>:0
+0 / -0
`export 'TERM=xterm' && ./Zero-K_linux64` should hopefully do the trick for you (if it doesn't, try changing your terminal manually).

I believe this is this issue, there is an incompatibility between the launcher and modern terminals: https://github.com/ZeroK-RTS/Chobby/issues/755 (the TERM workaround has been submitted in https://github.com/ZeroK-RTS/Zero-K-Infrastructure/pull/2794)

+0 / -0
quote:
I believe this is this issue, there is an incompatibility between the launcher and modern terminals

Setting any value to TERM env var tends to fix it. The issue is a bug in the specific version of mono used to produce the packaged launcher.

You can obtain a non-packaged version of the lobby here, and just launch it with mono, too.
+1 / -0
3 years ago
Thanks y'all, I was able to get it running with
quote:
TERM=xterm ./Zero-K_linux64
and played for a few days...until I ran into https://github.com/ZeroK-RTS/Zero-K/issues/3722 instead 😅
+1 / -0

3 years ago
try to use something more verbose then ZKLObby like flobby:
https://github.com/cleanrock/flobby
+0 / -0

3 years ago
have you tried to run Zero-K_linux64.sh, there are some lib linkings there
+0 / -0