+ All Categories
Home > Documents > Complete Pangya Setup Guide v1.2

Complete Pangya Setup Guide v1.2

Date post: 03-Oct-2014
Category:
Upload: bananaspilt
View: 975 times
Download: 3 times
Share this document with a friend
24
Complete Pangya Setup Guide [v1.2] by terrorofdeath This guide is meant to grant people a step-by-step walk-through of setting up and playing their own Personal Server of Pangya 4.9. As such, this covers the basics in setting up the server, adjusting it for LAN play, and some of the more common things people do first in their personal server. It does not cover more complex topics such as adding items not currently a part of the server/client, website registration design, etc. This guide was written when I was using a Windows XP SP3 desktop. Vista and Windows 7 users may have a bit of trouble when this guide references system locations such as “Administrative Tools” under Control Panel, but it's nothing a quick internet search can't help you figure out. ~terrorofdeath Recent Changes [v1.2]: The addition of the Additional Topics of Interest section. Minor edits and corrections. More screenshots! xD Topics of Discussion: I. Getting What's Needed II. The Database 2a. The SQL Server 2b. Installing the Pangya Database Files III. ODBC IV. The Pangya Server V. The Client 5a. Preparing the Client 5b. Creating an Account 5c. Starting up and Logging in! VI. Setting up for LAN Play 6a. Obtaining a Static LAN IP 6b. Adjusting Pangya Server Files and Hexing the Client VII. Stuff you Likely Want to Do First 7a. Adding Pang and Points/Cookies 7b. Adjusting Player Rank 7c. Give an Account a Single Item 7d. Give an Account “Everything” VIII. Additional Topics of Interest 8a. Accessing the Database on Another Computer 8b. Setting up for LAN Play IX. Credits X. Legal, Disclaimer, etc.
Transcript
Page 1: Complete Pangya Setup Guide v1.2

Complete Pangya Setup Guide [v1.2] by terrorofdeath

This guide is meant to grant people a step-by-step walk-through of setting up and playing their own Personal

Server of Pangya 4.9. As such, this covers the basics in setting up the server, adjusting it for LAN play, and some of the

more common things people do first in their personal server. It does not cover more complex topics such as adding items

not currently a part of the server/client, website registration design, etc.

This guide was written when I was using a Windows XP SP3 desktop. Vista and Windows 7 users may have a bit

of trouble when this guide references system locations such as “Administrative Tools” under Control Panel, but it's nothing

a quick internet search can't help you figure out.

~terrorofdeath

Recent Changes [v1.2]:

– The addition of the Additional Topics of Interest section.

– Minor edits and corrections. More screenshots! xD

Topics of Discussion:

I. Getting What's Needed

II. The Database

2a. The SQL Server

2b. Installing the Pangya Database Files

III. ODBC

IV. The Pangya Server

V. The Client

5a. Preparing the Client

5b. Creating an Account

5c. Starting up and Logging in!

VI. Setting up for LAN Play

6a. Obtaining a Static LAN IP

6b. Adjusting Pangya Server Files and Hexing the Client

VII. Stuff you Likely Want to Do First

7a. Adding Pang and Points/Cookies

7b. Adjusting Player Rank

7c. Give an Account a Single Item

7d. Give an Account “Everything”

VIII. Additional Topics of Interest

8a. Accessing the Database on Another Computer

8b. Setting up for LAN Play

IX. Credits

X. Legal, Disclaimer, etc.

Page 2: Complete Pangya Setup Guide v1.2

I. Getting What's Needed:

– A SQL Server and SQL Management Program

– This guide will be using SQL Server 2008 which is free from Microsoft found here:

http://www.microsoft.com/express/Database/InstallOptions.aspx

– Download the “Database with Management Tools”option.

– SQL 2005 Alternative: http://www.microsoft.com/Sqlserver/2005/en/us/express-down.aspx

– You will want both the “Microsoft SQL Server 2005 Express Edition” and “SQL Server Management

