Skip to content

UScript Compiler Decompilation Buggy with LECL Files #454

@Knighthawk1895

Description

@Knighthawk1895

Describe the bug
The LECL Date Editor seems to be very buggy with the script editor. It does not seem to respect startup files in the same directory as the file (requiring the file to be installed in the game) and it seems to crash out on two-step LECL files, claiming it can't find a class installed in a game when the startup file itself needs a different startup file.

To Reproduce
Steps to reproduce the behavior:
For the first one, it's pretty simple, try to use LECL to add a file in the directory of a mod that's just imported in M3 and not installed in the game and then make a class, see if it decompiles properly.

For the second:

  1. Install HUD Enhancements from Nexus and install this version of PTO: Link
  2. Make sure the HUD Enhancements startup file is in the PTO startup file's LECL Data Editor
  3. Make sure the PTO startup file is in BIOA_PTO_00's LECL Data Editor
  4. Attempt to open the script editor of the kismet object in BIOA_PTO_00. It should tell you it cannot find a class that is in the HUD Enhancement's startup file.

Expected behavior
Ideally, the script editor should respect data import from files you add to LECL Data Editor and it shouldn't have issues up the chain.

Version information:
Both from source and 6.5 Nightly 12/11/25

Stack trace
"ERROR: No class named 'ModHandler_HUD_Enhanced' found!"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions