[2.3] LegendOfMir II Guide - How things are done

Your banner could be here!

Tom27

Golden Oldie
Golden Oldie
Sep 15, 2005
1,842
46
155
Norwich
Legend Of Mir II 2.3
How Things Are Done

Follow through this guide step by step, and you
will have a working set of 2.3 files in no time!


1.Download the files & Client
2.Download WinRar & Extract files
3.Download Microsft SQL & Follow Guide "Thanks to mStation"
4.Setting up your files
5.Putting your server up (Offline use)
6.Forwarding your ports (For online use)
7.Changing your IP's (For online use)
8.Mir Tools
9.Ingame Setups "Thanks to "mSation"
10.Adding Items & Explanations
-----------------------------------------------------------------------------------------------------------------------------------------

1. Downloading The Server Files & Client

Server Files Download Link
Server Files Mirror Download
Server Files Mirror 2 Download

Server Files Mirror 3 Download

Client Download Link

Client Mirror Download (12/11/2017) Thanks Martyn


<<< Please make sure that you extract these server files into your C:/ >>>

The download is through 4shared which is not the best website.
It would be more suitable if somebody knew a more long-term, easier downloading, and suitable
uploading websites to permanently keep these files on.
-----------------------------------------------------------------------------------------------------------------------------------------

2. Unzipping The Server Files
Before you can begin work on your server files, you must have the something called "WinRar".
Winrar is an extracting & data compressing utility, which is excellent for smaller & shorter downloads.

Before you download Winrar, make sure that you select your desired language provided on the website.
Download Winrar Here
-----------------------------------------------------------------------------------------------------------------------------------------

3. Downloading & Installing Microsoft SQL 2005

Read through this guide provided by "mStation".
It is very useful, and good to refer back to if you get stuck at any point.

This guide gives you everything from download links, to tutorials, pictures, and step-by-step guide to installing
Microsoft SQL 2005.

"mStations idiot proof guide"


-----------------------------------------------------------------------------------------------------------------------------------------

4. Setting up your server files

Please make sure that you have followed "mStations Idiot Proof Guide" before you begin on this section.
If you have no successfully installed Microsoft SQL 2005, and linked up your database you will not be able to log into your server.
Make sure stage 3 is completed before moving onto stage 4.


Go to: C:/, MirServer, DBServer and open the dbsrc.txt.


[SQL]
SQLType=mssql
SQLHost=127.0.0.1
SQLPort=3306
SQLDatabase=mir2
SQLUsername=sa
SQLPassword=sa

The line highlighted in red must become
:
SQLHost="ServerName"
SQLHost=OWNER-V6LMDWNGJ\SQLEXPRESS

----------------------------------------------------------------------------------------------
You can find your "Server Name" by going to your Start menu, Programs, Microsoft SQL 2005.
Open "SQL Server Management Studio Express".
The "Server Name" will be what you need to put in "SQLHost" in the ini file.
It should look like this:

------------------------------------------------------------------------------------------------------------------

Open the M2Server folder, and locate the !setup.txt
The same thing must be done again with the "SQLHost"
.
[SQL]
UseSQL=TRUE
SQLHost=OWNER-V6LMDWNGJ\SQLEXPRESS
SQLUsername=sa
SQLPassword=sa
SQLDatabase=mir2
SQLType=mssql
SQLPORT=3306
SQLCharDatabase=mir2

Your mir server files should now be ready to use if you have followed this guide thoroughly.
-----------------------------------------------------------------------------------------------------------------------------------------

5. Putting your server up (Offline Use)


You can do all of this automatically using the "Server Starter" folder, and "ServerLauncher" utility.
Personally, I believe it is more stable to open the gates manually like this:

Open "DBServer" folder, double click the "DBServer" exe.
Open "GameGate" folder, double click the "RunGate" exe.
Open "LoginGate" folder, double click the "LoginGate" exe.
Open "LoginSrv" folder, double click the "LoginSrv" exe.
Open "SelGate" folder, double click the "SelGate" exe.
Open "M2Server" folder, double click the "M2Server" exe.

THE "M2 SERVER" MUST BE OPENED LAST TO ALLOW THE OTHER GATES TO LOAD ONTO IT.

All of your gates should load up fine with no errors.
If there are no errors, most of your gates should say "Server Started", or "Service Started".
If you have any errors please post below, and I will try to help you resolve your problem.

