PC Potential Headsway Fix Found

Discussion in 'TSW General Discussion' started by londonmidland, Oct 8, 2025.

  1. londonmidland

    londonmidland Well-Known Member

    Joined:
    Nov 8, 2017
    Messages:
    3,580
    Likes Received:
    19,615
    Hey guys

    A bit of a long post, however I think I may have potentially found a nice fix for the awkward head sway movement and its animations in TSW.

    Currently, when you are in the cab of a train, the train moves around the player/head camera, in which this camera itself is completely static. This creates very sudden and jerky movements, leading to sudden, unnatural swaying effects and movements seen. Particularly when going over track joints or crossing junctions.

    The settings I will post below will enable secondary head sway movements, which interacts simultaneously with train movement/its suspension. This creates more dynamic and *much* smoother head sway effects.

    From my testing, it seems to be a massive improvement, however I’d like to see what you guys think of it. :)

    PC Players, please enter the following in your engine.ini file:

    [SystemSettings]
    EnableUprightCompensation=1
    ts2.CameraMotionSway.HeadAdjustmentSpeed=0.01
     

    Attached Files:

    Last edited: Oct 10, 2025
    • Like Like x 11
    • Helpful Helpful x 5
  2. Sharon E

    Sharon E Well-Known Member

    Joined:
    Dec 9, 2016
    Messages:
    2,285
    Likes Received:
    2,251
    Just added them and will see how it helps that jerky movement.
     
    • Helpful Helpful x 1
  3. OldVern

    OldVern Well-Known Member

    Joined:
    Nov 2, 2020
    Messages:
    20,994
    Likes Received:
    43,095
    Ditto, will add later.
     
    • Helpful Helpful x 1
  4. Thorgred

    Thorgred Well-Known Member

    Joined:
    Jun 8, 2018
    Messages:
    980
    Likes Received:
    590
    I have added them too
     
    • Helpful Helpful x 1
  5. Sharon E

    Sharon E Well-Known Member

    Joined:
    Dec 9, 2016
    Messages:
    2,285
    Likes Received:
    2,251
    Gave it a try on the 150 and seemed to be better.
     
    • Helpful Helpful x 2
  6. hyperlord

    hyperlord Well-Known Member

    Joined:
    May 20, 2019
    Messages:
    1,497
    Likes Received:
    1,543
    Aaah nice this sounds really promising. Will implement it in my ini today and give feedback.

    How is the headsway IRL? I might think those cool driver seats (speaking of DB) compensate a lot?

    Would it be possible, to fake the missing lateral movement of the loco with those camera hacks, too? :)

    [​IMG]
     
  7. londonmidland

    londonmidland Well-Known Member

    Joined:
    Nov 8, 2017
    Messages:
    3,580
    Likes Received:
    19,615
    I forgot to mention - my in game head sway setting in the menu UI is set to 100%.

    The head motion and sways feel incredibly smooth and silky looking, as the camera can freely move in any direction it wants.

    Before, it felt very restrictive and choppy feeling, as it seemed to restrict the camera to only react to the train suspension/motion, and not the players' head.
     
    Last edited: Oct 8, 2025
    • Like Like x 2
    • Helpful Helpful x 1
  8. Anthony Pecoraro

    Anthony Pecoraro Well-Known Member

    Joined:
    Dec 11, 2016
    Messages:
    3,864
    Likes Received:
    4,467
    I don't notice any difference.
     
  9. Thorgred

    Thorgred Well-Known Member

    Joined:
    Jun 8, 2018
    Messages:
    980
    Likes Received:
    590
    to me it seems an improvement
    and I still do not have the notion to put it back from 100% as i had it before this on 70%
    it feels more fluid / smoother indeed :)
     
    Last edited: Oct 9, 2025
    • Like Like x 1
    • Helpful Helpful x 1
  10. londonmidland

    londonmidland Well-Known Member

    Joined:
    Nov 8, 2017
    Messages:
    3,580
    Likes Received:
    19,615
    A bit of an explanation as to what this setting does and why it improves the feel of motion and head sway:

    So by default, the EnableUprightCompensation setting is set to 0.

    What does this is it clips the players head. whilst inside the cab of the train, to the outside terrain and remains level with it. This means that your head isn't actually moving, as it is completely static. You just have the train (cab) movement moving around a static camera.

    When EnableUprightCompensation is set to 1, this adds secondary head movement. So now your head is actually moving and reacting simultaneously with the movement of the train, and not with the outside terrain. You sway from side to side and bounce up and down. It looks really nice and it feels like you aren't always constantly stuck in one static position.
     
    • Like Like x 4
    • Helpful Helpful x 2
  11. Scorpion71

    Scorpion71 Well-Known Member

    Joined:
    Oct 24, 2017
    Messages:
    1,168
    Likes Received:
    2,632
    before pasting in the two lines into the engine.ini file, do you need to add a line previous to it, wasn't it something like [SystemSettings] - can't remember exactly what it was called
     
  12. londonmidland

    londonmidland Well-Known Member

    Joined:
    Nov 8, 2017
    Messages:
    3,580
    Likes Received:
    19,615
    Yeah, that's right.

    Some players will already have that if they have entered other ini tweaks previously, but if you don't then it should look like this:

    [SystemSettings]
    EnableUprightCompensation=1
    ts2.CameraMotionSway.HeadAdjustmentSpeed=0.01
     
    • Helpful Helpful x 2
    • Like Like x 1
  13. solicitr

    solicitr Well-Known Member

    Joined:
    Jun 20, 2020
    Messages:
    13,621
    Likes Received:
    20,650
    Oh, that's nice! Yes, much improved when bumping over points.
     
    • Like Like x 1
  14. Anthony Pecoraro

    Anthony Pecoraro Well-Known Member

    Joined:
    Dec 11, 2016
    Messages:
    3,864
    Likes Received:
    4,467
    Anyone have a video of this? I put those lines in the ini, but I notice a difference.
     
  15. Redbus

    Redbus Well-Known Member

    Joined:
    Dec 8, 2016
    Messages:
    1,539
    Likes Received:
    3,272
    Will try this tomorrow, thank you L-M. I like head sway up to a point, but sometimes the forward/back sway is a little too much, and it feels like an F1 car rather than a train when accelerating and decelerating.
     
    • Like Like x 1

Share This Page