Guad / GTACoop

An online co-op modification for GTA5
GNU General Public License v3.0
81 stars 71 forks source link

Running Server under Linux #50

Open fabilau opened 8 years ago

fabilau commented 8 years ago

Hello dear Community,

I tried to run the Server under my Linux System. After adding all needed dll files:

AdminTools.dll kernel32.dll Lidgren.Network.dll Microsoft.CSharp.dll mscorlib.dll NativeUI.dll Newtonsoft.Json.dll protobuf-net.dll ScriptHookVDotNet.dll System.dll user32.dll

My Server shows still an error:

Unhandled Exception:
System.UriFormatException: Invalid URI: The format of the URI could not be determined.
  at System.Uri.Parse () <0x40fe8fa0 + 0x0042f> in <filename unknown>:0
  at System.Uri..ctor (System.String uriString, Boolean dontEscape) <0x40fe8be0 + 0x00212> in <filename unknown>:0
  at System.Uri..ctor (System.String uriString) <0x40fe8bb0 + 0x00013> in <filename unknown>:0
  at (wrapper remoting-invoke-with-check) System.Uri:.ctor (string)
  at System.Configuration.DefaultConfigurationSystem.get_AppConfigPath () <0x40fe8620 + 0x0011f> in <filename unknown>:0
  at System.Configuration.DefaultConfigurationSystem.System.Configuration.IConfigurationSystem.Init () <0x40fe8120 + 0x00047> in <filename unknown>:0
  at System.Configuration.ConfigurationSettings.SetConfigurationSystem (IConfigurationSystem configSystem) <0x40fe8020 + 0x00063> in <filename unknown>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.UriFormatException: Invalid URI: The format of the URI could not be determined.
  at System.Uri.Parse () <0x40fe8fa0 + 0x0042f> in <filename unknown>:0
  at System.Uri..ctor (System.String uriString, Boolean dontEscape) <0x40fe8be0 + 0x00212> in <filename unknown>:0
  at System.Uri..ctor (System.String uriString) <0x40fe8bb0 + 0x00013> in <filename unknown>:0
  at (wrapper remoting-invoke-with-check) System.Uri:.ctor (string)
  at System.Configuration.DefaultConfigurationSystem.get_AppConfigPath () <0x40fe8620 + 0x0011f> in <filename unknown>:0
  at System.Configuration.DefaultConfigurationSystem.System.Configuration.IConfigurationSystem.Init () <0x40fe8120 + 0x00047> in <filename unknown>:0
  at System.Configuration.ConfigurationSettings.SetConfigurationSystem (IConfigurationSystem configSystem) <0x40fe8020 + 0x00063> in <filename unknown>:0

I hope you can help me!

Thanks in advance,

Guad commented 8 years ago

Check your configuration file. Make sure you're running mono that you compiled from source

fabilau commented 8 years ago

@Guad Hey, thanks for the fast reply!

Which configuration file do you mean? Tried running the Server with Mono and also only by using ./GTAServer.exe, both had the same exception.

Guad commented 8 years ago

The xml file that came with the server.

fabilau commented 8 years ago

@Guad So the following xml files are in my directory:

Accounts.xml Banlist.xml Settings.xml

How to proceed now? / What do you mean with check them? (Sorry for asking that much..)

Settings.xml contents:

<?xml version="1.0"?>
<ServerSettings xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Name>Simple GTA Server</Name>
  <MaxPlayers>16</MaxPlayers>
  <Port>4499</Port>
  <PasswordProtected>false</PasswordProtected>
  <Password>changeme</Password>
  <Announce>true</Announce>
  <MasterServer>http://46.101.1.92/</MasterServer>
  <AllowDisplayNames>true</AllowDisplayNames>
  <Gamemode>freeroam</Gamemode>
  <Filterscripts>
    <string />
  </Filterscripts>
</ServerSettings>

Banlist.xml contents:

<?xml version="1.0"?>
<Banlist xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <BannedIps />
</Banlist>

Accounts.xml contents:

<?xml version="1.0"?>
<UserList xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Accounts />
</UserList>
fabilau commented 8 years ago

@Guad Any ideas?

Guad commented 8 years ago

Did you build mono from source?

fabilau commented 8 years ago

@Guad installed it with 'sudo apt-get install mono-complete'

Guad commented 8 years ago

You have to compile it from github.

fabilau commented 8 years ago

@Guad ah ok, I'll try that! Thanks :-)

fabilau commented 8 years ago

@Guad Error still occures.. Even after installing the git version & monodevelop.

treboR-0 commented 8 years ago

Someone should write a complete how to set this up on linux guide for non-linux operators to save huge bucks when hosting a server