Register for your free account! | Forgot your password?

Go Back   elitepvpers > Other Online Games > Browsergames > Facebook
You last visited: Today at 13:49

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



SWF Editing Tutorial

Discussion on SWF Editing Tutorial within the Facebook forum part of the Browsergames category.

Closed Thread
 
Old   #1
 
KalMoran's Avatar
 
elite*gold: 0
Join Date: Dec 2011
Posts: 22
Received Thanks: 17
SWF Editing Tutorial

I welcome all who want to learn how to edit SWF files.

If anyone needs to know how to edit the swf just send me a private message or reply to this post.

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 stuffy you want to edit, like costs and production times.

Here is a link to the RABCDASM download page :
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.
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-0.abc'
6. You then enter the following command into the Command Prompt to disassemble the abc file:

rabcdasm doggy-0.abc

7. This creates an export directory named 'doggy-0' which contains all of the files you will be editing and ultimately reassembling into the hacked swf file.
7.5 Go to the doggy-0 (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-0.main.asasm' (the main program file) and `doggy-0.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-0/doggy-0.main.asasm
abcreplace doggy-0.swf 0 doggy-0/doggy-0.main.abc

This includes the spaces and zero 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.
KalMoran is offline  
Thanks
9 Users
Old 12/23/2011, 13:11   #2
 
Jenice98's Avatar
 
elite*gold: 180
Join Date: Oct 2011
Posts: 163
Received Thanks: 237
I got an error. It says ~Error while processing MM.swf : std.file.FileException@std\file.d<308>: MM.swf: The system canot find the file specified
-------------
43B3CC
43B243
402116
405498
4054D7
4050D3
45C411

any idea????
Jenice98 is offline  
Old 12/23/2011, 13:16   #3
 
Succubuzz's Avatar
 
elite*gold: 0
Join Date: Dec 2010
Posts: 72
Received Thanks: 8
you DO realise you dont have to use cmd to use rabcdasm.
Succubuzz is offline  
Old 12/23/2011, 13:19   #4
 
Jenice98's Avatar
 
elite*gold: 180
Join Date: Oct 2011
Posts: 163
Received Thanks: 237
what is that suppose to mean>???
Jenice98 is offline  
Old 12/23/2011, 14:34   #5
 
Dilicroix's Avatar
 
elite*gold: 0
Join Date: Jun 2008
Posts: 5
Received Thanks: 9
i manage to extract it. but when i want to recompile it. i get an error like jenice
C:\RABCDAsm__v1.8>abcreplace game-0.swf 0 game-0\game-0.main abc
std.file.fileexception@std'file.d<308>: game-0.swf: The system cannot find the file specified
--------------
43564c
4354c3
102094
403573
40316f
162ce9

the swf im trying to recompile is Edgeworld

This was with a .BAT


This is without the .BAT , i use
rabcasm game-0/game-0.main.asasm
abcreplace game-0.swf 0 game-0/game-0.main.abc

and got this diff error

Attached Images
File Type: jpg problem.jpg (14.3 KB, 116 views)
Dilicroix is offline  
Old 12/23/2011, 20:24   #6
 
KalMoran's Avatar
 
elite*gold: 0
Join Date: Dec 2011
Posts: 22
Received Thanks: 17
Quote:
Originally Posted by Jenice98 View Post
I got an error. It says ~Error while processing MM.swf : std.file.FileException@std\file.d<308>: MM.swf: The system canot find the file specified
-------------
43B3CC
43B243
402116
405498
4054D7
4050D3
45C411

any idea????
What you should do is decompile the game, then recompile it without any modifications just to test the recompilation process. If it works, then you should make a few edits at a time, recompiling every now and then to make sure the new edits worked.

Often times when I am editing it I change numbers but I forget to change their type. If you change something like "pushbyte 20" to "pushbyte 20000" then you have to change the byte in pushbyte to int since 20000 must be stored in an int. A byte is not big enough to handle this number. You would change the entry to "pushint 20000"

Hope that helps.



Quote:
Originally Posted by Succubuzz View Post
you DO realise you dont have to use cmd to use rabcdasm.
Of course I do. I just use cmd all the time. You can make batch files if you want. I like the command line. I might start using batch files if I think that is a faster way.
KalMoran is offline  
Old 12/25/2011, 19:56   #7
 
elite*gold: 0
Join Date: Dec 2011
Posts: 36
Received Thanks: 0
I need to try it. thanks
menidi is offline  
Old 12/26/2011, 04:14   #8
 
Jenice98's Avatar
 
elite*gold: 180
Join Date: Oct 2011
Posts: 163
Received Thanks: 237
can i know how to decompile it????
Jenice98 is offline  
Old 12/26/2011, 04:16   #9
 
sapoha's Avatar
 
elite*gold: 0
Join Date: Dec 2011
Posts: 26
Received Thanks: 5
gonna try.... tomorrow. ;D
sapoha is offline  
Old 12/26/2011, 11:08   #10
 
elite*gold: 0
Join Date: Dec 2011
Posts: 88
Received Thanks: 31
after extract what item will i edit? and what word will i type in
that file?
warcraft112 is offline  
Old 12/26/2011, 17:51   #11
 
elite*gold: 0
Join Date: Nov 2009
Posts: 472
Received Thanks: 51
Talking

Quote:
Originally Posted by KalMoran View Post
I welcome all who want to learn how to edit SWF files.

If anyone needs to know how to edit the swf just send me a private message or reply to this post.

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 stuffy you want to edit, like costs and production times.

Here is a link to the RABCDASM download page :
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.
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-0.abc'
6. You then enter the following command into the Command Prompt to disassemble the abc file:

rabcdasm doggy-0.abc

7. This creates an export directory named 'doggy-0' which contains all of the files you will be editing and ultimately reassembling into the hacked swf file.
7.5 Go to the doggy-0 (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-0.main.asasm' (the main program file) and `doggy-0.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-0/doggy-0.main.asasm
abcreplace doggy-0.swf 0 doggy-0/doggy-0.main.abc

This includes the spaces and zero 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.
after i finish edit file how to save my edit in swf file....
kolokoy00 is offline  
Old 12/26/2011, 18:51   #12
 
MmaBaki's Avatar
 
elite*gold: 0
Join Date: Nov 2011
Posts: 134
Received Thanks: 8
@kolokoy00


save as.. compile.bat then all files.. and save..
MmaBaki is offline  
Old 12/26/2011, 22:17   #13
 
Succubuzz's Avatar
 
elite*gold: 0
Join Date: Dec 2010
Posts: 72
Received Thanks: 8
Quote:
Originally Posted by KalMoran View Post
What you should do is decompile the game, then recompile it without any modifications just to test the recompilation process. If it works, then you should make a few edits at a time, recompiling every now and then to make sure the new edits worked.

Often times when I am editing it I change numbers but I forget to change their type. If you change something like "pushbyte 20" to "pushbyte 20000" then you have to change the byte in pushbyte to int since 20000 must be stored in an int. A byte is not big enough to handle this number. You would change the entry to "pushint 20000"

Hope that helps.





Of course I do. I just use cmd all the time. You can make batch files if you want. I like the command line. I might start using batch files if I think that is a faster way.
i dont use batch files. i simply drag and drop the SWF onto the export, and then drag and drop the file created onto rabcdasm file, which creates the folder with all the stuff in. its working fine for me tht way.
Succubuzz is offline  
Old 12/28/2011, 03:34   #14
 
elite*gold: 0
Join Date: Dec 2011
Posts: 88
Received Thanks: 31
when i compile i see the swf properties nothing changes in the file size when i extract them its back to original
warcraft112 is offline  
Old 12/28/2011, 04:17   #15
 
elite*gold: 0
Join Date: Dec 2011
Posts: 3
Received Thanks: 0
I'm very new to these and i dont understand anything here .
ichilouch is offline  
Closed Thread


Similar Threads Similar Threads
Req. swf editing tutorial
12/22/2011 - Facebook - 3 Replies
Hello guys! does anyone still now what did dark cube told us about editing swf? pls pm me the tutorial pls. thank you.!:confused::confused:
[TUTORIAL] Editing Mob.wz file.
12/14/2011 - MapleStory - 24 Replies
NOTE: I did NOT found out about this, just giving a tutorial about it. Difficulty:**/*****(According to me) Use: To make monster not able to hit you a.k.a "God Mode" Files Required: i.Hex (Or any other hex editor), Mob.wz, This Thread :D.
Searching Tutorial for Skill Editing
09/18/2011 - Silkroad Online - 0 Replies
Hello i want to search an tutorial How i can change some skills from a wizzard to some skills from the monster Jupiter. My problem is that i dont find the skill names of Jupiter can someone help me?
point me to a csv editing tutorial?
10/14/2009 - Dekaron - 7 Replies
can anyone point me to a step by step csv editing tutorial?



All times are GMT +1. The time now is 13:50.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.