My AI works fine in editor, mobile preview & standalone game settings but if I deploy to the OUYA / my Nexus 5 it just sits there in idle animation and does not chase me.
I’ve put some print strings into my blueprint so it appears the logic is OK. Here’s an example of the Simple AI I’m using.
The attack section works, if I spawn the AI close enough it plays the attack animation, it just never starts the AI Move To, I’ve also tried Simple Move. Both work in editor but not on the console / phone.
Is there anything I need to do in particular to get navmeshes to work on Mobile platforms?
Apologies for the double post, I have just tried deploying my project files (no changes to blueprint) using 4.7.1 on a Nexus 5 and the AI / Nav Meshing is working. I suspect that the build for the Ouya has a bug or more likely I could be doing something daft.
Ah cool, thanks for that didn’t know about the APKTool
Epic’s normal 4.7.1 release works on the Ouya with AI. I uploaded both apk’s just to show the difference sorry my bad previous explanation. So something fishy is happening with the Ouya 4.7.1 branch.
I don’t know what it’s waiting for, the only time I’ve seen AI not move on a PC build is if a navmesh isn’t there, however when I do print string checks I can see it on the Ouya.
What’s happening at the moment is the AI is able to make a decision on how far away the player is and then it calls AIMoveTo
AIMoveTo executes but it never returns a success or fail. So pretty much the game refuses to move the enemy.
I tried behaviour trees which is an alternate approach. This yields the same result, UE4 can do the calculations but fails to move the enemy.
I haven’t tried logcat yet, will have a go I’ve installing the apk’s wirelessly :).
After going through Logcat this is the only major difference I could see is that the Ouya plugin version of UE4 didn’t register an AISystem creation for the map, I uploaded the log to pastebin, the top lines are from the Ouya version and the bottom bit is from the regular version.
I don’t know why doing the extra compiles work, I’m no programmer. I was originally compiling only the “development editor” for windows 64 and the “development client” for Android and with those settings the AI does not path.