Skip to content

Decompiled code not compiling #100

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.

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

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions