Skip to content

Bug: ClassUpdate cannot be applied to non-root classes #466

@Tajfun403

Description

@Tajfun403

This is a continuation of #381.

The issue
The ability to update mod-added classes via MergeMods has been added as a part of #381, but currently, only classes stored in the root of the file can be updated.

When entryname is set to the full path name of the class to replace, an error is thrown:

Image

On the other hand, setting it to the class name itself causes the class to be put into the file's root, even if it already existed in a package within this file.

SFXGame-centric mods I have been making often need to ship other assets besides code - such as textures or animations. Packaging my mod's content into a package helps with the organization and feels natural.

Unfortunately, using the classupdate feature at the moment would require the code to be split away from the rest of the mod's content, which is subideal.

Solutions I would like

  • I would like if the entryname would be able to refer to the class's full path name.
  • Alternatively, enabling a lookup that would look for the specified class name to replace in packages would also work.

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