JPEXS Free Flash Decompiler Issue Tracker

If you are looking for the decompiler itself, visit https://github.com/jindrapetrik/jpexs-decompiler

NEW : You can now close your own issues and reopen them later if needed. You can also comment closed issues.
List of issuesList of issues

#2731 Recompiles a SWF differently after edit
Author:
Date created:
Type: bug
Visibility: Everybody
Assigned to:
State: closed Help

> What steps will reproduce the problem? I access a frame inside a SWF script. It decompiles when I edit it. I edit one word then change back to the same word. Now when I run the swf, it deviates from the original. > What is the expected output? What do you see instead? I expect no change when run. I get a deviation instead. > What version of the product are you using? Is it "nightly build"? Which operating system do you have? version 26.2.1. Windows 10 home edition. > Please provide any additional information below. If the problem is related to a SWF file, attach it here, otherwise we can't help you. Random.swf a bridge playing app. Editing to improve the playing algorithm. Opening with JPEXS Free Flash Decompiler v.26.2.1, an excellent app! Expand Scripts Expand DefineSprite (child:135) Select frame 1 (name:"normal")-DoAction >Edit ActionScript (decompiles) change something and then change it back >Save (compiles) >Run The swf runs differently... Extreme thanks if this script can be edited and swf to run with improvement!
DownloadRandom.swf (246 KiB)
Can you explain how the "swf runs differently"? What's the difference (deviance)? I tried to edit the script and SWF run pretty normal or I just did not try every game options.
Hi I open Random.swf in JPEXS Free Flash Decompiler v.26.2.1 (View Resourses setting) I go to scripts I expand DefineSprite (child: 135) I click on frame 1 (name:"normal") - DoAction There is brief "Decompiling" line followed by the script being shown in the EditActionScript window I make an edit in the EditActionScript, then changing it back to as before, and Save A message "Code successfully saved" is shown and the "Decompiling" line is briefly shown in the window (It is only when opening this (child: 135) sprite that I get the decompiling line shown) I click Save and again get the decompiling line I exit the Decompiler I now run the swf The swf opens and displays normally but then sequences through several frames and does not allow bidding. Thank you for looking at this. I have successfully used the Decompiler to change many aspects of the swf with pleasing results and I am most appreciative of that. A great learning curve.
Hi, which version of Flash Player do you use? I tried FP32 and also Ruffle and the game seemed fine - I did not see many changes between Random.swf and Random-edited.swf, but I don't know the exact rules of bridge, what do you mean by "bidding"? Does it mean clicking something in the table in upper right corner? I am attaching video of running "Random-edited.swf". Could you maybe also make a video of what do you mean? Or maybe write down the steps you make in game to reproduce problem? (What is expected and what you see instead) Thank you for patience, it is still not clear to me.
Download2731_play.mkv (1,053 KiB)
I have tried now in Flash Player 6 and it really does not work here - seqences frames and does not allow clicking the table to bid. Please try FFDec nightly 3536 and try the editing again from start, it should work now.
State: new→upgraded
YES YES YES! Thank you so much! But now the real work for me begins, Comprehending and improving the computer bidding and playing.... But YES! Thankyou!
State: upgraded→closed