List tab is empty while playing when the run fills a variable's list #251

Closed
opened 2026-09-27 21:05:56 +02:00 by meleki · 1 comment
Owner

A graph adds items to a list held by a global variable while the game runs. The inspector row says "2 items", but clicking it opens the list tab empty.

Cause

  • The inspector shows a Variables asset's values from the running game (shownValues in assetSection.ts).
  • The list tab only read the list stored in the project (assetOwner in list/slot.ts), which is empty because only the run fills it.
  • The tab did not listen to the run's ticks either, so it would not have grown along.

Wanted

While playing, the list tab shows the same live value as the inspector and follows it as it changes. After Stop it shows the project's list again.

A graph adds items to a list held by a global variable while the game runs. The inspector row says "2 items", but clicking it opens the list tab empty. ## Cause - The inspector shows a Variables asset's values from the running game (`shownValues` in `assetSection.ts`). - The list tab only read the list stored in the project (`assetOwner` in `list/slot.ts`), which is empty because only the run fills it. - The tab did not listen to the run's ticks either, so it would not have grown along. ## Wanted While playing, the list tab shows the same live value as the inspector and follows it as it changes. After Stop it shows the project's list again.
Author
Owner

Fixed in 92fad6b.

  • resolveList takes the live values: while playing, a Variables asset's list comes from the running game, the same rule as the inspector.
  • The list tab refreshes on runtime ticks, about 10 times a second, and not while a field in it is being typed in.
  • Editing in the tab while playing goes into the run's copy of the project, as in the inspector.

Tests: gate 2634 tests green, e2e 1+32 30 checks. New 32b-ii (2 checks): a graph adds an item every frame, the test pauses and clicks "N items" with a real mouse; the tab draws 26 rows for 26 items, 50 after resuming, none after Stop. Counter-checks: without live values the tab draws 0 rows (the reported bug), without the refresh it stays behind.

Fixed in 92fad6b. - `resolveList` takes the live values: while playing, a Variables asset's list comes from the running game, the same rule as the inspector. - The list tab refreshes on runtime ticks, about 10 times a second, and not while a field in it is being typed in. - Editing in the tab while playing goes into the run's copy of the project, as in the inspector. Tests: gate 2634 tests green, e2e 1+32 30 checks. New 32b-ii (2 checks): a graph adds an item every frame, the test pauses and clicks "N items" with a real mouse; the tab draws 26 rows for 26 items, 50 after resuming, none after Stop. Counter-checks: without live values the tab draws 0 rows (the reported bug), without the refresh it stays behind.
admin added this to the Development project 2026-09-27 22:17:06 +02:00
admin moved this to Done in Development on 2026-09-27 22:17:46 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: meleki/feuerwerk#251