How Do I Make The Driver Face The Opposite Way?

Discussion in 'Technical Reports' started by 749006, Sep 26, 2024.

  1. 749006

    749006 Well-Known Member

    Joined:
    Dec 10, 2016
    Messages:
    10,268
    Likes Received:
    3,187
    I have the Machine Rail GNFO GL8 which is a Metre Gauge diesel with a cab at one end and the driver looks down the long bonnet on the RH side. When I run the loco I have the Cab leading and I have to turn to face the other way.

    I wondered what do I change to make the drive stay in the same position but facing the "rear" of the loco.

    This is the Driver Position Matrix
    <e d:type="sFloat32" d:alt_encoding="000000000000F03F" d:precision="string">1</e>
    <e d:type="sFloat32" d:alt_encoding="0000000000000000" d:precision="string">0</e>
    <e d:type="sFloat32" d:alt_encoding="0000000000000000" d:precision="string">0</e>
    <e d:type="sFloat32" d:alt_encoding="0000000000000000" d:precision="string">0</e>
    <e d:type="sFloat32" d:alt_encoding="0000000000000000" d:precision="string">0</e>
    <e d:type="sFloat32" d:alt_encoding="000000000000F03F" d:precision="string">1</e>
    <e d:type="sFloat32" d:alt_encoding="0000000000000000" d:precision="string">0</e>
    <e d:type="sFloat32" d:alt_encoding="0000000000000000" d:precision="string">0</e>
    <e d:type="sFloat32" d:alt_encoding="0000000000000000" d:precision="string">0</e>
    <e d:type="sFloat32" d:alt_encoding="0000000000000000" d:precision="string">0</e>
    <e d:type="sFloat32" d:alt_encoding="000000000000F03F" d:precision="string">1</e>
    <e d:type="sFloat32" d:alt_encoding="0000000000000000" d:precision="string">0</e>
    <e d:type="sFloat32" d:alt_encoding="0000008014AEF13F" d:precision="string">1.105</e>
    <e d:type="sFloat32" d:alt_encoding="000000E024060240" d:precision="string">2.253</e>
    <e d:type="sFloat32" d:alt_encoding="00000080C04A1840" d:precision="string">6.073</e>
    <e d:type="sFloat32" d:alt_encoding="000000000000F03F" d:precision="string">1</e>

    Any ideas please?

    Peter
     
  2. bluejay

    bluejay New Member

    Joined:
    Sep 19, 2019
    Messages:
    24
    Likes Received:
    1
    Hi my drivers i can face ether way just by using my mouse buttons when you add driver.
     
  3. Spikee1975

    Spikee1975 Guest

    One of the 4x4 matrix' values (translation, rotation and scale) holds the Y axis rotation. I'll look it up (I have a small excel sheet somewhere I've setup for adjusting headlight angles)

    Off my head, #13 - #15 are the position (translation) x y and z coordinates.

    Try changing values #1 and #11 to "-1".
     
    Last edited by a moderator: Sep 30, 2024
  4. 749006

    749006 Well-Known Member

    Joined:
    Dec 10, 2016
    Messages:
    10,268
    Likes Received:
    3,187
    Thanks Spike - I will give that a go.
     
  5. 749006

    749006 Well-Known Member

    Joined:
    Dec 10, 2016
    Messages:
    10,268
    Likes Received:
    3,187
    Not quite - you put a driver icon and you are facing which is defined as Forward - like in the cab of a Steam loco
    You can turn yourself round with the mouse but next time you will still be facing forward.
     
  6. Spikee1975

    Spikee1975 Guest

    749006 Peter, I just made a quick check with the Kuju Class 47 BR Blue.

    #1 and #11 were -0.9xxx, I've inverted them both to 1 (-1 or 1 depends on the child model's own initial orientation) (Note: edit the child object at the bottom of the blueprint, not the <DriverPosition>, which I think is useless and a Kuju leftover.

    Basically just multiply the values in first and eleventh position by -1 to face the opposite of current direction. (I've rounded 0.97xxx up to 1. That's OCD :) )

    Success:

    2024-10-01 18_38_34-.png

    2024-10-01 18_34_06-Train Simulator (x64).png
     
    Last edited by a moderator: Oct 1, 2024
    • Like Like x 1
  7. bluejay

    bluejay New Member

    Joined:
    Sep 19, 2019
    Messages:
    24
    Likes Received:
    1
    Oh ok from seeing the pic it could be a bug in the game iv never tried that loco.
     
  8. bluejay

    bluejay New Member

    Joined:
    Sep 19, 2019
    Messages:
    24
    Likes Received:
    1
    Oh ok from seeing the pic it could be a bug in the game iv never tried that loco.
     
  9. knuckleshed

    knuckleshed Well-Known Member

    Joined:
    Jul 14, 2024
    Messages:
    441
    Likes Received:
    451
    The pic is an example and Spikee proving that those are the values to reverse the drivers facing position lol, these guys have got it, don't worry yourself about it. ;)
     
    • Like Like x 1
  10. 749006

    749006 Well-Known Member

    Joined:
    Dec 10, 2016
    Messages:
    10,268
    Likes Received:
    3,187
    It is unlikely you would have it.
     
    • Like Like x 1
  11. 749006

    749006 Well-Known Member

    Joined:
    Dec 10, 2016
    Messages:
    10,268
    Likes Received:
    3,187
    When you start the game are you still looking out of the front even though the driver is now reversed?
     
  12. Spikee1975

    Spikee1975 Guest

    Yes. That has nothing to do with the driver, only the cab camera.

    To have the camera facing in the backward direction, set its <CameraRotation> Z to -1 and X a little greater than 0. Important is that the horizontal freedom is bigger than pi (3.141), else the camera will snap around like crazy. I set it to 4. (anything bigger doesn't make a difference, as the unit is Radians.)

    2024-10-01 22_24_43-.png

    Note you can do all these changes on the fly without restarting TS. You only need to Replay (not Restart!) the scenario, no cache clearing required here.
     
    Last edited by a moderator: Oct 1, 2024
  13. 749006

    749006 Well-Known Member

    Joined:
    Dec 10, 2016
    Messages:
    10,268
    Likes Received:
    3,187
    I modified the CabCam.bin to .bak. Then I changed the xml to your settings and used Serz to create a new CabCam.bin
    Screenshot_Albula Line_46.53375-9.87414_12-00-27.jpg
    But when the game starts I'm still facing Forward down the Long Hood and I have to use the mouse to view the opposite way.
    Screenshot_Albula Line_46.53392-9.87418_12-00-32.jpg

    Screenshot_Albula Line_46.53392-9.87418_12-00-40.jpg

    Not sure what I did wrong?
     
  14. Spikee1975

    Spikee1975 Guest

    Attach the zipped cabcam.bin

    Where did you get this? I can only see Machine Rail doing steam engines. DieselWorkshop also doesn't have that loco.

    Googling "train simulator GL8 gnfo" also gives no results.
     
    Last edited by a moderator: Oct 2, 2024
  15. 749006

    749006 Well-Known Member

    Joined:
    Dec 10, 2016
    Messages:
    10,268
    Likes Received:
    3,187
    Machine Rail don't make this loco any more - they used to.
    I have a Steam loco in the same GNFO folder - a BLW 1912 24D Ten-Wheeler
    It was November 2020 when I purchased it from them

    Peter
     

    Attached Files:

  16. Spikee1975

    Spikee1975 Guest

    Ok that cabcam bin is unaltered.

    Do you want both driver and conductor position to face the other way?

    Here you go (I've also updated the xml to current blueprint standard (HasWindowCamera, FOV defs), not that it matters, that's my OCD.)

    2024-10-03 19_08_30-.png
     

    Attached Files:

    Last edited by a moderator: Oct 3, 2024
  17. 749006

    749006 Well-Known Member

    Joined:
    Dec 10, 2016
    Messages:
    10,268
    Likes Received:
    3,187
    that is brilliant Spikee1975 (Peter)

    When I got the GL8 I also got a Steam loco and two coaches - I don't use the steam loco very much though
    Screenshot_Albula Line_46.53402-9.87446_12-00-36.jpg

    They were from Machine Rail before they split the Diesel Workshop away.

    I also got the CP/Portuguese Railways RSC3 Alco from Diesel Workshop and it is another loco they don't sell any more
    Screenshot_1 - Test Centre_51.11603-6.22359_12-00-48.jpg
     
    • Like Like x 1

Share This Page