[Tutorial] Editing SWF

09/08/2012 19:12 Harry0248#46
All i got in the file when I extracted this, was a few folders, with like, "521423132326123423632234.class" inside, and the folders were numbers aswell, help?
09/08/2012 23:29 Morgs888#47
Quote:
Originally Posted by Harry0248 View Post
All i got in the file when I extracted this, was a few folders, with like, "521423132326123423632234.class" inside, and the folders were numbers aswell, help?
You are seeing an encrypted SWF.
That is because Kixeye tried to prevent us from decompiling and editing.
It stopped 99% of people being able to hack BYM.
There is a way around it but I doubt anyone will tell you how to do it, it's something you must work out yourself.
05/17/2013 21:14 jgamage123#48
This doesnt make sense i create a text file extract.bat but when i double click it no folder pops up just the file i created

Quote:
Originally Posted by jackgaray19 View Post
Tools Needed:

• Notepad++ [Only registered and activated users can see links. Click Here To Register...]
- It's not necessary to download this tool but It makes your work easily and you can download them less a minute.

• Rabcdasm [Only registered and activated users can see links. Click Here To Register...]
- This is a VERY IMPORTANT tool which will be used for editing. Downloading them are less 3 minutes.
~ Note: You can't edit the said SWF file without this


Steps:
1. Upon dl this programs, extract rabcdasm folder and install notepad++
2. Goto your desktop and create a folder named BYM or my name if you like LOL
3. open this folder and paste here some .exe from the folder rabcdasm
BYM folder should consist of:
abcexport.exe
abcreplace.exe
rabcasm.exe
rabcdasm.exe
fresh swf files for example: game-v120.v31.swf
extract.bat
compile.bat

how to create .bat files

create a new txt document each

in extract write this
abcexport game-v120.v31.swf
rabcdasm game-v120.v31-0.abc

in compile write this
rabcasm game-v120.v31-0\game-v120.v31-0.main.asasm

In Extract write this
abcreplace game-v120.v31.swf 0 game-v120.v31-0\game-v120.v31-0.main.abc
del /q /f game-v120.v31-0.abc
pause

EDITING

4. after completing requirements above.. double click extract.bat
5. after the CMD screen vanished, there will be a new folder popups
6 Open that folder and edit some on of the *.asasm files

Here are some to be edited
BASE.class.asasm
BFOUNDATION.class.asasm
BRESOURCE.class.asasm
BTOWER.class.asasm
BUILDING5.class.asasm
BUILDING6.class.asasm
BUILDING8.class.asasm
BUILDING9.class.asasm
BUILDING10.class.asasm
BUILDING11.class.asasm
BUILDING13.class.asasm
BUILDING15.class.asasm
BUILDING16.class.asasm
BUILDING19.class.asasm
BUILDING22.class.asasm
BUILDING23.class.asasm
BUILDING26.class.asasm
BUILDING51.class.asasm
BUILDING115.class.asasm
BUILDING118.class.asasm
CREATURELOCKER.class.asasm
GLOBAL.class.asasm
CHAMPIONCAGE.class.asasm
MONSTERLAB.class.asasm
QUESTS.class.asasm

Under this you will see the cost, time, production, capacity
pushstring "twigsnapper_desc"
pushstring "costs"
pushstring "r1"
pushbyte 0
pushstring "r2"
pushbyte 1 THIS IS COST 1 PEBBLES
pushstring "r3"
pushbyte 0
pushstring "r4"
pushbyte 0
pushstring "time" THIS IS INSTANT BUILD
pushbyte 1
pushstring "re"
pushbyte 14

pushstring "produce" THIS IS THE DOUBLE RESOURCES
pushshort 7200
pushshort 21600
pushint 56700
pushint 133650
pushint 291600
pushint 601420
pushint 1189180
pushint 2275840
pushint 4244140
pushint 7750180
pushstring "cycleTime" THIS IS INSTANT RESOURCES
pushbyte 1

pushstring "capacity" THIS IS THE DOUBLE CAPACITY
pushshort 7200
pushshort 21600
pushint 56700
pushint 133650
pushint 291600
pushint 601420
pushint 1189180
pushint 2275840
pushint 4244140
pushint 7750180

pushstring "repairTime" THIS IS INSTANT REPAIR
pushbyte 1
pushbyte 1
pushbyte 1
pushbyte 1
pushbyte 1
pushbyte 1
pushbyte 1
pushbyte 1
pushbyte 1
pushbyte 1

NOTE: do this on all resources

HACK CHECKS
this can be found in .main and .privatens
remove this completely
;#include "CHECKER.script.asasm"
; QName(PackageNamespace(""), "CHECKER")
;#privatens 270 "CHECKER"
; QName(PackageNamespace(""), "CHECKER") -> QName(PackageNamespace(""), "Check")
;#privatens 277 "CHECKER/Check"

COMPILE

click compile.bat
CMD will popup and the .abc files will be vanished

END

Now you will have a moded swf files to be used in fiddler or charles.
Although i did not show you all some in editing the swf, in process you will find out by your own.


Credits to:
jackgaray19(Me) - Releasing them
DarkCube for editing them
Inconnus - the tutorial



Note:
~ Save the tutorial in your notepad or somewhere else because this tutorial will be deleted after 24 hours.
~ KIXEYE might see this.
~ If you have some questions or trouble just go to google and search Inconnus.




You can also edit this with Adobe Flash Professional but i'm tired making a tutorial of it It's really complicated but easier in using it.

- [Only registered and activated users can see links. Click Here To Register...] ~ The BEST AQW PS Ever! (I am the owner of that server :)
i dont understand no new folder pops up for me
05/17/2013 22:38 Arby#49
Please look at the date.