Skip to content

Cannot decompile some DLC from the Japanese version of Fates #3

Description

@Sun-1-git

I get the following error messages when I try to decompile some DLC from the Japanese version of Fates using the "java -jar exd.jar YOUR_PATH_HERE" command:

"E000.cmb" from the End: Lost in the Waves (終:果てぬ黎明) DLC:

Exception in thread "main" java.lang.IndexOutOfBoundsException: Index -127 out of bounds for length 155
        at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:100)
        at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:106)
        at java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:302)
        at java.base/java.util.Objects.checkIndex(Objects.java:365)
        at java.base/java.util.ArrayList.get(ArrayList.java:428)
        at com.thane98.exalt.decompiler.Decompiler3DS.decompileLocalCall(Decompiler3DS.kt:423)
        at com.thane98.exalt.decompiler.Decompiler3DS.decompileBlock(Decompiler3DS.kt:319)
        at com.thane98.exalt.decompiler.Decompiler3DS.decompileBlock$default(Decompiler3DS.kt:280)
        at com.thane98.exalt.decompiler.Decompiler3DS.decompileEvent(Decompiler3DS.kt:242)
        at com.thane98.exalt.decompiler.Decompiler3DS.decompile(Decompiler3DS.kt:117)
        at com.thane98.exalt.decompiler.Decompiler3DS$Companion.decompile(Decompiler3DS.kt:99)
        at com.thane98.exalt.decompiler.DecompilerKt.decompile(Decompiler.kt:12)
        at com.thane98.exalt.decompiler.DecompilerKt.decompile(Decompiler.kt:19)
        at com.thane98.exalt.cli.DecompilerCLIKt$main$1.invoke(DecompilerCLI.kt:34)
        at com.thane98.exalt.cli.DecompilerCLIKt$main$1.invoke(DecompilerCLI.kt)
        at com.xenomachina.argparser.SystemExitExceptionKt.mainBody(SystemExitException.kt:74)
        at com.xenomachina.argparser.SystemExitExceptionKt.mainBody$default(SystemExitException.kt:72)
        at com.thane98.exalt.cli.DecompilerCLIKt.main(DecompilerCLI.kt:31)

"E000.cmb" from the II: Realms Collide (弐:記憶の双剣, 2) DLC:

Decompiling Failed!
Expression stack unexpectedly empty at 1166.

"E000.cmb" from the Vanguard Dawn (神将の試練場) DLC:

Decompiling Failed!
Expression stack unexpectedly empty at 354.

"E000.cmb" from the Hidden Truths 2 (見えざる史実 • 後編) DLC:

Exception in thread "main" kotlin.KotlinNullPointerException
        at com.thane98.exalt.ast.PrettyPrinter.visitGoto(PrettyPrinter.kt:176)
        at com.thane98.exalt.ast.PrettyPrinter.visitGoto(PrettyPrinter.kt:5)
        at com.thane98.exalt.ast.Goto.accept(Stmt.kt:58)
        at com.thane98.exalt.ast.PrettyPrinter.visitBlock(PrettyPrinter.kt:126)
        at com.thane98.exalt.ast.PrettyPrinter.visitBlock(PrettyPrinter.kt:5)
        at com.thane98.exalt.ast.Block.accept(Stmt.kt:24)
        at com.thane98.exalt.ast.PrettyPrinter.visitIf(PrettyPrinter.kt:162)
        at com.thane98.exalt.ast.PrettyPrinter.visitIf(PrettyPrinter.kt:5)
        at com.thane98.exalt.ast.If.accept(Stmt.kt:46)
        at com.thane98.exalt.ast.PrettyPrinter.visitBlock(PrettyPrinter.kt:126)
        at com.thane98.exalt.ast.PrettyPrinter.visitBlock(PrettyPrinter.kt:5)
        at com.thane98.exalt.ast.Block.accept(Stmt.kt:24)
        at com.thane98.exalt.ast.PrettyPrinter.visitMatch(PrettyPrinter.kt:230)
        at com.thane98.exalt.ast.PrettyPrinter.visitMatch(PrettyPrinter.kt:5)
        at com.thane98.exalt.ast.Match.accept(Stmt.kt:94)
        at com.thane98.exalt.ast.PrettyPrinter.visitBlock(PrettyPrinter.kt:126)
        at com.thane98.exalt.ast.PrettyPrinter.visitBlock(PrettyPrinter.kt:5)
        at com.thane98.exalt.ast.Block.accept(Stmt.kt:24)
        at com.thane98.exalt.ast.PrettyPrinter.visitEventDecl(PrettyPrinter.kt:155)
        at com.thane98.exalt.ast.PrettyPrinter.visitEventDecl(PrettyPrinter.kt:5)
        at com.thane98.exalt.ast.EventDecl.accept(Stmt.kt:40)
        at com.thane98.exalt.ast.PrettyPrinter$Companion.print(PrettyPrinter.kt:13)
        at com.thane98.exalt.decompiler.DecompilerKt.decompile(Decompiler.kt:13)
        at com.thane98.exalt.decompiler.DecompilerKt.decompile(Decompiler.kt:19)
        at com.thane98.exalt.cli.DecompilerCLIKt$main$1.invoke(DecompilerCLI.kt:34)
        at com.thane98.exalt.cli.DecompilerCLIKt$main$1.invoke(DecompilerCLI.kt)
        at com.xenomachina.argparser.SystemExitExceptionKt.mainBody(SystemExitException.kt:74)
        at com.xenomachina.argparser.SystemExitExceptionKt.mainBody$default(SystemExitException.kt:72)
        at com.thane98.exalt.cli.DecompilerCLIKt.main(DecompilerCLI.kt:31)

"E000.cmb" from the Ghostly Gold (遺跡の財宝) DLC:

Decompiling Failed!
Expression stack unexpectedly empty at 1661.

"E000.cmb" from the Museum Melee (決闘の博物館) DLC:

Decompiling Failed!
Expression stack unexpectedly empty at 4165.

I have tried other DLC and it works fine for them, I can drop the files in case you need them.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions