Source Code Ragnarok Origin[Full] Source 

no ,i cant rewrite the http socket,,if you can ,you share me ,thanks
I think should use the linux version.

If you use git reset --hard HEAD to restore the original code
It has no new features, and the compiled Serevr is equal to the 20GB version

The 99GB winproject is also incorrect. The correct VS Project cannot be created using cmake.

I am using 99GB unused git reset --hard HEAD,
It has new features such as Mercenary advancement system/extra drops/missions etc....

If you urgently want the EXE file, then you can go to the Chinese people above who have successfully compiled it. Because currently I have only successfully compiled Linux for Server.
Many of Windows' libs are 32-bit, which is very troublesome. I'm also very lazy, and I will eventually use Linux. So even if I can't compile Win, it doesn't matter to me.
 
Last edited:
No exist x64 version of the library

i not use linux,sir,,,,i build it to vs 2017 x64

why ,to build it to win, because , linux need more lib to build ,so you need rebuild more lib, then u can build it to linux not need gcc9.2

build to win , You don't use any libraries other than libhttp
 
No exist x64 version of the library

i not use linux,sir,,,,i build it to vs 2017 x64

why ,to build it to win, because , linux need more lib to build ,so you need rebuild more lib, then u can build it to linux not need gcc9.2

build to win , You don't use any libraries other than libhttp
After I complete the second repair of the 99GB Server, I will try to compile libhttp.
I will modify Class now
I don't have time to volunteer at the moment.
 
I'm still sorting out the win project.
You should be able to remove libhttp. It is not necessary.
I haven't started compiling yet, but after encountering it I'm looking at how to remove libhttp

And I am installing VS2019 now and I am not sure if you can use the lib I compiled.
You should compile this yourself
The source code for it should be here, but I'm not sure if it's this
this is kind of true - if you remove the libhttp you just wont be able to compile the idipserver anymore which is responsible for some GM commands (give items, whitelist, bans ets...)

also linking that github project clearly shows that you didnt look at the library correctly - just look at the header or decompile the lib and youll see that they use the asio (from thirdparty folder) implementation and just have some functions wrapped around it to register handlers for certain endpoints. Its really not hard to get some stub lib with only the functions exported as in httpapi.h
 
main.png



db.png
 

Attachments

Last edited:
1) Build Server ... OK
2) Login into game and test task is ... OK
3) ms , gs running some times is break
4) the client make pc ... OK
5) New config file get it and test
6) GM mode and Nomal Mode is diff
7) Version is test ... OK
7) some other test
 
i have all the windows server exe from the 20gb already running, but im still working on the 98gb one - can help if anybody needs some assistance with the old one tho...
 
Database Script

Add PATH to specify MySQL location (e.g. xampp)
PATH: C:\xampp\mysql\bin

Open bat or sh file and set mysql password

Code:
cd database

Create DB
Windows: create-database.bat
Linux: create-database.sh

Remove DB
Windows: remove-database.bat
Linux: remove-database.sh

roapi: notice

Code:
<?php

// roapi: notice
// GET: /notice?type=1&channel_code=ro_kr_cbt&language=kr

// string to unicode
function STR2UNI(&$STRING){
    $UNICODE = preg_replace_callback("/[\x{80}-\x{10FFFF}]/u", function ($M) {
        $CHAR = current($M);
        $UTF = iconv("UTF-8", "UCS-4", $CHAR);
    return sprintf("\u%s", ltrim(bin2hex($UTF), "0"));
    }, $STRING);

    return $UNICODE;
}

// MSG Format
$STRING = "RO Origin ゲームログイン通知:\\n-----------------------------------\\n";
$MSG = STR2UNI($STRING);
$MSGSTRING = "Notice";
$MSGTITLE = STR2UNI($MSGSTRING);

$FROM_TIME = "2020-01-01 00:00:00 +0900 KST";
$TO_TIME = "2024-06-01 00:00:00 +0900 KST";

$DATA_ARRAY = array(
"code" => "200",
"message" => "success",
"current_time" => time(),
"data" => array(
    "id" => "1",
    "platform_id" => "0",
    "gateserver_id" => "0",
    "group_id" => "0",
    "language" => "",
    "channel_code" => "ko",
    "system" => "ro_kr_cbt",
    "sdk" => "",
    "notice_type" => "1",
    "title" => "$MSGTITLE",
    "content" => "$MSG",
    "jump" => "",
    "open_from" => "$FROM_TIME",
    "open_to" => "$TO_TIME"
    )
);

echo json_encode($DATA_ARRAY);

?>

TEST

test.png


## Disable Update Notice
RO\clientproj\Assets\Scripts\Lua\ModuleMgr\AnnounceMgr.lua

Code:
module("ModuleMgr.AnnounceMgr", package.seeall)

-- 事件注册
EventDispatcher = EventDispatcher.new()
CheckAnnounceEvent = "CheckAnnounceEvent"

local m_isShow = true
local m_isSend = false

-- 公告类型
AnnouceType = {
    FrontLoading = "1", --前置公告
}

