If you are looking for the decompiler itself, visit https://github.com/jindrapetrik/jpexs-decompiler
List of issues
: The issue tracker is now writable again and logged users can download files too. But note that our support is very LIMITED.
#1271 AS3 Direct Edit breaks P-Code
Labels: AS3Direct Editation
> What steps will reproduce the problem? 1. Download the attached SWF 2. Go on scripts, and press World.as 3. Press edit and then save it. 4. Save SWF and test; If the steps above do not replicate the problem then add an IF statement anywhere in the code containing a random statement (if (true) etc) > What is the expected output? What do you see instead? No bugs, SWF crashes (if doesn't crash anymore at first try, try registering/logging and entering one of your worlds) > What version of the product are you using? Is it "nightly build"? Which operating system do you have? Latest version (9.0.0) > Please provide any additional information below. If the problem is related to a SWF file, attach it here, otherwise we can't help you. After saving, if you go look at the code, I wanted it to show something like: getlex Qname(PackageNamespace(""),"Player") But instead, it modifies stuff a weird way, doing something like: getlex Qname(PackageNamespace("World.as", "Player") What I purpose the parser/reader to do is analyze the P-Code first to check if the first parameter (PackageNamespace) is empty or has something in it. If It is empty, don't add World.as/whatever it shows, otherwhise add what usually shows. Thanks for reading! I hope the issue gets fixed soon, as it is a vital fact to my game ;)
Ice EE.swf (1,213 KiB)
Hi, Are you sure you sent us correct file? Class World in the toplevel package cannot be edited (AS3 direct editation - the left Edit button) at all since it contains §§goto statements (wrong decompilation) - in 9.0.0 stable version, method overlaps.
Oh hi! I mean't just press EDIT and then SAVE, and the SWF will crash, or atleast joining your worlds will crash
The problem is: you cannot pres Save because decompiled code is invalid - see attachment. You can only press cancel. Thus the decompiler won't modify the SWF. So I guess ONE of these: 1) You sent us wrong SWF file 2) You are trying it in different version of FFDec than 9.0.0 stable (Downloaded at https://www.free-decompiler.com/flash/download/ ), maybe you've got nightly build - tell us which nightly build exactly 3) You didn't even try it 4) There's difference between editing it on my computer and yours Please try it again and maybe send a video (?).
1271_cannot_save.png (148 KiB)
or 5) You edit orher class than World in the toplevel package.
I cannot test it since servers seems to be down, but I think this should fixed in current nightly (1849).