Jump to content
Tuts 4 You

how to edit flash games ?


abbas

Recommended Posts

hi all


is there any way to cut a swf file 


i mean removing useless messages and cutting the parts i want


Link to comment
Share on other sites

TheProxy RE

use some swf decompiler (for example Sothnik swf decompiler) (so it decompile yooure app to Adobe Flash source and then you edit it how you want)

Link to comment
Share on other sites

NOP and Sina,thank you


what tool did you use?


 


what's the problem in NOP's SWF? Scores : Nan and Undefined 


Link to comment
Share on other sites

Hi,


 


just use JPEXS decompiler (you need to install Java too).Its also a free tool I do use a long time.Now load your little game (no hentai game to de-censorship it :) ) and now edit it.Just play a little and you will understand it very quick and at the end you can remove some trash you don't wanna see anymore.Below I made a picture....


wcdzsj.png


greetz


  • Like 2
Link to comment
Share on other sites

this tool is really cool.far more easier and lighter than sothic.


lcf-at,thanks for your good introduction :)


Link to comment
Share on other sites

  • 7 years later...
1 hour ago, whoknows said:

go to app dir, and execute

java.exe -jar ffdec.jar

then post screenshot, yeah?

Whenever I run it , it just close it self in a sec

Link to comment
Share on other sites

Just download the installer or portable app...

https://github.com/jindrapetrik/jpexs-decompiler/releases/tag/version15.1.0

...inside is a ffdec.exe you can run to start the decompiler. Otherwise if you have installed JAVA then open CMD window and enter java -h and you get the help info to see. Normaly the path gets added during installation by automatically into environment varaibels path. Just test the java -h command to see whether it works for you...

C:\>java -h
Verwendung: java [-options] class [args...]
           (zur Ausführung einer Klasse)
   oder  java [-options] -jar jarfile [args...]
           (zur Ausführung einer JAR-Datei)
wobei options Folgendes umfasst:
    -d32          Verwendet ein 32-Bit-Datenmodell, sofern verfügbar
    -d64          Verwendet ein 64-Bit-Datenmodell, sofern verfügbar
    -server       zur Auswahl der "server" VM
                  Die Standard-VM ist server.

    -cp <Klassensuchpfad von Verzeichnissen und ZIP-/JAR-Dateien>
    -classpath <Klassensuchpfad von Verzeichnissen und ZIP-/JAR-Dateien>
                  Eine durch ; getrennte Liste mit Verzeichnissen, JAR-Archiven
                  und ZIP-Archiven zur Suche nach Klassendateien.
    -D<name>=<value>
                  Legt eine Systemeigenschaft fest
    -verbose:[class|gc|jni]
                  Aktiviert die Verbose-Ausgabe
    -version      Druckt Produktversion und beendet das Programm
    -version:<value>
                  Warnung: Diese Funktion ist veraltet und wird in einer
                  neueren Version entfernt.
                  Erfordert die angegebene Version zur Ausführung
    -showversion  Druckt Produktversion und fährt fort
    -jre-restrict-search | -no-jre-restrict-search
                  Warnung: Diese Funktion ist veraltet und wird in einer
                  neueren Version entfernt.
                  Bezieht private JREs des Benutzers in Versionssuche ein bzw. schließt sie aus
    -? -help      Druckt diese Hilfemeldung
    -X            Druckt Hilfe zu Nicht-Standardoptionen
    -ea[:<packagename>...|:<classname>]
    -enableassertions[:<packagename>...|:<classname>]
                  Aktiviert Assertions mit angegebener Granularität
    -da[:<packagename>...|:<classname>]
    -disableassertions[:<packagename>...|:<classname>]
                  Deaktiviert Assertions mit angegebener Granularität
    -esa | -enablesystemassertions
                  Aktiviert Systemassertionen
    -dsa | -disablesystemassertions
                  Deaktiviert Systemassertionen
    -agentlib:<libname>[=<options>]
                  Lädt native Agent Library <libname>, z.B. -agentlib:hprof
                  siehe auch -agentlib:jdwp=help und -agentlib:hprof=help
    -agentpath:<pathname>[=<options>]
                  Lädt native Agent Library nach vollem Pfadnamen
    -javaagent:<jarpath>[=<options>]
                  Lädt Java-Programmiersprachen-Agent, siehe java.lang.instrument
    -splash:<imagepath>
                  Zeigt Startbildschirm mit angegebenem Bild
Weitere Einzelheiten finden Sie unter http://www.oracle.com/technetwork/java/javase/documentation/index.html

greetz

  • Like 1
Link to comment
Share on other sites

2 hours ago, LCF-AT said:

Just download the installer or portable app...

https://github.com/jindrapetrik/jpexs-decompiler/releases/tag/version15.1.0

...inside is a ffdec.exe you can run to start the decompiler. Otherwise if you have installed JAVA then open CMD window and enter java -h and you get the help info to see. Normaly the path gets added during installation by automatically into environment varaibels path. Just test the java -h command to see whether it works for you...

