1. virobeast

    virobeast Wood Hoarder Plugin Developer

    Download SteamCMD
    https://steamcdn-a.akamaihd.net/client/installer/steamcmd.zip

    Open SteamCMD
    type: login anonymous
    type: app_update 405100

    This will download it into the steamcmd directories
    \steamapps\common\Hurtworld Dedicated Server

    Edit host.bat
    Hurtworld.exe -batchmode -nographics -exec "host 12871;servername My Oxide Server;addadmin 7656XXXXXXXXXXXXX;maxplayers 50"
     
    Last edited by a moderator: Dec 14, 2015
  2. ReTuRn|Goma2spain.com

    ReTuRn|Goma2spain.com Naked Wanderer

    Hi , and thanks for the information... i got a problem ; When execute the batch whit :Hurtworld.exe -batchmode -nographics -exec "host 12871;queryport 12881;servername My server ;addadmin 7988989898955;maxplayers 150" -logfile "gamelog.txt" .

    it runs perfectly but soon the process is closed and do not know why....

    fail - oxidemod.org

    Can u help me please ? Thanks
     
  3. virobeast

    virobeast Wood Hoarder Plugin Developer

    Did you load the oxide mod on it ? or just vanilla ?
     
  4. AnExiledGod

    AnExiledGod Master Researcher Plugin Developer

    Try opening up autoexec.cfg in the main directory with Hurtworld.exe and remove the line that starts with quit. This should solve the issue.
     
  5. Wulf

    Wulf Community Admin Community Admin Oxide Developer

    I actually figured out why that was there. The server is actually started, but Oxide's console wasn't showing. It is fixed in Oxide snapshots.
     
  6. ReTuRn|Goma2spain.com

    ReTuRn|Goma2spain.com Naked Wanderer

    Thanks all !! Solved
     
  7. EnvyTheNoob

    EnvyTheNoob Scavenger

  8. Pretermit

    Pretermit Wood Hoarder Plugin Developer

    Now to only figure out the int that Tag requires to become official ;)
     
  9. Wulf

    Wulf Community Admin Community Admin Oxide Developer

    If you want a permaban. ;)
     
  10. EnvyTheNoob

    EnvyTheNoob Scavenger

    Lol, you are able to change your server name color to the official orange!
     
  11. Pretermit

    Pretermit Wood Hoarder Plugin Developer

    <color gold> @Envy <3

    Also if I set maxplayers over 50 , it seems to just show 60 max? I'm using hurtworldservers to check on the player count, so not sure if it's them or just a safety net by the devs.

    If I were to decompile the assembly.dll, change server config int32 maxplayers to say 100, would I get blacklisted?
     
    Last edited: Dec 7, 2015
  12. Truffle my butter

    Truffle my butter Naked Wanderer

    anyone else permissions not working? also this tut helped me :p
     
  13. EnvyTheNoob

    EnvyTheNoob Scavenger

    Did you add your profile ID as admin?
     
  14. Truffle my butter

    Truffle my butter Naked Wanderer

    yes, Trying to use kits and all but nothing seems to be working
     
  15. Wulf

    Wulf Community Admin Community Admin Oxide Developer

    You can't set the maxplayers via console while running as far as I know.

    If you find holes, they would get patched. ;)
    --- Double Post Merged, Dec 7, 2015 ---
    Permissions may not be fully working yet.
     
  16. Truffle my butter

    Truffle my butter Naked Wanderer

    I managed to figure it out, Doing addadmin in the console (the oxide console) doesn't work so just had to add it into the start.
     
  17. Wulf

    Wulf Community Admin Community Admin Oxide Developer

    I don't think the game actually stores admin anywhere, so using it by the console probably wouldn't work beyond the instance it was used on perhaps.
     
  18. Pretermit

    Pretermit Wood Hoarder Plugin Developer

    Code (Text):

    Debug.Log("Loaded autoexec.cfg")
        [...]
                        Singleton(Of ConsoleManager).Instance.ExecuteCommand(text3)
                    Catch ex_153 As Exception
                        Debug.LogError(String.Format("Error executing autoexec.cfg, line failed at '{0}'", text3))
       [...]
     
    Code (Text):

    ' GameManager
    Public Sub SetAdmin(newAdmin As CSteamID)
        Me._admins.Add(newAdmin)
    End Sub
     
    Code (Text):

    ' GameManager
    Private _admins As HashSet(Of CSteamID)
     
    Code (Text):

    ' GameManager
    Public Overrides Sub Awake()
        Me._gameState = EGameState.None
        Me._isLoading = False
        Me._sceneTime = 0
        Me._lastUpdate = NetworkTime.serverTime
    [...]
    End Sub
     
    Code (Text):

    addadmin <playerid> Adds a player as admin to the local server for the current session only
     
    Well I mean, all the -exec stuff is ran as a command on server boot, so there should be no issue adding an admin for that instance via console, but like Wulf said it does not save anywhere. You're better off just adding the admins into the autoexec. You can skip the -exec stuff and just put it all in the autoexec as well.


    ((Wulf if posting this code is not allowed just snip it out, not sure about it.))
     
    Last edited: Dec 7, 2015
  19. Wulf

    Wulf Community Admin Community Admin Oxide Developer

    You're fine. The autoexec.cfg was added shortly after the Steam release, which was not around when the .bat files were originally made.
     
  20. Pretermit

    Pretermit Wood Hoarder Plugin Developer

    Ah okay thanks!