Guide: Enable Realistic Head Sway In Tsw 2

Discussion in 'TSW General Discussion' started by londonmidland, Nov 26, 2020.

  1. londonmidland

    londonmidland Well-Known Member

    Joined:
    Nov 8, 2017
    Messages:
    3,423
    Likes Received:
    18,140
    Ever since head sway was introduced into TSW, I never found it particularly realistic, mainly due to how unnaturally stiff the head motion felt, as well as there being pretty much no vertical movement. So the whole feature was pretty much uninspiring to me.

    However, I was digging through some values and altered them accordingly and managed to make it look and feel a lot more realistic. The camera drawing in and out as you brake is more exaggerated now too. You can see a video I've created here and see for yourself. This demonstrates head bob at high and low speeds.

    Disclaimer:
    This setting will change head sway across all routes. For routes which have incorrect track properties, such as GWE, this will greatly affect final results, making it look off and way too exaggerated in some cases. Seeing as the track properties can only be adjusted by DTG, I cannot fix this unfortunately.

    Instructions:
    1.) Locate the engine.ini file located at \(Username)\Documents\My Games\TrainSimWorld2\Saved\Config\WindowsNoEditor
    2.) Open it and under [SystemSettings] add the following:
    ts2.CameraMotionSway.EnableUprightCompensation=0
    ts2.CameraMotionSway.KSitting.Y=100.0
    ts2.CameraMotionSway.KSitting.Z=50.0
    ts2.CameraMotionSway.LSitting.Y=10
    ts2.CameraMotionSway.LSitting.Z=1
    ts2.CameraMotionSway.SittingPivotOffset=-200
    ts2.CameraMotionSway.LSitting.X=10

    3.) Press CTRL S
    4.) Launch the game and drive to see the final results


    Let me know what you think. Feedback welcome!
     
    Last edited: Nov 26, 2020
    • Like Like x 21
    • Helpful Helpful x 4
  2. peterchambers

    peterchambers Active Member

    Joined:
    Mar 21, 2018
    Messages:
    190
    Likes Received:
    149
    Thank you for that. Ran on GWE with 66 and it felt so much better. A little twichy but that is far better than too smooth. I am used to rough track anyway. Just need some good thuds over the track joints. another good "mod" from you wonderful modders.
     
    • Like Like x 4
  3. davidh0501

    davidh0501 Well-Known Member

    Joined:
    Apr 29, 2020
    Messages:
    1,134
    Likes Received:
    1,638
    Really need it for the Isle of Wight.
    Bumpy old track and it glides without a twitch.
     
    • Like Like x 3
  4. LT586

    LT586 Well-Known Member

    Joined:
    Aug 20, 2018
    Messages:
    576
    Likes Received:
    676
    The tube needs it too because you often get heavy clatters when going over points. Especially the rickety old 1972 stock.
     
    • Like Like x 2
  5. LT586

    LT586 Well-Known Member

    Joined:
    Aug 20, 2018
    Messages:
    576
    Likes Received:
    676
    DTG Protagonist could you make Londonmidland the core dev on improving TSW2 we need some enthusiasts like London Midland to help mod the game, also need to get Armstrong Powerhouse on board to look at working with the sounds as I am sure there’s a way around UE4s inadequate sound engine
     
    • Like Like x 5
    • Helpful Helpful x 1
  6. hyperlord

    hyperlord Well-Known Member

    Joined:
    May 20, 2019
    Messages:
    1,245
    Likes Received:
    1,270
    Thank you londonmidland ! I applied the head sway tuning via engine.ini and it does feel "good".
    Maybe I try MSB on weekend (avoiding atm because of non-immersive sound), the entire train seemed to jump the last time I tried - maybe then it will be too much with the modefied config :D
     
  7. londonmidland

    londonmidland Well-Known Member

    Joined:
    Nov 8, 2017
    Messages:
    3,423
    Likes Received:
    18,140
    Glad you're enjoying it :) As mentioned, if DTG haven't applied the correct track properties, then the train will jump all over the place. I think that's only an issue in some of the older routes, however.
     
    • Like Like x 2
  8. 59321747

    59321747 Well-Known Member

    Joined:
    Sep 16, 2020
    Messages:
    565
    Likes Received:
    320
    How to solve the sound of the locomotive?
     
  9. Callum B.

    Callum B. Well-Known Member

    Joined:
    Aug 9, 2018
    Messages:
    1,638
    Likes Received:
    2,844
    I've applied the tweaks and tried them on SPG, and although the bouncing up and down periodically simulates the GE air ride seats very nicely, it is too extreme for the rough track even at lower speeds. After decreasing the intensity of the axis movements I am much more comfortable now. :)
     
  10. bescot

    bescot Well-Known Member

    Joined:
    Dec 14, 2016
    Messages:
    623
    Likes Received:
    1,103
    That is just beautiful - Thanks so much!

    The 101 is a bit OTT on the Tees Valley with the jointed track mind, so I changed ts2.CameraMotionSway.LSitting.Z=1 to ts2.CameraMotionSway.LSitting.Z=7.5

    Now we have something like realistic cab movement (I never thought I'd say it) how about a Pacer?
     
    • Like Like x 1
  11. geloxo

    geloxo Well-Known Member

    Joined:
    Nov 21, 2018
    Messages:
    956
    Likes Received:
    1,694
    Nice finding, thanks. Do you know what each variable indeed does? It´s just to understand what we are doing with the config. I can imagine we are changing the strenght factors over the 3 axis, but I see we have two variables per axis... Also I have no idea about the compensation and offset variables.

    Cheers
     
  12. peterchambers

    peterchambers Active Member

    Joined:
    Mar 21, 2018
    Messages:
    190
    Likes Received:
    149
    Isle of white still too smooth. I did write toMr. Rivet about this but perhaps altering the track is too much work ?
     
  13. bescot

    bescot Well-Known Member

    Joined:
    Dec 14, 2016
    Messages:
    623
    Likes Received:
    1,103
    I don't have IoW but don't think the sway kicks in until around 30mph from what I've seen.
     
    • Helpful Helpful x 1
  14. peterchambers

    peterchambers Active Member

    Joined:
    Mar 21, 2018
    Messages:
    190
    Likes Received:
    149
    Massive improvement to 101 but would still like more vertical bounce.
     
  15. peterchambers

    peterchambers Active Member

    Joined:
    Mar 21, 2018
    Messages:
    190
    Likes Received:
    149
    I ran it about 50 mph and still smooth. Beautifull tracklaying !!!
     
    Last edited: Nov 27, 2020
    • Like Like x 1
  16. peterchambers

    peterchambers Active Member

    Joined:
    Mar 21, 2018
    Messages:
    190
    Likes Received:
    149
    This is wonderful. Could you tell what parameter does what so that we can tweak to our preference , please ?
     
    Last edited: Nov 27, 2020
  17. londonmidland

    londonmidland Well-Known Member

    Joined:
    Nov 8, 2017
    Messages:
    3,423
    Likes Received:
    18,140
    I'll give a very rough guide as I'm only remembering it off the top of my head, so it may not be 100% accurate, however I will do my best.

    ts2.CameraMotionSway.EnableUprightCompensation - keeps your body/head angle 'stuck' the the train so when going round corners, you will follow the train 'tilting'
    ts2.CameraMotionSway.KSitting.Y - The amount your head moves horizontally. The lower the value, the more you will 'move' left to right when going round corners. Sometimes even clipping out of the train.
    ts2.CameraMotionSway.KSitting.Z - The speed of the 'bounciness'
    ts2.CameraMotionSway.LSitting.Y=10 - The 'weight' of the train. Lower values mean it'll 'wiggle' a lot.
    ts2.CameraMotionSway.LSitting.Z=1 - The amount of bounciness. Lower values result in more/more exaggerated bounces
    ts2.CameraMotionSway.SittingPivotOffset=-200 - Adjusts the camera which goes backwards and forwards, when braking and accelerating.
    ts2.CameraMotionSway.LSitting.X=10 - The speed of the camera going backwards and forwards.
     
    • Like Like x 5
    • Helpful Helpful x 5
  18. hightower

    hightower Guest

    Great find & great job with it. I’ve only tried it with TVL but reckon I’ll dial down the bounciness a little, but only a little.

    It’s definitely better than default but it’s nuts that it’s a catch all value, rather than being specific to each loco.
     
  19. pugilist3

    pugilist3 Active Member

    Joined:
    Nov 2, 2020
    Messages:
    149
    Likes Received:
    131
    Great job! Very cool.
     
  20. peterchambers

    peterchambers Active Member

    Joined:
    Mar 21, 2018
    Messages:
    190
    Likes Received:
    149
    Thank you so much for this.
     
  21. Scorpion71

    Scorpion71 Well-Known Member

    Joined:
    Oct 24, 2017
    Messages:
    855
    Likes Received:
    1,874
    Oooooh, that looks much better, I'll be installing this and having a go later.

    Well done Sir, another top mod!
     
    • Like Like x 2
  22. Rudolf

    Rudolf Well-Known Member

    Joined:
    Dec 9, 2016
    Messages:
    2,488
    Likes Received:
    3,270
    Wow, this is great. I think I can help to make it more easy to make settings specific for a route or engine. I already implemented a way to create game settings in sets for different routes (in ToolkitForTSW). When launching the game, you can select your preferred settings. It is not very difficult to this for these settings as well. I even can do buttons to use predefined sets. Interesting challenge. I put it on my to do list. Please share your settings here.
     
    • Like Like x 1
    • Helpful Helpful x 1
  23. IsambardKingdomBrunel

    IsambardKingdomBrunel Well-Known Member

    Joined:
    Oct 6, 2017
    Messages:
    438
    Likes Received:
    796
    Nice for an emu-dmu, but too floaty for a heavier locomotive.
     
  24. ht-57

    ht-57 Member

    Joined:
    Jan 6, 2018
    Messages:
    79
    Likes Received:
    55
    fwiw
    Here's my settings for SPG
    ts2.CameraMotionSway.EnableUprightCompensation=0
    ts2.CameraMotionSway.KSitting.Y=100.0
    ts2.CameraMotionSway.KSitting.Z=65.0
    ts2.CameraMotionSway.LSitting.Y=17
    ts2.CameraMotionSway.LSitting.Z=7.5
    ts2.CameraMotionSway.SittingPivotOffset=-200
    ts2.CameraMotionSway.LSitting.X=10
     
    • Helpful Helpful x 1
  25. peterchambers

    peterchambers Active Member

    Joined:
    Mar 21, 2018
    Messages:
    190
    Likes Received:
    149
    I am sorry, I cannot work out what SPG is. Could you spell it out please for an elderly gentleman ?
     
  26. ht-57

    ht-57 Member

    Joined:
    Jan 6, 2018
    Messages:
    79
    Likes Received:
    55
    Referencing the route
    SandPatchGrade
     
  27. peterchambers

    peterchambers Active Member

    Joined:
    Mar 21, 2018
    Messages:
    190
    Likes Received:
    149
    Thank you. I must have taken this out for some reason ! Probably finding it too daunting.
     
  28. LastTrainToClarksville

    LastTrainToClarksville Well-Known Member

    Joined:
    Oct 12, 2017
    Messages:
    2,503
    Likes Received:
    2,069
    Step one: start your own thread, please: this one is about "realistic head sway".
     
    • Like Like x 2
  29. Rob39

    Rob39 Well-Known Member

    Joined:
    Oct 14, 2018
    Messages:
    1,886
    Likes Received:
    2,023
    Thats a factor id be interested in reducing. Lurching forward every time I tap the brake. I’ll give them a whirl. Thanks londonmidland
     
  30. formulabee#1362

    formulabee#1362 Well-Known Member

    Joined:
    Dec 21, 2020
    Messages:
    1,476
    Likes Received:
    1,865
    Camera motion sway needs fixing in east coastway
     

Share This Page