Results 1 to 15 of 65

Threaded View

  1. #1
    The richest man is not the one who has the most but the one who needs the least.
    MPGH Member
    Alde.'s Avatar
    Join Date
    Oct 2012
    Gender
    male
    Posts
    1,706
    Reputation
    166
    Thanks
    3,627
    My Mood
    Sleepy

    Exclamation How to : Update your own RotMG Client Source

    Goal
    Step by step tutorial to update an outdated client source.
    We want to compare two decompiled clients to find modifications and update our own client source.

    Required Softwares
    1. JPEXS
    JPEXS is a free flash decompiler used to decompile the clients
    2. Trillix
    Trillix is a paid flash decompiler used to decompile the assets of the new client
    3. WinMerge
    Winmerge is a free file comparator used to compare the clients
    4. Intellij IDEA Ultimate
    IDEA Ultimate is IDE to develop software. We'll use it to update our source and compile/run it.

    Please note that both Trillix and Intelij are paid softwares. Trillix is not essential. Intelij is, but you can get FlashDevelop for free.

    Tutorial

    1. Download the clients (new and old)
    Scroll at the bottom of static.drips.pw/rotmg to see all the released clients.
    Download the two clients you want to compare and put them on your Desktop.

    2. Download the source from ****** and get it running
    You can use any Client source you want, but I recommend you use mine. ******, iobsidian, realmclient. Download ZIP. Put on to desktop.
    Make sure you have the Flex SDK installed on your machine. Put it in C:\Flex.
    Open the project in Intellij IDEA Ultimate.
    Sometimes, IDEA can be a real pain. If you see errors, go in
    File > Project Structure > Module > Depencies > Select Flex
    and set Flex everywhere you can. Keep IDEA openned.

    3. Decompile and compare
    Great. Now the hard work is done.
    Open JPEXS, open the two clients, and right click > export selection for both 'scripts' folder. Put those in those folders, I.E. 'New' and 'Old'. Close JPEXS.
    Great. Now Open WinMerge, file, open, select the two folders to compare.
    Optional : Right click on the filename/folder bar, customize columns, select differences, click O.K.
    You will see how many files have changed. For this current build, there is 5 files that have changed.
    Open the file with the most changes first.
    Right click on the top where it says 'C:\Users\VaypeNaysh\Desktop\Clients\new\scripts\k abam\rotmg\messaging\impl\GameServerConnection.as' and copy the filename.

    4. Update the source
    Keep WinMerge openned. Go in Intellij IDEA Ultimate and press CTRL+SHIFT+F and search for ''GameServerConnection" (without the .as)
    Ctrl+Click on the first result. Now you can begin updating the code. You can copy and paste the modified sections or update the values and code manually.

    You're almost done. Sometimes, errors will emerge. This is because of differences between the source and the decompiled client.
    You could figure it out by yourself, but variable names like arg becomes param and loc becomes local. Just rename the variables.

    Repeat the process for every files with differences in WinMerge.

    5. Updating the assets
    Now that we're done updating the source code, we want to update the assets. Sometimes the assets don't change so this step is optionnal but recommended.
    Open the new client in Trillix. At the top, press 'export source'. Go in kabam/rotmg/assets and paste the images to your source folder.

    That's it!

    I want to give a special thanks to our lord and savior 059.
    Thanks and happy coding.
    Last edited by Alde.; 03-18-2017 at 06:45 PM.
    Alde is Alde is

  2. The Following 18 Users Say Thank You to Alde. For This Useful Post:

    bluuman (03-18-2017),BoredBro (02-22-2018),Daenerys (03-18-2017),deadpool251 (12-16-2017),Dudutxsuio (09-08-2017),ETDHeartdhrthrhtthth (09-12-2017),Froz3n (03-23-2017),Gamer_Freak1 (11-22-2017),glanhead (12-15-2017),gorgor (11-24-2017),ITeachDougie (02-01-2018),kiwi5 (12-10-2017),Kushala Daora (03-19-2017),MATEUSMAEL1 (11-30-2017),mrexodia (09-09-2017),mustafizrrahman (03-24-2017),Sean (12-07-2017),VAW$RfgW4TWW54 (03-18-2017)

Similar Threads

  1. [Solved] Tutorial how to update your own cheat CSGO.
    By 2ht3r in forum Counter-Strike 2 Help
    Replies: 7
    Last Post: 09-21-2016, 11:59 AM
  2. [Tutorial] How to update your 1.6.2 client to 1.6.4 [SIMPLE]
    By rookytristan45 in forum Minecraft Tutorials
    Replies: 14
    Last Post: 10-12-2013, 11:15 AM
  3. [Tutorial] Update your own client to 123.5.1!!
    By ZkT in forum Realm of the Mad God Hacks & Cheats
    Replies: 11
    Last Post: 09-07-2012, 06:12 AM
  4. How to make your own Runescape Client
    By Paul in forum Runescape Tutorials
    Replies: 6
    Last Post: 06-19-2012, 04:01 PM
  5. CAPS *BETA* 0.1.2 update - How to add your own maps
    By supercarz1991 in forum Combat Arms Mods & Rez Modding
    Replies: 7
    Last Post: 02-13-2012, 04:27 PM