Page 1 of 1

Car Spawner reporting length 0m and not working in OR

Posted: 14 Mar 2019, 19:34
by viaEstrecha
The display is working in TSRE except each of the 2 spawners illustrated is listed as 0m in length, which is clearly wrong.
Image
The Spawner does not then function in OR and so TSRE is possibly not consistenly writing all the necessary information? It is sporadic - saving the route in TSRE may make one spawner show in OR, but after the next save, it may disappear again. In another route, 3 Spawners work correctly all the time, yet others do not.

The data saved to the .rdb file is the same as in the .rit file:

TrItemTable ( 4
CarSpawnerItem (
TrItemId ( 0 )
TrItemSData ( 4.5367475 00000001 )
TrItemRData ( -45.040825 0.90790892 -67.269508 -5354 14849 )
)
CarSpawnerItem (
TrItemId ( 1 )
TrItemSData ( 107.59483 00000001 )
TrItemRData ( -45.040825 0.90790892 -69.269508 -5354 14849 )
)
CarSpawnerItem (
TrItemId ( 2 )
TrItemSData ( 110.41592 00000001 )
TrItemRData ( -32.124348 0.90790892 -139.75381 -5354 14849 )
)
CarSpawnerItem (
TrItemId ( 3 )
TrItemSData ( 1 00000001 )
TrItemRData ( -42.040821 0.90790892 -31.900345 -5354 14849 )
)
)

In the .w file:
Tr_Worldfile (
CarSpawner (
UiD ( 44 )
CarFrequency ( 12 )
CarAvSpeed ( 20 )
TrItemId ( 1 0 )
TrItemId ( 1 1 )
StaticFlags ( 00000100 )
Position ( -45.0408 0.907909 -68.2695 )
QDirection ( 0 0 0 1 )
VDbId ( 4294967295 )
)
CarSpawner (
UiD ( 45 )
CarFrequency ( 8 )
CarAvSpeed ( 25 )
TrItemId ( 1 2 )
TrItemId ( 1 3 )
StaticFlags ( 00000100 )
Position ( -37.4756 0.907909 -99.5799 )
QDirection ( 0 0 0 1 )
VDbId ( 4294967295 )
)


A little more testing done today and there is a definite discrepancy between the end of the Spawner showing in TSRE and the end being displayed in OR (ie where a vehicle disappears). OR Track Viewer also shows the discrepancy.

Edited 24 March - is it possibly a similar problem to the recoding of Platform/Siding position, which you reported fixed recently here and on Elvas Tower?

Re: Car Spawner reporting length 0m and not working in OR

Posted: 16 Mar 2019, 23:49
by joe_star
Having similar issues as described above.

Seems like the spawner TRItemRData being written in RIT is not right.

Re: Car Spawner reporting length 0m and not working in OR

Posted: 29 Mar 2019, 13:49
by viaEstrecha
Just tried another test in a completely blank route, to be sure:

1. Placed spawner over a few hundred metres of road in TSRE - all looked fine.
2. In OR TV, spawner start and finish were however shown colocated; no vehicle was displayed moving in ORTS.
3. Opened route in old MSTS RE, moved the spawner start and finish slightly and then saved.
4. Spawner now appears and works OK in ORTS and TSRE. The adjusted positions show correctly in OR TV.
5. Moved one end of spawner again in TSRE and saved - that changed position seemed to be ignored by ORTS and OR TV.

So it does appear TSRE is not currently recording the start and finish of spawner such that it is recognised by ORTS?

Re: Car Spawner reporting length 0m and not working in OR

Posted: 29 Mar 2019, 16:02
by Goku
Maybe it is the platform bug too.
Check if moving by keys works fine.

Re: Car Spawner reporting length 0m and not working in OR

Posted: 31 Mar 2019, 09:25
by viaEstrecha
Goku wrote: 29 Mar 2019, 16:02 Maybe it is the platform bug too.
Check if moving by keys works fine.
Yes using the keys seems to make the position save correctly. That will do as a workaround, to make the final position with the key and I'm sure you'll add the fix to your long list of work to do!