.Guide: Setting up Saga Revised.
The following tutorial instructions are based on a machine running the following hardware & settings: MySQL 6.0, .Net 3.5, 3.0, 2.0, 1.1, x86 OS (32Bit), 3GB of Memory, 1GB Shared Video-Card memory. Other hardware might require additional procedures.
Prerequisites:
1. Saga Binaries & Associated Data folder(s)
2. MySQL Server
3. MySQL Query Browser (MySQL GUI Tools)
Chapter 1 - General Architecture & Design.
To acquire maximum performance while maintaining scalability and extensibility, the latest saga branch, formerly known as Saga revised, has been rewritten based upon the legacy code from scratch.
Chapter 2 - Installation of MySQL
1. Go to the MySQL Site (
) and download one of the MySQL Servers. We recommend you to use MySQL 6.0.2. Run the Setup.
3. Agree to the License Terms and press Next.
4. Select Typical Installation, and press Install.
5. Skip the Sign Up, and press Next.
6. Configure MySQL Server now, and press Next.
7. Standard Configuration, and press Next.
8. Install as Windows Service, and press Next.
9. Modify Security Settings, and press Next.
10. Press Execute.
Chapter 3 - Configuration of MySQL
1. Open the Saga Directory.
2. In the database folder create two folders called saga_login, and saga_world.
3. Copy the following list of files to saga_login directory: login.sql, list_worlds.sql, list_worldcharacters.sql, list_acl.sql.
4. Copy the remaining files to saga_world directory.
5. In the folders saga_login and saga_world create a bat file with the following content: "COPY *.sql install.sql"
6. In the saga_login and saga_world run the bat file. It now generates a file called install.sql that contains all files of a folder merged together.
7. Open the MySQL Query Browser.
8. Create two schema's (databases) called: saga_login, saga_world.
9. Set database saga_login as default schema.
10. Open script (Menu -> File -> Open Script) and browse for install.sql in the saga_login directory.
11. Remove the last line from the sql, there is a weird sign, that causes an SQL Error. Removing this sign will fix the error.
12. Press the "Execute" button.
13. Repeat Steps: 8, 9, 10, 11, 12 for saga_world.
Chapter 4 - Initial Configuration of the Server
Sub-Section 1 - Authentication Configuration
1. Open the Binary Directory
2. Run Saga.Authetnication.exe
3. At [Enter the number for the corresponding plugin] Press 1, which maps to: [1.Saga.Authentication.Data.Mysql.MysqlProvider]
4. At [Do you want to configure authentication-gateway settings Y/N?] Press N and Enter.
5. At [Do you want to configure authentication-map settings Y/N?] Press N and Enter.
6. At [Do you want to configure database settings Y/N?] Press Y and Enter.
7. At [What is the database name?] type in saga_login and Press Enter.
8. At [What is the database Username?] type in your database username (see installing mysql).
9. At [What is the database password?] type in your database password (see installing mysql).
10. At [What is the database port?] type in 3306 (default)
11. At [What is the database host?] type in the IP-Address for an external databases or localhost/127.0.0.1 for locally installed database.
12. The Authentication will display:
[Accepting gateway connections from: 64001]
[Accepting gateway connections from: 64002
13. On server type:
Code:
world -add worldname worldpassword (replace worldname and worldpassword by any name and password of YOUR choice.) The server will now add all required database dependencies for that specific World.
Sub-Section 2 - Map Configuration
1. Make sure the authentication server is already running and is configured.
2. At [What is the world id of this server?] type the corresponding world-id (1 in this example) and press enter.
3. At [What is the player limit of this server?] type in the player-limit a server can handle, and press enter. "The rule of thumb is that saga needs 80~ Mebibytes of memory without players. And for every player we advise 200 kibibytes. And have 100~ Mebibytes for reserve.
Thus on a machine of 3 Gibibytes this means:
Maximum Player Limit = (3x1024x1024) - (180x1024) / 200
4. At [What is the authentication proof of this server?] type in the world's password (See Sub-Section 1 - Authentication Configuration).
5. At [What are the cexp rates of this server?] type in any number of choice between 1 and 30.
6. At [What are the jexp rates of this server?] type in any number of choice between 1 and 30.
7. At [What are the wexp rates of this server?] type in any number of choice between 1 and 30.
8. At [What are the item drop rates of this server?] type in any number of choice between 1 and 30.
10. At [Enter the number for the corresponding plugin] Press 1, which maps to: [1.Saga.Map.Data.LuaQuest.LuaQuestProvider]
11. At [Enter the number for the corresponding plugin] Press 1, which maps to: [1. Saga.Map.Data.LuaQuest.ScenarioLuaQuest]
12. At [Enter the number for the corresponding plugin] Press 1, which maps to: [1. Saga.Map.Plugins.MultifileSpawnWorldObjects]
13. At [Enter the number for the corresponding plugin] Press 1, which maps to: [1. Saga.Map.Plugins.MultifileSpawnMultiWorldObjects]
14. At [Enter the number for the corresponding plugin] Press 1, which maps to: [1. Saga.Map.Data.LuaQuest.EventInfo]
15. At [Do you want to configure gateway-map network settings Y/N?] press N and Enter.
16. At [Do you want to configure authentication-map network settings Y/N?] press N and Enter.
17. At [Do you want to configure the database settings Y/N?] press Y and Enter.
18. At [What is the database name?] type in saga_world and press Enter.
19. At [What is the database username?] type in your database password (see installing mysql).
20. At [What is the database password?] type in your database password (see installing mysql).
21. At [What is the database port?] type in 3306 (default)
22. At [What is the database host?] type in the IP-Address for an external database or localhost/127.0.0.1 for locally installed database.
23. At [Do you want to detect other plugins?] Press N and Enter.
24. The map server will display a series of progress bars that indicates the loading of the server, and finally:
[Connect to authentication server: 127.0.0.1:64002]
[Accepting gateway connections from: 127.0.0.1:64403]
25. The authentication server will display: World Connection Established.
Sub-Section 3 - Gateway Configuration
1. Make sure the authentication server is already running and is configured.
2. Open the Binary Directory
3. Run Saga.Gateway
4. At [Do you want to configure network settings Y/N?] Press N
5. At [Do you want to configure authentication network settings Y/N?] Press N
6. At [Do you want to configure gateway-guid-settings Y/N?] Press N.
7. The map server will display a series of progress bars that indicates the loading of the server, and finally:
[Accepting connections from: 0.0.0.0:64000]
Chapter 5 - Adding Accounts
Sub-Section 1 - Test Accounts
1. Make sure the Authentication server runs, if not start it.
2. Make sure the map server runs, if not start it.
3. After the map server is finished loading type "account -create username password [male\female] gmlevel"
**Replace the username, password, and gender as you desire.
**Example: account -create adhdkid test1234 male.
Sub-Section 2 - Normal Accounts
1. To register normal accounts an additional control panel is required. There are no known control panels available at this time.
Chapter 6 - Connecting your first client
1. Make sure the Authentication server runs, if not start it.
2. Make sure the map server runs, if not start it.
3. Make sure the gateway server runs, if not start it.
4. Create a bat (batch) file with the following content in it:
"system\ragii.exe ServerIP=127.0.0.1 ServerPort=64000 WindowSizeX=1024 WindowSizeY=768 WindowHz=60 WindowMode=2". The bat file should be placed in the main directory of the game is at (Where the patcher is located).
5. Login using your account you created.
Credits: Zenzija & phr34k
If you have any questions, please post them on the
Forums.SagaRO2 Does not Deal with CLIENT Related Questions. Do not post Client related Questions there.






