Downloading the dedicated server
To get started we need to go download SteamCMD, this is basically a Console Client for Steam that allows us to install and update the dedicated server files using a command-line interface. Just download SteamCMD and extract the contents of the zip file to a folder. Once you've done that run SteamCMD and you'll notice that it will start downloading an update, this is just all the required files for SteamCMD to work that are being downloaded and installed. Once this is ready you should be able to access the command-line.
Once you're in the Steam prompt we start with logging in as Anonymous by just typing login anonymous, once you've done that you'll see a connecting message and licence info message popping up, after that the Steam> prompt re-appears.
Now we'll set the directory where we want to install our Rust Server by using force_install_dir <path>, now that we have done this we can start downloading the Rust Server files by running the following command: app_update 258550
Be a bit patient now since this takes a few minutes depending on your internet connection.
Once this has finished you will notice that all the dedicated server files have been downloaded to the specified path you used in the command force_install_dir earlier.
Basic install/update script
Adding Oxide 2 to the serverCode:@steamcmd +login anonymous +app_update 258550 validate +quit pause
Download the latest Oxide 2 build that is compatible with your server version first. Once you've downloaded the latest build, extract it to the folder where RustDedicated.exe is located and overwrite when prompted. This will add the required Oxide 2 files and the modified Rust files which will load Oxide 2.
Starting the server
Now comes the easy part, starting the server. Start by creating a file using a text editor with the below code:
Now save this .bat file and run it, this should launch the server and a similar window should be shown:Code:@echo off RustDedicated.exe -batchmode +server.port 28015 +rcon.port 28016 +rcon.ip 0.0.0.0 +rcon.password "changeme"
Joining your server
To join your server, launch Rust, open the in-game console with F1 and type client.connect 127.0.0.1:28015. When you want to your friends to be able to join you as well you will have to use your external IP instead, and you'll most likely need to forward the ports you set above in your router or modem settings.
Adding players as admin/moderator
See Admin and moderators in Rust | Oxide
Good luck and have fun!
Setting up a Rust server with Windows
Discussion in 'Guides and Tips' started by Wulf, Oct 9, 2014.
-
Wulf Community Admin
-
So what are the plans to handle plugins for Oxide 2.0? Will there be a seperated resource section? Should we upload Oxide 2 compatible plugins as a new plugin even if its an update of an existing one? Are legacy plugins gonna be removed completely?
-
Wulf Community Admin
-
And so it has begun, from here on out it'll only get bigger and better. This here is the foundation!
-
We don't need a GUI Patcher, its easy as pie to re-compile something and paste the new dll's directly.
-
Wulf Community Admin
-
OnTick is interesting but I can definitely see A LOT of abuse hooking that and introducing lots of lag.
Would it be possible to potentially add some date/time methods to standardize the approach within LUA but leverage the speed of the DLL?
i.e. instead of using ticks and timers I have a few routines in LUA which I can do timestamp checks...i.e. on my FlyTo (TP) mod I don't allow players to TP if they are within X time of conflict with players, animal, etc...or they are raiding... So when they try to /flyto I verify timestamp to see if they are out of hold period. I can see Oxide suggesting some "best practices" for common and useful activities. Especially alternatives to polling and timers.
Thanks.[DOUBLEPOST=1412894114][/DOUBLEPOST]Have you identified any ISP's that you will be working with? I recently have been working with Blue Fang and they are absolutely outstanding! -
Wulf Community Admin
-
despite the fact that the compilation is successful, the server will run did not work (even the console window does not appear). There arose the current folder oxide and the log file contents:
Code:11:46 AM [Info] Loading Oxide core... 11:46 AM [Info] Loading extensions... 11:46 AM [Error] Failed to load extension Oxide.Ext.Lua (DllNotFoundException: lua52) 11:46 AM [Debug] at (wrapper managed-to-native) KeraLua.NativeMethods:LuaLNewState () at KeraLua.Lua.LuaLNewState () [0x00000] in <filename unknown>:0 at NLua.LuaLib.LuaLNewState () [0x00000] in <filename unknown>:0 at NLua.Lua..ctor () [0x00000] in <filename unknown>:0 at Oxide.Lua.LuaExtension.InitialiseLua () [0x00000] in <filename unknown>:0 at Oxide.Lua.LuaExtension.Load () [0x00000] in <filename unknown>:0 at Oxide.Core.Extensions.ExtensionManager.LoadExtension (System.String filename) [0x00000] in <filename unknown>:0 11:46 AM [Info] Loaded extension Rust version 1.0.0 by thomasfn 11:46 AM [Info] Loaded extension Unity version 1.0.0 by Oxide Team [/SPOILER] All DLL has been copied as stated in the README, checked 10 times. [SPOILER="Server log"] Fallback handler could not load library D:/server/steamapps/common/rust_dedicated/Release/RustDedicated_Data/Mono/lua52 Fallback handler could not load library D:/server/steamapps/common/rust_dedicated/Release/RustDedicated_Data/Mono/.\lua52 Fallback handler could not load library D:/server/steamapps/common/rust_dedicated/Release/RustDedicated_Data/Mono/lua52 Fallback handler could not load library D:/server/steamapps/common/rust_dedicated/Release/RustDedicated_Data/Mono/liblua52 Fallback handler could not load library D:/server/steamapps/common/rust_dedicated/Release/RustDedicated_Data/Mono/.\liblua52 Fallback handler could not load library D:/server/steamapps/common/rust_dedicated/Release/RustDedicated_Data/Mono/liblua52 Fallback handler could not load library D:/server/steamapps/common/rust_dedicated/Release/RustDedicated_Data/Mono/lua52 Fallback handler could not load library D:/server/steamapps/common/rust_dedicated/Release/RustDedicated_Data/Mono/.\lua52 Fallback handler could not load library D:/server/steamapps/common/rust_dedicated/Release/RustDedicated_Data/Mono/lua52 Fallback handler could not load library D:/server/steamapps/common/rust_dedicated/Release/RustDedicated_Data/Mono/liblua52 Fallback handler could not load library D:/server/steamapps/common/rust_dedicated/Release/RustDedicated_Data/Mono/.\liblua52 Fallback handler could not load library D:/server/steamapps/common/rust_dedicated/Release/RustDedicated_Data/Mono/liblua52 Platform assembly: D:\server\steamapps\common\rust_dedicated\Release\RustDedicated_Data\Managed\Oxide.Ext.Rust.dll (this message is harmless) Platform assembly: D:\server\steamapps\common\rust_dedicated\Release\RustDedicated_Data\Managed\Oxide.Ext.Unity.dll (this message is harmless) NullReferenceException: Object reference not set to an instance of an object at Oxide.Lua.LuaExtension.LoadLibrary (Oxide.Core.Libraries.Library library, System.String path) [0x00000] in <filename unknown>:0 at Oxide.Lua.LuaExtension.OnModLoad () [0x00000] in <filename unknown>:0 at Oxide.Core.Extensions.ExtensionManager.LoadAllExtensions (System.String directory) [0x00000] in <filename unknown>:0 at Oxide.Core.OxideMod.Load () [0x00000] in <filename unknown>:0 at Oxide.Core.Interface.Initialise () [0x00000] in <filename unknown>:0 at Bootstrap.Initialization () [0x00000] in <filename unknown>:0 at Bootstrap.Start () [0x00000] in <filename unknown>:0(Filename: Line: -1)
Last edited by a moderator: Oct 10, 2014 -
Wulf Community Admin
Last edited: Oct 10, 2014 -
It did not help. I have installed: VC Redist in 2012 x86, VC Redist 2012 x64, VC Redist 2010 x86, VC Redist 2010 x64.
Or need to compile again?
Install Microsoft Visual C++ 2005-2008-2010-2012-2013 Redistributable Package (x86-x64) did not help.Last edited by a moderator: Oct 10, 2014 -
I'm download visual studio 2013, but it can't open project files from package
-
-
Make sure you used the lua52.dll from the dependencies folder and it's sat next to the rust server exe. It's a 64 bit dll as FPS are compiling for 64 bit now, so I guess you'll probably need the 64 bit redist. It seems to depend on msvcr110, so that would indicate you'll need the Microsoft Visual C++ 2012 x64 Redistributable Package.
-
I compile all dll's, put on directories, copy lua52 and .json file next to .exe server file
In oxide logs i see that
2:33 PM [Info] Loading Oxide core...
2:33 PM [Info] Loading extensions...
2:33 PM [Info] Loading plugins...
2:54 PM [Info] Loading Oxide core...
2:54 PM [Info] Loading extensions...
2:54 PM [Error] Failed to load extension Oxide.Ext.Lua (DllNotFoundException: lua52)
2:54 PM [Debug] at (wrapper managed-to-native) KeraLua.NativeMethods:LuaLNewState ()
at KeraLua.Lua.LuaLNewState () [0x00000] in <filename unknown>:0
at NLua.LuaLib.LuaLNewState () [0x00000] in <filename unknown>:0
at NLua.Lua..ctor () [0x00000] in <filename unknown>:0
at Oxide.Lua.LuaExtension.InitialiseLua () [0x00000] in <filename unknown>:0
at Oxide.Lua.LuaExtension.Load () [0x00000] in <filename unknown>:0
at Oxide.Core.Extensions.ExtensionManager.LoadExtension (System.String filename) [0x00000] in <filename unknown>:0
2:54 PM [Info] Loaded extension Rust version 1.0.0 by thomasfn
2:54 PM [Info] Loaded extension Unity version 1.0.0 by Oxide Team
And when i start server, no one see in console(empty).Last edited by a moderator: Oct 10, 2014 -
Wulf Community Admin
-
-
Having multiple versions of visual studio install on your login will create A LOT of hidden problems.
With the exception of one of my old legacy apps...I have not had any compiling issues with VS 2013...works great.[DOUBLEPOST=1412951893][/DOUBLEPOST]
In other news - I noticed Garry tweeting about adding new hooks for 3rd party mapping. Any thoughts on that Thomas?[DOUBLEPOST=1412952050][/DOUBLEPOST] -
Wulf Community Admin