Sunteți pe pagina 1din 15

Aegis Tutorial

v1 10/29/16

Microsoft SQL Server 2012 Express Setup


Install Microsoft SQL Server 2012 Express with Tools

1. Download the Microsoft SQL Server 2012 Express with Tools installer corresponding to your
processor
 64bit - ENU\x64\SQLEXPRWT_x64_ENU.exe
 32bit - ENU\x86\SQLEXPRWT_x86_ENU.exe
2. Run the installer downloaded in Step 1
a. Select “New SQL Server stand-alone installation or add features to an existing
installation”

Figure 1. Select new SQL server installation

b. Accept the license agreement


c. Elect to include SQL Server updates
d. Select the following features for installation, then click Next (Refer to Figure 2)
 Database Engine Services
 SQL Server Replication
 Management Tools – Basic
 SQL Client Connectivity SDK
 LocalDB

Figure 2. Select the database features to install

e. Click Next to accept the default server name and instance ID (SQLExpress)
f. Click Next to accept the default server configuration
g. Select Mixed Mode (SQL Server authentication and Windows authentication) and enter
the desired password (i.e. “pancakes”) for the SQL server administrator account, then

Figure 3. Select the authentication mode and entering an administrator password

click Next
h. Click Next and wait for the installation to complete
i. Restart the PC
Configure the SQL Server TCP/IP Settings

1. Run SQL Server Configuration Manager


2. Configure the SQL Server Network
a. Expand the SQL Server Network Configuration tree within the selection pane
b. Select Protocols for SQLEXPRESS
c. Right click TCP/IP within the view pane and select enable

Figure 4. TCP/IP Enabled in Protocols for SQLEXPRESS

d. Right click TCP/IP and select Properties


e. Select the IP Addresses tab
f. Enable IP2 and IP4 by selecting Yes in their corresponding dropdown menus

Figure 5. IP2 and IP4 Enabled in TCP/IP Properties


Figure 6. TCP Dynamic Ports set to 1433 under IPAll

g. Set IPAll TCP Dynamic Ports to 1433


h. Click OK to apply the changes
3. Configure the SQL Native Client
a. Expand the SQL Native Client 11.0 Configuration tree within the selection pane
corresponding to your processor
 64bit – SQL Native Client 11.0 Configuration
 32bit – SQL Native Client 11.0 Configuration (32bit)
b. Select Client Protocols
c. Right click TCP/IP within the view pane and select Properties
d. Set the Default Port to 1433

Figure 7. Set the Default Port to 1433

e. Click OK to apply the changes


4. Restart SQL Server Services
a. Select SQL Server Services within the selection pane
b. Right click SQL Server (SQLEXPRESS) within the view pane and select Restart

AEGIS Server Setup


Extract and Attach Aegis Support Board (ASB) Server Files

1. Create a new folder named Aegis on the local disk of the computer
2. Extract all folders from the ASB 5.5 release into the Aegis folder
3. Setup the Aegis databases
a. Run Microsoft SQL Server Management Studio
b. Connect to the SQLEXPRESS database
i. Server name: SQLEXPRESS
ii. Authentication: SQL Server Authentication
iii. Login: sa
iv. Password: [the password you set during the SQL server installation, i.e.
“pancakes” in this tutorial]

Figure 8. Connect to Server using SQL Server Authentication

v. Click Connect
c. Attach Aegis databases
i. Right click the Databases folder in the Object Explorer window and select
Attach…

Figure 9. Select the Attach option on the Databases folder

ii. Click Add… under Databases to attach:


iii. Find the Aegis folder, then expand AegisDB and select
CashItemShop_Data.MDF

Figure 10. Attach CashItemShop_Data.MDF

iv. Click OK
v. Add the other 7 .MDF files in the DB folder

Figure 11. All 8 .MDF files added

vi. Click OK

Delete the Default Database Users

1. Expand DatabasescharacterSecurityUsers, then right click character and select Delete


2. Click OK
3. Delete the following users in the same way:
a. DatabasesCashItemShopSecurityUsersaegis
b. DatabasesCashItemShopSecurityUsersCashItemShop
c. DatabasesGlobalInfoSecurityUsersglobalinfo
d. DatabasesIPInfoSecurityUsersaegis
e. DatabasesIPInfoSecurityUsersipinfo
f. DatabasesItemLogSecurityUsersLoger
g. DatabasesnLoginSecurityUsersaegis
h. DatabasesnLoginSecurityUsersLogin
i. DatabasesscriptSecurityUsersaegis
j. DatabasesscriptSecurityUsersgmtool
k. DatabasesscriptSecurityUsersscript
l. DatabasesuserSecurityUsersaegis
m. DatabasesuserSecurityUsersuser

