Skip to content

Decompiled code not compiling #100

@rfuzzo

Description

@rfuzzo

Copy pasting decompiled code and compiling again doesn't work for:

@replaceMethod(InventoryDataManagerV2)
private final func GetPlayerPartsInventoryData(slotID: TweakDBID) -> array<InventoryItemData> {

copying the vanilla function and compiling with redscript doesn't compile.

[ERROR - Tue, 24 Oct 2023 07:45:02 +0200] [NO_MATCHING_OVERLOAD] At F:\games\Cyberpunk 2077\r6\scripts\moremonowirehacks\moremonowirehacks.reds:21:35:
      ArrayPush(this.m_PartsData, new InventoryPartsData());
                                  ^^^^^^^^^^^^^^^^^^^^^^^^
expected 3 arguments for InventoryPartsData

it expects struct args, works if you give them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions