2.3 server setup guide

smoochy boys on tour

koni

V.I.P
VIP
Mar 14, 2006
1,111
1
185
Southampton UK
i did not make this guide or the files, so full credit to the maker of the guide.


Step 1: Getting the Server Files

visit this thread and download the files:TD'S FILES ALL IN ONE - Legend of Mir 2.3 Server Files. (fully updated by jasper and elvin) full credit to them for the release

Step 2: Setting Up Your Server

Extract your files to C:/mirserver folder. This is the place where the server is set to run. This can be edited later on by hexing the server files but do this for now.

Now then go to your Legend of Mir Game Folder > Maps and copy all the maps to your C:/mirserver/m2server/maps folder. This way the map info is directly taken from the client and need not be download along with the server itself. And this will also reduce client incompatibility problems.

Now setting up the IP's of your server. You need to set them to 127.0.0.1 (Local) if you want it to work offline or 192.168.XXX.XXX (WAN or LAN IP) to either run it on LAN or over the net. The correct server name would be Diamond.

Go to C:/mirserver/DBServer/addrtable.txt and set all your IP's to the required one.
Do the same in the following files too.

C:/mirserver/DBServer/serverinfo.txt
C:/mirserver/DBServer/dbsrc.ini
C:/mirserver/LoginGate/config.ini
C:/mirserver/LoginSrv/addrtable.txt
C:/mirserver/LoginSrv/serveraddr.txt
C:/mirserver/LoginSrv/UserLimit.txt
C:/mirserver/LoginSrv/Logsrv.ini
C:/mirserver/LogServer/LogData.ini
C:/mirserver/M2Server/runaddr.txt
C:/mirserver/M2Server/servertable.txt
C:/mirserver/M2Server/Setup.txt
C:/mirserver/RunGate/Config.ini
C:/mirserver/SelGate/Config.ini

Congratulations for setting up your server!

Step 3: Setting Up SQL Server 2000

DOWNLOAD SQL SERVER 2000 HERE - You can download SQL Server 2000 Evaluation Edition from here.
SQL 2000 MIRROR DOWNLOAD or from this link provided by koni

Once downloaded, install SQL Server 2000 by setting the system to "local" and the authentication mode to "mixed" and set a "sa" password.

After the installation, start Service Manager and let it run.

Congratulations! You have installed SQL Server 2000.

Step 4: Restoring the Databases

Now go to Enterprise Manager>Local>Databases
Here you will find that there are already a few default databases. Right click and create a new database called "mir2"

Then right click on this new database and go to All Tasks>Restore Database
Here select the option of "From Device" and then select the location of the database which in this case is /DBServer/lom2restorethis In this case the DB provided is already in the *.bak format and hence need not be force restored. If it aint, then go to the second tab and tick the option - force restore and then click OK.

Congratulations! You have successfully restored your databases.

Extra Note: To add yourself as a GM, go to the mir2 database and look for the table called "admin" and return all rows on it and then enter your ID and other details there. That particular ID will from now be the GM ID. Account must be created in the account table.

Step 5: Configuring Your Server Part 2

Go to the folder /DBServer/dbsrc.ini and edit the following.

SQLType = mssql
SQLHost = localhost
SQLPort = 3306
SQLDatabase = mir2
SQLUsername = sa
SQLPassword = (Enter the password you entered while setting up SQL Server 2000).

Then Go to the folder /M2Server/Setup.txt and edit the following.

UseSQL = True
SQLHost = 127.0.0.1 (which is nothing but your localhost)
SQLUsername = sa
SQLPassword = (Enter the password you entered while setting up SQL Server 2000)
SQLDatabase = mir2
SQLType = mssql (if you are working with MySQL2005 change this to mysql)

Congratulations! You have successfully configured your server.

Step 6: Running the Server

Run them in the following order.

1. m2server/m2server.exe
2. gamegate/gamegate.exe
3. DBServer/dbserver.exe
4. logingate/logingate.exe
5. loginsrv/loginsrv.exe
6. logserver/LogDataServer.exe
7. Selgate/Selgate.exe

Note: It would be advisable to run DBServer.exe before all the other servers though.

Congratulations! Your Server Is up and running.

Step 7: Setting Up The Client

Go to the server folder /m2server and copy and paste the mir2.exe in your game folder. Then go to the game folder and open mir.ini and save all the IP's (3 of them) to either your local IP 127.0.0.1 or your LAN or WAN IP which ever you entered in your server files and save this file as mir2.ini

Create an account as mentioned earlier and then run mir2.exe.

Congratulations! You are in the game. Have fun now.
 
Last edited:
  • Like