Create New Users

1. Create new logins in Security


a. Expand Security, the right click Logins and select New Login…
b. Select SQL Server authentication
c. Complete the following fields;
i. Login name: character
ii. Password: tai
iii. Confirm password: tai
d. Uncheck Enforce password policy
e. Set the Default database: dropdown menu to character

Figure 12. New Login: character

f. Click OK
g. Repeat the above steps to create all users in the following table (8 users in total)

Login Name Password Default Database


character tai character
cashitemshop tai CashItemShop
globalinfo tai GlobalInfo
ipinfo tai IPInfo
Loger tai ItemLog
login tai nLogin
script tai script
user tai user
2. Create new database users
a. Expand DatabasescharacterSecurityUsers, right click Users and select New Users
i. User name: character
ii. Login name: character
iii. Default Schema: click … button
1. Click Browse…
a. Check the [dbo] schema

Figure 13. Select the [dbo] schema

b. Click OK
2. Click OK

Figure 14. New User - General page

iv. Click the Membership page


1. Check db_owner
v. Click on the Owned Schemas page
1. Check db_owner
vi. Click OK
b. Repeat the above steps to create all users in the following table (8 users total)

Location of User User/Login name


DatabasescharacterSecurityUsers character
DatabasesCashItemShopSecurityUsers cashitemshop
DatabasesGlobalInfoSecurityUsers globalinfo
DatabasesIPInfoSecurityUsers ipinfo
DatabasesItemLogSecurityUsers Loger
DatabasesnLoginSecurityUsers login
DatabasesscriptSecurityUsers script
DatabasesuserSecurityUsers user
Create ODBC Data Sources
1. Go to Control PanelAdministrative Tools
2. Run ODBC Data Sources (32-bit)
a. Click Add… on the User DSN tab

Figure 15. Add User Data Source in the ODBC Data Source Administrator (32-bit)

i. Select SQL Server Native Client 11.0


ii. Click Finish
b. Name: character
c. Server: .

Figure 16. Data Source name and server settings

d. Click Next
e. Select With SQL Server authentication using a login ID and password as entered by the
user.
f. Login ID: character
g. Password: tai

Figure 17. Data Source authentication settings

h. Click Next
i. Check Change the default database to:, select Character from the drop-down menu

Figure 18. Data Source default database settings

j. Click Next
k. Click Finish
l. Click OK
3. Repeat the above steps to create all Data Sources in the following table (7 Data Sources in total)

Data Source Name Server Login ID Password Default Database


character . character tai character
globalinfo . globalinfo tai GlobalInfo
script . script tai script
ipinfo . ipinfo tai IPInfo
login . login tai nLogin
cashitemshop . cashitemshop tai CashItemShop
ItemLog . Loger tai ItemLog

Figure 19. All data sources added

Configure the Server IP

1. Return to the SQL Server 2012 Management Studio window


4. Access the Object Explorer window
5. Expand DatabasesGlobalInfoTables
6. Right click dbo.ServerInfo, select Edit Top 200 Rows
7. Replace all non-NULL IP and PrivateIP values with the IP address of the computer

Figure 20. Replace the selected IP addresses


Extract Map Files

1. Obtain data.grf from a client for the version of RO desired (Episode 11.3)
2. Using a GRF extractor, extract the following files in data.grf to a folder named mapfile on the
desktop
a. All .gat files
b. All .rsw files
c. resnametable.txt
3. Copy the mapfile folder to AegisZone
4. Open AegisToolsServer
a. Run the Aegis Map Cloner
b. Click Start
c. Browse to AegisZonemapfile
i. Click OK
d. Click OK
5. Open AegisZones
a. Open RO.inf in Notepad
b. Comment out everything under the [DSN] header

Figure 21. All items commented out under the [DSN] header

c. Enter the location of the Zone folder (i.e. C:\Aegis\Zone) under the [ZONE_PATH]
header

Figure 22. DATA_PATH and NPC_DATA_PATH edited

S-ar putea să vă placă și