What you will need:
- SharpDevelop 4.3
- Private Server Files
- A Computer
- A Brain
- Optional: Knowledge of C#
How make your private server:
Making a private server takes will and effort to learn. If you are not willing to learn, and put in the effort to make and run a successful private server you shouldn't be making one in the first place. Basically, you will need more then 10 minutes to make one.
There are many tutorials out on MPGH on how to make a private server, follow Owlupus's MMOEmpire Private Server Setup Tutorial
How to edit your private server:
Editing your private server can be frustrating and confusing. So I will teach you the basics of what to do to edit the most basic things.
First of all you will need to have downloaded private server files and SharpDevelop 4.3, then you want to open up SharpDevelop 4.3 and click File > Open> File...
Then go to your private server files and search for server.sln, once you have found the path copypaste it into the file select dialog on SharpDevelop 4.3 and then you have successfully setup SharpDevelop 4.3 with your private server.
Now editing your private server is only a few clicks away, but you may be asking how do I edit such and such? In SharpDevelop 4.3 on the left side there is a bar called Projects, open Solution server and you will see a bunch of different folders.
I will be explaining how to edit the DNS and realms of your private server in this tutorial, if you want to learn other things scroll down and I will have a list of tutorials.
Navigate to 'server > char > list.cs and double click it, then list.cs should appear. Scroll down in the file and you should find this:
Below that will be your servers, delete all the rest except for the one at the top.Code:Servers = new List<ServerItem>() { new ServerItem() {
Your one server should look like this:
Now I will be explaining things very simply.Code:new ServerItem() { Name = "Example Name", Lat = 22.28, Long = 114.16, DNS = "Example DNS", Usage = 0.2, AdminOnly = false }
Name = "" is the name of the server e.g. USWest
Lat = and Long = are the latitude and longitude that the client will connect to if it is selecting Best Server, if you only have 1 server it wont matter and they will automatically connect to the one server you have.
DNS = "" is the DNS, here you will insert your Hamachi IPv4 address if you are using Hamachi, or your routers IP address if you port forwarded
Usage = should always be 0.2. If you set it to 1 the server will act as if it was full and you wont be able to connect.
AdminOnly = is self explanatory, make sure to have at LEAST one AdminOnly = false server for your players!
How to make yourself admin:
In order to do this you need heidiSQL
Open up heidiSQL and login to your MySQL.
Expand the rotmg folder and then double click accounts
Go on the Data tab
There you will see the Username, Password, Name of Character, and much other stuff.
Change admin to 1 on the accounts you want to have admin on!
Other Tutorials:
Credits:
@ZBORNOX for always being unavailable when I needed help and replying 40 minutes later when I had already solved it
@Owlupus for the amazing MySQL tutorial
@Trapped for all his work on private servers
@Drowlys for his MMOEmpire Private Server v2 Files
@Botmaker for all his work on private servers
@Hux for staying with us when our beloved Realm of the Mad God section needed approvals
@Hux if this is in the wrong section I am sorry I thought it would get out to more noobs in this one and a sticky would also be appreciated
Okay, I got a question, everything is working fine, but I don't have admin rights, I can't spawn/give things, any small tutorial to Add admins?
Wrong section.
This goes in Tutorials & Source Code. @Hux
I constantly post OC on my tumblr: https://spaghetti-master.tumblr.com/
Info
About me: I am the best there is.
Add me on Skype if you are into autistic humor.
Previous name: Hax3rman
Links
MPGH for dummies
The rules of conduct.
A playlist of awesome shit I find on youtube.
My current favorite song
Not sure if this is still active, but I'm getting an error when I try to start "server.exe"
I see that it says it's already in use... but I don't know by what...Code:Unhandled Exception: System.Net.HttpListenerException: The process cannot access the file because it is being used by another process at System.Net.HttpListener.AddAllPrefixes() at System.Net.HttpListener.Start() at server.Program.Main(String[] args) in C:\rotmg\svr-master\server\Program.cs:line 26
Any suggestions? Or is there something else causing it?
Thank you, ~Aixprod
aixprod (05-12-2013)
Oh, Thanks man!
But anyone knows why it freezes when i tried to change my name?
Also freezes when I try to go to my vault.
~Aixprod
---------- Post added at 02:32 PM ---------- Previous post was at 01:32 PM ----------
Just to be more clear... I'm getting this error in my console:
Code:System.NullRefrenceException: Object Reference not set to an instance of an object. at server.account.purchaseCHarSlot.HandleRequest(HttpListenerContext context) in C:\rotmg_svr-master\server\account\purchaseCharSlot.cs:line 37 at server.Program.ProcessRequest(HttpListenerContext context) in C:\rotmg_svr-master\server\Program.cs:line 103
Last edited by aixprod; 05-12-2013 at 01:48 PM. Reason: I'm a noob sry :D
Since this was made i might as well say, When i swap the names of the servers/delete some they aren't the same as the client. I know most might have gotten this but i am just an idiot if its simple fix :P Help.
Lord Nub 2014
Nano stopped working on that 2 months ago. @Botmaker published the files. @Drowlys published his own release, @Owlupus does tutorials, @ZBORNOX is sexy and I am the actual main developer for the open source server code. Also there isn't any reference to Nano in the original files that were leaked, just to a guy called "K". We are assuming Nano did that as the files were leaked from MMOE and he was working on a pserver for MMOE.
Trapped (05-13-2013)
I've changed the client IP to my hamachi IP and I have my server up and running... but still my friend couldn't connect...
Is there any other place where the IP has to be changed.