Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Setting Up a Luna Server With Client

Experienced Elementalist
Joined
May 6, 2008
Messages
230
Reaction score
52
[Guide] How to Set-Up A Luna Online Server + Client + Registration

Download .
- Run the Installer and follow it accordingly.

Download
- Run the installer and follow it accordingly.

Download the
- Extract them accordingly to where you want.
-- Go to your Luna Online Server Files/Dll Folder and run Register.bat

Download
- Extract them accordingly to where you want.
-- Go to your MHBinPacker Folder and run Register.bat

Download
- Extract them accordingly to where you want.

Download the
- Run the installer and follow it accordingly.

Download .
- Run the installer and follow it accordingly.

Optional

Download (If you want 5 characters per account instead of 3)
- Extract them accordingly to where you want.

--

Open Microsoft SQL Server Management Studio Express.

- Right click on the item Database in the side pane.
-- Choose New Database...
--- For Database name put, Luna_Game
-- Open lunagamedb.sql for 5 Chracters on a account, or open lunagamedb00.sql for 3 characters on a account.
--- Press Execute

Notice: Ignore any SQL Errors.
The Error states that the database is missing tables and the stored procedures being created will not be able to be executed until the tables are present.

- Right click on the item Database in the side pane.
-- Choose New Database...
--- For Database name put, Luna_Member
-- Open lunamember.sql
--- Press Execute

Notice: Ignore any SQL Errors.
The Error states that the database is missing tables and the stored procedures being created will not be able to be executed until the tables are present.

- Right click on the item Database in the side pane.
-- Choose New Database...
--- For Database name put, Luna_Log
-- Open luna_logdb.sql
--- Press Execute

Notice: Ignore any SQL Errors.
The Error states that the database is missing tables and the stored procedures being created will not be able to be executed until the tables are present.

--

Open the RUN Dialog.
- Type, odbcad32
-- Submit
--- Click Add...
---- Select "SQL Server" from the list
----- Click Finish, When it asks for A Data Source Name, put "luna_gamedb".
------ Fill out the MSSQL Information Accordingly.
------- In the Drop menu for Default Database Choose "Luna_Game".
-------- Click Next until you are Finished.

--- Click Add...
---- Select "SQL Server" from the list
----- Click Finish, When it asks for A Data Source Name, put "luna_memberdb".
------ Fill out the MSSQL Information Accordingly.
------- In the Drop menu for Default Database Choose "Luna_Member".
-------- Click Next until you are Finished.

--- Click Add...
---- Select "SQL Server" from the list
----- Click Finish, When it asks for A Data Source Name, put "luna_logdb".
------ Fill out the MSSQL Information Accordingly.
------- In the Drop menu for Default Database Choose "Luna_Log".
-------- Click Next until you are Finished.

--

Go to your Luna Online Server Folder.

- Right click on "AgentServer.exe"
-- Chosoe to edit with Hex Workshop
--- Press "Ctrl+ f"
--- Search for GameSrv and replace it with your MSSQL Login User Name
---- Below that should be some text that says Luna, replace that with yout MSSQL User Password.
(Note: it is placed in the executable twice, both need to be replaced)
----- Save the Executable.

- Right click on "DistributeServer.exe"
-- Chosoe to edit with Hex Workshop
--- Press "Ctrl+ f"
--- Search for GameSrv and replace it with your MSSQL Login User Name
---- Below that should be some text that says Luna, replace that with yout MSSQL User Password.
(Note: it is placed in the executable twice, both need to be replaced)
----- Save the Executable.

- Right click on "MapServer.exe"
-- Chosoe to edit with Hex Workshop
--- Press "Ctrl+ f"
--- Search for GameSrv and replace it with your MSSQL Login User Name
---- Below that should be some text that says Luna, replace that with yout MSSQL User Password.
(Note: it is placed in the executable twice, both need to be replaced)

----- Save the Executable.

--

Go to your MHBinPacker Folder