function GetAnnounceData(state)
    -- 构成URL
    local str_sign, str_time, l_url = Common.CommonUIFunc.GetHttpSignAndTimeAndUrl()

    local str_url = l_url .. "/notice"
    --如果正在请求公告 不再重新请求
    if m_isSend then
        return
    end
    m_isSend = true
    -- 发送URL
    -- https://ro-client-api.huanle.com/notice?type=1&language=en&channel_code=1&gateserver_id=2&group_id=59&timestamp={{timestamp}}&sign={{md5sign}}
    --local url = StringEx.Format("{0}?type={1}&channel_code={2}&language={3}",
    --        str_url, AnnouceType.FrontLoading, MoonCommonLib.MPlatformConfigManager.GetLocal().channel, GameEnum.GameLanguage2TechnologyCenter[tostring(MGameContext.CurrentLanguage)])
    --MAnnounce.GetAnncounceData(CJson.encode({url = url, timestamp = str_time, sign = str_sign, timeout = 5000}), function(res, str)
    --    m_isSend = false
    --    if res == HttpResult.OK then
    --        log(str)
    --        local data = CJson.decode(str)
            -- disable Test Update Announce
            --if UIMgr:IsActiveUI(UI.CtrlNames.Announce) then
            --    EventDispatcher:Dispatch(CheckAnnounceEvent, state, data)
            --else
                -- TEST Announce
            --    UIMgr:ActiveUI(UI.CtrlNames.Announce, { state = state, data = data })
    --        end
    --    else
    --        logError("GetAnncounceData Fail HttpResult = " .. tostring(res) .. " state = " .. state)
    --    end
    --end)

end

function SetIsShow(state)
    m_isShow = state
end

function GetIsShow()
    return m_isShow
end
 

Attachments

Last edited:
so the 2.7.4.0 version is a bit weird - it has the newer client, config and server sources - but the rocommongame and moonclient libs that actually power the client, are the same as in the 0.2.0.1 ( i only tried to load the client itself to see if the c# mappings work and they do ). Once i built for example rocommongamelib and rogameslib from the included source, the client crashed which leads me to believe that the source that is put over the git is pretty broken.

also torachiyo do you have a link for the 1.4.9.0 version?
The 20gb zip i have doesn't seem to include it - only the 0.2.0.1
 
torachiyo, I just want to share appreciation on how generous you are in sharing information and teaching the community in configuring this server. I'm sure not just me, but many others appreciate you here.

And to the others who have contributed as well, thank you so much!

I don't have this server setup for myself yet, but seeing you all successfully do it makes me so happy!
 
Could anyone help me to resolve this issue ?
1717257096211.png

It is happening in the editor and the APK file that I exported! Here are my steps
1 Build AB (I just open the Menu and Click on Build All => do I need to manually copy to the Android folder or anything? )
2 Open the Android folder build APK
3 Open the APK or Android folder in Editor, and get the issues. Got 2 issues

1
NullReferenceException: Object reference not set to an instance of an object
SDKLib.JoyYouSDK.JoyYouSDKInit (System.String objectName, System.String data) (at <cc17c08b4b7844fe91a052bbf1ff3a20>:0)
SDKLib.JoyYouSDKCallback.Awake () (at <cc17c08b4b7844fe91a052bbf1ff3a20>:0)

2
[2.7.4.0] System.NullReferenceException: Object reference not set to an instance of an object
at SDKLib.SDKInterface.AndroidDevice.CheckPermissionByType (System.String permission, System.Action`2[T1,T2] action) [0x0000c] in <cc17c08b4b7844fe91a052bbf1ff3a20>:0
at SDKLib.SDKInterface.AndroidDevice.OnSDKEvent (System.String funcName, LitJson.JsonData data, System.Object obj1, System.Object obj2, System.Object obj3) [0x002d9] in <cc17c08b4b7844fe91a052bbf1ff3a20>:0
at SDKLib.SDKInterface.SDKInterfaceBase.OnEvent (System.String funcName, LitJson.JsonData data, System.Object obj1, System.Object obj2, System.Object obj3) [0x00009] in <cc17c08b4b7844fe91a052bbf1ff3a20>:0
at SDKLib.SDKBridge.OnEvent (SDKLib.SDKInterface.ESDKBridge eventName, SDKLib.SDKInterface.ESDKName sdkName, System.String funcName, System.String jsondata, System.Object obj1, System.Object obj2, System.Object obj3) [0x00091] in <cc17c08b4b7844fe91a052bbf1ff3a20>:0
at SDKLib.MCommonLib2SDKLibBridge.CheckPermissionByType (System.String jsondata, System.Action`2[T1,T2] action) [0x00000] in <cc17c08b4b7844fe91a052bbf1ff3a20>:0
at MoonCommonLib.MUpdater+<doAndroidPermission>d__34.MoveNext () [0x00100] in <4bf66ee2b82847db98e1f654ee558677>:0
at MoonCommonLib.MUpdater+<stepDoAppInit>d__23.MoveNext () [0x00094] in <4bf66ee2b82847db98e1f654ee558677>:0
at MoonCommonLib.MUpdater.Update () [0x00047] in <4bf66ee2b82847db98e1f654ee558677>:0
at MoonCommonLib.MShell.Update () [0x0003b] in <4bf66ee2b82847db98e1f654ee558677>:0
at MScript.Update () [0x00002] in /Volumes/SS1TB/ragnaroks/RO/build/Android/Assets/Scripts/MScript.cs:97
UnityEngine.Debug:LogError(Object)
MoonCommonLib.MDebug:AddLog0(MDebugChannel, MDebugColor, String, String[])
MoonCommonLib.MDebug:AddErrorLog(String)
MScript:Update() (at Assets/Scripts/MScript.cs:101)
 
theres def something strange going on with the versions.
while i dont have any progress in the game i was able to load up into the 2.7.4.0 version (the 98gb one) just fine with the same server files from the 0.2.0.1 version (the 20gb one) and the old libraries (moon*, rogame*)
so maybe whoever created these zips (soargon according to the git history) just placed some changes on top of the older version??

also ill post my winproject files in due time here for the 20gb version so you can all compile them - still need to error out some stuff and also i want to check out what some older versions looked like (cbt1 and cbt2)
1717257181497.webp
 
Back