Elvas Tower: multiple jnode lines - Elvas Tower

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

multiple jnode lines Rate Topic: -----

#1 User is offline   Genma Saotome 

  • Owner Emeritus and Admin
  • PipPipPipPipPipPipPipPipPipPipPipPipPip
  • Group: ET Admin
  • Posts: 15,350
  • Joined: 11-January 04
  • Gender:Male
  • Location:United States
  • Simulator:Open Rails
  • Country:

Posted 09 August 2023 - 04:41 PM

I found several instances of code in a world file that are like this example:


TrackObj (

UiD ( 1609 )
SectionIdx ( 20916 )
Elevation ( -0.00442441 )
JNodePosn ( -11539 14423 54.7218 182.174 914.67 )
JNodePosn ( -11539 14423 54.7233 182.344 914.668 )
JNodePosn ( -11539 14423 54.7234 182.207 914.667 )
CollideFlags ( 535 )
FileName ( SR_1tSwt_w_m03dL_Ext.s )
StaticFlags ( 00200180 )
Position ( 54.7234 182.207 914.667 )
QDirection ( 0.000374535 -0.981637 -0.00192746 0.190748 )
VDbId ( 4294967294 )
StaticDetailLevel ( 0 )

)

Here is another:
TrackObj (

UiD ( 2163 )
SectionIdx ( 25562 )
Elevation ( 0 )
JNodePosn ( -11539 14423 90.2132 182.505 887.318 )
JNodePosn ( -11539 14423 90.2132 182.505 887.318 )
JNodePosn ( -11539 14423 90.2132 182.642 887.318 )
JNodePosn ( -11539 14423 90.2131 182.505 887.318 )
JNodePosn ( -11539 14423 90.2132 182.368 887.318 )
CollideFlags ( 39 )
FileName ( SLW_1tSwt_w_m03dL_Ext_L.s )
StaticFlags ( 00200180 )
Position ( 90.2132 182.368 887.318 )
QDirection ( 0.000480244 -0.969626 -0.00190387 0.244584 )
VDbId ( 4294967295 )

)

I don't recall ever seeing several jnode lines. Is this legitimate? What might it be doing to the .tdb?


p.s. I don't know how to write the regex that will match JNodePosn a bunch of stuff newline tab tab JNodePosn. I'm pretty sure i need that to search all of my worldfiles to see how common this "feature" is. Any help will be greatly appreciated.

#2 User is offline   eric from trainsim 

  • Waste Disposal Engineer
  • Group: Private - Open Rails Developer
  • Posts: 1,578
  • Joined: 30-October 10
  • Gender:Male
  • Simulator:ORTS
  • Country:

Posted 10 August 2023 - 04:40 AM

I don't believe it's part of the tdb. Those are used to define whether or not a switch is manual or automatic, and for animation.

#3 User is offline   StevenMasters 

  • Apprentice
  • Group: Status: Active Member
  • Posts: 43
  • Joined: 14-October 13
  • Simulator:ORTS
  • Country:

Posted 10 August 2023 - 05:07 AM

This is an issue with TSRE.

JNode is used for animation only.

#4 User is offline   eric from trainsim 

  • Waste Disposal Engineer
  • Group: Private - Open Rails Developer
  • Posts: 1,578
  • Joined: 30-October 10
  • Gender:Male
  • Simulator:ORTS
  • Country:

Posted 22 February 2024 - 11:18 PM

OK... I found a way to clean these up in TSRE by doing a sanity check to compare it's position with the object's position, and only keeping one JNosePosn which matches.

That's the fix I've been using in WorldFileHacker for years, and it's the same one that TSUtils & Route_Riter used if I recall. I can't think of any reason a JNodePosn wouldn't be the same as the object origin, especially since there's nowhere to define it being offset or elsewhere on the shape...

I see that the code for RunActivity still refers to it, but is it really necessary?...

#5 User is offline   joe_star 

  • Fireman
  • Group: Status: Active Member
  • Posts: 209
  • Joined: 16-January 13
  • Gender:Male
  • Simulator:MSTS
  • Country:

Posted 24 March 2024 - 08:34 AM

Nice. While it doesn't seem to impact OR much it does make a mess in Route Riter and caused some of my route mergers to crash midway

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users