Reactions: D4N0

Xentha

Dedicated Member
Dedicated Member
Jul 17, 2004
133
0
62
Im only having trouble with the SelGate, everything else works fine, When i go to make a char, it kicks me off from SelGate

for example:
Gate Open..
Kick Off: 127.0.0.1

Any ideas how to sort this?

Cheers :D
 
Upvote 0

jasper

Golden Oldie
Golden Oldie
Sep 10, 2005
890
3
125
how can you gate flame field to move in game , it just does it around you and iv seen on oither mir's it jumps to the thing ur mouse is over

tyvm


that was on 1.9 servers where people manipulated revelation into flame field
 
Upvote 0

jasper

Golden Oldie
Golden Oldie
Sep 10, 2005
890
3
125
Im only having trouble with the SelGate, everything else works fine, When i go to make a char, it kicks me off from SelGate

for example:
Gate Open..
Kick Off: 127.0.0.1

Any ideas how to sort this?

Cheers :D


check thru the config/ini files for an ip address beginning 192.168.*.*, and change to your pc lan address
 
Upvote 0

Xentha

Dedicated Member
Dedicated Member
Jul 17, 2004
133
0
62
check thru the config/ini files for an ip address beginning 192.168.*.*, and change to your pc lan address

Ive looked though all the config/ini files for that ip address, i found one, but i still got the kick off thing.. and why does my gate open then close then open then close again?

here:
http://img180.imageshack.us/img180/8330/61147624cq4.png
61147624cq4.png


Cheers :)

Xentha
 
Upvote 0

Doddsy

LOMCN Veteran
Veteran
Loyal Member
Aug 2, 2005
456
2
65
Hartlepool
wer do i get a exe and ini files for my server im usin a server's data and stuff coz client on ere takes 5 hours
 
Upvote 0

Monkeh

LOMCN Veteran
Veteran
Loyal Member
Aug 10, 2007
301
1
65
Wales, UK
i try to install sql 2000 enteprise edition then click the database imnstallation and it dont do nothing so what do i do? btw i got my own files
 
Upvote 0

Delluseonist

Dedicated Member
Dedicated Member
Jun 13, 2004
52
0
53
hey dude, that enterprise manager, does that only come with some versions of mysql?? Because I have a Rose Server online and I was using mysql 5.0 but I couldnt find anything called enterprise manager linked to it.
 
Upvote 0

trashman

Dedicated Member
Dedicated Member
May 18, 2004
25
0
47
ok seted it up and working ... can get ingame npc's are there but no other mobs like deers etc.
 
Upvote 0

WarWizard

Dedicated Member
Dedicated Member
Aug 22, 2003
10
0
98
How do I make my char a admin... I have added my char name in ADMIN with Data.mdb.

FLD_ADMINLEVEL FLD_PLAYERNAME FLD_IP
10 Blessed 127.0.0.1

Any1 help?????????
 
Upvote 0

koni

V.I.P
VIP
Mar 14, 2006
1,111
1
185
Southampton UK
the files work from sql not from access, data.mdb is a ms access file

you need to go into sql, and enter your char details into the tbl_admin


hey dude, that enterprise manager, does that only come with some versions of mysql?? Because I have a Rose Server online and I was using mysql 5.0 but I couldnt find anything called enterprise manager linked to it.

enterprise mgr only comes with MSSQL not mysql, these files have been coded to only work with MSSQL
 
Upvote 0

Shinoda

Dedicated Member
Dedicated Member
Apr 18, 2003
185
0
113
Hong Kong
right another problem anyone help?

I have the exact same problem, all config is 100% correct. Install is correct, user/pass/etc. is all fine. But wont seem to boot up.

EDIT:

Switched back to MSSQL 2000 and it works fine, only thing preventing MSSQL use before was Vista but there's a way to install it and it works fine.

1. Download MSSQL 2000 FROM Microsoft Official WebSite !!! (http://download.microsoft.com/download/e/6/e/e6ea2122-5c4d-4a0d-baa8-8138548f9973/SQLEVAL.exe)
2. Unpack in D:\SQLEVAL
3. RightClick on setup.bat
4. Select Properties,go to Compatibility tab and select Run this program in compatibility mode Windows XP (service pack 2)
5. Run the Install procedure like in Windows XP

Works like a dream, **** MySQL2005 :D
 
Last edited:
Upvote 0

Garu

Dedicated Member
Dedicated Member
Aug 27, 2006
29
0
47
Hi,

I made a post yesterday regarding having account creation problems, the thread is at the top of the server help section if anyone has any ideas why it isnt working i would be very grateful.
 
Upvote 0