Skip to content

[Bug] Changing stack size breaks ID #261

@Devilin-Pixy

Description

@Devilin-Pixy

Description

When altering the stack size of an item using either the details pane, or the 'fill' option, it adds #-1 to the ID value.

Reproduce

Steps to reproduce the behavior:

  1. Open Ships tab showing Cargo. I have not tested other inventories.
  2. Find an item stack to change the amount of (most will work).
  3. right-click to 'fill' or right-click to edit details and alter stack size value with up/down buttons.
  4. Save to file.
  5. Close NomNom !!! Required to actually make the changes visible.
  6. Open NomNom and select the save again.
  7. Now check the raw JSON data for the adjusted item stack(s) and look for the ID changes
    BaseContext > PlayerStateData > ShipOwnerShip > [X] > Inventory
    ie.: ^DRONE_SALVAGE has become ^DRONE_SALVAGE#-1
    See Note below !
  8. In-game the item stack is no longer recognised/valid, and will be gone upon saving.

Expected Behavior

Adjusted stack size leaving the ID in-tact.

Files

Should not be needed with the clear description above.

Note

The regular UI would show the icons just fine, after the IDs got changed. It fails to consider the added characters (#-1) part of the ID (likely assumes some Procedural value, similar to ProcTech. It will not show this as part of the ID in the details pane either.

Additional Context

Add any other context about the problem here or at least complete the following information.

  • NomNom version: 5.60.0 portable (4/2/2025)
  • Platform: Steam (experimental)
  • Game version: 5.73(-pre), in-game 146545 (save version 4186)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions