x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

[4.7.3] Set Input Mode UIOnly locks input on level switch

Hello,

I ran into a strange bug where my input was completely ignored if I switched levels while the game was paused. The project I am currently working on is a bit big now and started from around 4.3, so I don't know if it's feasible to attempt to reproduce.

The general setup that I had that caused this to happen:

  1. Have a 'Title Screen' level and the actual game level

  2. Title screen loads into main game level with a UMG button that calls 'Open Level' node

  3. Pause the game to go into the pause menu and return to title screen using 'Open Level' node

  4. All input lost; can't even push ESC to quit game from viewport (Mouse input still works)

The way I fixed it was simple once I got to thinking about how pause affects parts of the engine. Before the player returns to the 'Title Screen' from the pause menu, I unpause the game.

EDIT: Changed topic title from "Set game paused can potentially stop all input when level switching (and a quick fix)" to "Set Input Mode UIOnly locks input on level switch"

The problem was related to the 'Set Input Mode UI Only' node being called right before the level switch. After I removed the call to the node, everything was fine.

Product Version: Not Selected
Tags:
more ▼

asked Mar 17 '15 at 09:10 PM in Bug Reports

avatar image

kevin_g
161 9 10 20

avatar image Rudy Q ♦♦ STAFF Mar 18 '15 at 01:51 PM

Hello kevin_g,

I was unable to reproduce this issue on our end with the information provided. I have a few questions that will help narrow down what issue it is you are experiencing.

Quick questions:

  1. I see that you mentioned it may not be possible to reproduce this issue in a clean project. Could you check see if the current blueprint setup that you are using can reproduce this issue when re-made in a clean project?

  2. If so, could you provide any differences or discoveries that will help reproduce this issue on our end?

  3. Could you provide screen shots of the blueprints involved with this issue?

avatar image kevin_g Mar 18 '15 at 08:51 PM

Hey Rudy,

I'll get try to get some more info up later today when I get some free time.

avatar image kevin_g Mar 18 '15 at 11:37 PM

Found the issue. It's related to this node:alt text

If this is enabled prior to a level switch, then all input will be locked.

Quicker repro node setup in any blank project: alt text

After the setup is complete, push the button to restart the level. You will then lose all input except for mouse. ESC won't quit the in-editor game and Shift + F1 will not bring out the mouse (must alt+tab or some other OS method to bring out the mouse).

capture.png (44.1 kB)
inputlock.png (64.2 kB)
(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

The problem was related to the 'Set Input Mode UI Only' node being called right before the level switch. After I removed the call to the node, everything was fine.

more ▼

answered Mar 19 '15 at 12:15 AM

avatar image

kevin_g
161 9 10 20

avatar image Kochab Jul 22 '15 at 05:45 PM

The way I fixed it was calling Set Input Mode Game Only right after the level switch node.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question