Source Code Ragnarok Origin[Full] Source 

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.
Hello ,this file is for RO or RO1 ,I saw the RO1 just have 111.sh not have create_make.sh ,and thank you
 
^
In file included from /usr/include/c++/4.8.2/bits/basic_string.h:3033:0,
from /usr/include/c++/4.8.2/string:52,
from /usr/include/c++/4.8.2/bits/locale_classes.h:40,
from /usr/include/c++/4.8.2/bits/ios_base.h:41,
from /usr/include/c++/4.8.2/ios:42,
from /usr/include/c++/4.8.2/istream:38,
from /usr/include/c++/4.8.2/sstream:38,
from /root/rogamelibs/./ai/nodes/ai_node.h:5,
from /root/rogamelibs/./ai/nodes/ai_group_begin.h:4,
from /root/rogamelibs/ai/nodes/ai_group_begin.cpp:1:
/usr/include/c++/4.8.2/bits/functional_hash.h:58:12: error: declaration of ‘struct std::hash<ROGameLibs::ROEventDefine>’
struct hash;
^
In file included from /usr/include/c++/4.8.2/bits/hashtable.h:35:0,
from /usr/include/c++/4.8.2/unordered_map:47,
from /root/rogamelibs/./ai/nodes/ai_node.h:6,
from /root/rogamelibs/./ai/nodes/ai_group_begin.h:4,
from /root/rogamelibs/ai/nodes/ai_group_begin.cpp:1:
/usr/include/c++/4.8.2/bits/hashtable_policy.h:1099:63: error: invalid use of incomplete type ‘struct std::hash<ROGameLibs::ROEventDefine>’
: __ebo_extract_key(__ex), __ebo_h1(__h1), __ebo_h2(__h2) { }
^
In file included from /usr/include/c++/4.8.2/bits/basic_string.h:3033:0,
from /usr/include/c++/4.8.2/string:52,
from /usr/include/c++/4.8.2/bits/locale_classes.h:40,
from /usr/include/c++/4.8.2/bits/ios_base.h:41,
from /usr/include/c++/4.8.2/ios:42,
from /usr/include/c++/4.8.2/istream:38,
from /usr/include/c++/4.8.2/sstream:38,
from /root/rogamelibs/./ai/nodes/ai_node.h:5,
from /root/rogamelibs/./ai/nodes/ai_group_begin.h:4,
from /root/rogamelibs/ai/nodes/ai_group_begin.cpp:1:
/usr/include/c++/4.8.2/bits/functional_hash.h:58:12: error: declaration of ‘struct std::hash<ROGameLibs::ROEventDefine>’
struct hash;
^
make[2]: *** [CMakeFiles/rogamelibs.dir/ai/nodes/ai_group_operator.cpp.o] Error 1
cc1plus: all warnings being treated as errors
make[2]: *** [CMakeFiles/rogamelibs.dir/ai/nodes/ai_group_end.cpp.o] Error 1
cc1plus: all warnings being treated as errors
make[2]: *** [CMakeFiles/rogamelibs.dir/ai/nodes/ai_group_begin.cpp.o] Error 1
make[1]: *** [CMakeFiles/rogamelibs.dir/all] Error 2
make: *** [all] Error 2
make build_linux error!
Just update your gcc to 9.2

- in /roserver/thirdparty, compile and install liboauth-0.9.4 and libevhtp-1.2.10
- build librogamelibs.a


Can someone tell me how to compile it?
 
Last edited:
Somboby know how to work Task Editor in English?
Task Editor uses CSV files in RO\config\Table\CSV
I tried to translated RO\config\Table\Excels\TaskTable then converted it on Unity Editor menu (Excel to CSV)
But Task Editor didn't load CSV files in RO\config\Table\CSV\TaskTable
I spent 2 days for it.. still it dosen't work

Help me plz~
 
Somboy รู้วิธีการทำงานของ Task Editor เป็นภาษาอังกฤษหรือไม่?
ตัวแก้ไขงานใช้ไฟล์ CSV ใน RO\config\Table\CSV
ฉันพยายามแปล RO\config\Table\Excels\TaskTable แล้วแปลงในเมนู Unity Editor (Excel เป็น CSV)
แต่ Task Editor ไม่โหลดไฟล์ CSV ใน RO\config\Table\CSV\TaskTable
ฉันใช้เวลา 2 วันเพื่อทำมัน.. แต่มันยังใช้งานไม่ได้

ช่วยฉันด้วย~
I've been struggling with it for 12 days now and I can't do anything because I can't fix it and no one is kind enough to teach me. I'm sad. I'm using VMware 5.1 gigabyte and I can't do anything. I can't use the GM command line.
 
Back