Once you have opened all the gates, you should now successfully be able to log into your server.
Use the "client" that you downloaded on step 1, and make sure all your "ini" IP addresses are set to 127.0.0.1
-----------------------------------------------------------------------------------------------------------------------------------------

6. Fowarding your ports (Online use)

This guide must be followed if you are wanting your server "Online" for other people to log in.

YouTube Video Guide

http://www.youtube.com/watch?v=Kp-R-eHiQco
(IF YOU FOLLOW THIS YOUTUBE GUIDE, PLEASE MAKE SURE YOU FORWARD PORTS 7000,7100,7200)
---------------------------------------------------------------------------------------------------------------------

Or you can do it through a step-by-step guide.

Firstly, you need to get your IP address.

Start > Run > type in "cmd" and type "ipconfig"
This will display your connections.

----------------------
IPAddress
Subnet Mask
Default Gateway
<----- This is the IP address you need (Usually 192.168.0.1)
----------------------

Type the IP address into your InternetExplorer or FireFox search-bar (What-ever you use), and type in your
routers required Username & Password. (They can be found on the back of your Router).

Default Virgin Media Username: admin
Default Virgin Media Password: changeme

Default Sky Username: admin
Default Sky Password: sky

Once you have logged into your router, you can proceed to forward your ports.
Next step:

