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"

Pathfinding doesn't work in a networked game.

So, using the top down template, I cannot get this to work. Making SetNewMoveDestination an RPC that is executed on the server has two problems;

  1. The player does not rotate on the client who owns the controller. That's all, ONLY on the client that owns the controller IF they're not the server. That means if you have 3 clients running, one client's pawn looks perfectly fine to another.

  2. The player slows down and starts jumping erratically towards it's destination on ALL players.

Why does this happen? I'm using SimpleMoveToLocation which uses the controller extensively for some reason. This looks like it might be the problem, however I have no idea how to do path finding without it.

There have been few posts on this issue:

https://answers.unrealengine.com/questions/39576/pathfinding-of-a-pawn-of-a-player-controller-in-a.html https://answers.unrealengine.com/questions/31269/character-not-moving-on-client-in-top-down-templat.html https://answers.unrealengine.com/questions/34074/does-ue4-have-client-side-prediction-built-in.html

This is from May last year, and this is still an issue.

If SimpleMoveToLocation isn't meant for networking, then how is this meant to be done without controlling the character through an AIController? Finding documentation on Networking, path finding or C++ in unreal is difficult enough. Finding documentation on all those together is near impossible.

Product Version: Not Selected
Tags:
more ▼

asked Apr 03 '15 at 03:10 AM in C++ Programming

avatar image

Bonnnnnn
135 8 15 23

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

1 answer: sort voted first

If SimpleMoveToLocation isn't meant for networking, then how is this meant to be done without controlling the character through an AIController?

Currently having an AIController is the only way to have any kind of pathfinding in networking environment. But we're looking into ways of addressing it, primarily by allowing for client-side navmesh (this already works on master branch!) and making client-side pathfollowing talk to server movement code.

Cheers,

--mieszko

more ▼

answered Apr 03 '15 at 08:31 AM

avatar image

MieszkoZ STAFF
7.3k 225 57 413

avatar image Bonnnnnn Apr 03 '15 at 01:16 PM

Okay, thanks for the answer. Is there any resources you know of that will explain how to set up pathfinding using an AIController?

avatar image DickOwner Apr 08 '15 at 09:49 AM

Have you find how to set up pathfinding?

avatar image Venros May 08 '15 at 08:21 PM

I'm interested in this as well.

(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