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"

Character Movement is broken when on listen server

This is quite difficult to explain, but I'll give it my best shot:

I'm trying to create a 2.5D multiplayer game. Each player controls a character (all the same BP character). The server spawns the characters when a client connects and the client possess' the character. They are then able to move around doing the usual stuff like jumping and crouching and whatnot.

Now, this works quite well when playing solo, or when using a dedicated server. However, if I dont use a dedicated server, the server works fine but all other clients control badly. The left/right inputs axis is not very responsive and then the character "glides" on the floor as if it were made out of ice, moving even when there is no input.

Does anyone know what this might be? Is there any screenshots that might help you in helping me?

Product Version: Not Selected
Tags:
more ▼

asked Feb 26 '15 at 01:36 AM in Blueprint Scripting

avatar image

Txukie
15 5 5 9

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

2 answers: sort voted first

Ok thanks I did not know the possess had to be done on the server too, so I changed that. That was not what was causing my issue, turns out I had some weird setting on my character movement which was causing the issues. I have no idea how it got there.

more ▼

answered Feb 26 '15 at 05:03 PM

avatar image

Txukie
15 5 5 9

avatar image zeroexception STAFF Feb 26 '15 at 05:35 PM

Out of curiosity what settings were causing issues?

avatar image Txukie Feb 26 '15 at 06:04 PM

It is the flag "Use RVO Avoidance" on the movement component, I had it set to true. I remembered that I set it because this pawn is also meant to be used as a bot, and its meant for AI navigation purposes. I will create a new pawn specifically for bots.

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

You said "the client possess' the character".

Only the server should possess characters. This gets replicated to the clients. There is a bug currently where you need to delay for a short time (0.1 second or more) between the spawn and possess calls (this may not be an issue for you).

We're fixing it in a future release to be only callable on the server and to avoid the need for the delay. Hopefully this fixes things for you.

more ▼

answered Feb 26 '15 at 08:07 AM

avatar image

zeroexception STAFF
1k 18 16 39

(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