[Tutorial] compile Source Code for Ragnarok Origin

Newbie Spellweaver
Joined
Jan 30, 2021
Messages
57
Reaction score
116
src code(use 98GB)


The missing method has not yet been implemented and needs to be tested. The attachment contains some other library methods. If you use the 98GB package, you can install it appropriately.
Compilation environment:
unity 2018.4.36f1
win10 ,winscp, putty
ubuntu 20.04.5
VirtualBox

Compilation process:(in environ package)

- /home
- /home/config
- /home/rogamelibs
- /home/roserver

environ\install_gcc9.2.txt
environ\install_icecc.txt
environ\install_mysql5.6.txt
// set passwd 111111,
// create database, set name add ro..., see conf/*.conf file
environ\install_libevhtp.txt
environ\install_liboauth.txt

// librogamelibs.a
// librogamelibs_release.a
cd /home/rogamelibs/buildtool
./build_linux.sh
./build_linux_release.sh

If there is an error message such as command not recognized, you need to follow the steps below
apt-get install dos2unix
dos2unix build_linux.sh
dos2unix build_linux_release.sh

// libconfiglib.a
cd /home/rogamelibs/table/buildtool
./build_linux.sh

// comp server
cd /home/roserver
create_cmake.sh ../config
cd /home/roserver/Build/Debug
make

error:
error: size of array ‘assertion_failed__1086’ is negative
see environ\install_gcc9.2.txt
sed -e '1161 s|^|//|' -i libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc

error: undefined reference to `SSL_library_init'
see environ\install_libevhtp.txt
install libssl1.0-dev
find / -name libssl.*
... ln -s /usr/lib/x86_64-linux-gnu/libssl.a /lib64/libssl.a
... ln -s /usr/lib/x86_64-linux-gnu/libssl.a /lib64/libssl.so

error: id -lmysqlclient
apt-get install libmysqlclient-dev
find / -name libmysqlclient.*
... ln -s /usr/lib/x86_64-linux-gnu/libmysqlclient.so.18.1.0 /lib64/libmysqlclient.so
...ln -s /usr/lib/x86_64-linux-gnu/libmysqlclient.so.18.1.0 /lib64/libmysqlclient.so.18

error: ‘const RowDataType’ {aka ‘const class TableLib::DailyActivitiesTable::RowData’} has no member named ...
add member :
const (type)& member() const {
return (type)&::value;
}
 
================ Revision ================
C:
[ 20%] Built target rogame_pb
[ 20%] Linking CXX executable ../bin/idipserver
[COLOR=rgb(184, 49, 47)]/usr/bin/ld: /home/roserver/lib/libevhtp.a(evhtp.c.o): in function `evhtp_ssl_init':
/home/liyang/library/libevhtp-1.2.10/evhtp.c:3709: undefined reference to `SSL_library_init'
/usr/bin/ld: /home/liyang/library/libevhtp-1.2.10/evhtp.c:3710: undefined reference to `SSL_load_error_strings'
/usr/bin/ld: /home/liyang/library/libevhtp-1.2.10/evhtp.c:3719: undefined reference to `SSLv23_server_method'
/usr/bin/ld: /home/roserver/lib/libevhtp.a(evhtp.c.o): in function `evhtp_ssl_use_threads':
/home/liyang/library/libevhtp-1.2.10/evhtp.c:3680: undefined reference to `CRYPTO_num_locks'
/usr/bin/ld: /home/liyang/library/libevhtp-1.2.10/evhtp.c:3687: undefined reference to `CRYPTO_set_id_callback'
/usr/bin/ld: /home/liyang/library/libevhtp-1.2.10/evhtp.c:3688: undefined reference to `CRYPTO_set_locking_callback'
/usr/bin/ld: /home/liyang/library/libevhtp-1.2.10/evhtp.c:3680: undefined reference to `CRYPTO_num_locks'
/usr/bin/ld: /home/liyang/library/libevhtp-1.2.10/evhtp.c:3687: undefined reference to `CRYPTO_set_id_callback'
/usr/bin/ld: /home/liyang/library/libevhtp-1.2.10/evhtp.c:3688: undefined reference to `CRYPTO_set_locking_callback'[/COLOR]
collect2: error: ld returned 1 exit status
make[2]: *** [idipserver/CMakeFiles/idipserver.dir/build.make:2020: bin/idipserver] Error 1
make[1]: *** [CMakeFiles/Makefile2:714: idipserver/CMakeFiles/idipserver.dir/all] Error 2
make: *** [Makefile:84: all] Error 2

C:
......
-- Std ReleaseWDebug CFLAGS : -O2 -g -DNDEBUG
-- Found LibEvent: /usr/local/lib/libevent.so
-- Found LibEventPthreads: /usr/local/lib/libevent_pthreads.so
-- Found LibEventCore: /usr/local/lib/libevent_core.so
-- Found LibEventExtra: /usr/local/lib/libevent_extra.so
[COLOR=rgb(184, 49, 47)]WARN"Unable to find OpenSSL, will continue, but without the support"[/COLOR]
CMake Warning (dev) at CMakeModules/UseDebugSymbols.cmake:84 (get_target_property):
  Policy CMP0026 is not set: Disallow use of the LOCATION target property.
  Run "cmake --help-policy CMP0026" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.
......

C:
cd /opt
wget https://www.openssl.org/source/openssl-1.0.2n.tar.gz
tar zxvf openssl-1.0.2n.tar.gz
cd openssl-1.0.2n
./config
make && make install

mv -f /usr/bin/openssl /usr/bin/openssl.system
mv -f /usr/bin/c_rehash /usr/bin/c_rehash.system
mv -f /usr/include/x86_64-linux-gnu/openssl/opensslconf.h /usr/include/x86_64-linux-gnu/openssl/opensslconf.h.system
mv -f /usr/include/openssl /usr/include/openssl.system

ln -s /usr/local/ssl/bin/openssl /usr/bin/openssl
ln -s /usr/local/ssl/bin/c_rehash /usr/bin/c_rehash
ln -s /usr/local/ssl/include/openssl /usr/include/openssl

ln -s /usr/local/ssl/lib/libssl.a /lib64/libssl.a
ln -s /usr/local/ssl/lib/libcrypto.a /lib64/libcrypto.a

ln -s /usr/lib/x86_64-linux-gnu/libssl.so /lib64/libssl.so
ln -s /usr/lib/x86_64-linux-gnu/libcrypto.so /lib64/libcrypto.so

cd /home/roserver/thirdparty/libevent-2.1.8-stable
./configure --disable-shared --prefix=/usr/local CFLAGS="-fPIC" LIBS=-ldl
make
make install

C:
cd /home/roserver/thirdparty/libevhtp-1.2.10
mkdir build
cd build
cmake -DCMAKE_PREFIX_PATH=/usr/local -DCMAKE_INSTALL_PREFIX=/usr/local -DOPENSSL_ROOT_DIR=/usr/include/openssl -DOPENSSL_LIBRARIES=/usr/lib64 ..
make
make install

C:
/home/roserver/idipserver/CMakeLists.txt

line 21: LINK_DIRECTORIES( /usr/local/ssl/lib )
ling 44:  dl ssl crypto

============= good luck everybody =============
 
you don't need to install dos2unix on the VPS there's windows version of it ...
just convert the bash using dos2unix on windows then compress them with winzip then upload them somewhere on VPS use wget to download the .zip
 
How do I set it to Portuguese or English? Do I just download it? Is there a video tutorial on how to install it?
 
src code(use 98GB)


The missing method has not yet been implemented and needs to be tested. The attachment contains some other library methods. If you use the 98GB package, you can install it appropriately.
Compilation environment:
unity 2018.4.36f1
win10 ,winscp, putty
ubuntu 20.04.5
VirtualBox

Compilation process:(in environ package)

- /home
- /home/config
- /home/rogamelibs
- /home/roserver

environ\install_gcc9.2.txt
environ\install_icecc.txt
environ\install_mysql5.6.txt
// set passwd 111111,
// create database, set name add ro..., see conf/*.conf file
environ\install_libevhtp.txt
environ\install_liboauth.txt

// librogamelibs.a
// librogamelibs_release.a
cd /home/rogamelibs/buildtool
./build_linux.sh
./build_linux_release.sh

If there is an error message such as command not recognized, you need to follow the steps below
apt-get install dos2unix
dos2unix build_linux.sh
dos2unix build_linux_release.sh

// libconfiglib.a
cd /home/rogamelibs/table/buildtool
./build_linux.sh

// comp server
cd /home/roserver
create_cmake.sh ../config
cd /home/roserver/Build/Debug
make

error:
error: size of array ‘assertion_failed__1086’ is negative
see environ\install_gcc9.2.txt
sed -e '1161 s|^|//|' -i libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc

error: undefined reference to `SSL_library_init'
see environ\install_libevhtp.txt
install libssl1.0-dev
find / -name libssl.*
... ln -s /usr/lib/x86_64-linux-gnu/libssl.a /lib64/libssl.a
... ln -s /usr/lib/x86_64-linux-gnu/libssl.a /lib64/libssl.so

error: id -lmysqlclient
apt-get install libmysqlclient-dev
find / -name libmysqlclient.*
... ln -s /usr/lib/x86_64-linux-gnu/libmysqlclient.so.18.1.0 /lib64/libmysqlclient.so
...ln -s /usr/lib/x86_64-linux-gnu/libmysqlclient.so.18.1.0 /lib64/libmysqlclient.so.18

error: ‘const RowDataType’ {aka ‘const class TableLib::DailyActivitiesTable::RowData’} has no member named ...
add member :
const (type)& member() const {
return (type)&::value;
}
thank youuu
 
ubuntu 20.04.5
VirtualBox
Is these 2 required? I see people just play inside the editor. does that save?
 
Can someone help me compile the client? When I try to build the project via Unity3D I get the following errors:

Code:
ArgumentException: The Assembly UnityEditor is referenced by MoonCommonLib ('Assets/Plugins/GameLibs/MoonCommonLib.dll'). But the dll is not allowed to be included or could not be found.
UnityEditor.AssemblyHelper.AddReferencedAssembliesRecurse (System.String assemblyPath, System.Collections.Generic.List`1[T] alreadyFoundAssemblies, System.String[] allAssemblyPaths, System.String[] foldersToSearch, System.Collections.Generic.Dictionary`2[TKey,TValue] cache, UnityEditor.BuildTarget target) (at C:/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:150)
UnityEditor.AssemblyHelper.AddReferencedAssembliesRecurse (System.String assemblyPath, System.Collections.Generic.List`1[T] alreadyFoundAssemblies, System.String[] allAssemblyPaths, System.String[] foldersToSearch, System.Collections.Generic.Dictionary`2[TKey,TValue] cache, UnityEditor.BuildTarget target) (at C:/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:156)
UnityEditor.AssemblyHelper.FindAssembliesReferencedBy (System.String[] paths, System.String[] foldersToSearch, UnityEditor.BuildTarget target) (at C:/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:190)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) (at C:/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:179)

Code:
Build completed with a result of 'Failed'
0x0000000141461058 (Unity) StackWalker::GetCurrentCallstack
0x0000000141467506 (Unity) StackWalker::ShowCallstack
0x0000000141349A4B (Unity) GetStacktrace
0x000000014014B6D8 (Unity) DebugStringToFile
0x00000001417D632D (Unity) DebugLogHandler_CUSTOM_Internal_Log
0x0000000063F669A0 (Mono JIT Code) (wrapper managed-to-native) UnityEngine.DebugLogHandler:Internal_Log (UnityEngine.LogType,string,UnityEngine.Object)
0x0000000063F66873 (Mono JIT Code) [DebugLogHandler.cs:10] UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
0x0000000063F65F45 (Mono JIT Code) [Logger.cs:61] UnityEngine.Logger:Log (UnityEngine.LogType,object)
0x00000000B9317059 (Mono JIT Code) [Debug.bindings.cs:117] UnityEngine.Debug:LogError (object)
0x00000000641E6B2B (Mono JIT Code) [BuildPlayerWindowBuildMethods.cs:194] UnityEditor.BuildPlayerWindow/DefaultBuildMethods:BuildPlayer (UnityEditor.BuildPlayerOptions)
0x0000000064C8903B (Mono JIT Code) [BuildPlayerWindowBuildMethods.cs:98] UnityEditor.BuildPlayerWindow:CallBuildMethods (bool,UnityEditor.BuildOptions)
0x0000000064C79A53 (Mono JIT Code) [BuildPlayerWindow.cs:908] UnityEditor.BuildPlayerWindow:GUIBuildButtons (UnityEditor.Modules.IBuildWindowExtension,bool,bool,bool,UnityEditor.Build.BuildPlatform)
0x0000000064C695BB (Mono JIT Code) [BuildPlayerWindow.cs:809] UnityEditor.BuildPlayerWindow:ShowBuildTargetSettings ()
0x0000000064C4B06B (Mono JIT Code) [BuildPlayerWindow.cs:411] UnityEditor.BuildPlayerWindow:OnGUI ()
0x0000000058E72250 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr)
0x00007FFE42C9B7A0 (mono-2.0-bdwgc) [mini-runtime.c:2809] mono_jit_runtime_invoke
0x00007FFE42C21882 (mono-2.0-bdwgc) [object.c:2919] do_runtime_invoke
0x00007FFE42C2AA52 (mono-2.0-bdwgc) [object.c:3071] mono_runtime_invoke_checked
0x00007FFE42C2B1E9 (mono-2.0-bdwgc) [object.c:5262] mono_runtime_try_invoke_array
0x00007FFE42C2A9E6 (mono-2.0-bdwgc) [object.c:5140] mono_runtime_invoke_array_checked
0x00007FFE42BCFAE4 (mono-2.0-bdwgc) [icall.c:3358] ves_icall_InternalInvoke
0x000000004FB02776 (Mono JIT Code) (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
0x000000004FB00D7B (Mono JIT Code) System.Reflection.MonoMethod:Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo)
0x0000000050E2922F (Mono JIT Code) System.Reflection.MethodBase:Invoke (object,object[])
0x0000000063D34403 (Mono JIT Code) [HostView.cs:342] UnityEditor.HostView:Invoke (string,object)
0x0000000063D34263 (Mono JIT Code) [HostView.cs:337] UnityEditor.HostView:Invoke (string)
0x00000000FAEFC183 (Mono JIT Code) [HostView.cs:130] UnityEditor.HostView:OldOnGUI ()
0x0000000063E422AC (Mono JIT Code) [IMGUIContainer.cs:244] UnityEngine.Experimental.UIElements.IMGUIContainer:DoOnGUI (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,bool)
0x0000000063E4066B (Mono JIT Code) [IMGUIContainer.cs:440] UnityEngine.Experimental.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect)
0x0000000063E3CB73 (Mono JIT Code) [IMGUIContainer.cs:421] UnityEngine.Experimental.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event)
0x000000005FFED09B (Mono JIT Code) [IMGUIContainer.cs:401] UnityEngine.Experimental.UIElements.IMGUIContainer:HandleEvent (UnityEngine.Experimental.UIElements.EventBase)
0x000000005FFE19A4 (Mono JIT Code) [EventDispatcher.cs:516] UnityEngine.Experimental.UIElements.EventDispatcher:ProcessEvent (UnityEngine.Experimental.UIElements.EventBase,UnityEngine.Experimental.UIElements.IPanel)
0x000000005EC2758B (Mono JIT Code) [EventDispatcher.cs:308] UnityEngine.Experimental.UIElements.EventDispatcher:Dispatch (UnityEngine.Experimental.UIElements.EventBase,UnityEngine.Experimental.UIElements.IPanel,UnityEngine.Experimental.UIElements.DispatchMode)
0x000000005EC27053 (Mono JIT Code) [Panel.cs:177] UnityEngine.Experimental.UIElements.BaseVisualElementPanel:SendEvent (UnityEngine.Experimental.UIElements.EventBase,UnityEngine.Experimental.UIElements.DispatchMode)
0x0000000063E11C23 (Mono JIT Code) [UIElementsUtility.cs:248] UnityEngine.Experimental.UIElements.UIElementsUtility:DoDispatch (UnityEngine.Experimental.UIElements.BaseVisualElementPanel)
0x0000000063E1138B (Mono JIT Code) [UIElementsUtility.cs:68] UnityEngine.Experimental.UIElements.UIElementsUtility:ProcessEvent (int,intptr)
0x0000000063E10CF4 (Mono JIT Code) [GUIUtility.cs:179] UnityEngine.GUIUtility:ProcessEvent (int,intptr)
0x0000000063E10F13 (Mono JIT Code) (wrapper runtime-invoke) <Module>:runtime_invoke_bool_int_intptr (object,intptr,intptr,intptr)
0x00007FFE42C9B7A0 (mono-2.0-bdwgc) [mini-runtime.c:2809] mono_jit_runtime_invoke
0x00007FFE42C21882 (mono-2.0-bdwgc) [object.c:2919] do_runtime_invoke
0x00007FFE42C2A87F (mono-2.0-bdwgc) [object.c:2966] mono_runtime_invoke
0x0000000140C399BA (Unity) scripting_method_invoke
0x0000000140C29C0A (Unity) ScriptingInvocation::Invoke
0x0000000140C23C3A (Unity) ScriptingInvocation::Invoke<bool>
0x000000014043E4AC (Unity) Scripting::UnityEngine::GUIUtilityProxy::ProcessEvent
0x00000001412D36FC (Unity) GUIView::ProcessRetainedMode
0x00000001414C6710 (Unity) GUIView::OnInputEvent
0x00000001412D360C (Unity) GUIView::ProcessInputEvent
0x00000001414C7D5C (Unity) GUIView::ProcessEventMessages
0x00000001414BDB2F (Unity) GUIView::GUIViewWndProc
0x00007FFF08C183F1 (USER32) DispatchMessageW
0x00007FFF08C17EB1 (USER32) DispatchMessageW
0x00000001414E489C (Unity) MainMessageLoop
0x00000001414E63DD (Unity) WinMain
0x00000001424E939A (Unity) __scrt_common_main_seh
0x00007FFF089B259D (KERNEL32) BaseThreadInitThunk
0x00007FFF09F6AF38 (ntdll) RtlUserThreadStart

Code:
UnityEditor.BuildPlayerWindow+BuildMethodException: 3 errors
  at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x00242] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:194
  at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x0007f] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:97
0x0000000141461058 (Unity) StackWalker::GetCurrentCallstack
0x0000000141467506 (Unity) StackWalker::ShowCallstack
0x0000000141349A4B (Unity) GetStacktrace
0x000000014014B6D8 (Unity) DebugStringToFile
0x00000001417D632D (Unity) DebugLogHandler_CUSTOM_Internal_Log
0x0000000063F669A0 (Mono JIT Code) (wrapper managed-to-native) UnityEngine.DebugLogHandler:Internal_Log (UnityEngine.LogType,string,UnityEngine.Object)
0x0000000063F66873 (Mono JIT Code) [DebugLogHandler.cs:10] UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
0x0000000063F65F45 (Mono JIT Code) [Logger.cs:61] UnityEngine.Logger:Log (UnityEngine.LogType,object)
0x00000000B9317059 (Mono JIT Code) [Debug.bindings.cs:117] UnityEngine.Debug:LogError (object)
0x0000000064C891BB (Mono JIT Code) [BuildPlayerWindowBuildMethods.cs:103] UnityEditor.BuildPlayerWindow:CallBuildMethods (bool,UnityEditor.BuildOptions)
0x0000000064C79A53 (Mono JIT Code) [BuildPlayerWindow.cs:908] UnityEditor.BuildPlayerWindow:GUIBuildButtons (UnityEditor.Modules.IBuildWindowExtension,bool,bool,bool,UnityEditor.Build.BuildPlatform)
0x0000000064C695BB (Mono JIT Code) [BuildPlayerWindow.cs:809] UnityEditor.BuildPlayerWindow:ShowBuildTargetSettings ()
0x0000000064C4B06B (Mono JIT Code) [BuildPlayerWindow.cs:411] UnityEditor.BuildPlayerWindow:OnGUI ()
0x0000000058E72250 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr)
0x00007FFE42C9B7A0 (mono-2.0-bdwgc) [mini-runtime.c:2809] mono_jit_runtime_invoke
0x00007FFE42C21882 (mono-2.0-bdwgc) [object.c:2919] do_runtime_invoke
0x00007FFE42C2AA52 (mono-2.0-bdwgc) [object.c:3071] mono_runtime_invoke_checked
0x00007FFE42C2B1E9 (mono-2.0-bdwgc) [object.c:5262] mono_runtime_try_invoke_array
0x00007FFE42C2A9E6 (mono-2.0-bdwgc) [object.c:5140] mono_runtime_invoke_array_checked
0x00007FFE42BCFAE4 (mono-2.0-bdwgc) [icall.c:3358] ves_icall_InternalInvoke
0x000000004FB02776 (Mono JIT Code) (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
0x000000004FB00D7B (Mono JIT Code) System.Reflection.MonoMethod:Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo)
0x0000000050E2922F (Mono JIT Code) System.Reflection.MethodBase:Invoke (object,object[])
0x0000000063D34403 (Mono JIT Code) [HostView.cs:342] UnityEditor.HostView:Invoke (string,object)
0x0000000063D34263 (Mono JIT Code) [HostView.cs:337] UnityEditor.HostView:Invoke (string)
0x00000000FAEFC183 (Mono JIT Code) [HostView.cs:130] UnityEditor.HostView:OldOnGUI ()
0x0000000063E422AC (Mono JIT Code) [IMGUIContainer.cs:244] UnityEngine.Experimental.UIElements.IMGUIContainer:DoOnGUI (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,bool)
0x0000000063E4066B (Mono JIT Code) [IMGUIContainer.cs:440] UnityEngine.Experimental.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect)
0x0000000063E3CB73 (Mono JIT Code) [IMGUIContainer.cs:421] UnityEngine.Experimental.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event)
0x000000005FFED09B (Mono JIT Code) [IMGUIContainer.cs:401] UnityEngine.Experimental.UIElements.IMGUIContainer:HandleEvent (UnityEngine.Experimental.UIElements.EventBase)
0x000000005FFE19A4 (Mono JIT Code) [EventDispatcher.cs:516] UnityEngine.Experimental.UIElements.EventDispatcher:ProcessEvent (UnityEngine.Experimental.UIElements.EventBase,UnityEngine.Experimental.UIElements.IPanel)
0x000000005EC2758B (Mono JIT Code) [EventDispatcher.cs:308] UnityEngine.Experimental.UIElements.EventDispatcher:Dispatch (UnityEngine.Experimental.UIElements.EventBase,UnityEngine.Experimental.UIElements.IPanel,UnityEngine.Experimental.UIElements.DispatchMode)
0x000000005EC27053 (Mono JIT Code) [Panel.cs:177] UnityEngine.Experimental.UIElements.BaseVisualElementPanel:SendEvent (UnityEngine.Experimental.UIElements.EventBase,UnityEngine.Experimental.UIElements.DispatchMode)
0x0000000063E11C23 (Mono JIT Code) [UIElementsUtility.cs:248] UnityEngine.Experimental.UIElements.UIElementsUtility:DoDispatch (UnityEngine.Experimental.UIElements.BaseVisualElementPanel)
0x0000000063E1138B (Mono JIT Code) [UIElementsUtility.cs:68] UnityEngine.Experimental.UIElements.UIElementsUtility:ProcessEvent (int,intptr)
0x0000000063E10CF4 (Mono JIT Code) [GUIUtility.cs:179] UnityEngine.GUIUtility:ProcessEvent (int,intptr)
0x0000000063E10F13 (Mono JIT Code) (wrapper runtime-invoke) <Module>:runtime_invoke_bool_int_intptr (object,intptr,intptr,intptr)
0x00007FFE42C9B7A0 (mono-2.0-bdwgc) [mini-runtime.c:2809] mono_jit_runtime_invoke
0x00007FFE42C21882 (mono-2.0-bdwgc) [object.c:2919] do_runtime_invoke
0x00007FFE42C2A87F (mono-2.0-bdwgc) [object.c:2966] mono_runtime_invoke
0x0000000140C399BA (Unity) scripting_method_invoke
0x0000000140C29C0A (Unity) ScriptingInvocation::Invoke
0x0000000140C23C3A (Unity) ScriptingInvocation::Invoke<bool>
0x000000014043E4AC (Unity) Scripting::UnityEngine::GUIUtilityProxy::ProcessEvent
0x00000001412D36FC (Unity) GUIView::ProcessRetainedMode
0x00000001414C6710 (Unity) GUIView::OnInputEvent
0x00000001412D360C (Unity) GUIView::ProcessInputEvent
0x00000001414C7D5C (Unity) GUIView::ProcessEventMessages
0x00000001414BDB2F (Unity) GUIView::GUIViewWndProc
0x00007FFF08C183F1 (USER32) DispatchMessageW
0x00007FFF08C17EB1 (USER32) DispatchMessageW
0x00000001414E489C (Unity) MainMessageLoop
0x00000001414E63DD (Unity) WinMain
0x00000001424E939A (Unity) __scrt_common_main_seh
0x00007FFF089B259D (KERNEL32) BaseThreadInitThunk
0x00007FFF09F6AF38 (ntdll) RtlUserThreadStart

Playing in Unity3D works without errors. Except when it recognizes a new KAFRA in the map, then it hangs, but I think that's a different issue.

Update:

!!!Attention: If you try it yourself, please make a backup of the /clientproj/Assets/Plugins/GameLibs folder !!!

If you have the files from the folder /clientproj/Tools/BuildForPC/:
- MoonClient.dll
- MoonCommindLib.dll
- SDKLib.dll

into the GameLibs folder, you can compile the game. However, it will get stuck at Check_Client_Version. Even in the editor, the loading process will only go up to 64% and then hang. But maybe this is a help for someone who knows what to do with it and has a solution.
 
Last edited:
here requirements and other stuff for ROO 20GB:

Later I will create a detailed video tutorial from 0 to 100.

here small update:

# RO Game — Setup, Build & Run Guide
## Project Overview
**Type:** MMORPG — Unity game client + C++ multi-process server backend
**Client:** C# + Unity 2018.4.32f1 (LTS), Lua scripting via LuaJIT 2.1
**Server:** C++11, Linux, CMake, multi-process microservice architecture
**Network Protocol:** Protocol Buffers 3.3.0
---
## Repository Structure
```
RO/
├── clientcode/ → C# source code (Visual Studio solution)
├── clientproj/ → Unity project (open this in Unity Hub)
├── config/ → Game data tables (Excel/JSON), Lua scripts, export tools
├── rogamelibs/ → C++ core game library (battle, AI, skills, scene)
├── roserver/ → C++ multi-process server backend
├── rosdk/ → Third-party SDK integrations (MSDK, GCloud, etc.)
├── roab/ → Compiled Unity Asset Bundles (per platform)
├── build/ → Platform build output (Android Gradle project, iOS zip)
├── sql/ → MySQL database initialization scripts
├── rodoc/ → All project documentation
└── sys_env1.json → Local path configuration for cross-repo tools
```
> Keep all repos as **flat siblings** in one base directory. Build tools rely on relative paths between them.
---
## Requirements
### Server (Linux)
| Tool | Version | Notes |
|------|---------|-------|
| OS | Linux x86_64 | CentOS / Ubuntu |
| CMake | 3.0.2+ | Required |
| GCC / G++ | 4.8.5+ | Default; 9.2.0 recommended |
| Make | Any | |
| SWIG | 3.0.12 | Wrapper/interface generation |
| MySQL | 5.6.5+ | JSON support required; UTF-8; max_allowed_packet ≥ 16MB |
| Redis | Any | Caching and session management |
| screen | Any | Terminal multiplexing for server processes |
| Python | 2.7 or 3.x | For `conf_create.py` and build scripts |
| ccache | Optional | `/usr/local/bin/ccache` — speeds up recompilation |
| curl | Any | Runtime HTTP client |
**LD_LIBRARY_PATH must include the path to `libnetwork.so` at runtime — servers will not start without it.**
```bash
yum install cmake gcc-c++ make swig mysql-devel mysql-community-server.x86_64 screen
```
### Client (Windows / macOS)
| Tool | Version | Notes |
|------|---------|-------|
| Unity | **2018.4.32f1 (LTS)** | Exact version required |
| Visual Studio | 2017 or 2019 | .NET desktop development workload |
| .NET Framework SDK | 4.6 | Included with Visual Studio |
| CMake | 3.0.2+ | For building rogamelibs on Windows |
| Android Studio | Latest stable | For Android builds |
| Android SDK | API 28 | Via Android Studio SDK Manager |
| Android Build Tools | 28.0.3 | Via Android Studio SDK Manager |
| Android NDK | r16b+ | Via Android Studio SDK Manager |
| JDK | 1.8+ | For Android Gradle builds |
| Xcode | 11+ | macOS only, for iOS builds |
**Unity Hub modules to install with Unity 2018.4.32f1:**
- Android Build Support (includes Android SDK & NDK tools)
- iOS Build Support
- Windows Build Support (default)
---
## Step 1 — Configure `sys_env1.json`
This file tells all build tools and Unity Editor scripts where sibling repos are on your machine.
Edit **both** copies to match your local paths:
- `sys_env1.json` (repo root)
- `clientproj/sys_env.json` (Unity project)
```json
{
"MoonGameLibPath" : "C:/Projects/RO/rogamelibs",
"MoonServerPath" : "C:/Projects/RO/roserver",
"MoonClientProjPath" : "C:/Projects/RO/clientproj",
"MoonResPath" : "C:/Projects/RO/clientproj/Assets/artres",
"MoonClientCodePath" : "C:/Projects/RO/clientcode",
"MoonClientConfigPath" : "C:/Projects/RO/config",
"MoonABPath" : "C:/Projects/RO/roab",
"MoonClientPackProjPath": "C:/Projects/RO/clientpackproj",
"MoonSdkLibPath" : "C:/Projects/RO/rosdk"
}
```
> Replace all paths with your actual base directory. This file should be in `.gitignore` — each developer sets their own.
---
## Server Setup
### Step 2 — Clone Repositories
```bash
git clone
git clone
```
### Step 3 — Initialize Build Directory
> **`config/` IS the resource repo** (`rores` in the original dev setup). Pass it directly to `111.sh`.
```bash
cd roserver
./111.sh ../config
```
This creates `Build/Debug/bin`, copies startup scripts, and symlinks the resources the server needs at runtime:
| Symlink created | Points to |
|----------------|-----------|
| `lua_script` | `config/LuaGame/` ✅ |
| `lua_server` | `config/LuaServer/` ✅ |
| `rogameslib_table` | `config/Table/ServerBytes/` ✅ |
| `Tlog` | `config/TLog/` ✅ |
| `SkillData` | `config/Assets/Resources/SkillData/` ❌ deleted from git |
| `AI` | `config/Assets/Resources/AI/` ❌ deleted from git |
| `scene_spawner` | `config/Assets/Resources/SceneDatas/` ❌ deleted from git |
| `nav_datas` | `config/Assets/Resources/NavDatas/` ❌ deleted from git |
**For the deleted dirs** — they were removed from `config`'s git history. You have two options:
Option A — Restore from git history (if the commit that deleted them exists):
```bash
cd config
git log --all --diff-filter=D --summary | grep "delete mode" | grep SkillData | head -3
# find the commit hash before deletion, then:
git checkout <commit-hash>^ -- Assets/Resources/SkillData
git checkout <commit-hash>^ -- Assets/Resources/AI
# etc.
```
Option B — Generate from Unity (proper approach): export from the Unity Editor using the tools in `clientproj/Assets/Editor/` and `config/Table/Tools/`. These dirs are runtime binary data built from source assets.
The missing dirs are only needed to **run the gameserver**. Compilation works without them — comment them out in `111.sh` if they cause errors:
```bash
# In 111.sh, comment out the missing symlinks:
#ln -s $RES_PATH/Assets/Resources/SkillData .
#ln -s $RES_PATH/Assets/Resources/SceneDatas scene_spawner
# etc.
```
**Then run cmake:**
```bash
cd roserver/Build/Debug
cmake -DCMAKE_BUILD_TYPE=Debug -DGCC=9.2.0 ../..
```
### Step 4 — Configure MySQL
```sql
SET GLOBAL max_allowed_packet = 16777216;
SET GLOBAL interactive_timeout = 2600000;
SET GLOBAL wait_timeout = 2600000;
SET sql_mode = '';
```
Character set must be **UTF-8**. Start MySQL first:
```bash
systemctl start mysqld
grep "temporary password" /var/log/mysqld.log
mysqladmin -u root -p oldpasswd password newpasswd
```
### Step 5 — Initialize Databases
Run SQL scripts in this order:
```bash
# Login database
mysql -u root -p < roserver/exe/loginconf/dbinit.sql
# World / player databases
mysql -u root -p < roserver/exe/dbconf/dbinit.sql
mysql -u root -p < roserver/exe/dbconf/db_RO_online_init.sql
# Full schema from sql/ directory
mysql -u root -p < sql/login.sql
mysql -u root -p < sql/player.sql
mysql -u root -p < sql/player_template.sql
mysql -u root -p < sql/world.sql
mysql -u root -p < sql/globalworld.sql
mysql -u root -p < sql/db_RO_online.sql
```
**Required databases:** `login`, `player`, `player_template`, `world`, `globalworld`, `db_RO_online`
### Step 6 — Register Server in `gateinfo`
```sql
INSERT INTO login.gateinfo VALUES (
11, 'channel1', 1, 1, 'ServerName', 'ZoneName',
'10.0.128.138:11110', '', 0, 0,
'2017-05-04 08:00:00', '2017-05-04 08:00:00', 0
);
```
The port in this table **must match** the port in `gateserver.xml`.
### Step 7 — Compile Servers
```bash
cd roserver/Build/Debug
./build_all.sh # Debug build (all servers)
# OR
./build_all_release.sh # Release build
```
Servers compiled (in order): gameserver, gateserver, controlserver, dbserver, masterserver, loginserver, tradeserver, audioserver, battleserver, idipserver, payserver, rankserver, authserver, fmserver.
If a specific server fails due to a missing file, **comment out the relevant `#include`** in the source as noted in `服务器配置.md`.
To build only `gameserver`:
```bash
cmake -DBUILD_GAME=ON -DCMAKE_BUILD_TYPE=Debug ../..
make -j$(nproc)
```
### Step 8 — Generate Config Files
```bash
cd roserver/Build/Debug/bin
python conf_create.py
# Enter a numeric server_id when prompted
```
Generated config files in `conf/`:
| File | Server |
|------|--------|
| `gs_conf1.xml`, `gs_conf2.xml` | gameserver instances |
| `gate_conf.xml` | gateserver |
| `db_conf.xml` | dbserver |
| `ms_conf.xml` | masterserver |
| `ctrl_conf.xml` | controlserver |
| `audio_conf.xml` | audioserver |
| `tr_conf.xml` | tradeserver |
| `bt_conf.xml` | battleserver |
| `pay_conf.xml` | payserver |
| `rank_conf.xml` | rankserver |
| `login_conf.xml` | loginserver |
### Step 9 — Edit Config Files
In each `conf/*.xml` set:
- MySQL username / password (default template uses `111111` — **change this**)
- Database names: `rologin`, `roworld`, `roplayer0`–`roplayer4`, `roonline`
- Host/IP addresses and ports
Also edit `conf.template/loginserver.xml` with the loginserver connection info.
### Step 10 — Set LD_LIBRARY_PATH
```bash
export LD_LIBRARY_PATH=/path/to/libnetwork.so/dir:$LD_LIBRARY_PATH
```
Add this to your shell profile so it persists across sessions. Without it, servers will not start.
---
## Running the Server
### Start All Servers
```bash
cd roserver/Build/Debug/bin
./start myserver
```
Uses `screen` to launch each server in a named session. Startup order (handled automatically):
1. dbserver
2. gameserver (instances 1 & 2)
3. gateserver
4. masterserver
5. controlserver
6. audioserver
7. tradeserver
8. battleserver
9. payserver
10. rankserver
Then start loginserver separately:
```bash
./loginserver conf.template/loginserver.xml
```
### Monitor and Control
```bash
./status myserver # check process status
screen -ls # list all screen sessions
screen -r myserver_db # attach to dbserver
screen -r myserver_gsa # attach to gameserver instance 1
screen -r myserver_gsb # attach to gameserver instance 2
screen -r myserver_gt # attach to gateserver
screen -r myserver_ms # attach to masterserver
screen -r myserver_ns # attach to controlserver
# Ctrl+A then D to detach
./stop myserver # stop all servers
```
### Default Ports
| Server | Port |
|--------|------|
| gateserver (client) | 10110 |
| loginserver (client) | 25001 |
| gameserver (master link) | 10502 |
| dbserver (game link) | 10011 |
| masterserver (gate link) | 10501 |
| controlserver | 10602–10604 |
| battleserver (master) | 10505 |
| audioserver (master) | 10504 |
| tradeserver (master) | 10503 |
| payserver (master) | 10506 |
| rankserver (master) | 10507 |
---
## Local Development Server (Docker / Windows)
For local testing without a Linux server, use the Docker scripts in `build/Android/Tools/LocalServer/`:
```bat
REM 1. Copy and set up local server (choose a branch)
1.拷贝本地服.bat
REM 2. Start Docker container
2.启动docker.bat
REM 3. Install server inside Docker
安装服务器.bat
REM 4. Start all game servers
开启服务器-本地自编译.bat
```
Control commands: `停止服务器.bat` (stop), `3.关闭docker.bat` (stop Docker), `重新编译服务器.bat` (full recompile).
---
## Client Setup (Unity)
### Step 1 — Install Unity 2018.4.32f1 (LTS)
Download via Unity Hub. Use the **exact** version `2018.4.32f1`.
### Step 2 — Open the Unity Project
Open `clientproj/` as a Unity project from Unity Hub.
### Step 3 — Build the C# DLLs
Open `clientcode/CSProject/clientcode.sln` in Visual Studio.
Projects in the solution:
| Project | Purpose |
|---------|---------|
| `MoonClient` | Core game logic, UI, networking |
| `MoonCommonLib` | Shared utilities |
| `MoonSerializable` | Data serialization |
| `SDKLib` | Platform SDK abstraction |
Build configurations:
| Config | Use for |
|--------|---------|
| `UNITY_EDITOR` | Unity Editor development |
| `UNITY_PC` | Windows standalone build |
| `UNITY_ANDROID_DEBUG` / `UNITY_ANDROID_RELEASE` | Android builds |
| `UNITY_IOS_DEBUG` / `UNITY_IOS_RELEASE` | iOS builds |
Build `UNITY_EDITOR` config → copy DLLs to `clientproj/Assets/Plugins/`.
Or use the automated script for Windows:
```bat
clientproj/Tools/BuildForPC/build_pc_dll.bat
```
### Step 4 — Play in the Editor
1. Ensure servers are running (or use Docker local server)
2. Confirm `login.gateinfo` has the correct server IP/port
3. Press **Play** in Unity
---
## Building for Target Platforms
### Windows (PC Standalone)
1. Unity → File → Build Settings → **PC, Mac & Linux Standalone**
2. Target Platform: **Windows**, Architecture: **x86_64**
3. Click **Build**
Or from command line: run `Tools/BuildForPC/build_pc_dll.bat`, then trigger `AutoBuild.BuildStandaloneBundle()` from Unity Editor.
### Android
1. Unity → File → Build Settings → **Android**
2. Configure: Target API 28, Min API 17, Architectures `armeabi-v7a` + `arm64-v8a`
3. Click **Export Project** → open result in Android Studio
From Android Studio / command line:
```bash
cd build/Android
./gradlew assembleDebug # debug APK
./gradlew assembleRelease # release APK
./gradlew bundleRelease # AAB for Play Store
```
Configure `build/Android/local.properties` with your SDK/NDK paths:
```properties
sdk.dir=C\:\\Users\\YourName\\AppData\\Local\\Android\\Sdk
ndk.dir=C\:\\Users\\YourName\\AppData\\Local\\Android\\Sdk\\ndk\\16.1.4479499
```
Key Android values: `compileSdkVersion 28`, `buildToolsVersion 28.0.3`, `applicationId com.joyyou.ro`, min SDK 16.
### iOS
1. Unity → File → Build Settings → **iOS**
2. Configure: SDK iOS 11.1, Deployment Target 7.0+, Architecture ARM64
3. Click **Build** → generates Xcode project
```bash
cd build
unzip RoIOSPrj.zip -d RoIOSPrj
# Open RoIOSPrj/Unity-iPhone.xcodeproj in Xcode
# Set your Team under Signing & Capabilities
# Set Bundle Identifier: com.joyyou.ro (or your own)
```
iOS builds **must** be compiled on macOS with Xcode. Bundle ID: `com.joyyou.ro`, version `2.7.4`, min iOS `10.0`.
---
## Server Architecture
```
Client
│
▼
GateServer ← client connection gateway (port 10110)
│
├─► LoginServer ← authentication (port 25001)
├─► GameServer ← main game logic, Lua + C++ (port 10502)
├─► DBServer ← database access layer (port 10011)
├─► MasterServer ← global server coordinator (port 10501)
├─► ControlServer← monitoring and control
├─► BattleServer ← PvP battle coordination
├─► TradeServer ← economy and trading
├─► AudioServer ← voice communication
├─► PayServer ← payment processing
└─► RankServer ← leaderboards
```
---
## Complete Setup Checklist
### Server
- [ ] Clone `roserver` (`config/` is the resource repo — no separate `rores` needed)
- [ ] Install: cmake, gcc-c++, make, swig, mysql-devel, screen, Python
- [ ] Run `./111.sh ../config` from `roserver/` (comment out missing symlinks if needed)
- [ ] Configure MySQL: UTF-8 charset, sql_mode='', timeouts, max_allowed_packet=16MB
- [ ] Run all SQL init scripts in order
- [ ] Insert server entry into `login.gateinfo`
- [ ] Run `build_all.sh` to compile all servers
- [ ] Run `conf_create.py` to generate config XML files
- [ ] Edit `conf/*.xml` with correct DB credentials and host/port values
- [ ] Set `LD_LIBRARY_PATH` to include `libnetwork.so` directory
- [ ] Run `./start <prefix>` then start loginserver separately
### Client
- [ ] Install Unity **2018.4.32f1 (LTS)** via Unity Hub
- [ ] Edit `sys_env1.json` (root) and `clientproj/sys_env.json` with local paths
- [ ] Open `clientcode/CSProject/clientcode.sln` in Visual Studio
- [ ] Build `UNITY_EDITOR` config → copy DLLs to `clientproj/Assets/Plugins/`
- [ ] Open `clientproj/` in Unity Hub
- [ ] Confirm servers are running and `gateinfo` has correct IP/port
- [ ] Press Play or build for target platform
---
## Key File Reference
| File | Purpose |
|------|---------|
| `roserver/111.sh` | Initialize build directory and symlinks |
| `roserver/exe/build_all.sh` | Compile all servers (Debug) |
| `roserver/exe/build_all_release.sh` | Compile all servers (Release) |
| `roserver/Build/Debug/bin/conf_create.py` | Generate server config XML files |
| `roserver/Build/Debug/bin/start` | Start all servers via screen |
| `roserver/Build/Debug/bin/stop` | Stop all servers |
| `roserver/Build/Debug/bin/status` | Show server process status |
| `roserver/Build/Debug/bin/conf/` | Active server config XML files |
| `roserver/exe/loginconf/dbinit.sql` | Login DB init script |
| `roserver/exe/dbconf/dbinit.sql` | World/player DB init script |
| `sql/*.sql` | Full database schema init scripts |
| `clientproj/ProjectSettings/ProjectVersion.txt` | Unity version (`2018.4.32f1`) |
| `clientproj/sys_env.json` | Unity-side path config |
| `sys_env1.json` | Root-level path config |
| `clientcode/CSProject/clientcode.sln` | C# game code Visual Studio solution |
| `build/Android/Tools/LocalServer/` | Docker-based local dev server scripts |
 

