[UPDATE] AKTools V3

Results 1 to 8 of 8
  1. #1
    Developer Eperty123 is offline
    MemberRank
    Dec 2013 Join Date
    386Posts

    [UPDATE] AKTools V3

    Edit: No longer maintained and needed. Use cgi’s patcher.
    Last edited by Eperty123; 08-02-20 at 05:01 AM.


  2. #2
    Enthusiast kcmclan is offline
    MemberRank
    Jul 2016 Join Date
    31Posts

    Re: [UPDATE] AKTools V3

    Is that mean I can finally using this to host a WAN server?

  3. #3
    Apprentice ultimax3 is offline
    MemberRank
    Aug 2011 Join Date
    18Posts

    Re: [UPDATE] AKTools V3

    i will test it as soon as i can, thx u for sharing that :D

  4. #4
    Ahhh?? k0d0k is offline
    MemberRank
    Dec 2014 Join Date
    MARSLocation
    473Posts

    Re: [UPDATE] AKTools V3

    thx u <3

  5. #5
    Enthusiast kcmclan is offline
    MemberRank
    Jul 2016 Join Date
    31Posts

    Re: [UPDATE] AKTools V3

    i got error of object reference not set to an object @Eperty123

  6. #6
    Apprentice cgi is offline
    MemberRank
    Sep 2017 Join Date
    18Posts

    Re: [UPDATE] AKTools V3

    Quote Originally Posted by Eperty123 View Post
    Note
    AKTools now relies on my server for handling IPs which means you need an active internet connection to be able to convert your IPs. This way class A IPs (e.g. 10.10.12.3) should theoretically be supported. Haven't tested it so let me know.
    Just noticed this file is different from the one in the thread http://forum.ragezone.com/f937/aura-...files-1158070/ which didn't work for me, I have not tried your up to date file here, but you might be able to see if that is still a issue.
    So my network uses 10.0.0.x and AKTools didn't work for me, so I looked into your code and found the issue.



    A0 00 06 so basically it was converting it to 160.0.6.0 or A0 00 06 00, because an IP is 4 bytes in memory.

    So the way I fixed it was by using the IPAddress class, so when you catch it from the text box:

    Code:
    var ip = IPAddress.Parse(iUserIp.Text);
    setting the other box to the bytes:

    Code:
    iIpToBytes.Text = BitConverter.ToString(ip.GetAddressBytes());
    And to use the ip to patch the files(because the last entry needs to be 0):

    Code:
    var lastOctetToZero = ip.GetAddressBytes();
    lastOctetToZero[3] = 0;
    Now it works for me with 10.0.0.x IP, hopefully you're still around and can update your tool :)

    And instead of converting things to string to compare, it might be easier to do something like this, example for loginserver:
    Code:
    var ipLastOctetToZero = ip.GetAddressBytes();
    ipLastOctetToZero[3] = 0;
    using (var fileStream = File.Open(filename, FileMode.Open, FileAccess.ReadWrite))
    {
        using (var binaryWriter = new BinaryWriter(fileStream))
        using (var binaryReader = new BinaryReader(fileStream))
        {
            binaryReader.BaseStream.Seek(baseJump, SeekOrigin.Begin);
            var current = binaryReader.ReadByte();
            if (current == 0xCC)
            {
                binaryWriter.BaseStream.Position = 202276;
                binaryWriter.Write(ipLastOctetToZero);
                binaryWriter.BaseStream.Position = 203060;
                binaryWriter.Write(ipLastOctetToZero);
                return;
            }
            Console.WriteLine("Incompatible file...");
        }
    }
    Hope it helps ;)
    Last edited by cgi; 11-04-19 at 12:50 AM. Reason: ops update

  7. #7
    Enthusiast RainbowShaak is offline
    MemberRank
    Jan 2019 Join Date
    28Posts

    Re: [UPDATE] AKTools V3

    I have same problem, How can i fix him?

  8. #8
    Apprentice diolytion is offline
    MemberRank
    Apr 2021 Join Date
    14Posts

    Re: [UPDATE] AKTools V3

    @cgi



    Sorry, can you upload the edited program from you here?I'm having a problem that the AKtool program doesn't support files I need to edit
    Last edited by PyroSamurai; 11-04-21 at 05:25 PM. Reason: removed failed quote



Advertisement