Skip to content

[Bug]: Shop input fully blocked after listing a vehicle for sale ( double-click / buy do nothing) tested in solo run too #63

Description

@andresok50

Description

After listing a vehicle for sale via ESC → Vehicles → Sell, the shop becomes completely unresponsive. Clicking any vehicle in the shop grid, double-clicking, pressing PERSONALIZAR, or BUY produces no response. The shop renders correctly but all input is dead. The game must be restarted to recover.

Expected: Shop works normally after listing — vehicles open on double-click, PERSONALIZAR opens the config screen.

Actual: All shop input is silently swallowed. Confirmed via debug log that ShopConfigScreen.setStoreItem is never called after the sell flow.

Root cause (from log analysis with DEBUG=true):

Two issues identified:

  1. The engine sets SellItemDialog.visible = true before calling g_gui:showDialog(). The mod intercepts and blocks that call without clearing the flag, leaving the dialog in a visible=true / isOpen=nil phantom state that partially blocks GUI input.

  2. SellVehicleDialog does not call g_gui:changeScreen(nil) on confirm/cancel. The vanilla SellItemDialog did this automatically. Without it, InGameMenu stays as currentGui after the dialog closes and captures all shop clicks.

Log evidence:

log.txt

Steps to Reproduce

  1. Load any save (solo mode).
  2. Open ESC → Vehicles, select any owned vehicle.
  3. Click Sell — confirm the listing in the UsedPlus SellVehicleDialog.
  4. Close the ESC menu. Open the shop (P key).
  5. Navigate to any vehicle category (e.g. Small Tractors).
  6. Double-click any vehicle, or press PERSONALIZAR.
  7. Nothing happens — all shop input is blocked until game restart.

UsedPlus Version

v2.15.4.98 — Pre-Release

Other Mods Installed

None

Game Mode

Singleplayer

Log File


Screenshots

No response

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