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"

Pixel Streaming is crashing on emitUIInteraction() after using open level

Version: 4.21.2-4753647+++UE4+Release-4.21

Hello,

if have set up a scene for testing pixel streaming.

I have mapped two keys to change levels using an "Open Level" node. So pressing button A opens level A. And pressing button B opens level B. The setup works fine even inside pixel streaming.

However, i'm trying to practise some player page to ue4 communication now.

I am using emitUIInteraction(); to send strings to the engine, triggering a custom event bund to OnPixelStreamingInputEvent, to finally open a level. This only works once. Subsequent calls are either ignored or crashes the engine altogether.

Since pixel streaming works fine as long as i do not use javascript input, i suspect the error is perhaps in apps.js. But i can not see it.

Any help is kindly appreciated. Thank you!

-Roman.

Product Version: UE 4.21
Tags:
more ▼

asked Feb 06 '19 at 03:16 PM in Using UE4

avatar image

TickWhileTrue
1

avatar image Derek Hunter Feb 11 '19 at 01:20 PM

I am also having this exact same problem:

  1. Pixel-streaming starts in 'LevelOne'.

  2. Trigger emitUIInteraction() in the browser.

  3. The custom event in LevelOne gets the message and calls 'Open Level' to switch levels to 'LevelTwo'.

  4. Trigger emitUIInteraction() in the browser - with the intention of going back to LevelOne.

  5. Nothing happens. The custom event in LevelTwo does not get called.

So long as I don't use 'Open Level' to change levels I can trigger emitUIInteraction() multiple times in the browser and the custom event is called successfully to stream levels.

Has anyone got pixel-streaming to work with more than one call to 'Open Level'?

(comments are locked)
10|2000 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
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