Studio Express” downloads.

– The Pangya 4.9 Server, Database, and Client Files

– Can be found at this Ragezone Forum Release by mrNickname.

– Files:

– Py S4.9 Server + Database Repack v.2-R1 (PyServer Repack.v2.rar)

– Custom TH Pangya S4.9 English UI Edition - 582.05-R1 (PyClient_582.05-R1EN.rar)

My old Kooh on the NA Pangya. I miss my specs...

II. The Database:

2a. The SQL Server

First, we need to prepare a server instance to place the database files into. If you're using the SQL Server 2008 I

referenced earlier, run the SQLEXPRWT... program. If you're using another version, run the executable which sets up the

server.

(Note: The steps will be for SQL 2008; other versions may be slightly different.)

Page 3: Complete Pangya Setup Guide v1.2

– Installer Steps:

– Choose the “New Installation...” option and wait for a window to appear.

– Mark that you “accept the license terms” and click “Next >”

– Allow the installer time to prepare files for installation.

– The installer will make sure your system can host the SQL server.

Page 4: Complete Pangya Setup Guide v1.2

– If everything checks out green, click “Next >”.

– If not, make an attempt to resolve the issues and try again.

– If you, like me, need PowerShell, you can download it here.

– All features will be set to install. You may change the installation directory to what you wish. Click “Next >”.

Page 5: Complete Pangya Setup Guide v1.2

– Use the “Default instance” and click “Next >”.

– You can use a named instance if you wish, but this guide will proceed with a default instance.

– Click “Next >” until you arrive at the “Database Engine Configuration” and “Authentication Mode”

screen. Choose Mixed Mode and enter a password for the “sa” (System Administrator) user of your

server. Remember this password. Click “Next >”.

Page 6: Complete Pangya Setup Guide v1.2

– Click “Next >” and the SQL server will start installing. When it finishes, click “Close”.

2b. Installing the Pangya Database Files

Now that the database server has been made, we must now install the Pangya databases into it.

– Is the server running?

– Go to Start → Programs → Microsoft SQL Server 2008 R2 → Configuration Tools → SQL Server

Configuration Manager.

– Click on the “SQL Server Services” on the left column. Make sure “SQL Server (server_name)” has a green

symbol next to it. If not, click on it and hit the play button on the top of the window.

– If you're not using your server, it's good practice to turn it off and save resources.

Page 7: Complete Pangya Setup Guide v1.2

– Creating the Databases:

– Go to Start → Programs → Microsoft SQL Server 2008 R2 → SQL Server Management Studio. (I will refer

to this program as SMS from now on.)

– A screen will prompt you to “Connect to Server”. Generally the inserted information is correct so you can just

hit “Connect” and things should work.

– Server Type: Database Engine

– Server Name: Should be automatic and will likely be your computer's name. If you're using the

default instance, inserting “(local)” should work as well.

– Authentication: Windows Authentication

– Once connected, open the PyServer Repack.v2.rar and open the Database Repack.v2 folder.

Page 8: Complete Pangya Setup Guide v1.2

– Open the 1 - Bootstrap - Edit SQL PW.sql file. This will open a query window in SMS.

– Find this line: SET @DBUSER_PASSWORD = N'EDIT YOUR PW HERE!'

– Change “EDIT YOUR PW HERE!” to the password you entered at the “Authentication Mode” screen

in the SQL installer.

– Hit “! Execute” at the top of the SMS window. A message should appear saying something like

“Pangya_S4_TH database resides at...”.

Page 9: Complete Pangya Setup Guide v1.2

– Return to the Database Repack.v2 folder, open the 2 – INI3BIll_DB.sql file.

– Hit “! Execute” in the SMS window. (Ignore the various “module” messages.)

– Repeat the last 2 steps for the remaining files in the Database Repack.v2 folder.

– Go in numerical order!

– Ignore the “module” messages for the 4 – Pangya_S4_TH.sql file.

III. ODBC

In order for the Pangya server to communicate with the database server, we need to set up Open Database

