JPEXS Free Flash Decompiler Issue Tracker

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

: WARNING - support of the decompiler is now VERY LIMITED. There are no active developers. This means waiting times in the issue tracker are very long and mostly depend on community. Sorry for the inconvenience.

List of issuesList of issues

#549 lessequals instead of greaterequals p-code editing
Author: user capasha
Date created:
Type: bug
Visibility: Everybody
Assigned to: developer honfika
Labels: AS3P-code
State: closed Help

> What steps will reproduce the problem? in the SWF: Items > ItemID Just look at the source In Sothink Swf decompiler does it shows the as3 code as: (Correct code) param1 >= 9 && param1 <= 97 || param1 >= 122 && param1 <= In ffdec does it show: (Not correct code) 9 <= param1 && param1 <= 97 || 122 <= param1 && param1 <= 217; While edit the p-code it shows lessequals when it should be greaterequals > What is the expected output? to be greaterequals and not lessequals >What do you see instead? lessequals in p-code and wrong as3 code > What version of the product are you using? On what operating system? FFDEC 2.0.0 on windows 7 x64 > Please provide any additional information below. Attach the file you have problem with if neccessary. If you do not want to publish files YOU CAN CHANGE VISIBILITY TO PRIVATE
DownloadEE2._v51.swf (3,657 KiB)
developer
And why is it a problem? param1 >= 9 is the same as 9 <= param1 I think this behaviour is correct.
user
If i add a new value to the pcode it wont work. So i guess >= and <= doesnt work correct.
developer
Sothink shows lessequals, too in p-code view: public static function isSolid(param1:int) : Boolean { _as3_getlocal <0> _as3_pushscope _as3_pushbyte 9 _as3_getlocal <1> _as3_lessequals _as3_dup _as3_iffalse offset: 5[#12] _as3_pop _as3_getlocal <1> _as3_pushbyte 97 _as3_lessequals #12 _as3_dup _as3_iftrue offset: 16[#24] _as3_pop _as3_pushbyte 122 _as3_getlocal <1> _as3_lessequals _as3_dup _as3_iffalse offset: 6[#24] _as3_pop _as3_getlocal <1> _as3_pushshort 217 _as3_lessequals #24 _as3_returnvalue }// end function So I still think, that it works fine. Please could you write here your steps to reproduce?
developer
So is it ok?
user
Still issues. I have no idea why it doesn't work. If i add a new p-code with example: 850 >= 800 && 850 <= 900 it wont work. It doesn't read 850 as greaterequal. And makes so my code gets errors.
user
I'm stuck at this code, the last of it. Why doesn't it write out that the id exists? http://pastebin.com/9qdd6uS1
user
I edited the as3 code, and now does it work. 100 doesn't show up as solid in as3, but in p-code for the game does it show up as solid.. code: http://pastebin.com/gSM1XJir
user
Found the issue. In p-code do I need to do the reverse way. So instead of lessequals i use greaterequals. And now does everything work good.
user
Doesn't work. I have no idea what I do wrong. But greaterequals didn't work as isSolid either.
user
This can be closed now, it's fixed.
admin
State: new→closed
Assigned:developer honfika