找回密碼
 註冊
查看: 7918|回復: 0
打印 上一主題 下一主題
收起左側

[綜合討論] 開gunz私服教學...唔明..教下我

[複製鏈接]
跳轉到指定樓層
1#
發表於 21-12-2010 19:25:48 | 只看該作者 回帖獎勵 |倒序瀏覽 |閱讀模式
-----[TUT] Setting up a GunZ Server - Detailed Tutorial


+Gunz server.rar
+GunzDB
+Gunz.exe/GunzLauncher(Client)
+Patch_V2
+Microsoft SQL Server Management Studio Express
+Microsoft SQL Server 2005
+MRS Unpacker


(Downloads which have no link can easily be searched for to find the program)

Before you do anything, you are going to need to install Microsoft SQL Server Management Studio Express and Microsoft SQL Server 2005.

Step 1 - Setting up the Database and ODBC:

Creating/Connecting the Database

Open Server Management Studio Express* (SMSE). Within the Object Explorer Panel you will notice the 'Database' folder, right click it, click 'New Database...'.

A 'New Database' form will open, and in the text input type 'GunzDB' and click OK, your database has been created.

The next thing you are going to want to do is restore the Database. Click File> Open> File... and locate your GunzDB.sql file and open it. You are going to have to connect to the database engine, the settings are alright so all you need to do is click 'Connect'. Now right click on 'File' and allow the 'SQL Editor' tool bar to show.

In the toolbar there is a drop-down menu with the 'master' database selected, click on the arrow and select the 'GunzDB' database and click the button next to the drop-down menu, 'Execute'. A message showing 'Command(s) completed successfully.' should notify you that you have done this all correctly.

Creating the ODBC

Click Start> Run> and in the windows input type 'odbcad32'. You should already be in the 'User DSN' tab so click on 'Add'. Another window should pop-up. You'll have to scroll all the way down to the bottom and select 'SQL Server' then click 'Finish'.

Another window/form will pop-up needing information for your new Data Source. For the name, type 'GunzDB', for the description you may type whatever you like, but for the SQL server you which to connect to, you must go back into SMSE*, look in the SQL Editor tool bar and click the 2nd icon which will disconnect you from data engine. Now click the 1st icon which will re-connect you, but make sure to copy the 'Server name' this time, then click 'Connect'.

Now having that in hand, you can go back to creating your ODBC and in the 'Server' text input, paste in your server name. Click next since the settings are currently fine. Now in the next part, click on the tick box and select 'GunzDB' from the drop-down menu and click 'Next' and finally click 'Finish'.

If you would like to check your data source, click 'Test Data Source...' in the window or you can just click 'OK' to finish. Now to completely finish it, click 'OK' again.

Step 2 - Patching GunZ:

Install your GunZ game to a directory of your choice. Now open the Legacy Gamers patch and find the directory where you installed your GunZ game into, and run the patch. After that is done, this step is complete.

Step 3 - Configuring the Server:

Place the server files in your C:\ drive and extract them into a folder with the name 'GunzServer'. Once in the folder, go to the 'Locator' folder and then open the 'Locator.ini' file. Somewhere in the file you should see these lines of code:

\\\\\\\\\\\\\\\\\\\Code\\\\\\\\\\\\
[NETWORK]
IP="217.0.0.1"
PORT="8900"
\\\\\\\\\\\\\\\\\\\Code////////////

You can either change the '217.0.0.0' to your actual IP or localhost which is '127.0.0.1'. Besides that everything else is fine.

Make your way to the MatchServer folder and run 'MatchServer.exe', once loaded you may minimize it.

Step 4 - Creating an Account (Manually):

Bring up SMSE and expand the 'Database' folder if it hasn't already been done. Expand 'GunzDB', expand 'Tables' and right click on 'dbo.Accounts' and 'Open table'.

You do not need to worry about the AID field as that is an automatic generation of account number. In the UserID field, type your account ID, in the Password field, type your account password and in the UGradeID, type in your account grade.

\\\\\\\\\\\\\\\\\\\Code\\\\\\\\\\\
Account Grades
Administrator - 255
Developer - 254
Banned - 253
Normal User - *Leave Blank*
///////////////////Code///////////

After you have typed all of that in, press enter and on the SQL Editor toolbar click 'Execute' (The exclamation mark symbol).

Step 5 - Configuring 'config.xml' to connect to your server:

With that all done, go to the folder where you installed GunZ/Legacy Gamers Patch and find the file 'config.xml'. Right click on it and open with notepad, or similar. You will see this portion of code:

\\\\\\\\\\\\\\\\\\\Code\\\\\\\\\\\
<SERVER>
<IP>legacygamers.com</IP>
<PORT>6000</PORT>
</SERVER>
///////////////////Code///////////

You are going to need to change the 'legacygamers.com' section to the IP you wrote in the 'Locator.ini', if you wrote the localhost IP just change it to read:

\\\\\\\\\\\\\\\\\\\Code\\\\\\\\\\\
<SERVER>
<IP>127.0.0.1</IP>
<PORT>6000</PORT>
</SERVER>
///////////////////Code///////////

Then save the file, File> Save and close it.

Step 6 - Unpacking 'system.mrs':

Extract 'mrs.rar' into your GunZ directory. Create a folder called 'MRS' inside your GunZ directory and place the files 'mrs.exe, zlib.dll and system.mrs' into that folder.

Now, you will need to open WinRAR, direct yourself to the 'MRS' folder in your hard drive. Highlight 'system.mrs' and click the 'Add' button. A window will pop-up, select RAR for the archive format and click 'OK'. Now go back to your 'MRS' folder and create a new 'Text File' with any name you like, but in the file type:

\\\\\\\\\\\\\\\\\\\Code\\\\\\\\\\\
mrs.exe d system.mrs
///////////////////Code///////////

Now save it and change the file extension to '.bat' from '.txt'. Now run that file and a folder named 'system' should come up. Go into that folder and copy the file 'zitem.xml'.

Go back to your 'MatchServer' folder and paste the 'zitem.xml' over the one that is in there. You might need to run your MatchServer.exe again for it to take changes.

Step 7 - Logging in

Run your GunZ client and type the account ID and account password that you used when you made your account in SMSE, you should login.

Congratulations, you have made your GunZ server, enjoy!
Source(s):
Actually I gave you the IGunz client version it's not BR-Client has those full quest modes.Well Heres your guide I'm done with this crap already made myserver.

唔明= = 上面d野點解   仲有佢話要幾個檔案....有的話比我知邊到down..~
回復

使用道具 舉報

您需要登錄後才可以回帖 登錄 | 註冊

本版積分規則

快速回復 返回頂部 返回列表