Connectivity (ODBC) for each of the three databases.

– Open Control Panel → Administrative Tools → Data Sources (ODBC).

– Click the “System DSN” tab and then the “Add...” button.

– In the new window, scroll down to “SQL Server Native Client 10.0” and select it. Click “Finish”.

Page 10: Complete Pangya Setup Guide v1.2

– Complete the information in the new window:

– Name: A database name; use “ini3_py_account”.

– Description: Not needed.

– Server: Find the name of your server from the dropdown menu.

– Hit “Next >” twice.

– Change the default database to the same name as the ODBC connection; “ini3_py_account”. Click “Next >”.

– Mark the checkbox next to “Change the language of SQL server messages to...” and choose English from the

dropdown menu. Click “Finish”.

Page 11: Complete Pangya Setup Guide v1.2

– Click the “Test Data Source...” button on the window which appears. You should receive a message saying

“TESTS COMPLETED SUCCESSFULLY!”. Click “OK” twice.

– Hit the “Add...” button again and follow the previous steps to set up ODBC for 'INI3Bill_DB' and

'Pangya_S4_TH'.

– Don't forget to choose the correct default database for each connection!

About time Max looks cool. Usually he just looked...

Page 12: Complete Pangya Setup Guide v1.2

IV. The Pangya Server

Now we can install and configure the Pangya server files for single computer play.

– Begin by opening the PyServer Repack.v2.rar again and extracting the PANGYA_SRV Repack.v2 folder

somewhere on your computer.

– Important Note: authserver_th_578.01_rel.exe and gameserver_th_581.06_rel.exe may set off your Anti-

Virus. These are false positives; add both of these server components to your Anti-Virus' exception list.

– The server files are separated into six parts; of these six, only the “Auth”, “Login”, and “Py_GameServer” folders

are absolutely necessary to play the game.

– “MSG SERVER” and “BINDSERVER” are required for messaging apparently. While optional, you can

use these as well.

– (I don't use “Ranking” and neither do most people. Feel free to do the same.)

– Enter the folders whose server component you will be using and look for the .ini files in each of them:

– Auth\Auth.ini

– Login\Login.ini

– Py_GameServer\Server.ini

– MSG SERVER\messenger.ini

– BINDSERVR\bindmsgsserver.ini

– Ranking\rankserver.ini

– Open each of these .ini files; look for and edit the following:

– “EDIT YOUR PW HERE!” - Insert the password you entered for the "sa" user.

– “LOGROOTDIR=” - Change this if you want log files going somewhere specific.

Page 13: Complete Pangya Setup Guide v1.2

V. The Client

5a. Preparing the Client

Just one last thing to set up- the client- before we can start things up and get to playing!

– Open PyClient_582.05-R1EN.rar.

– Extract the included folder- Pangya_PrivateClient - somewhere on your computer. (Easy no?)

5b. Creating an Account

Can't exactly tell if it works without making an account to log in with first.

– Open the SMS and connect to your database server.

– On the left hand side is the “Object Explorer” where the databases and their tables and procedures are listed.

– Expand: Databases → ini3_py_account → Programability → System Stored Procedures.

– Right Click on “dbo.SP_PANGYA_REGIST” and choose “Execute Stored Procedure...”

Page 14: Complete Pangya Setup Guide v1.2

– Fill out the form which appears:

– @idcard: Internal reference; can just be a number.

– @sex: 0 for male account, 1 for female account.

– @birthday: In the format YYYYMMDD.

– @zipcode: A 5 digit number. Can be anything.

– @id: The account's User ID used to log in.

– @pswd: The account's password used to log in.

– Once complete, hit the “OK” button. It should go ahead and make the new account.

– Right Click on “dbo.SP_PANGYA_ACTIVATE” and choose “Execute Stored Procedure...”

– Insert the User ID for the account you just made and click “OK”.

A kitty suit!? A real one?! Kawaii!

Page 15: Complete Pangya Setup Guide v1.2

5c. Starting up and Logging in!

Now, to put it all together!

– Navigate to your Server Files folder.

– Start the .exe files in the “Auth”, “Login”, and “Py_GameServer” (and any additional components you wish).

– Don't want to start all the files separately? Try this neat little file. (You need to edit it first.)

– Locate the Login Server command prompt. Type in “alluseropen” to allow players to log in.

– Navigate to the Pangya_PrivateClient folder on your computer. Run the ProjectG.exe.

– At the login screen, type in the User ID and password you used in making the account and hit enter. With any luck,

you should go through and you'll see the windows to make your nickname and adjust your first character.

– Congrats! You have a working Pangya Personal Server!

Oh SMILE...don't kill me! (At least I think this was SMILE...)

Page 16: Complete Pangya Setup Guide v1.2

VI. Setting up for LAN Play

Pangya isn't exactly a game you can play alone (unless you just wanted a dress up game, ha!). Setting up the server

and client to work across a local area network (LAN for short; a network which is within a small area) is easily done so you

and your friends can play together without stacking clients on a single computer.

This guide assumes you use a single router to connect 2 or more computers and that your router works like mine

(an old Linksys). If these steps don't work, everything is easily reversible to the single machine setup and should give

enough insight for you to try and figure it out on your own.

6a. Obtaining a Static LAN IP

Most routers assign machines a LAN IP on a “first come, first serve basis” and in the range of 192.168.1.xxx. This

generally means that whichever computer in your network connects to the router first will be given the IP address

192.168.1.2 , the second to access 192.168.1.3, and so on.

This doesn't work for us when we want the IP of the computer hosting the server to remain static (or, to have the

same IP each time) so the client- when edited- will always communicate with the correct computer all the time. So, to start,