C:\>java -h
Verwendung: java [-options] class [args...]
           (zur Ausführung einer Klasse)
   oder  java [-options] -jar jarfile [args...]
           (zur Ausführung einer JAR-Datei)
wobei options Folgendes umfasst:
    -d32          Verwendet ein 32-Bit-Datenmodell, sofern verfügbar
    -d64          Verwendet ein 64-Bit-Datenmodell, sofern verfügbar
    -server       zur Auswahl der "server" VM
                  Die Standard-VM ist server.

    -cp <Klassensuchpfad von Verzeichnissen und ZIP-/JAR-Dateien>
    -classpath <Klassensuchpfad von Verzeichnissen und ZIP-/JAR-Dateien>
                  Eine durch ; getrennte Liste mit Verzeichnissen, JAR-Archiven
                  und ZIP-Archiven zur Suche nach Klassendateien.
    -D<name>=<value>
                  Legt eine Systemeigenschaft fest
    -verbose:[class|gc|jni]
                  Aktiviert die Verbose-Ausgabe
    -version      Druckt Produktversion und beendet das Programm
    -version:<value>
                  Warnung: Diese Funktion ist veraltet und wird in einer
                  neueren Version entfernt.
                  Erfordert die angegebene Version zur Ausführung
    -showversion  Druckt Produktversion und fährt fort
    -jre-restrict-search | -no-jre-restrict-search
                  Warnung: Diese Funktion ist veraltet und wird in einer
                  neueren Version entfernt.
                  Bezieht private JREs des Benutzers in Versionssuche ein bzw. schließt sie aus
    -? -help      Druckt diese Hilfemeldung
    -X            Druckt Hilfe zu Nicht-Standardoptionen
    -ea[:<packagename>...|:<classname>]
    -enableassertions[:<packagename>...|:<classname>]
                  Aktiviert Assertions mit angegebener Granularität
    -da[:<packagename>...|:<classname>]
    -disableassertions[:<packagename>...|:<classname>]
                  Deaktiviert Assertions mit angegebener Granularität
    -esa | -enablesystemassertions
                  Aktiviert Systemassertionen
    -dsa | -disablesystemassertions
                  Deaktiviert Systemassertionen
    -agentlib:<libname>[=<options>]
                  Lädt native Agent Library <libname>, z.B. -agentlib:hprof
                  siehe auch -agentlib:jdwp=help und -agentlib:hprof=help
    -agentpath:<pathname>[=<options>]
                  Lädt native Agent Library nach vollem Pfadnamen
    -javaagent:<jarpath>[=<options>]
                  Lädt Java-Programmiersprachen-Agent, siehe java.lang.instrument
    -splash:<imagepath>
                  Zeigt Startbildschirm mit angegebenem Bild
Weitere Einzelheiten finden Sie unter http://www.oracle.com/technetwork/java/javase/documentation/index.html

greetz

Ty very much but I didnt get the part how Im gonna use it bc I cant seems to choose or drag the game I want to edit it

Link to comment
Share on other sites

19 hours ago, ozomozyan said:

Ty very much but I didnt get the part how Im gonna use it bc I cant seems to choose or drag the game I want to edit it

What? BC? You can load your flash file (swf) into the decompiler if the drag function is not working etc or what do you mean? So I have not used the ffdec tool for few years now. Just explain some more what problem you have now.

greetz

Link to comment
Share on other sites

17 hours ago, LCF-AT said:

What? BC? You can load your flash file (swf) into the decompiler if the drag function is not working etc or what do you mean? So I have not used the ffdec tool for few years now. Just explain some more what problem you have now.

greetz

I cant seems to choose or drag it the flash game into the decompiler

Link to comment
Share on other sites

Hi,

what do you mean? Its working for me to load swf files into. Just drag the file or looad it.

Snow_2022-07-03_203852.png.bd860ccdf6d2b9a3846a9f421b8009db.png

greetz

Link to comment
Share on other sites

On 7/3/2022 at 8:57 PM, LCF-AT said:

Hi,

what do you mean? Its working for me to load swf files into. Just drag the file or looad it.

Snow_2022-07-03_203852.png.bd860ccdf6d2b9a3846a9f421b8009db.png

greetz

It seems like it doesnt see the game , I dont know what to do

Link to comment
Share on other sites

That image shows it decompiled correctly

Are you expecting a lot of code in frame 1 of the timeline like in the old AS2 games?

If so then AS3 games are laid out a lot differently. ffdec will do what you want but you need to find the code you need and not expect it all to be in frame 1

 

Edited by NOP
EDIT: Sorry it was LCF image I looked at. I suggest posting an image of what you are getting when trying to load SWF?
Link to comment
Share on other sites

Hi,

do you mean you are trying the same game swf file or any other file? Just look for any swf files on your PC or download any game swf like I used in the example above and test it. In case of success it will load and decompile the file. Just test & verify it whether ffdec does load the file or not.

greetz

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...