Mobile Source Code Ragnarok Origin[Full]

Initiate Mage
Joined
Mar 12, 2024
Messages
4
Reaction score
17
Markdown (GitHub flavored):
## 2. Install compilation tools
-cmake(>3.0.2)
-g++


## 3. Connect resources
- In the roserver root directory
- ./create_make.sh ~/rores
- Comment out the files that are not found in the code


## 4. Install and compile dependent software
- Install mysql-devel, mysql version
    ```sh
    yum install mysql-devel
    yum install mysql-community-server.x86_64
    ```
  
## 5. Compile server
  - cd to roserver/Build/Debug
  - Enter the gameserver, controlserver, masterserver, dbserver, gateserver, loginserver directories respectively.
  - Execute make
  - Comment out the files that are not found in the code


## 6. Configure mysql
  - Start mysql
  - Run the .sql files under each folder in roserver/exe once
  - Add a piece of server information to the gateinfo table under database login
   (Example server_id channel state is_open server_name zone_name ipaddr free_ipaddr register_account online_role open_time full_register_time combine_serverid
11 1 1 1 mzx sywc 10.0.128.138:11110 0 0 2017-05-04 08:00:00 2017-05-04 08:00:00 0)
- **Possible problems:**
- (1) mysql cannot be started
       The error message is that there is already a file in a certain folder. Modify the path pointed to by data in /etc/my.cnf.
- (2) mysql query and modify the initial password query and modify
     ```sh
       grep "temporary password" /var/log/mysqld.log
       mysqladmin -u root -p oldpasswd password newpasswd
     ```
- (3) Timestamp default value invalid when running .sql
       The most direct way to modify sql_mode
     ```sh
      set sql_mode='';
      ```


## 7. Generate and modify the server configuration file
  - Run conf_create.py under roserver/Build/Debug/bin


- Modify the xml files of each server in roserver/Build/Debug/bin/conf. Fill in the mysql account password database information. Modify the host in the peer.
    If you want to start multiple gameservers, copy gamserver.xml and modify the line information in it.
 
- Modify the information in loginserver.xml in roserver/Build/Debug/bin/conf.template.


## 8. Install screen


## 9. Start the server
    ```sh
    cd ./Build/Debug/bin
   ./start [any name]
    ```
   screen related commands
   ```sh
   screen -ls //View started servers
   screen -r [server name] //Switch to each server window to ensure there are no errors
   First ctrl+A and then D to exit the screen
   ```


- **Possible problems:**
  - (1) Connection to database refused
       The settings of mysql do not allow connections to external services.
       Modify the host list of the user used and add the wildcard character %


## 10. Start loginserver
```sh
    ./loginserver conf.template/loginserver.xml
    ```


## 11. Run the client and connect
- **Problems encountered**
  - (1) There may be situations where the configuration of each server port is inconsistent, resulting in the connection being refused.
       Check whether the port number configured in the login gateinfo table is consistent with the gateserver.xml port.
 
Joined
Sep 24, 2012
Messages
417
Reaction score
65
Centos 7 ? Windows ?
 
Joined
Apr 2, 2024
Messages
2
Reaction score
0
คุณช่วยกรุณาให้รายละเอียดเพิ่มเติมได้ไหม? ฉันเป็นมือใหม่
ส Hello, I'm a true beginner. Can you please explain in more detail? Thank you.
 
Newbie Spellweaver
Joined
Jun 10, 2022
Messages
64
Reaction score
7
can you make a VM?
 
Joined
Nov 19, 2008
Messages
172
Reaction score
211
Newbie Spellweaver
Joined
Jun 10, 2022
Messages
64
Reaction score
7
anyone knows how to edit this file?
It has this padlock written metadata and I'm not able to change it.
 

Attachments

You must be registered for see attachments list
Experienced Elementalist
Joined
Jan 11, 2010
Messages
249
Reaction score
46
anyone knows how to edit this file?
It has this padlock written metadata and I'm not able to change it.
View attachment 259059

This is a decompiled class, so you cannot edit it, look for the source code of the MoonCommonLib library, make edits in it and build the library, which is used as a dependency in the project.
 
Newbie Spellweaver
Joined
Jun 10, 2022
Messages
64
Reaction score
7
Has anyone managed to load SDKLib? here it is giving an error because it is not loaded

 

Attachments

You must be registered for see attachments list
Joined
Mar 4, 2024
Messages
8
Reaction score
2
anyone got success running the client?

Code:
Plugins: Failed to load 'Assets/Plugins/x86_64/rocommongamelibs.dll' with error 'Is not possible to find the specified module.
 
Joined
Jan 22, 2009
Messages
1,146
Reaction score
444
tutorial posted by rafs it's already included in src (some *.md file) and it's centos tutorial

anyway, someone already got it working? i searched some .sql files and idk if it's looks complete
 
Newbie Spellweaver
Joined
Nov 14, 2023
Messages
10
Reaction score
1
Newbie Spellweaver
Joined
Apr 1, 2024
Messages
5
Reaction score
0
Hi can anybody teach how to run the server.
 
Newbie Spellweaver
Joined
Dec 19, 2013
Messages
16
Reaction score
6
Can someone compare the contents of RO(1).7z AND Ro.zip? Do only .git folders differ or not?
I managed to download both files. The source codes are almost the same, except for winproject under roserver(building in windows), and clientpackproj for packaging, and Ro.zip is a little newer.
 
Last edited: