Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zero-K can't use libcurl4 #2430

Closed
Oflameo opened this issue Oct 21, 2018 · 5 comments
Closed

Zero-K can't use libcurl4 #2430

Oflameo opened this issue Oct 21, 2018 · 5 comments

Comments

@Oflameo
Copy link

Oflameo commented Oct 21, 2018

Selecting previously unselected package zero-k.
(Reading database ... 146719 files and directories currently installed.)
Preparing to unpack zero-k.deb ...
Unpacking zero-k (1.0-7) ...
dpkg: zero-k: dependency problems, but configuring anyway as you requested:
 zero-k depends on libcurl3; however:
  Package libcurl3 is not installed.


--2018-10-21 08:51:50--  https://zero-k.info/lobby/Chobby.exe
Resolving zero-k.info (zero-k.info)... 37.59.49.101
Connecting to zero-k.info (zero-k.info)|37.59.49.101|:443... connected.
HTTP request sent, awaiting response... 304 Not Modified
File ‘Chobby.exe’ not modified on server. Omitting download.


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) [0x0002d] in <780b851811e34ba8b86f59a244475f4d>: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) [0x0002d] in <780b851811e34ba8b86f59a244475f4d>:0```

It is a problem because libcurl3 conflicts with libcurl4 when installed and breaks other apps.
@Licho1
Copy link
Member

Licho1 commented Oct 22, 2018

Store libcurl locally?

@Oflameo
Copy link
Author

Oflameo commented Oct 27, 2018

I tried using dpkg-deb to change the dependencies in the control file to be libcurl4 as described by adobe/brackets#14171. I learned a new tool, but I got the same error. I need to figure out how to compile and link in a libcurl3.

@Oflameo
Copy link
Author

Oflameo commented Oct 27, 2018

I went and installed libcurl3 with the default zero-k deb as a control test, and it still didn't work. I need my Zero-K fix soon.

@Oflameo
Copy link
Author

Oflameo commented Oct 27, 2018

Zero-K is libcurl4 compatible. My problem was with mono. Here was the fix. https://stackoverflow.com/questions/49242075/mono-bug-magic-number-is-wrong-542. I'll send a patch in to fix the deb package's control file this weekend.

@Oflameo
Copy link
Author

Oflameo commented Oct 27, 2018

Starting the game with the game launcher currently works.

@Oflameo Oflameo closed this as completed Oct 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants