Source Code Ragnarok Origin[Full] Source 

Give you guys some conclusion. If you want to build an apk and play it on your phones, which are new models(64 bit). It is impossible, at least for the current code, because the codebase use many functions that is not supported by IL2CPP. So if you wanna build a 64 bit apk, it never works. I look forward to seeing someone fix it. :D
 
Give you guys some conclusion. If you want to build an apk and play it on your phones, which are new models(64 bit). It is impossible, at least for the current code, because the codebase use many functions that is not supported by IL2CPP. So if you wanna build a 64 bit apk, it never works. I look forward to seeing someone fix it. :D
This is wrong man. Check the plugins and libs. This source supports full x64 phones. It even supports android 15
 
This is wrong man. Check the plugins and libs. This source supports full x64 phones. It even supports android 15
But I built the apk after I extract the zip without modifying any unnecessary lines. What I did was just setting the scripting backend to IL2CPP and architecture to armv7 and arm64. When I ran the app, it stuck at verifing unzip file 100% and shows this in `adb logcat`:
Code:
01-14 01:19:36.255 13679 13697 E Unity   : [2.7.4.0] System.NotSupportedException: C:\Program Files\Unity\Hub\Editor\2018.4.32f1\Editor\Data\il2cpp\libil2cpp\icalls\mscorlib\System\AppDomain.cpp(182) : Unsupported internal call for IL2CPP:AppDomain::LoadAssemblyRaw - "This icall is not supported by il2cpp."
01-14 01:19:36.255 13679 13697 E Unity   :   at System.AppDomain.Load (System.Byte[] rawAssembly, System.Byte[] rawSymbolStore, System.Security.Policy.Evidence securityEvidence, System.Boolean refonly) [0x00000] in <00000000000000000000000000000000>:0
01-14 01:19:36.255 13679 13697 E Unity   :   at System.AppDomain.Load (System.Byte[] rawAssembly) [0x00000] in <00000000000000000000000000000000>:0
01-14 01:19:36.255 13679 13697 E Unity   :   at MoonCommonLib.MUpdater.FireMoonClient () [0x00000] in <00000000000000000000000000000000>:0
01-14 01:19:36.255 13679 13697 E Unity   :   at MoonCommonLib.MUpdater+<stepDoLaunchGame>d__28.MoveNext () [0x00000] in <00000000000000000000000000000000>:0
01-14 01:19:36.255 13679 13697 E Unity   :   at MoonCommonLib.MUpdater.Update () [0x00000] in <00000000000000000000000000000000>:0
01-14 01:19:36.255 13679 13697 E Unity   :   at MScript.Update () [0x00000] in <00000000000000000000000000000000>:0
01-14 01:19:36.255 13679 13697 E Unity   : UnityEngine.Logger:Log(LogType, Object)

I mean the plugins and libs does support arm64 but it doesn't mean their Unity code actually support IL2CPP. Or, the person releasing the code deleted them. The code in MoonClient heavily relies on Assembly.Load() to load the libraries(such as MoonClient and MoonCommonLib) dynamically on runtime, which is not supported by IL2CPP architecture. Without setting scripting backend to IL2CPP, you can't build apk for x64 phones. Have you built an 64 bit version apk before? How did you solve it? The previous replies on the thread only ran the game on editor or emulator, which was fine.

References:

1736841111325.webp

確認已選擇 arm64.webp



 
Last edited:
I am using the same source. and i have a live server. You have to use a compatible android SDK and NDK
You also need to recompile other sources to update the DLLs
 
Last edited:
I am using the same source. and i have a live server. You have to use a compatible android SDK and NDK
You also need to recompile other sources to update the DLLs
I have a live server too. And I've tried using the min sdk 16 - 19 and max sdk 28 - 35 and ndk. It still didn't work on IL2CPP. And I did recompile MoonClient and MoonCommonLib by myself as well. So the apk you built with IL2CPP arm64 can run on your x64 phone? Which unity version are you using?
 
Last edited:
I have a live server too. And I've tried using the min sdk 16 - 19 and max sdk 28 - 35 and ndk. It still didn't work on IL2CPP. And I did recompile MoonClient and MoonCommonLib by myself as well. So the apk you built with IL2CPP arm64 can run on your x64 phone? Which unity version are you using?
Yes 64bit phones works. im using Unity 2018 before and it is still working. im currently using 2021 as im working on PC client
 
