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"

Replicated rotations are mapped to 0-360 on client but -180-180 on server.

I am replicating a rotation for my aim offset inside my character blueprint. The client side angle is remapped from -180-180 to 0-360. Here are some screenshots of the blueprint that creates the variable and the client and server side output.



Product Version: Not Selected
more ▼

asked Feb 06 '15 at 07:36 AM in Bug Reports

avatar image

74 4 7 14

avatar image Ben Halliday STAFF Feb 06 '15 at 03:17 PM

Hi Haha71687,

I haven't been able to reproduce this using the information you've shown. Which version of the engine are you using? Are you able to reproduce this in a new project, or does it only happen in your current project? If you can put together a small test project in which this happens, please upload it somewhere and send me a download link. Otherwise, be as explicit as possible in recounting the steps you took to create it. Thanks!

avatar image AdrielKinn Feb 06 '15 at 11:10 PM

I successfully reproduced the bug in 4.7 preview 5 by creating a new first person blueprint and adding this to the character blueprint.


Here is the output from the print statements showing the discrepency between the client and server versions of the rotator variables.


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

1 answer: sort voted first

Hey Haha71687,

Thanks for the screenshots! I was able to reproduce this in 4.7.5, and I've entered a bug report (UE-9488). I'll let you know when I see an update. Thanks!

more ▼

answered Feb 09 '15 at 11:41 PM

avatar image Ryan Gerleve STAFF Apr 17 '15 at 01:02 AM

This is happening because the rotator delta node normalizes the angles to the range -180 to 180 before returning, but when we compress rotators for network serialization, we convert them to the 0 to 360 range. Both of these ranges can describe a complete circle, and should be equivalent in practice. Is this causing a specific artifact in your project?

avatar image VidemusOKC Dec 03 '15 at 12:24 AM

UPDATE: I got around this by adjusting mathematically in the animation blueprint if the animation was local or remote...attaching screenshot. Why these values wouldn't be replicated as they were sent to the server...I don't know that just rubs me raw because it's not obvious and it's very frustrating. Now, if the rotation goes above 180, I subtract 360 from it to "normalize" it, otherwise I pass the rotation untouched because it's below 180.

I could have fixed this by changing my code to deal in 0-360 degrees instead, but it's the principle that something should work on the client as it does across the network...

alt text

This exact issue has been causing me the biggest pain. I swear. My aimoffsets are based -180 to 180.

The server prints out the rotator's value from -180 to 180 just fine, but the AimOffset only "registers" from 0 to 180 then the thing's just looking backwards the whole time from -180 to 0. Works fine on the client side of course.

Do I need to remap my aim offset from 0-360 and adjust my math?

(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