75dragon (06-25-2013),9alexua9 (07-30-2013),[MPGH]Beex (08-07-2013),Fawflance (08-29-2015),Kaene (06-18-2014),kristijonassu (07-03-2016),PAXMA (10-18-2016),Raple (10-14-2013),sacredmike (09-14-2014),samsonreal (03-27-2017),Starke (12-12-2013)
Note: Found at Elit****.com ( NOT MINE ) i edited to specificly hack ROTMG
I welcome all who want to learn how to edit SWF files.
I use the same program DarkCube does to edit SWF's. It is RABCDASM. This program disassembles the ActionScript from the SWF file to enable editing. The ActionScript contains all the juicy stuff you want to edit, like costs and production times.
Here is a link to the RABCDASM download page : https://******.com/CyberShadow/RABCDAsm/downloads
There is a readme file in the directory called README.md which you can open in a text editor, such as Notepad++. It is very helpful. For my short tutorial here I am going through the commands shown in the README file.
Here is a quick tutorial for after you have downloaded and extracted RABCDASM.
1. Open up a Command Prompt window (CMD.exe)
2. navigate to the directory where you extracted RABCDASM. (Use cd "Directory here" and cd ... to go back)
3. Put the SWF you want to edit, in this case doggy.swf, in the RABCDASM directory
4. You must disassemble the ActionScript from the SWF. Do this with the following command in the Command Prompt (using your own swf in the place of doggy.swf):
abcexport doggy.swf
5. This creates the file named 'doggy-1.abc'
6. You then enter the following command into the Command Prompt to disassemble the abc file:
rabcdasm doggy-1.abc
7. This creates an export directory named 'doggy-1' which contains all of the files you will be editing and ultimately reassembling into the hacked swf file.
7.5 Go to the doggy-1 (or whatever the name of your swf is) directory and find the files you want to change. Edit them with a text editor or a program like Notepad++.
8. Once you have made the changes you like then you will use two files of interest, 'file-1.main.asasm' (the main program file) and `doggy-1.main.abc`
9. You now need to assemble the edited ActionScript classes back into a usable SWF file. To do this, enter the following commands into the Command Prompt:
rabcasm doggy-1/doggy-1.main.asasm
abcreplace doggy.swf 1 doggy-1/doggy-1.main.abc
This includes the spaces and one between the two parts of the abcreplace command
Now you have a hacked SWF! It's name is the name of the original SWF file that you copied into the RABCDASM directory.
Good luck hacking! Ask questions if you have them.
Last edited by 6david7; 06-19-2013 at 12:56 PM.
75dragon (06-25-2013),9alexua9 (07-30-2013),[MPGH]Beex (08-07-2013),Fawflance (08-29-2015),Kaene (06-18-2014),kristijonassu (07-03-2016),PAXMA (10-18-2016),Raple (10-14-2013),sacredmike (09-14-2014),samsonreal (03-27-2017),Starke (12-12-2013)
ok i know this is a nobby question but how do i navigate to the directory where you extracted RABCDASM with the cmd?
i have a problem... i disassembled the swf in client-1 file and edited it.
but while reassembling cmd says 'cannot find the file specified' .
i manually checked the client-1 file i didn't find client-1.main.asasm
note: i couldn't decompress new clients doing that gave me an error saying 'already decompressed'
i have downloaded new rabcdasm file still having problem
Last edited by rubannathan; 06-19-2013 at 12:49 AM.
To change a directory, type in command prompt: cd directoryhere ( cd C:/users/x/downloads/rotmg/new folder/RABCDASM_v1.13 )
---------- Post added at 03:48 AM ---------- Previous post was at 02:32 AM ----------
The main.asasm file isn't in the Rabcdasm folder, it's in the sub folder client-1
So to use the file, you type client-1/client-1.main.asasm instead of just client-1.swf
---------- Post added at 04:42 AM ---------- Previous post was at 03:48 AM ----------
P.S. Why is this not a sticky?!!?
Last edited by jakerofl; 06-19-2013 at 03:49 AM.
Rubannathan, you probably broke the client. Check ALL the code you implemented to be sure you did everything right. Then try again.
@6david7 add me on skype please i have some questions. ksixdreamx4
Help, I try to recompile the client and I get this error
I tried purely decompiling/recompiling without edits and same error.Code:C:\rabcdasm>rabcdasm client-1/client-1.main.asasm object.Exception@abcfile.d(1000): Error at 17463 (0x4437): ---------------- 0x0044C5D0 0x0044C45B 0x00411156 0x004020F5 0x00432904 0x0043293E 0x00432552 0x0045B9F5 0x769B33AA in BaseThreadInitThunk 0x77629EF2 in RtlInitializeExceptionChain 0x77629EC5 in RtlInitializeExceptionChain ---------------- object.Exception@abcfile.d(1152): Unknown Multiname kind ---------------- 0x0044C5D0 0x0044C45B 0x00411917 0x75FFDD54 in ReadFile 0x75FFDDA6 in ReadFile ----------------
Last edited by gainb; 06-19-2013 at 02:46 PM.
I do not have Skype
---------- Post added at 05:28 PM ---------- Previous post was at 05:27 PM ----------
Also, has anyone got this to work? Seems as if too many people get errors
Yay another rabcdasm guide.
If this works it really should be a sticky.
Of course it works... But the people that actually got it to work didn't bother leaving a thanks in the comments...except for me. THANKS.
rabcdasm : Decompile
rabcasm : Compile.
Process explained
first you need to uncompress the SWF using swfdecompress
then you must extract the CODE from the swf with abcexport, you will find abc files( compiled code )
then you decompile the biggest abc file with rabcdasm.
A <myfile-X> folder is created with the source files decompiled from <myfile>.swf.
Due to a recent DMCA takedown attempt we had to remove Faintmako brain. Please do not paid attention to what he say or do.
gainb (06-24-2013)
@Hux/nilly please sticky this. Found this to be the first guide that was good at explaining how to use rabcdasm well.
A reason people might not thx you is because you took this off another website. But It worked well. Your first thx from me!
It wont work for me. Maybe I am stupid. Bc I cant find like line 2000 Like people post on source code.
kristijonassu (07-03-2016)