- Start "MHBinPacker.exe"
-- Open the Open File Dialog
--- Navigate to your Luna Online Client/System Folder and open "settings.bin"
---- There should be 2 IP`s and a port Copy The Distribute Server IP Address to a notepad for later.
----- Change both of the IP Addresses to your IP, chanege the port to "16002"
------ Save the File

-- Open the Open File Dialog
--- Navigate to your Luna Online Client/System Folder and open "serverlist.bin"
---- There Should be a server name, a server port, and a server ip. I dont remember the order.
----- Change The Server Name to "YOUR SEVER NAME", change the port to "16002", Change the ip to "YOUR IP"
------ Save the File

-- Open the Open File Dialog
--- Navigate to your Luna Online Sercer/Serverset/0 Folder and open "ChannelInfo.bin"
---- Edit The Channel name According to how you want.
----- Save the File

--

Open your Luna Online Client Folder
-- Chosoe to edit with Hex Workshop
--- Press "Ctrl+ f"
---- Search for the IP address you got from the settings.bin File Earlier and repalce the ip with yours
----- Save The Executable

--

Go to your OllyDbg Folder
- Start "OllyDbg.exe"
-- Go to File -> Open
--- Navigate to your Luna Online Client Folder
---- Choose "LunaClient.exe"
----- Press OK/Open
------ In The CPU Window, Right Click
------- Select Search -> Search for All Refrenced Text Strings
-------- Right Click in the new Windows
--------- Select Search For Text
----------- UnCheck Case Sensitive, Ckeck Entire Scope
------------ Search for the String "You should not execute directly this file"
------------- Double Click onit, it will bring you back to the CPU Window

Should Look Like This

Code:
005D5104   . EB 1C          JE SHORT LUNAClie.005D5122
005D5106   . 50             PUSH EAX                                 ; /Style => MB_OK|MB_APPLMODAL
005D5107   . 68 48A99200    PUSH LUNAClie.0092A948                   ; |Title = "Error!!"
005D510C   . 68 14A99200    PUSH LUNAClie.0092A914                   ; |Text = "You should not execute directly this file!!
005D5111   . 50             PUSH EAX                                 ; |hOwner => NULL
005D5112   . FF15 E8DCB400  CALL DWORD PTR DS:[<&USER32.MessageBoxA>>; \MessageBoxA

-------------- Double Click on the text "JE SHORT LUNAClie."
--------------- In The Dialog, change the text "JNZ" to "JMP"
---------------- Click OK
----------------- Right Click in the CPU Window
------------------- Choose Copy To Executable -> All Modifications
-------------------- In The New Window, Right Click
--------------------- Choose to save file

--

Open your Luna Online Server/Serverset/0 Folder
-- Start "MakeServerList.exe"
You will need to make a Server List according to blow.

Code:
MAP_SERVER 2  YOUR_IP 18002  NO_IP NO_PORT
MAP_SERVER 12 YOUR_IP 18012  NO_IP NO_PORT
MAP_SERVER 13 YOUR_IP 18013  NO_IP NO_PORT
MAP_SERVER 14 YOUR_IP 18014  NO_IP NO_PORT
MAP_SERVER 15 YOUR_IP 18015  NO_IP NO_PORT
MAP_SERVER 16 YOUR_IP 18016  NO_IP NO_PORT
MAP_SERVER 17 YOUR_IP 18017  NO_IP NO_PORT
MAP_SERVER 18 YOUR_IP 18018  NO_IP NO_PORT
MAP_SERVER 19 YOUR_IP 18019  NO_IP NO_PORT
MAP_SERVER 20 YOUR_IP 18020  NO_IP NO_PORT
MAP_SERVER 21 YOUR_IP 18021  NO_IP NO_PORT
MAP_SERVER 22 YOUR_IP 18022  NO_IP NO_PORT
MAP_SERVER 23 YOUR_IP 18023  NO_IP NO_PORT
MAP_SERVER 24 YOUR_IP 18024  NO_IP NO_PORT
MAP_SERVER 25 YOUR_IP 18025  NO_IP NO_PORT
MAP_SERVER 26 YOUR_IP 18026  NO_IP NO_PORT
MAP_SERVER 27 YOUR_IP 18027  NO_IP NO_PORT
MAP_SERVER 28 YOUR_IP 18028  NO_IP NO_PORT
MAP_SERVER 29 YOUR_IP 18029  NO_IP NO_PORT
MAP_SERVER 30 YOUR_IP 18030  NO_IP NO_PORT
MAP_SERVER 31 YOUR_IP 18031  NO_IP NO_PORT
MAP_SERVER 32 YOUR_IP 18032  NO_IP NO_PORT
MAP_SERVER 33 YOUR_IP 18033  NO_IP NO_PORT
MAP_SERVER 34 YOUR_IP 18034  NO_IP NO_PORT
MAP_SERVER 41 YOUR_IP 18041  NO_IP NO_PORT
MAP_SERVER 42 YOUR_IP 18042  NO_IP NO_PORT
MAP_SERVER 51 YOUR_IP 18051  NO_IP NO_PORT
MAP_SERVER 52 YOUR_IP 18052  NO_IP NO_PORT
MAP_SERVER 53 YOUR_IP 18053  NO_IP NO_PORT
MAP_SERVER 54 YOUR_IP 18054  NO_IP NO_PORT
MAP_SERVER 55 YOUR_IP 18055  NO_IP NO_PORT
MAP_SERVER 91 YOUR_IP 18091  NO_IP NO_PORT
MAP_SERVER 92 YOUR_IP 18092  NO_IP NO_PORT
MAP_SERVER 93 YOUR_IP 18093  NO_IP NO_PORT
MAP_SERVER 94 YOUR_IP 18094  NO_IP NO_PORT
DISTRIBUTE_SERVER 0 YOUR_IP 16001 YOUR_IP 16002
AGENT_SERVER 0 YOUR_IP 17001 YOUR_IP 17002

ServerSet No. 0
--- Save as "serverlist.msl"
--

Open your Luna Online Server Folder
- Start "DistributeServe.exe"
-- Start "MapServer.exe" with the following Syntaxes, how you choose to do them is up to you.

Code:
mapserver.exe 2
mapserver.exe 12
mapserver.exe 13
mapserver.exe 14
mapserver.exe 15
mapserver.exe 16
mapserver.exe 17
mapserver.exe 18
mapserver.exe 19
mapserver.exe 20
mapserver.exe 21
mapserver.exe 22
mapserver.exe 23
mapserver.exe 24
mapserver.exe 25
mapserver.exe 26
mapserver.exe 27
mapserver.exe 28
mapserver.exe 29
mapserver.exe 30
mapserver.exe 31
mapserver.exe 32
mapserver.exe 33
mapserver.exe 34
mapserver.exe 41
mapserver.exe 42
mapserver.exe 51
mapserver.exe 52
Mapserver.exe 53
mapserver.exe 54
mapserver.exe 55
mapserver.exe 91
mapserver.exe 92
mapserver.exe 93
mapserver.exe 94

--- Start "AgentServer.exe"

Notce: Ignore errors "Cannot Connect to MS Server".
The Monitor Server is not currently available due to a compressesion or encryption on the ".tmp" file that is supposed to be included. The ".tmp" file contains some SQL Connection Information. As to how to edit the ".tmp" file is not publicly known. If the file is present in the Server Folder all the server files will try to use it. Currently recommended to remove the file if present. If anyone has information to editing the ".tmp" file please post it. It is required to run the Monitor Servers.

--

Download the
- Run the installer and follow it accordingly.
-- Install it to the Path "c"/web/apache"

Download the
- Run the installer and follow it accordingly.
-- Install it to the Path "c"/web/php"
--- Apache`s configuration path is "c/web/apache/conf"
---- Click on Extensions in the features panel Choose to install all.

