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 issues#2705 The dialog box breaks when importing the same script
Author:
demnd
demndDate created:
Type: bug
Visibility: Everybody
Assigned to:
Labels: AS1/2Direct Editation
State: closed 

For some reason, importing the same decompiled script
skyui.components.list.BasicListEntry.as breaks the ColumnSelectDialog in Skyrim SE.
1) Install SkyUI_SE.zip
2) Launch Skyrim SE
3) Open your inventory with Tab
4) Click the gear icon next to FILTER
5) The ColumnSelectDialog displays normally
6) Without exiting the game, open "C:\Users\user\AppData\Local\ModOrganizer\Skyrim Special
Edition\mods\SkyUI_SE\interface\skyui\inventorylists.swf"
7) Import the script "C:\Users\user\AppData\Local\ModOrganizer\Skyrim Special
Edition\mods\SkyUI_SE\interface\skyui\scripts"
8) Save the SWF file
9) Return to the game and click the gear icon
For some reason, the ColumnSelectDialog is broken. I don't know why.
SkyUI_SE.zip (2,654 KiB)Occurs in both versions 25.1.3 and 26.0.0
For convenience, I've included the working SWF with the problem. I simply imported
skyui.components.list.BasicListEntry.as. The BasicListEntry.as code is absolutely
identical to the working version. Only the P Code is different.
inventorylists.swf (54 KiB)
inventorylists_bug.swf (54 KiB)I solved the problem by deleting from BasicListEntry.as the initialize() and setEntry()
methods. I just had them as a stub for abstraction.
It seems that since some version of JPEXS, this has become another quirk of ActionScript
coding. Claude investigated the issue and found that ColumnSelectDialog (sprite 146)
calls:
entry.initialize(index, list);
entry.setEntry(entryObject, state);
In the original, this is a DefineFunction—classic AS1/2 style, this is always available,
and the prototype chain works normally.
In the buggy version, this is a DefineFunction2 with flags=0x002a:
bit 1 (0x0002) = SuppressThis—this is not available inside the function
bit 3 (0x0008) = SuppressArguments
bit 5 (0x0020) = SuppressSuper
Please try nightly 3499,
the register count is now calculated properly even for empty functions.
The SuppressThis flag is there correctly I guess, since the function does not use this
variable.
State: new→upgraded
Type: question→bug
Type: question→bug
This works, the list data in the ColumnSelectDialog is initialized normally. Thank you!
State: upgraded→closed
