Solved Change map name on start

Discussion in 'Rust Development' started by [X] Meep, Jun 24, 2015.

  1. Code:
    class MapNameHack:
        def On_ServerInit(self):
            Steamworks.SteamGameServer.SetMapName(MapName)
    I found this as a sauerkraut plugin - How can this be loaded for Oxide?
     
  2. Wulf

    Wulf Community Admin

    I'm not sure why you'd want to change that, but this snippet should work:
    Code:
    function PLUGIN:OnServerInitialized()
        Steamworks.SteamGameServer.SetMapName("Map name")
    end
     
  3. This just goes into a .py file and the server should load it?
     
  4. Wulf

    Wulf Community Admin

    No, that's a Lua code snippet, the full plugin would be like the below attachment. I haven't tested it though. I'm still not sure what you'd need this for though.
     

    Attached Files:

  5. You have helped me achieve my life goals.