Kaioru / Edelstein

A v.95.1 Mushroom game server emulator written in C# .NET
MIT License
112 stars 28 forks source link

Crash on login with new char #7

Closed Bia10 closed 5 years ago

Bia10 commented 5 years ago

Hello, i have just compiled Edelstein on Win7 64x setup the path for nx/scripts and then tried to login via v95localhost i found on ragezone. Compilation went ok, however the client crashes on login. Theres no exception being thrown in VS. Heres the screen: crash

btw why is the console formatted so messy o.o?

Kaioru commented 5 years ago

Hey hey, thanks for checking out Edelstein!

  1. It might be a client issue, I'll send you the client I'm using atm on Discord.
  2. If I'm not wrong it might be because ANSI Color Codes might not be supported in your environment. The Serilog theme it is using by default is: 'Serilog.Sinks.SystemConsole.Themes.AnsiConsoleTheme::Code'

An alternative is changing appsettings.json 'Serilog' option to:

"Serilog": {
    "MinimumLevel": "Information",
    "WriteTo": [
      {
        "Name": "Console",
        "Args": {
          "theme": "Serilog.Sinks.SystemConsole.Themes.ConsoleTheme::None, Serilog.Sinks.Console"
        }
      }
    ]
  }

Which will remove any theming for the logs.

Feel free to contact me on Discord or on here for further questions!

Bia10 commented 5 years ago

Hi there,

the client you sent me solved the crashing.. however there are certain rules for autoregister if you fail them it throws useless maple-client error login not found. We should write these down somewhere.

Secondly for the console i dunno why but it seems i am unable to use AnsiConsoleThemes but i can use SystemConsoleThemes. i have changed the serilog settings to

serrilog

and things looks fine now

cnsole