In the Notifications area of your task-bar should be a Apache icon, click it
-- Choose Restart Apache

Download The
- Extract it to "c/web/apache/htdocs"
-- open the file "config.php" inside the "include" folder
-- Fill out your MSSQL Server and Login Infom then Save the file.

Create a Account at
- Upon Completion you will receive a public and a private key
-- Open the file "Register.php" inside the "htdocs" folder
--- Search for "$publickey = "6Ld6kAYAAAAAAInr_9SvDx5ZEof1i9Zy9wDthKHw";"
---- Replace whats in the "" with your Public Key
--- Search for "$privatekey = "6Ld6kAYAAAAAANuPFflVV7lpKsXCZQrdFDz8BiWt";"
---- Replace whats in the "" with your Private Key
----- Save File

------- Download The
-------- Extract the php file to "c/web/apache/htdocs/include"

--

Go to "http://YOUR_IP/Register.php" to create a account.

--

Go to you Luna Online Client Folder and Start LunaClient.exe
- Select Server
-- Login

Notice: This Guide was made based off of memory, I have not touched Luna Online in over 2 months.
 
Last edited:
Newbie Spellweaver
Joined
Mar 18, 2007
Messages
12
Reaction score
0
nice guide, though its a little late for me to know this kind of setup. Will help those who are getting stuck partway.
 
Newbie Spellweaver
Joined
Nov 6, 2008
Messages
25
Reaction score
0
Hi Nyr43 i find this guide useful and easy to understand than the other. Um, can i ask for some assistance in this thread while setting up my server? thanks in advance.

1st question is: i dont have 8gb of ram to ran all the map in this game. What i want only in this server is to make it like testing ground for me. Not planning on hosting or any other intentions. So how can i run 1 map only like let's say alkier harbor only.

2nd: ok i finish editing what i need to edit but still when i open agentserver and distributeserver it fails to connect to the ms and to the server. need help please.
 
Last edited:
Newbie Spellweaver
Joined
Mar 9, 2008
Messages
74
Reaction score
0
does all work on this server or are there still things not working?
 
Newbie Spellweaver
Joined
Jul 30, 2009
Messages
64
Reaction score
4
lol, well he's happy, its a nice guide, but still things I needed to do that are missing