we must set a static IP for the server hosting computer.

– Click Start → Run

– Type in “cmd” and click the “Ok” button.

– In the DOS window that appears, type in “ipconfig /all” and hit enter.

– Search the list for the computer's connection to the router.

– Write down the Subnet Mask, Default Gateway, and DNS server IP(s) somewhere and close the command prompt.

– Click Start → Settings → Network Connections

Page 17: Complete Pangya Setup Guide v1.2

– Right click the connection under the “LAN or High-Speed Internet” header which represents the computer's

connection with the router and open “Properties”.

– Scroll to the bottom of the list in the properties window, left click on “Internet Protocol (TCP/IP)” to highlight it.

Hit the “Properties”button.

– Set both “Use the following...” radio buttons and fill in the test boxes:

– IP Address: The static IP the computer should be assigned. If your router uses the 192.168.1.xxx IP

system, you most likely want to set this IP to “192.168.1.9”.

– Set the Subnet Mask, Default Gateway, and DNS servers as you found them in the command prompt.

Page 18: Complete Pangya Setup Guide v1.2

– Click “Ok” twice and close the Network Connections window.

– Try using your internet browser to access the internet. If you still can connect, then everything should

have worked out. If not, double check these steps. If you continue to have trouble, set the IP/DNS back

to automatic.

6b. Adjusting Pangya Server Files and Hexing the Client

Now that your server hosting computer has a static LAN IP, we can continue on to adjusting the server files and

client to use this new IP.

– Open the Server Files folder.

– Open all the .ini files for the various components and change all the instances of “127.0.0.1” to the static IP you

just assigned to the server computer.

– If you are using “192.168.1.9”, you can download a usable client executable here.

– If not, you have to do it manually. Download a HEX Editor program such as XVI32.

– Make a copy of your ProjectG.exe and name it something like ProjectG_LAN.exe.

– Start up XVI32.exe. File → Open the copied executable.

– Search → Find. Look for the text string 127.0.0.1.

Page 19: Complete Pangya Setup Guide v1.2

– Replace it with your computer's static IP. (Your IP can not be longer than 8 characters excluding the 3 periods.)

– Save the executable and run it with the server running.