Attachments

Last edited:
src code(use 98GB)


The missing method has not yet been implemented and needs to be tested. The attachment contains some other library methods. If you use the 98GB package, you can install it appropriately.
Compilation environment:
unity 2018.4.36f1
win10 ,winscp, putty
ubuntu 20.04.5
VirtualBox

Compilation process:(in environ package)

- /home
- /home/config
- /home/rogamelibs
- /home/roserver

environ\install_gcc9.2.txt
environ\install_icecc.txt
environ\install_mysql5.6.txt
// set passwd 111111,
// create database, set name add ro..., see conf/*.conf file
environ\install_libevhtp.txt
environ\install_liboauth.txt

// librogamelibs.a
// librogamelibs_release.a
cd /home/rogamelibs/buildtool
./build_linux.sh
./build_linux_release.sh

If there is an error message such as command not recognized, you need to follow the steps below
apt-get install dos2unix
dos2unix build_linux.sh
dos2unix build_linux_release.sh

// libconfiglib.a
cd /home/rogamelibs/table/buildtool
./build_linux.sh

// comp server
cd /home/roserver
create_cmake.sh ../config
cd /home/roserver/Build/Debug
make

error:
error: size of array ‘assertion_failed__1086’ is negative
see environ\install_gcc9.2.txt
sed -e '1161 s|^|//|' -i libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc

error: undefined reference to `SSL_library_init'
see environ\install_libevhtp.txt
install libssl1.0-dev
find / -name libssl.*
... ln -s /usr/lib/x86_64-linux-gnu/libssl.a /lib64/libssl.a
... ln -s /usr/lib/x86_64-linux-gnu/libssl.a /lib64/libssl.so

error: id -lmysqlclient
apt-get install libmysqlclient-dev
find / -name libmysqlclient.*
... ln -s /usr/lib/x86_64-linux-gnu/libmysqlclient.so.18.1.0 /lib64/libmysqlclient.so
...ln -s /usr/lib/x86_64-linux-gnu/libmysqlclient.so.18.1.0 /lib64/libmysqlclient.so.18

error: ‘const RowDataType’ {aka ‘const class TableLib::DailyActivitiesTable::RowData’} has no member named ...
add member :
const (type)& member() const {
return (type)&::value;
}
thank you!
 
Back