I needed to make sure the client and the server bin files matched, that they read each other correctly with the ver files so that they connected together an such, yet again, its been a while sense I touched mine, so I don't know everything I did :\
 
Newbie Spellweaver
Joined
Dec 4, 2007
Messages
57
Reaction score
2
lol, well he's happy, its a nice guide, but still things I needed to do that are missing

I needed to make sure the client and the server bin files matched, that they read each other correctly with the ver files so that they connected together an such, yet again, its been a while sense I touched mine, so I don't know everything I did :\
me too,

i didn't found this files in my Client/System:
settings.bin
serverlist.bin

i did download the same Client of this Tutorial.
Please, look one image of my Client/System Folder in Attach Files.


Thanks for this Helpfull Tutorial.
 

Attachments

You must be registered for see attachments list
Last edited:
Newbie Spellweaver
Joined
Jul 30, 2009
Messages
64
Reaction score
4
Re: [Guide] How to Set-Up A Luna Online Server + Client + Registration

dont worry about the settings.bin, idk where he got that bin file, open your serverlist.bin with the bin editor

should look like this
Nayr438 - Setting Up a Luna Server With Client - RaGEZONE Forums


change the ip address (192.168.0.67 on this screenshot) to ip address

and change the port (14700 on this screenshot) to the port you set in the serverlist.msl (which if you followed guide, 16002)

Code:
MAP_SERVER 92 YOUR_IP 18092  NO_IP NO_PORT
MAP_SERVER 93 YOUR_IP 18093  NO_IP NO_PORT
MAP_SERVER 94 YOUR_IP 18094  NO_IP NO_PORT
DISTRIBUTE_SERVER 0 YOUR_IP 16001 YOUR_IP [COLOR="Red"]16002[/COLOR]
AGENT_SERVER 0 YOUR_IP 17001 YOUR_IP 17002

then the name, ('test server' on the screenshot)

thats about it, save it, test it with your server and any more troubles, feel free to ask
 
Junior Spellweaver
Joined
Aug 8, 2005
Messages
107
Reaction score
1
Hixx... help me !!!

When my enter u and p and click Connect --> Error : Clients have changed. Please ...

Client not found Settings.bin file :(

i changed ip and port in serverlist.bin
 
Last edited:
Newbie Spellweaver
Joined
Jun 5, 2005
Messages
15
Reaction score
1
Hixx... help me !!!

When my enter u and p and click Connect --> Error : Clients have changed. Please ...

Client not found Settings.bin file :(

i changed ip and port in serverlist.bin

The client version is located inside of the EXE (hex edit it) and it must match with the contents of ClientVerInfo.ver on the server.
 
(oO (||||) (||||) Oo)
Loyal Member
Joined
Aug 6, 2009
Messages
2,132
Reaction score
429
[PROBLEM]
Error while running DistributeServe.exe
Error: "Fail initialize Console"
OS: Windows XP x64
MSSQL Server: 2005 Express 64-bit
.NET Framework 2.0: YES

[SOLUTION]
Go to your Luna Online Server folder and then go to Dll folder.
Then once you are in that folder run file regbat.bat
That is it :thumbup:
 
Last edited:
Newbie Spellweaver
Joined
Aug 22, 2006
Messages
6
Reaction score
0
The client version is located inside of the EXE (hex edit it) and it must match with the contents of ClientVerInfo.ver on the server.
brandon,

i can't seems to find the hex value for the client like what you said, hex edit it.
btw my server version is LTWC10051301
and i changed my client's version which is in LunaVerInfo.ver for client side to match the server but still getting the error for client doesn't match(i'm using malaysia luna online client btw)
 
Last edited:
Newbie Spellweaver
Joined
May 30, 2009
Messages
10
Reaction score
0
help!!
when i run obdcad32..

it says "obdcad32" cannot be found.

whoa..

peleasr hep me
 
Initiate Mage
Joined
Oct 30, 2009
Messages
4
Reaction score
0
Please read more carefully. Run "odbcad32" you had your d and b switched.
 
Junior Spellweaver
Joined
Oct 17, 2008
Messages
113
Reaction score
0
zzzzz th thai client link death and i try using the MY client zzz it not working T_T......... any solution
 
(oO (||||) (||||) Oo)
Loyal Member
Joined
Aug 6, 2009
Messages
2,132
Reaction score
429
The client version is located inside of the EXE (hex edit it) and it must match with the contents of ClientVerInfo.ver on the server.

Please specify how exactly you find client version in .exe file with HEX editor. is there specific place (at the beggining or end) or specific patters or whatever?
 
Back
Top