Editor Freeze if possesing pawn with AI controller
1st. create actor component, and add single function and ai controller variable, below. 2nd. create a pawn, and add that component to him, and making beginplay with delay, if server, and check if not player and call that func. 3rd. set players numbers to 2, then set the pawn as default in game mode, and add some pawns into level as ai bots, where the events should actually call. 4th. click beginplay and after 2 seconds whole editor freeze, then just destroy it by task manager because it never gets back.
P.S it is 4.19 and yet no fix, here is ready project below, just set players to 2 or more on test map and click play. http://www.mediafire.com/file/92n30ye687z6gug
This was fixed in 4.19
answered Feb 12 '18 at 08:10 PM
Trey Z ♦♦ STAFF
Hey guys i want to reopen this question, because you said it was fixed in 4.19, i just downloaded 4.19 and created the same logic again, and NO it didn't, Staff please, why you told me it was fixed if it does crash-freeze the engine again in 4.19? When it will be really actually fixed?
answered Mar 16 '18 at 09:21 PM
The AIController is created with an Owner of the Pawn but then you possess the Pawn with that Controller. This is creating an infinite loop when trying to determine the NetConnection which is why it hangs.
Disconnecting that Owner pin when spawning the ai controller resolves the loop.
I don't yet know if there is a reasonable code fix for this, but hopefully not setting up that relationship should resolve your issue.
answered Mar 19 '18 at 10:18 PM
Marc Audy STAFF
Follow this question
Once you sign in you will be able to subscribe for any updates here