1. alukar

    alukar Scavenger

    Hi all i get bug
    My main server IP is ..254.33.
    My additional ip is ..254.170 and when i start server on additional ..254.170 query port start on main ip ..254.33

    c:\Gusers\127\...254.170-28050>hurtworld.exe -batchmode -nograp
    hics -exec "servername Alkad Game Host ;bindip ...254.170;host 28050 diemens
    land;playerlootmode 2;queryport 28051 ;maxplayers 60 ;enforceeac 1" -l
    ogfile "gamelog.txt"
     
  2. q1LLa

    q1LLa Wood Hoarder

    I had the same problem, but I was not able to solve it :(
     
  3. alukar

    alukar Scavenger

    @cowtrix we finde how to fix this problem :

    Type: SteamworksManagerClient
    Method: InitializeServer
    Line: 1

    from

    this.InitializedServer = GameServer.Init(0, 0xded, (ushort) Singleton<GameManager>.Instance.ServerConfig.Port, (ushort) Singleton<GameManager>.Instance.ServerConfig.MasterServerPort, EServerMode.eServerModeAuthenticationAndSecure, 0x2d.ToString());

    to

    uint ipAddress = 0;
    if (!string.IsNullOrEmpty(Singleton<GameManager>.Instance.ServerConfig.BoundIP))
    {
    byte[] addressBytes = IPAddress.Parse(Singleton<GameManager>.Instance.ServerConfig.BoundIP).GetAddressBytes();
    ipAddress = (uint) (addressBytes[0] << 0x18);
    ipAddress += (uint) (addressBytes[1] << 0x10);
    ipAddress += (uint) (addressBytes[2] << 8);
    ipAddress += addressBytes[3];
    }

    this.InitializedServer = GameServer.Init(ipAddress, 0xded, (ushort) Singleton<GameManager>.Instance.ServerConfig.Port, (ushort) Singleton<GameManager>.Instance.ServerConfig.MasterServerPort, EServerMode.eServerModeAuthenticationAndSecure, 0x2d.ToString());
     
    q1LLa likes this.
  4. alukar

    alukar Scavenger

    may be some one from oxide team can fix this problem ??
     
  5. Wulf

    Wulf Community Admin Community Admin Oxide Developer

    I passed it along to the Hurtworld devs, it's really something they should handle.
     
  6. !Dark!

    !Dark! Naked Wanderer

    I had the same problem. Known whether it will be fixed?
     
  7. Speno

    Speno Wood Hoarder

    Just committed a patch for this, it will go out in the next update.
     
    Wulf and sjsoft like this.
  8. alukar

    alukar Scavenger

    @cowtrix @Wulf it not work yet (((

    if add bindip in command line i get error
    Code (Text):

    SteamAPI_GameServer.Init() failed.

    (Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)

    Closing network connections...

    (Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)

    Abort running Threads: 1

    (Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)

    Setting up 6 worker threads for Enlighten.
    Thread -> id: 8aa4 -> priority: 1
    Thread -> id: e04c -> priority: 1
    Thread -> id: 460c -> priority: 1
    Thread -> id: d720 -> priority: 1
    Thread -> id: 940 -> priority: 1
    Thread -> id: 12250 -> priority: 1
    Unloaded all mods
     
    !Dark! likes this.
  9. alukar

    alukar Scavenger

    !Dark! likes this.