Complete Pangya Setup Guide v1
Complete Pangya Setup Guide v1
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 WAN setup, .pak editing, 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
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. Credits
IX. Legal, Disclaimer, etc.
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.
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.)
– Installer Steps:
– Choose the “New Installation...” option and wait for a window to appear.
– Mark that you “accept the license terms” and click “Next >”
– All features will be set to install. You may change the installation directory to what you wish. Click “Next >”.
– 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 >”.
– Up to you whether you want Microsoft snooping on your stuffs. Click “Next >”.
– The SQL server will now install. When it finishes, click “Close”.
Now that the database server has been made, we must now install the Pangya databases into it.
– Once connected, open the PyServer Repack.v2.rar and open the Database Repack.v2 folder.
– Open the 1 - Bootstrap - Edit SQL PW.sql file. This will open a query window in SMS.
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.
– In the new window, scroll down to “SQL Server Native Client 10.0” and select it. Click “Finish”.
– 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.
– Mark the checkbox next to “Change the language of SQL server messages to...” and choose English from the
dropdown menu. Click “Finish”.
– 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!
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.
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?)
Can't exactly tell if it works without making an account to log in with first, no?
– 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”.
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.
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.
– 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.
– 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.
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.
– 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.
– Replace it with your computer's static IP.
– 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.
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.)
– 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
– 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.
– 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 65) for the rank you want
– Hit Execute. Confirm the changes in the table which appears int he Results window.
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.
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.
– Ntreev
– For the game of course. <3
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 redistribute this file; instead, link to it's thread on the RageZone forums in the event of 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 to a case to court which would incriminate you anyways? )