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"

Multiplayer Pawn Won't Receive Any Input

Hey guys, so I came into this issue and tried for about 5 hours straight to solve it with no luck whatsoever. Basically, I followed the Blueprint Multiplayer Tutorial to a tee (with the exception of the chat windows in the gameplay map), but no matter what I try I cannot get any input through to my pawn once I get into a gameplay map. The server and clients can affect the pawns just fine in the lobby map, but once they server travel into the gameplay maps none of them are affected by any input. I know they are being possessed because I already debugged that.

Please someone help me. I've been working on this project for almost a year and it'll kill me if this is what kills the project. I've attached images of my Game Mode and Player Controller for the gameplay map so you guys can take a look at the blueprints. If you need anything else to solve this I'm more than happy to provide.

Product Version: UE 4.16
Tags:
gamemode.png (380.1 kB)
more ▼

asked Dec 06 '17 at 05:45 AM in Blueprint Scripting

avatar image

Donnytheraver
1 1 3 5

avatar image Donnytheraver Dec 06 '17 at 01:48 PM

[UPDATE]

The server and connected client's pawns are able to receive input just fine in the lobby map. However, once I ServerTravel to the gameplay map not even the server can control their pawn. What is happening? Are there other Player Controllers that are spawning? Are the Player Controllers just not lining up with the right pawn?

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

1 answer: sort voted first

So there's a few things off the top of my head you can check.

  1. First, on your server game mode and do a GetAllPlayerControllers, and see how many player controllers there are. There should be exactly the same amount as the number of players you have. Only 1 of those PCs should be ROLE_AUTHORITY, rest should be ROLE_AUTONOMOUS_PROXY. Check that first

  2. Assuming you have PCs, check that each PC possess a pawn. There should be a method called PossesedBy on PCs that possess a pawn. I know you said you've debugged that but you should make sure this happens post ServerTravel

  3. Also, there is a method called AGameMode::PostSeamlessTravel, and also another called APlayerController::PostSeamlessTravel as well. Make sure those are called for your servers and clients post server travel (Assuming you are using seamless travel, which you should). You can set to use seamless travel in GameModes by checking the bSeamlessTravel flag

  4. The way inputs are setup in PCs is by calling SetupPlayerInput. Make sure that is called. If it's not, check through steps 1-3 to see what's amiss

Note that those methods I'm talking about are all C++. But it should be easy to get an event to fire when they are called in Blueprints as well.

more ▼

answered Dec 07 '17 at 06:55 AM

avatar image

Mantracker
102 5 11 14

(comments are locked)
10|2000 characters needed characters left
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