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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Proper use of UEngine::Browse() to open map

Hello. Im trying to make UEngine::Browse() from one map to another, when client disconnected fromn the server (the same behavior as in ShooterGame). But after different calls the engine comes to void FPhysScene::WaitPhysScenes() and is freeze inside because of FTaskGraphInterface::Get().WaitUntilTasksComplete(ThingsToComplete, ENamedThreads::GameThread);

I created empty test project, with nothing but just two empty maps - still the same problem. I know, that it is not the bug, because the same works good in ShooterGame, so maybe I missed some setting?

For tests I use console command "PathToTheEditor" "PathToTheGame" -log -game

If it can help, I can provide my test project.

Thanks for any help!

Product Version: UE 4.21
more ▼

asked Dec 03 '18 at 07:38 PM in C++ Programming

avatar image

71 4 8

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

I figured out, what was the problem, but it will be good, if someone can explain it to me.

UEngine::Browse() can't be called directly from any places, because in the end it does sort of hard reset for everything, but game thread remains executing some task, so engine runs infinite waiting for game thread to finish this task before browse can me complete.

Good way to use it - is the same way as in ShooterGame. Instead of call UEngine::Browse() you should change state for GameInstance (since it is singleton and lives during whole game run). And GameInstance should check state and call Browse() by himself, this trick avoids game thread to remain executing some task, and trevelling to the new map works good.

If this is not the bug, this behaviour should be added to documentation, Epic guys!

more ▼

answered Dec 06 '18 at 11:30 AM

avatar image

71 4 8

(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