Linux74656 / SpaceEngineersLinuxPatches

A place to find some fixes to get Space Engineers running in Linux
139 stars 12 forks source link

Clipboard 'copy' causes temporary hang #16

Open zmaile opened 4 years ago

zmaile commented 4 years ago

When in-game, copying anything to the clipboard (when the clipboard is not empty) will cause the UI to freeze for about 10 seconds. After the UI resumes, the clipboard contents remains unchanged. This occurs when doing Ctrl+C, or in the GPS menu when copying coordinates to clipboard.

If the game is set to windowed mode and the clipboard is modified outside of the game (e.g. in a text editor), the clipboard changes as expected, the game does not hang, and the game uses the updated clipboard with no issues.

Manjaro Proton 4.11-7

Linux74656 commented 4 years ago

I have noticed this as well. It may be related to the other full screen issues the game is having, but i have been unable to pin down the game focus (potentially related to mouse capture) issue yet.

xorrizon commented 4 years ago

This problem also occurs in window mode (where mouse capture isn't an issue) so probably not related? This problem also occurs when trying Ctrl+C or Ctrl+X in the ingame text editor (For example in Custom Data).

pznqz commented 4 years ago

A convoluted workaround but one that works very well for me when copying gps. Uses ocr to capture the gps, formats it like the copy gps to clipboard function would and puts it into the clipboard. https://github.com/pznqz/spaceengineers-ocr-clipboard-linux

sangster commented 4 years ago

@pznqz Kudos on spaceengineers-ocr-clipboard-linux! It's one of the most comically over-engineered hacks I've seen in my time. Also, it fixed this problem for me perfectly.

waterlubber commented 3 years ago

I haven't used the OCR method, but managed to export GPS with another (awful) workaround. Open Sandbox.sdc (found in ~/.local/share/Steam/steamapps/compatdata/244850/pfx/drive_c/users/steamuser/Application Data/SpaceEngineers/Saves/[Large Number]/[Save Name]/ in a text editor. This is an XML file that contains the GPS coordinates. I found the tag, which is where those GPS coordinates are stored. I used a series of regular expression replacements (unfortunately, not with sed, I was just using my text editor) to format the file into the SE format. You can see the ones I tried here: image although there's no guarantee that'll work as that was during my experimentation.

For future tools, it might be better to parse that XML. (And I am fully aware of the Wrongness™ of parsing XML with regex.)

opekope2 commented 2 years ago

I found what is causing the issue and made a plugin to fix it: https://github.com/opekope2/SeThreadingFixes