Yes 64bit phones works. im using Unity 2018 before and it is still working. im currently using 2021 as im working on PC client
Hmm...ok
So assume I just extract the source from .zip, then I do these steps:
1. Setup sys_env.json
2. Build dlls such as MoonClient and MoonCommonLib from `clientcode`
3. Build assets bundles from `clientproj`
4. Open `clientpackproj` or `build/Android`
5. Set minSdk and maxSdk (I used 16 as min and 29 as max)
6. Set scripting backend to Il2CPP and architecture to armv8(64bit)
7. Disable split applocation binary (To pack everything to a big apk)
8. Build apk from the build project

Would you mind to share if there are anything need to be adjusted?
With these steps, my app stuck at verifing unzipped files 100%.
Thank you.
 
Hmm...ok
So assume I just extract the source from .zip, then I do these steps:
1. Setup sys_env.json
2. Build dlls such as MoonClient and MoonCommonLib from `clientcode`
3. Build assets bundles from `clientproj`
4. Open `clientpackproj` or `build/Android`
5. Set minSdk and maxSdk (I used 16 as min and 29 as max)
6. Set scripting backend to Il2CPP and architecture to armv8(64bit)
7. Disable split applocation binary (To pack everything to a big apk)
8. Build apk from the build project

Would you mind to share if there are anything need to be adjusted?
With these steps, my app stuck at verifing unzipped files 100%.
Thank you.
have you created your server API already? so that the client loads correctly? or recompiled the server to accept normal login function?

also there is a correct process to compile the game. (if you study the structure well)
clientproj is for editing the game functions and source. after doing your edits you need to build the ab's
then open build android, thats the one you need to compile for the APK. if you built the assetbundles correctly and all the paths and folders are in placed correctly. Build/Android will just use those compiled ABs and compile it into a new APK.

it is not loading correctly simply because (maybe)
1. its missing all those ABs that has the lua scripts and files
2. You dont have an API in placed (server side / but this may still load if you play using the clientproj / loading the APK is a different story structure should all be corrected and in placed)
 
Last edited:
have you created your server API already? so that the client loads correctly? or recompiled the server to accept normal login function?

also there is a correct process to compile the game. (if you study the structure well)
clientproj is for editing the game functions and source. after doing your edits you need to build the ab's
then open build android, thats the one you need to compile for the APK. if you built the assetbundles correctly and all the paths and folders are in placed correctly. Build/Android will just use those compiled ABs and compile it into a new APK.

it is not loading correctly simply because (maybe)
1. its missing all those ABs that has the lua scripts and files
2. You dont have an API in placed (server side / but this may still load if you play using the clientproj / loading the APK is a different story structure should all be corrected and in placed)

Yeah, as I mentioned, my server is in place, and I can log in to the game using Unity Editor and an emulator.
I am not really sure if I understand the code structure correctly, but I am pretty sure I was doing what you said.
I use clientproj to build abs (I choose BLOCK mode) with "RO Tools/AB Tools/Build Panel", and I use Build/Android project to build apk with "Ro Tools/AB Tools/Build Client".

The game ran really well if I chose the scripting backend to Mono and architecture to x86. I built the apk and installed it in my emulator, I can log in to the server and play the game.

However, when I switched the scripting backend to IL2CPP and architecture to armv8(64), built the apk, and installed it in my emulator and play. It stuck at verifying unzipped files 100%. So from this situation, I think I am 99% sure the abs and the libs is correctly set up because they are the same abs and libs that run well on Mono. Just don't know what leads to the game stuck.
 
Last edited:
Yeah, as I mentioned, my server is in place, and I can log in to the game using Unity Editor and an emulator.
I am not really sure if I understand the code structure correctly, but I am pretty sure I was doing what you said.
I use clientproj to build abs (I choose BLOCK mode) with "RO Tools/AB Tools/Build Panel", and I use Build/Android project to build apk with "Ro Tools/AB Tools/Build Client".

The game ran really well if I chose the scripting backend to Mono and architecture to x86. I built the apk and installed it in my emulator, I can log in to the server and play the game.

However, when I switched the scripting backend to IL2CPP and architecture to armv8(64), built the apk, and installed it in my emulator and play. It stuck at verifying unzipped files 100%. So from this situation, I think I am 99% sure the abs and the libs is correctly set up because they are the same abs and libs that run well on Mono. Just don't know what leads to the game stuck.
as far as i remember thats all i did.

What emulator are you using? and what android version?
 
Back