Thanks for the clarification.
Found Mughisi's post that really opened my eyes
http://oxidemod.org/threads/setting-up-your-own-rust-server-with-oxide.5467/
posting here in case another developer has the same getting started questions.
One more note regarding Mughisi's post. To connect to your local experimental Rust server you should use client.connect instead of net.connect.
Setting up a Rust server with Windows
Discussion in 'Guides and Tips' started by Wulf, Oct 9, 2014.
-
Wulf Community Admin
Please keep discussion to thread's topic and issues regarding it, and please refrain from discussing pirated servers or software as those will be deleted. We do not tolerate nor support piracy here. Thank you.
-
Probably me doing something wrong but..
I am getting the same problem the other chaps mentioned.
- made all the changes mentioned in the instructions
- Ensured I had Microsoft Visual C++ 2012 x64 installed
- Built the project - No errors logged (Using VS Prof 2013)
Code:1>------ Build started: Project: Oxide.Core, Configuration: Debug Any CPU ------ 1>C:\Users\Dave\Documents\GitHub\Oxide-2\Oxide-2-master\Oxide-2-master\Oxide.Core\Logging\RotatingFileLogger.cs(13,24,13,34): warning CS0108: 'Oxide.Core.Logging.RotatingFileLogger.LogMessage' hides inherited member 'Oxide.Core.Logging.Logger.LogMessage'. Use the new keyword if hiding was intended. 1>C:\Users\Dave\Documents\GitHub\Oxide-2\Oxide-2-master\Oxide-2-master\Oxide.Core\Logging\RotatingFileLogger.cs(15,28,15,32): warning CS0649: Field 'Oxide.Core.Logging.RotatingFileLogger.LogMessage.Type' is never assigned to, and will always have its default value 0 1>C:\Users\Dave\Documents\GitHub\Oxide-2\Oxide-2-master\Oxide-2-master\Oxide.Core\Logging\RotatingFileLogger.cs(16,27,16,34): warning CS0649: Field 'Oxide.Core.Logging.RotatingFileLogger.LogMessage.Message' is never assigned to, and will always have its default value null 1> Oxide.Core -> C:\Users\Dave\Documents\GitHub\Oxide-2\Oxide-2-master\Oxide-2-master\Oxide.Core\bin\Debug\Oxide.Core.dll 1> 1 file(s) copied. 2>------ Build started: Project: Oxide.Ext.Lua, Configuration: Debug Any CPU ------ 3>------ Build started: Project: Oxide.Ext.Rust, Configuration: Debug Any CPU ------ 4>------ Build started: Project: Oxide.Ext.Unity, Configuration: Debug Any CPU ------ 2> Oxide.Ext.Lua -> C:\Users\Dave\Documents\GitHub\Oxide-2\Oxide-2-master\Oxide-2-master\Oxide.Ext.Lua\bin\Debug\Oxide.Ext.Lua.dll 2> 1 file(s) copied. 5>------ Build started: Project: Oxide.Tests, Configuration: Debug Any CPU ------ 5>C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(1697,5): warning MSB3270: There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "C:\Users\Dave\Documents\GitHub\Oxide-2\Oxide-2-master\Oxide-2-master\Oxide.Core\bin\Debug\Oxide.Core.dll", "x86". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project. 5>C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(1697,5): warning MSB3270: There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "C:\Users\Dave\Documents\GitHub\Oxide-2\Oxide-2-master\Oxide-2-master\Oxide.Ext.Lua\bin\Debug\Oxide.Ext.Lua.dll", "x86". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project. 5>C:\Users\Dave\Documents\GitHub\Oxide-2\Oxide-2-master\Oxide-2-master\Oxide.Tests\LuaTests.cs(11,16,11,17): warning CS0649: Field 'TestStruct.x' is never assigned to, and will always have its default value 0 5> Oxide.Tests -> C:\Users\Dave\Documents\GitHub\Oxide-2\Oxide-2-master\Oxide-2-master\Oxide.Tests\bin\Debug\Oxide.Tests.dll 3> Oxide.Ext.Rust -> C:\Users\Dave\Documents\GitHub\Oxide-2\Oxide-2-master\Oxide-2-master\Oxide.Ext.Rust\bin\Debug\Oxide.Ext.Rust.dll 3> 1 file(s) copied. 4> Oxide.Ext.Unity -> C:\Users\Dave\Documents\GitHub\Oxide-2\Oxide-2-master\Oxide-2-master\Oxide.Ext.Unity\bin\Debug\Oxide.Ext.Unity.dll 4> 1 file(s) copied. ========== Build: 5 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
- Copied across all the files mentioned in the instructions
- Launched the server. At his point the executable is evident in task manager but the console does not progress past the line from the batch file.
- Oxide log shows
Code:6:26 PM [Info] Loading Oxide core... 6:26 PM [Info] Loading extensions... 6:26 PM [Error] Failed to load extension Oxide.Ext.Lua (DllNotFoundException: lua52) 6:26 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 6:26 PM [Info] Loaded extension Rust version 1.0.0 by thomasfn 6:26 PM [Info] Loaded extension Unity version 1.0.0 by Oxide Team
Any pointers appreciated.
Cheers
Dave -
How are you launching the server? Is it a bat file in the same directory as the exe?
-
-
So, what is solution of problem with Lua extension? -
Wulf Community Admin
-
The lua52.dll file in the repository is x86 which is incompatible with the new Rust Dedicated servers because those are x64, attached to this post is a x64 lua52.dll, just download it and extract the file to your main folder replacing the lua52.dll file you copied before and launch your server
Edit
I have removed the lua52.dll from this post as a working version is now available on the repository.Last edited by a moderator: Oct 11, 2014 -
More thx to you -
Cheers
Dave -
Few things I can think of atm:
Do you have the Visual C++ Redistributable 2012 x64 installed? (Linked by Wulf in one of the previous posts if I recall correctly)
Which OS are you using?
Are you launching the server from a .bat file? Is that .bat file in the same folder as the server executable? -
Seeing it working for you is promising, must be something silly I am doing.
Downloaded the following;
http://www.microsoft.com/en-gb/download/details.aspx?id=30679
Its running on a Windows 7 x64 virtual instance. I did have experimental rust running on it fine first of all.
batch file is located in the same folder as the rustdedicated.exe
just thinking out load, should I not be using the Microsoft Visual C++ 2013 x64 as I am using Visual Studio 2013 ? - http://www.microsoft.com/en-gb/download/details.aspx?id=40784
===edit===
put the wrong version number down for my version of VSis should have said 2013 not 2012..corrected. Question is still valid
-
Wulf Community Admin
-
-
Pushed a new lua52.dll, this is the one that definitely works on my Oxide test setup.
-
-
OK, got there in the end
downloaded the git repo again.
scenario which does not work;
- Two computers, one performing compile, one hosting rust dedicated server
- Compile machine has a mapped drive to the release folder on the rust dedicated server
- mapped drive is referenced in post processing command. (drive letter and not unc)
scenario which does work;
- perform compile on computer that hosts rust dedicated server. What I did in the end was copy the release folder to my computer running the compile using the same drive letter and folder path as the rust dedicated server. Then porformed the compile and copied the relevant files to the local folder.
- tested and server loaded successfully on compile computer
- copied the release folder back to the rust dedicated server
- tested and server loaded successfully on rust dedicated server
Thanks for all you help and patience everyone. Now the fun begins
Thomasfn, just a big thank for oxide, breathed much needed additional life into legacy rust. Be great if oxide-2 does the same -
Wulf Community Admin
-
I tried to get Gamerservers.com to install this and they said they would if they didn't have to compile it
.
-
Wulf Community Admin