On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

NeuroVoider

Futuristic twin-stick shooter RPG with tons of loot and procedural content. · By Flying Oak Games, nosifone

[SOLVED] Crashes right away under Archlinux

A topic by zikzak created Dec 09, 2021 Views: 480 Replies: 5
Viewing posts 1 to 4
(1 edit)

Here is my result with ./Neurovoider:

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) [0x00028] in <65984520577646ec9044386ec4a7b3dd>:0
  at System.TermInfoReader..ctor (System.String term, System.String filename) [0x0005f] in <65984520577646ec9044386ec4a7b3dd>:0
  at System.TermInfoDriver..ctor (System.String term) [0x00055] in <65984520577646ec9044386ec4a7b3dd>:0
  at System.ConsoleDriver.CreateTermInfoDriver (System.String term) [0x00000] in <65984520577646ec9044386ec4a7b3dd>:0
  at System.ConsoleDriver..cctor () [0x0004d] in <65984520577646ec9044386ec4a7b3dd>:0
   --- End of inner exception stack trace ---

  at System.Console.SetupStreams (System.Text.Encoding inputEncoding, System.Text.Encoding outputEncoding) [0x00007] in <65984520577646ec9044386ec4a7b3dd>:0
  at System.Console..cctor () [0x0008e] in <65984520577646ec9044386ec4a7b3dd>:0
   --- End of inner exception stack trace ---

  at NeuroVoider.Helper.SteamworksHelper.Init () [0x00061] in <c0acd5185deb4704b8a10ba54b1870fc>:0
  at NeuroVoider.Program.Main (System.String[] args) [0x0000c] in <c0acd5185deb4704b8a10ba54b1870fc>: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) [0x00028] in <65984520577646ec9044386ec4a7b3dd>:0
  at System.TermInfoReader..ctor (System.String term, System.String filename) [0x0005f] in <65984520577646ec9044386ec4a7b3dd>:0
  at System.TermInfoDriver..ctor (System.String term) [0x00055] in <65984520577646ec9044386ec4a7b3dd>:0
  at System.ConsoleDriver.CreateTermInfoDriver (System.String term) [0x00000] in <65984520577646ec9044386ec4a7b3dd>:0
  at System.ConsoleDriver..cctor () [0x0004d] in <65984520577646ec9044386ec4a7b3dd>:0
   --- End of inner exception stack trace ---

  at System.Console.SetupStreams (System.Text.Encoding inputEncoding, System.Text.Encoding outputEncoding) [0x00007] in <65984520577646ec9044386ec4a7b3dd>:0
  at System.Console..cctor () [0x0008e] in <65984520577646ec9044386ec4a7b3dd>:0
   --- End of inner exception stack trace ---

  at NeuroVoider.Helper.SteamworksHelper.Init () [0x00061] in <c0acd5185deb4704b8a10ba54b1870fc>:0
  at NeuroVoider.Program.Main (System.String[] args) [0x0000c] in <c0acd5185deb4704b8a10ba54b1870fc>:0

hi, seems to be an old mono problem.

try add environment variable TERM=xterm as workaround.

Indeed... see https://github.com/mono/mono/issues/6752 for more info.

As suggested by Iglu47, simply run the game with: TERM=xterm ./NeuroVoider

(1 edit)

Thanks!

It works perfectly and so it is only a matter of modifying the launch script at lines 31 and 33, right?

else
if [ "$ARCH" == "x86_64" ]; then
TERM=xterm    ./NeuroVoider.bin.x86_64 $@
else
TERM=xterm    ./NeuroVoider.bin.x86 $@
fi
fi
(+1)

Should work.

Or:

else
    TERM=xterm
    if [ "$ARCH" == "x86_64" ]; then
        ./NeuroVoider.bin.x86_64 $@
    else
        ./NeuroVoider.bin.x86 $@
    fi
fi 

Ah yeah! More elegant!

The script could use a simple patch then.