[Bug] Script commands and the game's replies are not interleaved in the game window

Open
#452 4 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 5 days

@syntaki is already working on this.

Since Dec 1, 2026.

  • #464 by @syntaki — open

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
csharp
Domain
desktop

Research direction

First verify on Genie 5.0.0 or later, since the waitfor/matchwait change in #433 may have affected the behavior. Reproduce with a .cmd script in MDI layout and capture #audit on timing alongside the game window text; check whether the ordering is wrong in the queue or only during rendering, and whether it occurs outside MDI. Done means each echoed command appears in its correct position relative to the game's replies.

Written by the indexing model from the issue text.

Description

area:scripting bug needs-verification P3
What happened

While a .cmd script runs, the game window can show the script's sent commands grouped together and the game's replies afterwards, instead of each command followed by its reply. The commands are sent in the right order and the script behaves correctly; only the display order is wrong. It reads as if several script lines fired at once, which makes a script hard to debug from the window.

Seen on a release build, MDI layout, Linux.

What you expected

Each echoed command appears in the window where it was sent, relative to the game text around it, as in Genie 4.

Needs verification
  • No capture is attached yet. A short run with #audit on (send and reply timing) alongside the window text would show whether the order is wrong at the queue or only at render.
  • It has not been checked whether this is specific to the MDI layout.
  • The fix for waitfor/matchwait resuming mid-read (#433) landed after this was seen and may have changed it; re-test on 5.0.0 or later before any work starts.
Source

Raised on the Genie Discord (#genie-5-development, 26 October).

Dominant language
C#
Stars
2
Forks
5
Avg merge
4d 3h
Merged PRs (30d)
22

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from GenieClient/Genie5

All issues in GenieClient/Genie5

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.