READ THE RULES: Click here

Follow us on Facebook: https://www.facebook.com/xentax/ :)

Need to decompile a special swf-file... (League of Legends)

Read or post about compression. And decompression. Or ask questions how to decompress your files.
Post Reply
ChrisX930
veteran
Posts: 145
Joined: Sun Feb 23, 2014 4:10 pm
Has thanked: 2 times
Been thanked: 1 time

Need to decompile a special swf-file... (League of Legends)

Post by ChrisX930 » Fri Feb 28, 2014 4:40 pm

Hey Guys,

at the moment, I try to modify the game "League of Legends" a little bit.
I'm already able to play on old maps (like Old Twisted Treeline and Summoners Rift (Winter)), old/time limited Modes (showdown, one for all) in Custom/Co-op vs AI - Games.

I want to decompile a special swf-file because I want to ADD some scripts (and images) to it.
I already tried to decompile it with "SoThink SWF Decompiler" and "FFDec" into fla (because i can't decompile it to flex).
But I have problems with recompile it with Adobe Flash CS6.

mod_man.swf => Need help with this file
ImagePack_misc.swf=> I was able to decompile it to flex AND recompile it back. (For example)
both files in one .rar for download

Anyone can help me with this?
I want to know how to decompile AND fully recompile the mod_man.swf WITHOUT Errors, because I want to ADD some Files(Images) and Scripts to it.
asasm wouldn't work, because I can`t add images with asasm to this swf

Thank you :3

ChrisX930
veteran
Posts: 145
Joined: Sun Feb 23, 2014 4:10 pm
Has thanked: 2 times
Been thanked: 1 time

Re: Need to decompile a special swf-file... (League of Legen

Post by ChrisX930 » Fri Mar 07, 2014 10:33 pm

No one who can help me with this?
I have to add one or two actionscripts to it to embed removed maps back into the game^^
I have to decompile + recompile it. It wouldn`t work with .fla - decompiling, so I need a way to decompile it as .flex (if possible) or any other way

User avatar
SILENTpavel
advanced
Posts: 54
Joined: Fri Aug 05, 2011 5:53 am
Has thanked: 86 times
Been thanked: 15 times

Re: Need to decompile a special swf-file... (League of Legen

Post by SILENTpavel » Sat Mar 08, 2014 3:35 pm

ChrisX930 wrote:I already tried to decompile it with "SoThink SWF Decompiler"
this tool is only way to do this
if you can't do decompile with "SoThink", so you can't do anything with this file, i think

ChrisX930
veteran
Posts: 145
Joined: Sun Feb 23, 2014 4:10 pm
Has thanked: 2 times
Been thanked: 1 time

Re: Need to decompile a special swf-file... (League of Legen

Post by ChrisX930 » Sat Mar 08, 2014 5:24 pm

Heya,

I tried to decompile it with Sothink Decompiler
Image
Only FLA was possible, not flex :/ (I like flex more)

Then, I tried to load the fla with Flash CS6, I get this error (unexpected file format)
Image

I tried to decompile it with FFDec to fla. It can be loaded with CS6
Image

but I can't recompile it because I get errors
Image

Any Ideas?

ChrisX930
veteran
Posts: 145
Joined: Sun Feb 23, 2014 4:10 pm
Has thanked: 2 times
Been thanked: 1 time

Re: Need to decompile a special swf-file... (League of Legen

Post by ChrisX930 » Sat Mar 08, 2014 10:17 pm

I think I fixed some of the errors...
But now, I could need your help with this two errors (1120, 5000).
If I could fix this two errors, I can recompile it without problems^^
Image Image

EDIT:
Image
when I remove the dot before it,and try to recompile again, I`ll get this error:
Image


EDIT2: I uploaded the decompiled source
http://uploaded.net/file/aicv41fk

User avatar
SILENTpavel
advanced
Posts: 54
Joined: Fri Aug 05, 2011 5:53 am
Has thanked: 86 times
Been thanked: 15 times

Re: Need to decompile a special swf-file... (League of Legen

Post by SILENTpavel » Mon Mar 10, 2014 3:17 am

also you can try "Sothink SWF Editor v1.3 Build 614"

ChrisX930
veteran
Posts: 145
Joined: Sun Feb 23, 2014 4:10 pm
Has thanked: 2 times
Been thanked: 1 time

Re: Need to decompile a special swf-file... (League of Legen

Post by ChrisX930 » Mon Mar 10, 2014 7:22 am

I tried it, but I don't know how I can add files (.as Scripts) with it :/
I also don't know how I could try to decompile the swf with the Sothink SWF Editor .

User avatar
futaradragon
n00b
Posts: 10
Joined: Sat Feb 15, 2014 8:34 am
Has thanked: 5 times

Re: Need to decompile a special swf-file... (League of Legen

Post by futaradragon » Mon Mar 10, 2014 7:42 am

ChrisX930 wrote:I think I fixed some of the errors...
But now, I could need your help with this two errors (1120, 5000).
If I could fix this two errors, I can recompile it without problems^^
Image Image

EDIT:
Image
when I remove the dot before it,and try to recompile again, I`ll get this error:
Image


EDIT2: I uploaded the decompiled source
http://uploaded.net/file/aicv41fk

Sothink SWF Decompiler can extract script but all scripts are on virtual variable that mean all script need to rewrite all variable in .as
but some class as file not need for do that.
More Mod More Fun More Friend

ChrisX930
veteran
Posts: 145
Joined: Sun Feb 23, 2014 4:10 pm
Has thanked: 2 times
Been thanked: 1 time

Re: Need to decompile a special swf-file... (League of Legen

Post by ChrisX930 » Mon Mar 10, 2014 1:24 pm

Ah okay :o
Could you help me with it?
It would ne REALLY great! :3

ChrisX930
veteran
Posts: 145
Joined: Sun Feb 23, 2014 4:10 pm
Has thanked: 2 times
Been thanked: 1 time

Re: Need to decompile a special swf-file... (League of Legen

Post by ChrisX930 » Mon Mar 17, 2014 10:30 am

No one who can help me with this? ._.

ChrisX930
veteran
Posts: 145
Joined: Sun Feb 23, 2014 4:10 pm
Has thanked: 2 times
Been thanked: 1 time

Re: Need to decompile a special swf-file... (League of Legen

Post by ChrisX930 » Thu Mar 20, 2014 9:24 pm

Now I know how I could ADD a new AS-Script to a SWF File Like this.
But I got two problems atm...

At the first, for adding new Scripts:
http://forum.worldoftanks.eu/index.php? ... -rabcdasm/
With this tutorial (and some selfscripting) I'm possibly able to ADD new scripts to the swf.
But now, I encountered this Problem:
Image
I tried to recompile the main.asasm back to .abc, but The Path seems to be too long...
Anyone knows how I can bypass this limitation?

At the second: Anyone knows how I can ADD new Images/Pictures to an existing swf and link it to a as-script? (like this)
Image

ChrisX930
veteran
Posts: 145
Joined: Sun Feb 23, 2014 4:10 pm
Has thanked: 2 times
Been thanked: 1 time

Re: Need to decompile a special swf-file... (League of Legen

Post by ChrisX930 » Mon Apr 07, 2014 11:19 am

Anyone who could help me with that?
I need to know how I can de- and recompile files like this because I`m able to add removed Gamemodes back as "Custom Game" Mode then.

Post Reply