Select "Advanced" settings (I'm working by a Virgin Media Router, sky and other networks may have different setup.)
Select "PortForwarding".

Now we need to create something.
Copy what I have entered below.

Name: MirServer
Start Port: 7000
EndPort: 7300
Protocol: TCP&UDP
IP Address: (Enter the "IP ADRESS" from "cmd". This is NOT the Default Gateway. It is the "IP Address").

Press OK/Apply/Add Rule/Accept or whatever it says.
Your ports will now be successfuly forwarded.
-----------------------------------------------------------------------------------------------------------------------------------------

7. Changing your IP's (For online use)

Please follow this stage very carefully, or it can cause you alot of problems.
Make sure you follow it step-by-step.

Firstly, locate your IP Address.
Start > Run > type in "cmd" and in the cmd, type "ipconfig".
The "IP Address" will be used for your server files.

DBServer Folder
---------------------------------------------------------
!addrtable.txt


Change:
127.0.0.1
127.0.0.1

To:
"Your IP Address"
"Your IP Address"
---------------------------------------------------------
!serverinfo.txt

Change:
127.0.0.1 127.0.0.1 7200

To:
"Your IP Address" "Your IP Address" 7200
---------------------------------------------------------
!dbsrc.txt

Change:
ServerAddr=127.0.0.1
GateAddr=127.0.0.1
IDSAddr=127.0.0.1

To:
ServerAddr="Your IP Address"
GateAddr="Your IP Address"
IDSADDR="Your IP Address"

GameGate Folder
---------------------------------------------------------
config.txt

Change:
ServerAddr=127.0.0.1
GateAddr=127.0.0.1

To:
ServerAddr="Your IP Address"
GateAddr="Your IP Address"

LoginGate Folder
---------------------------------------------------------
config.txt

Change:
ServerAddr=127.0.0.1
GateAddr=127.0.0.1

To:
ServerAddr="Your IP Address"
GateAddr="Your IP Address"

LoginSrv Folder
---------------------------------------------------------
!addrtable.txt

Change:
Diamond Diamond 127.0.0.1 127.0.0.1 127.0.0.1:7100

To:
Diamond Diamond "Your IP Address" "Your IP Address" 127.0.0.1:7100
---------------------------------------------------------
!serveraddr.txt

Change:
127.0.0.1

To:
"Your IP Address"
---------------------------------------------------------
logsrv.txt

Change:
DBServer=127.0.0.1
GateAddr=127.0.0.1
ServerAddr=127.0.0.1
FeeServer=127.0.0.1
LogServer=127.0.0.1

To:
DBServer="Your IP Address"
GateAddr="Your IP Address"
ServerAddr="Your IP Address"
FeeServer="Your IP Address"
LogServer= "Your IP Address"

SelGate Folder
---------------------------------------------------------
config.ini

Change:
ServerAddr=127.0.0.1
GateAddr=127.0.0.1

To:
ServerAddr="Your IP Address"
GateAddr="Your IP Address"

M2Server Folder (VERY IMPORTANT READ CAREFULLY)
---------------------------------------------------------
!runaddr.txt
(Do not change anything in here)

!servertable.txt
(Do not change anything in here)
---------------------------------------------------------

!setup.txt
You will need to scroll 3/4 down the page to find where these IP address are.
Or you can press CTRL+F, and search for "GateAddr". That should
bring you to the correct area of where you need to be.

Change:
GateAddr=127.0.0.1
GatePort=5000
DBAddr=127.0.0.1
DBPort=6000
IDSAddr=127.0.0.1
IDSPort=5600
MsgSrvAddr=127.0.0.1
MsgSrvPort=4900
LogServerAddr=127.0.0.1

To:
GateAddr="Your IP Address"
GatePort=5000
DBAddr="Your IP Address"
DBPort=6000
IDSAddr="Your IP Address"
IDSPort=5600
MsgSrvAddr="Your IP Address"
MsgSrvPort=4900
LogServerAddr="Your IP Address"


---------------------------------------------------------

All of your IP's should now be correctly set up for online use.
Now if you want to connect to your server, run all of your gates in the MirServer folder, and make sure that no errors pop-up when they have loaded.

To get onto your server once you have put it up for online use, you need to locate your "external ip address" (PUBLIC).
You can find this by typing into google "What is my IP Address".
Once you have found your Public Address, change the IP's in your Client folder to the Public IP Address, and log in.
-----------------------------------------------------------------------------------------------------------------------------------------

8. Mir Tools

MirTools - Here is a download link to various tools you are going to need to create your server.
Contains: DataViewer, hh8 editor, illusionists/shortys map edit, SQL-MS Access Converter, TD NPC Cmds.

Click here to download the MirTools Folder

Explination:

DataViewer:
Dataviewer is the same as hh8, but a more up-to-date reliable version.
It will view any wil files you may need to look at.
This utility is often used for adding items, monsters, minimaps etc to mir, and is very useful to have.

hh8:
hh8 is a utility often used for adding items, monsters, minimaps etc to mir, and is very useful to have.

Illusionist's / Shorty's MapEdit:
This is used for creating, and/or editing maps.

TD's NPC Commands:
This is self explanatory.
Once opened, the link will refer you to a page containing all NPC commands for thedeath's 2.3 files.
Very useful to have, especially when your learning how to script.

SQL to Microsoft Access Converter:
Self explanatory - not used very often.


-----------------------------------------------------------------------------------------------------------------------------------------

9. Ingame Setups

mStation has kindly provided a guide on how to add some in-game set-ups, e.g.

-Experience Pots & Scrolls
-Making a ranking system
-Storage orbs
-Shout orbs
-Using the robot system

CLICK HERE TO VIEW THEM
-----------------------------------------------------------------------------------------------------------------------------------------
 
Last edited by a moderator:
  • Like
Reactions: mStation

Elysiums23

Dedicated Member
Dedicated Member
Oct 19, 2013
84
1
20
Yorkshire
Be careful if you do this, it could make other quests in-game go balls-up.
Good idea & quick fix, but could cause future problems.
Make sure you have a backup if you do this.

If its the standard server files then thats the only map quest in there :O
 
Upvote 0
Your banner could be here!

Elysiums23

Dedicated Member
Dedicated Member
Oct 19, 2013
84
1
20
Yorkshire
Hi there,

When i try to load my m2server i have this error:

[07/11/2013 16:37:28] StartTimer exception: OLE error 80040E4D

Hi Akash im really sorry matey ive never seen that error can't help you buddy tried searching for you and no results >.>, id suggest start from scratch again may resolve your problem
 
Upvote 0

Tom27

Golden Oldie
Golden Oldie
Sep 15, 2005
1,842
46
155
Norwich
Hi there,

When i try to load my m2server i have this error:

[07/11/2013 16:37:28] StartTimer exception: OLE error 80040E4D
Firstly, sorry for the late reply. I haven't checked this thread in a while.
This StartTimer error can be caused by a number of problems:

1. Your database is not linked up correctly, please read through the database section on the first page and make sure you have followed
the guide word from word. If you are having problems with SQL, simply un-install it, and delete the WHOLE folder from where it has been
saved onto your computer,and re-install it to ensure the drivers are 100% fresh.

2. Incorrect Information - Check through all of your IP's, server names, database names, database passwords and make sure they are ALL
correct & matching.

3. If you have recently changed something in the database e.g. adding new items/changing items.
Double check to make sure the numbers are in the correct order starting from 0.

If the problem is still re-occurring when you have tried the above, drop me an inbox and I will try to help you further.

just create an account and login with it..
Simplicity always wins :p
 
Last edited:
Upvote 0

rana

Dedicated Member
Dedicated Member
Aug 16, 2013
112
0
27
i do all step to make server online and when i log on mir cant make account :S
can you help me
 
Upvote 0

Tom27

Golden Oldie
Golden Oldie
Sep 15, 2005
1,842
46
155
Norwich
i do all step to make server online and when i log on mir cant make account :S
can you help me
Sorry for the late reply.

That sounds like you have set up your database incorrectly, try re-going through all of the steps and make sure you have followed it step by step.
It will be something simple like having an incorrect database name, or password.

Other than that, it can only be an incorrect IP / Server Name.
Check through the LoginGate/LoginSrv/M2Server folders.
 
Upvote 0

Xx69xX

LOMCN Supporter
Supporter
Golden Oldie
Apocalypse
Game Master
Dec 2, 2005
2,102
96
155
Both the step one downloads dont work :(

Any chance any one has any mirrors of these

Thanks
 
Upvote 0

Tom27

Golden Oldie
Golden Oldie
Sep 15, 2005
1,842
46
155
Norwich
Both the step one downloads dont work :(

Any chance any one has any mirrors of these

Thanks
I'm not sure why the link ain't working for you, I've just tested them on my neighbours PC and it seems fine.
If anybody could mirror these downloads it would be fab.
 
Upvote 0

spartekas

LOMCN Veteran
Veteran
Sep 21, 2009
690
5
105
USA
I'm not sure why the link ain't working for you, I've just tested them on my neighbours PC and it seems fine.
If anybody could mirror these downloads it would be fab.

As soon as I sort my 1T hard drive. I will upload what I got and mirror for you,and the people who who can benefit.

Tyvvvvvvm for this Guide, and all the work you guys put into it. This will be my 1st mir2 server

I will upload SQL Server 2005 Standard Edition tonight. Its a full release, not 3 downloads. Just 2 CD iso's


Uploading Server files and euro client, and more bandwidth :)















---------- Post Merged on 16-01-2015 at 02:29 PM ---------- Previous Post was on 14-01-2015 at 10:57 AM ----------

i have a error when loading up the m2 server, it says MapQuest.txt : Failure was occurred while reading this file.Code= -14 anyone know whats wrong?

Try the english Mapquest file in TD files it worked for me. Think the chinese made it fail, and the text in the document is alot off. Or delete the Chinese header:adoration:

---------- Post Merged on 18-01-2015 at 11:17 PM ---------- Previous Post was on 16-01-2015 at 02:29 PM ----------

I have server up as Test, but how do I add npcs without anything to create Sav files, or a Merchant text. Should I create a Merchant Text? I am still using 2.3 not 2.3TD due to client exe... There is a GT peddler in NPC saved folder but i did @reloadnpc and nothing.


Oops sorry am using sql2000 on XP am getting hard drive ready to wipe.. Do have all Diamond working so might eventually try windows 7 64 bit.

If I create a merchant text will the game read It. I try search it has never helped much on here... Just reading thru the 2 threads. Its a good threads only real broken links I am finding are on LOMCN. BTW I do pay my mediafire every Month :)

Need to download MS office think I got the Mongen file, but maybe I can fix the 1 in the database and make a backup. I love how easy and fast the server loads. My Mom can do it hehe. Thx to Idabiga on that/Sting
 
Last edited:
Upvote 0

spartekas

LOMCN Veteran
Veteran
Sep 21, 2009
690
5
105
USA
How do I create Ritem.dat with these files??????? If I have found A releaased client and files, Updated. How can I use TD client when it says AtlantisRising. It the only release on this. Hershire is the only server with Updated M2server.exe dbserve.exe mir.exe. And his files are not 2006 or 2007. The files I cannot findd on here or Ragezone.. This gives me 2.3 not TD, or 2.3+. Be nice If some would Read their messages..

MUST I have sql 2005 or higher for TD to work?? Unless someone has the dbs and clients etc no TD hell 2.3 isnt TD, or updated. yes very frustrated. Mstation tyvm for the guide on sql.. ps nnothing wrong with messages, I always have 2.. 3 or more means I got a message/.. **** it
 
Upvote 0