Page 1 of 2

Clinchfield Route Vehicle Issue

Unread postPosted: Sat Jul 30, 2022 10:35 am
by tntrainer
Hello,
Has anyone ever addressed or posted a fix/suggestion for correcting the Clinchfield route vehicle that the orientation is wrong as it travels down the road? The X/Y orientation or something else has a box truck turned perpendicular to its path. Any thoughts would be appreciated.

George

Re: Clinchfield Route Vehicle Issue

Unread postPosted: Sat Jul 30, 2022 11:28 am
by Chacal
During Canadian winters, a lot of vehicles move like this.

Re: Clinchfield Route Vehicle Issue

Unread postPosted: Sat Jul 30, 2022 11:40 am
by tntrainer
My friend,
Don't come down south..... At the first sign of snow, all vehicles move like that down here..... at least until they've been to the store to get bread and milk. !*roll-laugh*!

Re: Clinchfield Route Vehicle Issue

Unread postPosted: Fri Aug 05, 2022 5:34 pm
by jlms48
To fix this I had to edit the GeoPcDx file to correct the orientation of the road vehicle ( small truck 60s). Site rules preclude me from uploading the modified GeoPcDx file so you need to edit it as follows.
1. Locate the Clinchfield folder in your Railworks \Assets directory. The path is
"G:\SteamLibrary\steamapps\common\Railworks\Assets\DTG\Clinchfield"
(Note the drive letter G: is for my system, yours could be C: D: etc)
2. Now open the folder “ClinchfieldAssets.ap” using 7zip. Click on \Scenery\Vehicles.
3. Then Extract the file Vehicle_TruckSmall.GeoPcDx to the “Clinchfield” folder. This file should now be outside the .ap folder
4. Make sure the file has the path exactly as shown below. If necessary make new folders \Scenery\Vehicles under Clinchfield.
"G:\SteamLibrary\steamapps\common\Railworks\Assets\DTG\Clinchfield\Scenery\Vehicles\Vehicle_TruckSmall.GeoPcDx"
5. Open the file in TS_Tools file editor
6. Open the Search window ( CTRL-F) and find the text Source
7. Use cut and paste to replace the whole block of text between the headings
<Source LtoPTransform>
And
</Source LtoPTransform>

With the following :

Code: Select all
<SourceLToPTransform>
      <e d:numElements="16" d:elementType="sFloat32" d:precision="string">0.0000000 0.0000000 -1.0000000 0.0000000 0.0000000 1.0000000 0.0000000 0.0000000 1.0000000 0.0000000 0.0000000 0.0000000 -1.5190569 1.9166594 0.0211201 1.0000000</e>
      <e d:numElements="16" d:elementType="sFloat32" d:precision="string">0.0000000 0.0000000 -1.0000000 0.0000000 0.0000000 1.0000000 0.0000000 0.0000000 1.0000000 0.0000000 0.0000000 0.0000000 -1.5467935 1.9166594 0.0022108 1.0000000</e>
      <e d:numElements="16" d:elementType="sFloat32" d:precision="string">0.0000000 0.0000000 -1.0000000 0.0000000 0.0000000 1.0000000 0.0000000 0.0000000 1.0000000 0.0000000 0.0000000 0.0000000 -1.5467935 1.9166594 0.0022108 1.0000000</e>
      <e d:numElements="16" d:elementType="sFloat32" d:precision="string">0.0000000 0.0000000 -1.0000000 0.0000000 0.0000000 1.0000000 0.0000000 0.0000000 1.0000000 0.0000000 0.0000000 0.0000000 -0.8172704 -0.0139992 -0.0311687 1.0000000</e>
      <e d:numElements="16" d:elementType="sFloat32" d:precision="string">0.0000000 0.0000000 -1.0000000 0.0000000 0.0000000 1.0000000 0.0000000 0.0000000 1.0000000 0.0000000 0.0000000 0.0000000 -1.5190569 1.5859420 -4.1799998 1.0000000</e>
      <e d:numElements="16" d:elementType="sFloat32" d:precision="string">0.0000000 0.0000000 -1.0000000 0.0000000 0.0000000 1.0000000 0.0000000 0.0000000 1.0000000 0.0000000 0.0000000 0.0000000 4.0636539 0.7761554 0.0193810 1.0000000</e>
   </SourceLToPTransform>



8. Save the file in TS-Tools ( Press Files / Save TS2020File) .

You should find this fixes the problem with the small truck.

Re: Clinchfield Route Vehicle Issue

Unread postPosted: Fri Aug 05, 2022 5:43 pm
by tntrainer
Thanks so much. I'll give this a try and report back.

Thanks again
George

Re: Clinchfield Route Vehicle Issue

Unread postPosted: Fri Aug 05, 2022 6:09 pm
by buzz456
<Source LtoPTransform> No space if you want the search to work. <SourceLToPTransform>

Re: Clinchfield Route Vehicle Issue

Unread postPosted: Fri Aug 05, 2022 7:03 pm
by buzz456
Screenshot_Clinchfield Railroad - Elkhorn City to St Paul_36.91928--82.29159_12-22-31.jpg

Re: Clinchfield Route Vehicle Issue

Unread postPosted: Sat Aug 06, 2022 1:42 pm
by tntrainer
Hello jlms48,
I can report success!
My Happy Jig.gif


This issue has bothered me since the route came out and I really appreciate you taking the time to write a correction and posting it here on RWA. I hope to someday understand exactly what the parameters of the scripting indicates.
Again, many thanks!

Cheers from Tennessee, USA

Re: Clinchfield Route Vehicle Issue

Unread postPosted: Sat Aug 06, 2022 2:15 pm
by RudiJaeger
tntrainer wrote:I hope to someday understand exactly what the parameters of the scripting indicates.

Looks like there is a pivot point involved. Judging by comparison of before and after screenshots, the point appears to be located somewhere center-mass of the truck, which is why the passenger side is riding on the shoulder of the road, whereas the cars (shorter length and width) appear to be within their lane. Certainly looks a lot better though. Glad you brought this up, I was not aware of it. Perhaps someone more experienced than I, can better explain what's going on with the parameters and how to make adjustments for lane centering. Of course if we do a bit of digging around, it's probably already in one of the umpteen thousand guides that apply to this sim. :D

Re: Clinchfield Route Vehicle Issue

Unread postPosted: Sat Aug 06, 2022 2:23 pm
by buzz456
George, This might make some interesting reading for you. If you want to get dizzy trying to understand something just don't blame me. I have used this about fifty times since I can't seem to remember all of this from time to time.

http://railworksamerica.com/index.php/l ... t-position

Re: Clinchfield Route Vehicle Issue

Unread postPosted: Sat Aug 06, 2022 4:23 pm
by jlms48
Hi, I'm glad some of you edited this successfully.
Believe it or not that small truck model is made up of 6 separate objects. To rotate it thro' 90deg anti-clockwise involved applying the rotation matrix 6x over. When I did that the cab was offset to one side and backwards from the rest of the truck. I then had to adjust its position in 2 directions by trial and error. It took 12 iterations to get to where it is now. I noticed that 2 wheels were off the tarmac but thought it was good enough to be going on with. I can do some more trial and error mods to get the truck in lane.
How closely do we look at the road traffic anyway? If you look closely at the road traffic in lots of routes you will find plenty vehicles doing odd things. Some US routes use invisible road ribbons which leads to quite a few flying cars!
While I was playing around with that truck model I noticed that when I placed it multiple times in a route I use for testing , each placement of the truck had a slightly different cab colour. It changed from pale blue to greenish white to brownish white. I have not seen that effect before. Anyone know what caused it?

Re: Clinchfield Route Vehicle Issue

