lysis-java icon indicating copy to clipboard operation
lysis-java copied to clipboard

Logic chain parsing problems

Open menesakdeniz opened this issue 5 years ago • 7 comments

Hi,

Can't decompile sm 1.10 files. it doesn't recognize opcodes and cause output like this:

/* ERROR PREPROCESSING! Unrecognized opcode: shl_c_pri */ function "funcname" (number x)

can you please fix it?

menesakdeniz avatar Apr 07 '20 22:04 menesakdeniz

Do you have a sample plugin that generates that opcode?

peace-maker avatar Apr 08 '20 12:04 peace-maker

first plugin that gives these errors; https://drive.google.com/open?id=1xJHoUK6_COgLTwSnSsmH2yS_IKHzY2Be second plugin, doesn't have RegConsoleCmd callback function names, and have lots of error inside. like /* ERROR unknown load Binary / or / ERROR! null */ https://drive.google.com/open?id=1-euKUIKWd_igxitpIUsbgilOl1lis2JK

menesakdeniz avatar Apr 08 '20 18:04 menesakdeniz

I've added support for the shl.c.pri opcode. Most of the other errors are because this decompiler doesn't handle raw code without debug info very well. The file format for that info changed in SourcePawn 1.10 and I haven't added support to parse that new format yet.

peace-maker avatar Apr 09 '20 16:04 peace-maker

now i checked and most of errors are gone, but still some errors occurs like; /* ERROR! lysis.nodes.types.DJump cannot be cast to lysis.nodes.types.DJumpCondition */

are they going to solve when sp 1.10 support added? and when can u add this support?

menesakdeniz avatar Apr 13 '20 07:04 menesakdeniz

Can you post the sourcecode and smx of a sample plugin that throws that error? I'm not sure if that control flow problem is related to the 1.10 rtti changes. It will be done when it's done.

peace-maker avatar Apr 13 '20 08:04 peace-maker

https://drive.google.com/open?id=1xJHoUK6_COgLTwSnSsmH2yS_IKHzY2Be after decompiled this plugin, errors occur in lines : 60, 191 and 270. Each line has unique errors please look them all

menesakdeniz avatar Apr 13 '20 09:04 menesakdeniz

It'd would be handy if you'd post the source code of those plugins as well, to know what's correct.

peace-maker avatar Apr 25 '20 12:04 peace-maker