RagII on Windows 10

Page 1 of 4 1234 LastLast
Results 1 to 15 of 56
  1. #1
    Proficient Member Kang Jinsu is offline
    MemberRank
    Apr 2011 Join Date
    Daegu, ROKLocation
    174Posts

    smile RagII on Windows 10

    234635641.jpg

    Thanks Endreo22, geralax88, LightRO3, Viserion.

    Compiling this client on Windows 10 (Originally, I worked on XP in a virtual machine, but it was very slow because it was a virtual machine. And 3D is not supported...)
    It works, but I can't connect to the server. (Logout error on every login attempt, whether due to an issue with Packet or other issues...)
    I don't know which method to use but upload.
    And this client deleted HackShield. (Remove or modify all related libraries and files)
    But maybe this has something to do with why I can't log in?

    And, this client runs without ragnarok2.exe.
    However, to change the IP, change ragii.cni (modify ragii.ini in the source file, run inicrypt.exe ragii.ini and copy it to the client/System folder)
    Or create a shortcut of RagII.exe and insert ServerIP=[Your IP] ServerPort=64000 and run it.

    Res folder -> Files used in Saga client[my file]
    Data, Help -> Files in the source code

    https://drive.google.com/file/d/1iX1...ew?usp=sharing
    (Pre-compiled client : 22-11-14)

    https://drive.google.com/file/d/18sC...ew?usp=sharing
    (source code, If you want to compile this you will need : VS2005(C++)[VS higher versions require most of the source code modifications. I haven't tested VS2008.], Win 7(in XP) SDK[!], and Not required DirectX SDK and UT2004? SDK...[in the source code] )
    https://drive.google.com/file/d/199a...ew?usp=sharing
    (Removed codes and packets of hshield, Splash[company] video remove[logo.wmv, codes for play logo.wmv]

    The program title window says ‘RagII / Edited by Kus’, but to change it, open Ragii.int in the System folder of the source code (Notepad++ or an editor that can read binary. Binary code exists.) Change the Product item and runCrypt.cmd run it. and copy System folder of client)

    * Please see the above source code and let me know if there is anything that needs to be corrected.
    I only removed Themida and HShield related stuff from the whole source.

    * Sorry, bad english...
    Last edited by Kang Jinsu; 14-11-22 at 01:40 PM. Reason: Edit link for new upload


  2. #2
    Proficient Member Kang Jinsu is offline
    MemberRank
    Apr 2011 Join Date
    Daegu, ROKLocation
    174Posts

    Re: RagII on Windows 10

    Hmm, still getting the Packet error.

    "Saga.Gateway.exe",Information,0,"Sending header token",,,,,,,
    Network: Connection accepted from: 192.168.35.168:62519
    "Saga.Gateway.exe",Warning,0,"Unsupported packet found with id: 7751",,,,,,,,
    Network: Connection closed from: 192.168.35.168:62519

    When the client tries to log in, it keeps shutting down.

    Need to fix the server?
    Or do I have to fix the client?
    Last edited by Kang Jinsu; 27-01-22 at 06:12 AM. Reason: Add

  3. #3
    Account Upgraded | Title Enabled! geralex88 is online now
    MemberRank
    Jan 2010 Join Date
    203Posts
    Quote Originally Posted by Kang Jinsu View Post
    Hmm, still getting the Packet error.

    "Saga.Gateway.exe",Information,0,"Sending header token",,,,,,,
    Network: Connection accepted from: 192.168.35.168:62519
    "Saga.Gateway.exe",Warning,0,"Unsupported packet found with id: 7751",,,,,,,,
    Network: Connection closed from: 192.168.35.168:62519

    When the client tries to log in, it keeps shutting down.

    Need to fix the server?
    Or do I have to fix the client?
    Fix server.

  4. #4
    Proficient Member Kang Jinsu is offline
    MemberRank
    Apr 2011 Join Date
    Daegu, ROKLocation
    174Posts
    Quote Originally Posted by geralex88 View Post
    Fix server.
    okay. But I don't know how to fix the server.
    I need to find a packet, but I can't figure out how to do it.

  5. #5
    Account Upgraded | Title Enabled! geralex88 is online now
    MemberRank
    Jan 2010 Join Date
    203Posts
    Quote Originally Posted by Kang Jinsu View Post
    okay. But I don't know how to fix the server.
    I need to find a packet, but I can't figure out how to do it.
    The emulator used packet encryption for the client, since the client source code works without packet encryption in the emulator, encryption must be turned off.
    I studied the assembly emulator revised

    First change key:
    **\Shared\Saga.Shared\Cryptography\Crypto.cs

    Code:
    public static byte[] StaticKey = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
    //public static byte[] StaticKey = { 0x40, 0x21, 0xBF, 0xE4, 0xB0, 0xC7, 0xB8, 0xF0, 0xB8, 0xA3, 0xB0, 0xDA, 0xC1, 0xF6, 0x24, 0x00 };
    Second change
    **\Saga.Gateway\Network\GatewayClient.cs

    Code:
    private void OnHeader()
            {
                Trace.TraceInformation("Header Recieved from {0}", this.socket.RemoteEndPoint);
                try
                {
                    SMSG_IDENTIFY spkt2 = new SMSG_IDENTIFY();
                    this.Send((byte[])spkt2);
                    /*
                    //byte[] tempServerKey = Encryption.GenerateKey();
                    //byte[] expandedServerKey = Encryption.GenerateDecExpKey(tempServerKey);
                    SMSG_SENDKEY spkt = new SMSG_SENDKEY();
                    //spkt.Key = expandedServerKey;
                    spkt.Collumns = 4;
                    spkt.Rounds = 10;
                    spkt.Direction = 2;
                    this.Send((byte[])spkt);
                    //this.serverKey = tempServerKey;*/
                }
                catch (Exception ex)
                {
                    Trace.TraceError("An unhandled exception occured {0}", ex.Message);
                    this.Close();
                }
            }
    As an example of decrypting packages. Something similar can be done in the Saga Legacy version.

  6. #6
    Proficient Member Kang Jinsu is offline
    MemberRank
    Apr 2011 Join Date
    Daegu, ROKLocation
    174Posts
    Quote Originally Posted by geralex88 View Post
    The emulator used packet encryption for the client, since the client source code works without packet encryption in the emulator, encryption must be turned off.
    I studied the assembly emulator revised

    First change key:
    **\Shared\Saga.Shared\Cryptography\Crypto.cs

    Code:
    public static byte[] StaticKey = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
    //public static byte[] StaticKey = { 0x40, 0x21, 0xBF, 0xE4, 0xB0, 0xC7, 0xB8, 0xF0, 0xB8, 0xA3, 0xB0, 0xDA, 0xC1, 0xF6, 0x24, 0x00 };
    Second change
    **\Saga.Gateway\Network\GatewayClient.cs

    Code:
    private void OnHeader()
            {
                Trace.TraceInformation("Header Recieved from {0}", this.socket.RemoteEndPoint);
                try
                {
                    SMSG_IDENTIFY spkt2 = new SMSG_IDENTIFY();
                    this.Send((byte[])spkt2);
                    /*
                    //byte[] tempServerKey = Encryption.GenerateKey();
                    //byte[] expandedServerKey = Encryption.GenerateDecExpKey(tempServerKey);
                    SMSG_SENDKEY spkt = new SMSG_SENDKEY();
                    //spkt.Key = expandedServerKey;
                    spkt.Collumns = 4;
                    spkt.Rounds = 10;
                    spkt.Direction = 2;
                    this.Send((byte[])spkt);
                    //this.serverKey = tempServerKey;*/
                }
                catch (Exception ex)
                {
                    Trace.TraceError("An unhandled exception occured {0}", ex.Message);
                    this.Close();
                }
            }
    As an example of decrypting packages. Something similar can be done in the Saga Legacy version.
    good. I changed the server, but it still doesn't work.
    What am I supposed to do here?

    "Saga.Gateway.exe",Information,0,"Sending header token",,,,,,,
    Network: Connection accepted from: 192.168.0.2:51510
    "Saga.Gateway.exe",Warning,0,"Unsupported packet found with id: 7751",,,,,,,
    Network: Connection closed from: 192.168.0.2:51510

  7. #7
    Account Upgraded | Title Enabled! geralex88 is online now
    MemberRank
    Jan 2010 Join Date
    203Posts
    Quote Originally Posted by Kang Jinsu View Post
    good. I changed the server, but it still doesn't work.
    What am I supposed to do here?
    Disable encryption in client source code:

    ***\src\Launch\Src\Launch.cpp

    Code:
    /*if (!gs_pHShieldManager->Init())
    		{
    			gs_pHShieldManager->Clear();
    			return 0;
    		}
    
    		if (!gs_pHShieldManager->StartService())
    		{
    			gs_pHShieldManager->Clear();
    			return 0;
    		}
    
    		if (gs_pHShieldManager->SaveSafeFunc(MainLoop, 1) != 0)
    		{
    			gs_pHShieldManager->Clear();
    			return 0;
    		}*/
    And
    ***\src\Engine\Src\HShieldManager.cpp
    ***\src\Engine\Inc\HShieldManager.h

    Disable your solution configuation:

    #if defined _RAG2_TESTSERVER || defined _RAG2_SERVICE || defined _DEBUG

    Rebuild Engine.dll and RagII.exe

    - - - Updated - - -

    The server also updated the source code, check it, since not everything has been written before that needs to be corrected.

    https://github.com/geralex/saga-revised/commit/74434521dee9ed9ebb37160f1ecf6ace6472c745

  8. #8
    Viserion is online now
    MemberRank
    Jan 2009 Join Date
    1,108Posts
    Finally someone managed to compile this client. :)

    What do you mean by partially compiled? Any libs missing or giving trouble compiling?

  9. #9
    Proficient Member Kang Jinsu is offline
    MemberRank
    Apr 2011 Join Date
    Daegu, ROKLocation
    174Posts
    Quote Originally Posted by geralex88 View Post
    Disable encryption in client source code:

    ***\src\Launch\Src\Launch.cpp

    Code:
    /*if (!gs_pHShieldManager->Init())
    		{
    			gs_pHShieldManager->Clear();
    			return 0;
    		}
    
    		if (!gs_pHShieldManager->StartService())
    		{
    			gs_pHShieldManager->Clear();
    			return 0;
    		}
    
    		if (gs_pHShieldManager->SaveSafeFunc(MainLoop, 1) != 0)
    		{
    			gs_pHShieldManager->Clear();
    			return 0;
    		}*/
    And
    ***\src\Engine\Src\HShieldManager.cpp
    ***\src\Engine\Inc\HShieldManager.h

    Disable your solution configuation:

    #if defined _RAG2_TESTSERVER || defined _RAG2_SERVICE || defined _DEBUG

    Rebuild Engine.dll and RagII.exe

    - - - Updated - - -

    The server also updated the source code, check it, since not everything has been written before that needs to be corrected.

    https://github.com/geralex/saga-revi...cf6ace6472c745
    ***\src\Engine\Src\HShieldManager.cpp
    ***\src\Engine\Inc\HShieldManager.h

    These two files have already been modified.

    Launch.cpp was unexpected.
    Let's try it.

    (Will re-upload if successful.)

    - - - Updated - - -

    Quote Originally Posted by Viserion View Post
    Finally someone managed to compile this client. :)

    What do you mean by partially compiled? Any libs missing or giving trouble compiling?
    This means that obj files or exp files are output when the entire compilation is originally completed, but after the file size is created, it becomes very large, so it is difficult to upload. (The capacity of the file upload site is insufficient.)
    So I removed the Output folder and uploaded it. (Partial compilation means this... But I'm sorry for the misunderstanding.) Compilation works very well.
    The compressed file uploaded later is the version without removing the Output folder. (Organize the upload site and re-upload)
    (* However, these sources do not compile in VS2005 and later versions. I tried to compile in VS2022 version, but an error occurred again. I had to change the source code as a whole, but there was not enough time.)

    And, the success of this compilation is not my success, but the success of everyone here.
    Without the help of these people, I might not have succeeded...

    (Sorry, bad english)
    Last edited by Kang Jinsu; 26-10-22 at 07:20 AM. Reason: Edit

  10. #10
    Proficient Member Kang Jinsu is offline
    MemberRank
    Apr 2011 Join Date
    Daegu, ROKLocation
    174Posts
    ClientKick spkt2 = new ClientKick();

    An error occurs because this function does not exist.
    Where is this?

    How do I add it?

  11. #11
    Account Upgraded | Title Enabled! geralex88 is online now
    MemberRank
    Jan 2010 Join Date
    203Posts
    Quote Originally Posted by Kang Jinsu View Post
    ClientKick spkt2 = new ClientKick();

    An error occurs because this function does not exist.
    Where is this?

    How do I add it?
    Fix. There was an attempt to implement a character change. Commit git - check it.

    And I fix correct display of locations:

    before



    after



    How fix - change client source:

    ***\src\Core\Inc\UnMath.h

    change

    Code:
    #if ASM && !_DEBUG
    to

    Code:
    #if ASM && _DEBUG
    and rebuild..

  12. #12
    Enthusiast Endreo22 is offline
    MemberRank
    Oct 2009 Join Date
    BrazilLocation
    44Posts
    @geralex88

    Was the game access successful?

  13. #13
    Account Upgraded | Title Enabled! geralex88 is online now
    MemberRank
    Jan 2010 Join Date
    203Posts
    Quote Originally Posted by Endreo22 View Post
    @geralex88

    Was the game access successful?
    Yes. I was involved in this project a couple of years ago, but then there was little time. Now I think I can give some advice on how and what to do =)


  14. #14
    Enthusiast Endreo22 is offline
    MemberRank
    Oct 2009 Join Date
    BrazilLocation
    44Posts
    That's wonderful, I'm very interested in this project!

  15. #15
    Account Upgraded | Title Enabled! geralex88 is online now
    MemberRank
    Jan 2010 Join Date
    203Posts
    Current connection screenshot:




Page 1 of 4 1234 LastLast

Advertisement