rustyhack-mmo icon indicating copy to clipboard operation
rustyhack-mmo copied to clipboard

Visual map glitch until window resize

Open lesleyrs opened this issue 2 years ago • 3 comments

Describe the bug Whenever you load rustyhack_client visually the map doesn't load correctly until you resize window.

It doesn't seem to happen if you play on maximized window.

To Reproduce

  1. load client
  2. look at distorted map

Expected behavior A clear and concise description of what you expected to happen.

Screenshots image

Desktop (please complete the following information):

  • Windows 10

Additional context Add any other context about the problem or logfiles related to the problem here.

btw is it possible to access the other maps yet?

lesleyrs avatar Feb 08 '23 14:02 lesleyrs

I think this is an upstream problem because yesterday I reported some bugs in at crossterm about screen resizing https://github.com/crossterm-rs/crossterm/issues/759. Also on the normal Conshole host this screen problem doesn't happen but then you get the blinking cursor like you mentioned in projects tab.

Increasing window size shows more of the map as well, that's a slight problem it'd be better if it could scale instead.

https://github.com/hjaremko/asciinem just leaving this here if you want to see another project that's kinda similar.

lesleyrs avatar Feb 16 '23 14:02 lesleyrs

I can reproduce this on windows 11 but only with the terminal host and not windows console host. I can't see anything in this project that would cause it (or fix it), so I assume it's an upstream issue. I'll keep this open though.

To answer your other questions:

  • The blinking cursor issue on terminal host after resizing was resolved with a recent console_engine update, I haven't made a new release yet, but the dependency is already updated in main
  • The window resizing and showing more of the map is deliberate at the moment, no plans to change that.
  • I will be working on accessing other maps next, haven't had much time to do anything with this recently.

pbellchambers avatar Apr 09 '23 12:04 pbellchambers

Cool, don't worry about my issues. I'm just going through various terminal projects to see what the limitations are. If I come across this myself I'll be back.

Edit: this is a bug that I've had with crossterm in windows terminal that glitches screen but it's about resizing https://github.com/microsoft/terminal/issues/5094

lesleyrs avatar Apr 09 '23 12:04 lesleyrs