– This client will work on the server computer and any other computer on the network. So long as the server is

configured with the computer's static IP, the original client (127.0.0.1) will not work.

Page 20: Complete Pangya Setup Guide v1.2

VII. Stuff you Likely Want to Do First

Once you have your Personal Server set up, you no doubt want to play around a bit first. I suggest you make an

account (or two or three or four) strictly for playing around with first so you can keep serious work/play separate from the

fun stuff. (Be sure to log in at least once with the account you will be playing with before doing any of the following.)

7a. Adding Pang and Points/Cookies

– Pang

– Open SMS and log into the database.

– Databases → Pangya_S4_TH → Programability → Stored Procedures

– Right Click on “dbo.Ini3sp_AddPang” and choose “Execute Stored Procedure...”

– @id: The user ID used to log into the game of the account you wish to add pang to.

– @pang: The amount of pang you wish to add (or remove) from the account.

– Hit OK to execute the procedure.

– Cookie Points

– Open SMS and log into the database.

– Copy the query in found within the spoiler box of Tsubasa's post here. (dbo.TSU_ADD_COOKIES)

– Click "New Query" on the top left of the SMS window. Paste the query into the query window.

– Execute the query to enter into your database.

– Databases → Pangya_S4_TH → INI3Bill_DB → Stored Procedures

– Right Click on “dbo.TSU_ADD_COOKIES” and choose “Execute Stored Procedure...”

– @Usrid: The user ID used to log into the game of the account you wish to add pang to.

– @CookiesToAdd: The amount of cookie points you wish to add (or remove) from the account.

– Hit OK to execute the procedure.

– Both

– Open the PyServer Repack.v2.rar and open the folder Admin Procedures in it.

– Double click the Add Pangs & Points Procedure.sql file. This opens a query in SMS.

– Follow the directions in the query (found in green) and hit Execute.

7b. Adjusting Player Rank

– Open the PyServer Repack.v2.rar and open the folder Admin Procedures in it.

– Double click the Set Player Level.sql file. This opens a query in SMS.

– Change the UID='X' for the account you want and the game_level='X' (max 70) for the rank you want

– Hit Execute. Confirm the changes in the table which appears in the Results window.

Page 21: Complete Pangya Setup Guide v1.2

7c. Give an Account a Single Item

– Open the PyServer Repack.v2.rar and open the folder Admin Procedures in it.

– Double click the Add Item Procedure.sql file. This opens a query in SMS.

– Execute the querry.

– Databases → Pangya_S4_TH → INI3Bill_DB → Stored Procedures

– Right Click on “dbo.TSU_AddItemToUser” and choose “Execute Stored Procedure...”

– @user_id: The user ID used to log into the game of the account you wish to add the item to.

– @item_id: The item ID of the item you wish to add.

– You can find a list of most items in your database.

– Pangya_S4_TH → Tables

– Right Click on “dbo.PANGYA_ITEM_TYPELIST” and choose “Select Top 100 Rows”.

– A query will appear and execute. Change it to say “SELECT TOP 5000 [TYPEID]”.

– Execute the procedure. A table will appear with item IDs and item descriptions you can use

for reference.

– Hit OK to execute the procedure.

7d. Give an Account “Everything” (Well, all the clothing...)

WARNING! This query will result in your account becoming unable to purchase items equipment items (clothes

and clubs) in-game. Make sure you purchase the club sets you want before using this procedure as it does not include club

sets, only character clothing.

– Open the PyServer Repack.v2.rar and open the folder Admin Procedures in it.

– Double click the Add ALL Items Procedure.sql file. This opens a query in SMS.

– Edit the UID line (surrounded in green comments) to match the account you wish to use.

– Execute the querry. It may take some time, so be patient.

Page 22: Complete Pangya Setup Guide v1.2

VIII. Additional Topics of Interest

The following topics are not required to run the server but may be of interest to certain users. Please note that, at

the moment, I could not get either of these to work for me so my explanation of them may be incomplete.

