Er glasses ?
second screen "open a project or
SOLUTION?Merged postPffff…… Microsoft.
The problem is that many people go on forums and think they deserve an answer, like it's some sort of Indian tech support...
Much of this process is still ongoing and in some cases people take the view why they should give the info for free... or use significant time to onboard people that have not done proper research.
Merged postThen there is the issue of the multi platform nature of the product....... ( compile tools & server setup)
Ok.. here is the ALMOST FULL PROCESS on WINDOWS 10. (step2)
windows10 it is……. I avoided this because it uses way more electricity.. but here goes.
you can start at 2
1.
https://developer.microsoft.com/en-us/windows/downloads/virtual-machines (thats 2 minutes of my life wont get back)
Visual Studio 2019 (latest as of 11/13/2019) with the UWP, .NET desktop, and Azure workflows enabled and also includes the Windows Template Studio extension
Windows 10, version 1909 (10.0.18363.418)
Windows Subsystem for Linux enabled with Ubuntu installed
took longer to Decompress than download….
2. So after startup.
ohhhhhh jesus… yep it is completely different………. menu overload……
“Create new project… “ see your second screen right hand side.
when that god awful “picker” comes up:
choose “class library (.net core)” (it’s near the bottom)
name it “hashtest” or whatever
create
the project.
you now have a window called “hashtest” with some skel. code.
go to “view” select “solution explorer”
in the little window by the code.....find “dependancies” right click add references.
browse to your libraries (where you stored the RUST library shit)
add them in.
Then move down the menu to “browse” and you can see your libraries with little check boxes
Check means they are included.
(obviously)
select “ok”… and its gonna take a while…..
When you get back to your “skel” code.. now on the right you have a item called “assemblies” with all the libraries in.
you will see your "skel” code is called “Class1.cs” it MUST be called the same as the class name.(in this case "hashtest")
so lets call it “hashtest”, you can do that in the “solution explorer” by finding the file & right clicking it. (rename)
CLEAN OUT ALL the existing code in teh class then stick some new "RUST" code it it…..
notice the construction, this must be followed for it to load
This is an example only but it works for testing.
using System.Collections.Generic;
using System.Linq;
using Newtonsoft.Json;
using Rust;
using Oxide.Core.Plugins;
using UnityEngine;
using System;
namespace Oxide.Plugins
{
[Info("hashtest", "mr, Smith", "1.0.0")]
[Description("A simple tie in")]
public class hashtest : RustPlugin
{
void Init()
{
Puts("Hello boys we are in: ");
}
}
}
and a screen to show it compiled on our computer
*NOTE this is not the same as the server, it is possible to get the code compiled on your computer but it wont work on the server due to illegal systems classes & security.:

you see it compiled ok….
YOU MUST configure your rust server with OXIDE and enable it. (I’m not going to show this, because I do it differently on a K8s farm)
now here is the interesting shit…
YOU DO NOT put the compiled class (.dll) on the RUST server…………
You put the SOURCE class file on the OXIDE modded rust server……. into the “oxide” folder “plugins”
"hashtest.cs" in this case.
Now a screen from my server

near the very bottom you see
"
hashtest was compiled successfully in 831ms
[hashtest] Hello boys we are in:
Loaded plugin hashtest v1.0.0 by mr, Smith
Saved 24,650 ents, cache(0.03), write(0.01), disk(0.01).
Saving complete"
so the "[hashtest] Hello boys we are in: " tells us WE ARE IN & linked into the server being called......
Merged postwhy the hell is the images not working......
https://imgur.com/ivrJGrchttps://imgur.com/0uRxGg8