This object is in archive! 

Stuck in editor of programmable block

Michael Ballard shared this bug 4 years ago
Solved

Hey guys,


As of a few days ago if I try and edit the code in a programmable block I get stuck in the code editor. I can write text but the buttons don't do anything and I can't get the pause menu or anything, I have to kill the game from task manager. Perhaps it's a mod issue? What info do you need to help you?


Cheers

Replies (18)

photo
9

========= RESOLUTION ==========

If I press and hold one mouse button on a button, then click the other MB, focus is removed from the textbox and the buttons work again normally (as well as the Escape key). It doesn't matter if I go RMB to LMB or LMB to RMB.

============================

I have this issue in vanilla. I was working on a custom script and it was okay, but one time it did this and now I can't use any programmable blocks. I disabled scripts and reloaded, destroyed the block, saved and closed, re-enabled scripts, made a new block, and still have the issue.

One time I spammed the mouse button on the OK button and it closed the window, but I haven't been able to repeat that.

The file also appears to be truncated near the end; half of an enum and the closing brackets are mising.


Edit: I was able to right click on the Help button and it launched steam help, and I then right clicked on Check Code and it made a button press sound, but nothing happened. Neither mouse button works after that.

Note that the mouse hover still works (with tooltips), and mouse presses work in the textbox.

photo
2

Thanks for the workaround boy ;)

photo
2

Thanks Matt, pressing multiple mouse buttons did the trick. Hopefully they'll fix this soon but nice to know there's a work around

photo
2

Thanks so much m8, was so blocked and worried to watch the same script until the end of time :-)

photo
2

Hello, Engineer!


Thank you for your feedback! Your topic has been added between considered issues.

Please keep voting for the issue as it will help us to identify the most serious bugs.


We really appreciate your patience.


Kind Regards

Keen Software House: QA Department

photo
3

I have been having this issue with the game since I bought it a couple of months ago. The issue would present somewhat randomly, but once it started, that savegame was done. It had the issue. I had tried all sorts of things to troubleshoot and try and solve this. I did a validate files through steam that fixed it once, so that it would be fine after that, but then it happened again!

I came across this thread and it was like magic! This workaround fixed my issue. I thought I was going to have to play without mods or scripts because of this. I am so happy I found this thread!! Thank you very much for the workaround. Hopefully this issue can be actually fixed.

photo
1

Hello,

I started trying to use the programmable block and ran in to this issue, where no buttons in the editor would do anything and I would have to exit the game to continue playing. This would happen every single time after opening the editor. The buttons would light up and sometimes show tooltips or make the button select noise. I would be able to interact with the text, but nothing else would work.

I was experimenting with this issue when I came across a surprising fix: I was able to use all of the buttons normally by left-clicking the buttons while right-clicking them. For me, this has worked every time on first try for all of the buttons, including the X in the upper right hand corner. Just to clarify: I hover over the button I want to click, hold down right-click, and press and release left-click. This causes the button to work normally. Hope this works for everyone!

photo
2

hello yesterday i got the same bug. first time it happen hope it get fix. i have not try the work around yet. will do that. but it should not happen.

photo
1

Just now having this problem: "Patch 1.95.024" July 15, 2020"

photo
1

i have this problem: Patch 1.95.024" July 16, 2020" the way I fixed it was to right-click several times and press alt

photo
1

Yes, still happening on occasion. Not all the time but enough to be worrying.

photo
1

i just got this bug. i went into a prog block to setup a script and i was stuck in the editor. i'll try the trick the original poster did to see if it goes away.

photo
1

This bug only manifests for me after loading a script from the workshop (local or remote, doesn't matter). After selecting a script from the workshop, and returning to the code editor, there is a chance that the bug manifests and the work-around is needed. Once manifested it continues to manifest whenever I return to the code editor, for as long as I remain in the code editor.

photo
1

Hello, Brian!


Thank you for your information. Which scripts from Workshop did you use? I've tried a few of them but I didn't reproduce this issue. Thank you.


Kind Regards

Keen Software House: QA Department

photo
1

Hi Kateřina,

Scripts have included PAM and SAMv2, but it also happens with scripts that I have written myself and deployed to the local workshop. I don't believe that it matters which script is being loaded, but on loading is the moment where the issue manifests itself, if at all.

Unfortunately, like the developers, I cannot reproduce this on demand. It does not happen every time a script is loaded (in fact, much less than half the time), until it has happened once. Then it remains very noticeable until the game is restarted.


I'm hoping that this is useful in perhaps narrowing down the cause, even though I can't provide reproduction steps.

photo
2

I am presuming this is the same issue others have had. There is a workaround. It appears that something is fighting for focus of the keyboard and mouse so things are not being registered when you attempt to click on buttons on the UI. If you hold right mouse down and then left click the buttons, they then work. It is as if, the multiple mouse inputs are re-focusing the pointer back on the proper windows or buttons on the UI.

photo
1

I just witnessed this issue with a brand new install -- first time I built a PB on my grid and I tried to go into the editor and my keys got locked.


The flow went like this:

* open up control panel via the K menu

* change the name of any block

* then find your PB and change its name as well

* then click on the edit button

* now, go strait to "browser scripts" and you will notice that your click will register and "highlight" the button, but nothing will happen

My setup:


* I am in "Windowed" mode at 2560x1440

* Using a 4k monitor

* I have a secondary monitor.

* Windows 10 Pro 20H2

Here is a video I captured of me reproducing the bug on my local machine (sorry for the low mic volume):


https://www.dropbox.com/s/76kdpmwxp2so1o5/se editor lockin buck.mkv?dl=0

photo
1

Same happening for me - workaround above works for me.

photo
2

Hello, Engineers!

Thanks for sharing the issue with us and updating it. However, still no luck on our side with reproduction.

I hoped we have a champion with steps to reproduce from Mark, but that didn´t work either :(

Can you please maybe let me know whether STR that Mark wrote above are/might be reason for you as well? Or if you do something completely different before it gets broken. I would love to find at least one mutual thing that most of you did before UI get stuck. Do you just Edit/Browse scripts? Are you using block build through creative mode or welded one? Do you have any other apps running on background of the game? Are you alt+tabing from the game when the text field is in focus? Does it happen strictly after loading the save and going to programmable block? Or with the newly build in single session? Your imported scripts are through ingame browse option that opens the steam on top of the game, or are you subscribing to scripts using internet browser steam workshop? Any lead that most/some of you will pick up as common might be a great help!

As for now, I tried everything I could possible think of and programmable block was working.

Looking forward your replies.

Kind Regards

Keen Software House: QA Department

photo
1

I've compared code paths when editor refuses to close and of Carmen's workaround. There difference is in MyGuiControlButton.HandleInput. When editor refuses to close, line that contains `ReadyToClick = false` never gets reached.

photo
2

having this issue also, I don't think I can add to what has been said, I had this issue a few days ago, and now it just happened again. the only wat to get out of it is by ending space engineers in the task manager.


as far as what I was doing was, the first time, I opened the editor on a pb, had been working for a few days, I wanted to name the PB. I opened the editor got the name but then couldn't get out.


the second time, I placed two pb's on a new rover I was building in creative, learned I didn't have scripts enable exited, checked in game scripts loaded, and then went into the PB and now I'm stuck, not wanting to reload.

I am using two mods in both Industrial overhaul and Build planer. the none creative world also has Awww scrap and scripts running on other rovers. DAS x 3 and Easy LCD's x 3

I could give my system specs too if you think it would be helpful.

photo
2

Of you're still stuck, use the work-around given above. Hold down the right mouse button while you use the left mouse button to save and exit the programmable block's scripting screen.

photo
2

Hello, Engineers!

Thanks a lot for your patience. This issue shall be fixed from the game version 198 and above.

Please can any of you confirm that it is no longer happening on the current version of the game?

If the issue is still reproducible in recent past, please let me know as well with some fresh info if possible.

Thanks in advance.

Kind Regards

Keen Software House: QA Department

photo
1

i can confirm this is still happening.

environment:modded dedicated server, no mods to existing programmable blocks or interface mods.

it appears to only effect some users. we do not have a way to identify a common link to users yet

photo
1

hmm, i have just downloaded the last update and this still a thing. it seems that you have to click a lot of times to get the thing working. some times i even click both with RMB and LMB


btw, i dont use any mod on the game, so... not a mod problem

photo
1

Ok, i think i was wrong. i actually did not face this problem again since i posted this. so, i might been a confusion that i made. i think its working :)

photo
1

Hello, Engineers!

I decided to wait a bit more time so maybe someone else might as well comment and let us know whether the issue is still present.

Anyway... still reply just from Gustavo - thank you for that!

I´m taking it the issue is indeed fixed and not present anymore. Will close this thread.

If any of you will experience the issue again, please open new thread with information about current behavior, as it might not be the very same. Thank you for your understanding.

Kind Regards

Keen Software House: QA Department

photo
1

Still present for me but the trick with the mouse work, I also notice the bug only occur on the first base I did on the planet but not on my orbital base (moving not fix contrary to the planet one) (so far). Will add any more info if I have.

Replies have been locked on this page!