8a. Accessing the Database on Another Computer (included by Tsukasa's suggestion)

In the event you want to run the database and Pangya servers on a computer separate from the computer you tend

to use. As such, you may want to access the the database server with SMS from the remote computer. If so, there's a few

things you need to do first to allow for remote access and log in:

– On the server computer, open SMS and log into the database server.

– Right click on the server line in the Object Explorer and choose “Properties”.

– In “Connections”, make sure “allow remote connections to this server” is checked on. Close SMS.

– Go to Start → Programs → Microsoft SQL Server 2008 R2 → Configuration Tools → SQL Server Configuration

Manager.

– Click on the “SQL Server Network Configuration” and choose the “Protocols for ...” line for your server.

– Right click on “Named Pipes” and “TCP/IP” and enable them. Read the window which appears and hit OK.

– As the message states, we need to restart the service. Click on the “SQL Server Services” on the left column.

– Click your server instance and hit the “Restart Service” button on the top of the window.

– Also (re)start “SQL Server Browser”.

– Now the server will accept outside connections. Now to set up SMS on the remote computer.

– On the remote computer, download the “Management Tools” executable from Windows.

– Install the Management Tools. In general, you can just hit “Next >” until it installs.

– Start up SMS on the remote commuter. On the “Connect” window:

– Server name: Enter the server's location in the form of “IP\SERVER NAME”.

– Authentication: Switch to “SQL Server Authentication”.

– Username: sa

– Password: Your database password.

– If you're luckier than I am, you should be able to connect. ;3

Page 23: Complete Pangya Setup Guide v1.2

8b. Setting up for WAN Play

I couldn't figure it out myself, so, for now, allow me to share what I have figured out:

– Routers suck and make things really complicated. Most don't allow you to do LAN and WAN at the same time.

– Your WAN IP should be static and can only have a maximum of 8 numbers (else it doesn't fit in the client

executable). These things you can not change yourself easily- if at all- like the LAN IP.

– Tsukasa has a possible solution using proxies to bypass the router problem. It tunnels the external clients to your

network and they connect as if they were on the LAN network. This allows you to preserve a working LAN setup,

use a IP within the 8 number limit if your WAN IP is too large, and allows for simultaneous LAN and WAN play.

– Only thing is that I couldn't get it to work myself and thus can't type up a step-by-step, image rich tutorial

on it (and I unfortunately don't have the time right now to investigate it further; college).

– Luckily, Tsukasa's guide is pretty well detailed. Perhaps you'll have greater luck than I did.

IX. Credits:

– terrorofdeath

– Rawr, I'm a narcissist, a perfectionist, and a Kooh lover よ. Tiki も. :3

– Members of the Ragezone Forums

– Specifically:

– mrNickname: For the repack used in this guide as well as for his own very simple guide which

made sure I didn't forget anything.

– Tsukasa: For pieces of information used in the guide, some additional topic ideas, formatting

most of it for the forum,as well as a number of the procedures included in the repack.

– Everyone else who came before and contributed in some way to the Repack. Pray you'll forgive

me just coming into things and not knowing all of your contributions. >_<

– To those who will, in the future, begin or continue their work in improving the server files. ;3

– Ntreev: For the game of course. <3

Page 24: Complete Pangya Setup Guide v1.2

X. Legal, Disclaimer, etc.

This guide was written by terrorofdeath (terror for short) for the Pangya Server Development section of

http://forum.ragezone.com/ in order to assist people in the creation of their own Personal Servers.

Please do not copy this text or redistribute the pdf file; instead, link to it's thread on the RageZone forums in the

event of future updates.

While I've done my best to be detailed and complete, there's still a chance something will get messed up and

possibly do harm to your computer. I (terrorofdeath) am not liable in the event of damage to your computer, network, or

other property resulting from the use of this guide. Your use of this guide signifies your acceptance and forfeit of

prosecution in any such event.

(Also, why the hell would you bring a case to court which would incriminate you anyways? )


Recommended