Unread postPosted: Sat Aug 06, 2022 4:52 pm
by jlms48
buzz456 wrote:George, This might make some interesting reading for you. If you want to get dizzy trying to understand something just don't blame me. I have used this about fifty times since I can't seem to remember all of this from time to time.

http://railworksamerica.com/index.php/l ... t-position


Another useful reference is the Train Simulator Matrix Guide which can be downloaded here
https://www.trainsimdev.com/forum/viewtopic.php?f=42&t=902

Re: Clinchfield Route Vehicle Issue

Unread postPosted: Sat Aug 06, 2022 11:17 pm
by tntrainer
Thank you Buzz and jlms48, I will review your tutorial suggestions. It would be a good exercise in learning the process of editing the scripts for me to tinker with it. I appreciate everyone's input on the process required. Yes, it is on the shoulder of the road now but, it's a far sight better than perpendicular.
I recognize that the vehicles are in the periphery of our focus on the trains, just as the scenery and structures are. Also they are on the lower end of accurate simulation due to the constraints of the game engine. Many times it's just a reasonable facsimile that's required to portray a town or scenic point. No one route developer has the time to create 100% totally accurate structures for their route.
I will say that darn truck has ruined more than one scene in video I have been recording for use in a YouTube production.

Again thanks to all who commented or helped.

Re: Clinchfield Route Vehicle Issue

Unread postPosted: Tue Aug 09, 2022 1:48 pm
by jlms48
A couple more tweaks to the Clinchfield small truck Geo file.
The truck is now centred in the road lane and the night lighting effects have been fixed.

Just overwrite the SourceLToPtransfer block of text using TS Tools with the following:

Code: Select all
<SourceLToPTransform>
      <e d:numElements="16" d:elementType="sFloat32" d:precision="string">0.0000000 0.0000000 -1.0000000 0.0000000 0.0000000 1.0000000 0.0000000 0.0000000 1.0000000 0.0000000 0.0000000 0.0000000 0.1019057 1.9166594 0.0211201 1.0000000</e>
      <e d:numElements="16" d:elementType="sFloat32" d:precision="string">0.0000000 0.0000000 -1.0000000 0.0000000 0.0000000 1.0000000 0.0000000 0.0000000 1.0000000 0.0000000 0.0000000 0.0000000 0.1046794 1.9166594 0.0022108 1.0000000</e>
      <e d:numElements="16" d:elementType="sFloat32" d:precision="string">0.0000000 0.0000000 -1.0000000 0.0000000 0.0000000 1.0000000 0.0000000 0.0000000 1.0000000 0.0000000 0.0000000 0.0000000 0.1046794 1.9166594 0.0022108 1.0000000</e>
      <e d:numElements="16" d:elementType="sFloat32" d:precision="string">0.0000000 0.0000000 -1.0000000 0.0000000 0.0000000 1.0000000 0.0000000 0.0000000 1.0000000 0.0000000 0.0000000 0.0000000 0.1017270 -0.0139992 -0.0311687 1.0000000</e>
      <e d:numElements="16" d:elementType="sFloat32" d:precision="string">0.0000000 0.0000000 -1.0000000 0.0000000 0.0000000 1.0000000 0.0000000 0.0000000 1.0000000 0.0000000 0.0000000 0.0000000 0.1019057 1.5859420 -4.1799998 1.0000000</e>
      <e d:numElements="16" d:elementType="sFloat32" d:precision="string">0.0000000 0.0000000 -1.0000000 0.0000000 0.0000000 1.0000000 0.0000000 0.0000000 1.0000000 0.0000000 0.0000000 0.0000000 0.1046794 0.7761554 -5.5000000 1.0000000</e>
   </SourceLToPTransform>


See my previous post for full directions

Re: Clinchfield Route Vehicle Issue

Unread postPosted: Wed Aug 10, 2022 2:33 pm
by tntrainer
Hello jlms48,

Success! Thank you so much for taking the time to delve into the issue and write a correction. As you can see the results are perfect on my end.

Thanks again,
George