Page 1 of 5 123 ... LastLast
Results 1 to 15 of 65
  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)

  3. #2
    Daenerys's Avatar
    Join Date
    Aug 2013
    Gender
    female
    Location
    Westeros
    Posts
    961
    Reputation
    114
    Thanks
    5,435
    My Mood
    Devilish
    Nice tutorial

  4. #3
    VAW$RfgW4TWW54's Avatar
    Join Date
    Oct 2015
    Gender
    male
    Location
    United States
    Posts
    185
    Reputation
    10
    Thanks
    203
    My Mood
    Bored
    Very well put, glad someone took the time to make this.

  5. The Following User Says Thank You to VAW$RfgW4TWW54 For This Useful Post:

    GREQgv (11-16-2017)

  6. #4
    BurgerLoverMx's Avatar
    Join Date
    Jan 2014
    Gender
    male
    Location
    Québec
    Posts
    411
    Reputation
    23
    Thanks
    843
    My Mood
    Relaxed
    Quote Originally Posted by Alde. View Post

    Required Softwares
    1. JPEXS
    JPEXS is a free flash decompiler used to decompile the clients
    2. Trillix
    JPEXS is a paid flash decompiler used to decompile the assets of the new client
    Other than that, nice !

  7. #5
    Threadstarter
    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
    Quote Originally Posted by BurgerLoverMx View Post
    Other than that, nice !
    Thanks for pointing it out, it's now fixed.
    Alde is Alde is

  8. The Following User Says Thank You to Alde. For This Useful Post:

    BurgerLoverMx (03-18-2017)

  9. #6
    Froz3n's Avatar
    Join Date
    Jul 2013
    Gender
    male
    Location
    Nowhere
    Posts
    789
    Reputation
    33
    Thanks
    192
    My Mood
    Drunk
    Thanks for the tutorial!

  10. The Following User Says Thank You to Froz3n For This Useful Post:

    Alde. (03-26-2017)

  11. #7
    mustafizrrahman's Avatar
    Join Date
    Apr 2015
    Gender
    male
    Location
    england
    Posts
    91
    Reputation
    10
    Thanks
    98
    Dude, thanks man
    I like to blink and i also like to blink because its fun and i want to build a temple in peru so that you can go to my temple in peru when its built.
    Also my favourite hobby and occupation is school and peru temples

  12. The Following User Says Thank You to mustafizrrahman For This Useful Post:

    Alde. (03-26-2017)

  13. #8
    theundeadmox's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Posts
    162
    Reputation
    10
    Thanks
    21
    Thank you

    /

  14. #9
    Dudutxsuio's Avatar
    Join Date
    Jun 2012
    Gender
    male
    Posts
    95
    Reputation
    10
    Thanks
    1,465
    My Mood
    Amazed
    Thank's, I will be doing this on next update. +

  15. #10
    kacper42342432's Avatar
    Join Date
    Oct 2013
    Gender
    male
    Posts
    109
    Reputation
    10
    Thanks
    3
    My Mood
    Dead
    Can u send me updated client source on skype ?
    Last edited by kacper42342432; 09-08-2017 at 01:01 PM.

  16. #11
    RoboKnightz's Avatar
    Join Date
    Sep 2017
    Gender
    male
    Posts
    31
    Reputation
    10
    Thanks
    2
    My Mood
    Innocent
    yo is it possible to update something that aint necessarily a client? ie clientless tradebot? its kind of a program or something but not a swf client as such

  17. #12
    Epic_Platypus12's Avatar
    Join Date
    Jul 2014
    Gender
    male
    Posts
    32
    Reputation
    10
    Thanks
    2
    Hey what do I do if i want to update a client from before 2014? On the list of released clients the oldest is from 2014, but i want to update your stream / recording friendly client from 2013. What do I do?
    Last edited by Epic_Platypus12; 09-23-2017 at 08:00 AM.

  18. #13
    Johncasd's Avatar
    Join Date
    Apr 2017
    Gender
    male
    Posts
    103
    Reputation
    10
    Thanks
    14
    Currently I have the scripts folder updated with a few things of my own.. So how do I compile it back to swf?

  19. #14
    lolpot132's Avatar
    Join Date
    Sep 2012
    Gender
    female
    Posts
    361
    Reputation
    74
    Thanks
    5,376
    Quote Originally Posted by Johncasd View Post
    Currently I have the scripts folder updated with a few things of my own.. So how do I compile it back to swf?
    Have you just exported the client with jpex? That won't work, you need to fix things to get it working correctly.
    Download a client source and update it to the current version and then add your changes.. or do them in the bytecode editor in jpex.

    Also known as the dankest of the danks
    https://www.youtube.com/channel/UCrj...0XnBW7FRVMLuCg

    If I have ever referred you to MrEyeBall, please tell FaintMako so I can get my comission fees.
     
    coming soon :^)

     

    rage face
    trololol
    megusta
    confession bear

    Life is like a box of chocolates, you never know what you're gonna get - Forest Gump


  20. #15
    bog624's Avatar
    Join Date
    Jun 2012
    Gender
    male
    Posts
    873
    Reputation
    95
    Thanks
    1,981
    My Mood
    Aggressive
    Quote Originally Posted by lolpot132 View Post
    Have you just exported the client with jpex? That won't work, you need to fix things to get it working correctly.
    Download a client source and update it to the current version and then add your changes.. or do them in the bytecode editor in jpex.
    jepx has an expertimental feature of editing scripts before export, or compile.
    Good Day.



    Quote Originally Posted by DimitriSavage View Post
    *le wild bog is hunting in his natural habitat....le wild bog sees pray...le wild bog uses HACK....le wild bog wins....le wild bog is evolving....le wild bog is now le wild gob*

    LE WILD BOG IN LE POKEDEX : POKEDEX ENTRY

    LE WILD GOB IN LE POKEDEX : POKEDEX ENTRY

    TEH FINAL EVOLUTION OF LE WILD BOG : POKEDEX ENTRY


Page 1 of 5 123 ... LastLast

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