Skip to content

Commit

Permalink
Fixed: some typos and errors in some cases
Browse files Browse the repository at this point in the history
Changed: Source now uses library explode and  implode if strings
Changed: Core ( center ) point is now cached inside the piece record.
  • Loading branch information
dvdvideo1234 committed Jan 17, 2016
1 parent 0774a62 commit 2d2ef31
Show file tree
Hide file tree
Showing 15 changed files with 387 additions and 238 deletions.
2 changes: 1 addition & 1 deletion data/trackassembly/dsv/cl_TRACKASSEMBLY_ADDITIONS.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ExportIntoFile( DSV ): 12/31/15 21:41:25 [ LUA ]
# ExportIntoFile( DSV ): 01/17/16 18:43:15 [ LUA ]
# Data settings: MODELBASE MODELADD ENTCLASS LINEID POSOFF ANGOFF MOVETYPE PHYSINIT DRSHADOW PHMOTION PHYSLEEP SETSOLID
TRACKASSEMBLY_ADDITIONS models/shinji85/train/rail_r_switch.mdl "models/shinji85/train/sw_lever.mdl" "buttonswitch" 1 "-100,125,0" "NULL" -1 -1 -1 -1 -1 -1
TRACKASSEMBLY_ADDITIONS models/shinji85/train/rail_r_switch.mdl "models/shinji85/train/rail_r_switcher1.mdl" "prop_dynamic" 2 "NULL" "NULL" 6 6 -1 1 1 6
Expand Down
2 changes: 1 addition & 1 deletion data/trackassembly/dsv/cl_TRACKASSEMBLY_PHYSPROPERTIES.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ExportIntoFile( DSV ): 12/31/15 21:41:25 [ LUA ]
# ExportIntoFile( DSV ): 01/17/16 18:43:15 [ LUA ]
# Data settings: TYPE LINEID NAME
TRACKASSEMBLY_PHYSPROPERTIES "Special" 1 "default"
TRACKASSEMBLY_PHYSPROPERTIES "Special" 2 "default_silent"
Expand Down
70 changes: 69 additions & 1 deletion data/trackassembly/dsv/cl_TRACKASSEMBLY_PIECES.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ExportIntoFile( DSV ): 12/31/15 21:41:25 [ LUA ]
# ExportIntoFile( DSV ): 01/17/16 18:43:15 [ LUA ]
# Data settings: MODEL TYPE NAME LINEID POINT ORIGIN ANGLE
TRACKASSEMBLY_PIECES "models/bobsters_trains/rails/2ft/misc/cross.mdl" "Bobster's two feet rails" "Cross" 1 "83,0,3.015" "83,0,3.015" "0,0,0"
TRACKASSEMBLY_PIECES "models/bobsters_trains/rails/2ft/misc/cross.mdl" "Bobster's two feet rails" "Cross" 2 "0.003,83,3.015" "0.003,83,3.015" "0,90,0"
Expand Down Expand Up @@ -144,6 +144,74 @@ TRACKASSEMBLY_PIECES "models/magtrains1ga/straight_1024.mdl" "Magnum's Rails" "S
TRACKASSEMBLY_PIECES "models/magtrains1ga/straight_1024.mdl" "Magnum's Rails" "Straight 1024" 2 "-512,0,-1" "-512,0,-1" "0,180,0"
TRACKASSEMBLY_PIECES "models/magtrains1ga/straight_2048.mdl" "Magnum's Rails" "Straight 2048" 1 "1024,0,-1" "1024,0,-1" "0,0,0"
TRACKASSEMBLY_PIECES "models/magtrains1ga/straight_2048.mdl" "Magnum's Rails" "Straight 2048" 2 "-1024,0,-1" "-1024,0,-1" "0,180,0"
TRACKASSEMBLY_PIECES "models/props/g_gauge/track/g_gauge_track_cross_128.mdl" "Mr.Train's G-Gauge" "Cross 128" 1 "64,0,1.516" "64,0,1.516" "0,0,0"
TRACKASSEMBLY_PIECES "models/props/g_gauge/track/g_gauge_track_cross_128.mdl" "Mr.Train's G-Gauge" "Cross 128" 2 "0,64,1.516" "0,64,1.516" "0,90,0"
TRACKASSEMBLY_PIECES "models/props/g_gauge/track/g_gauge_track_cross_128.mdl" "Mr.Train's G-Gauge" "Cross 128" 3 "-64,0,1.516" "-64,0,1.516" "0,-180,0"
TRACKASSEMBLY_PIECES "models/props/g_gauge/track/g_gauge_track_cross_128.mdl" "Mr.Train's G-Gauge" "Cross 128" 4 "0,-64,1.516" "0,-64,1.516" "0,-90,0"
TRACKASSEMBLY_PIECES "models/props/g_gauge/track/g_gauge_track_ramp_1.mdl" "Mr.Train's G-Gauge" "Ramp 1" 1 "16,0,1.516" "16,0,1.516" "0,0,0"
TRACKASSEMBLY_PIECES "models/props/g_gauge/track/g_gauge_track_ramp_1.mdl" "Mr.Train's G-Gauge" "Ramp 1" 2 "-16,0,3.016" "-16,0,3.016" "0,-180,0"
TRACKASSEMBLY_PIECES "models/props/g_gauge/track/g_gauge_track_ramp_2.mdl" "Mr.Train's G-Gauge" "Ramp 2" 1 "16,0,1.516" "16,0,1.516" "0,0,0"
TRACKASSEMBLY_PIECES "models/props/g_gauge/track/g_gauge_track_ramp_2.mdl" "Mr.Train's G-Gauge" "Ramp 2" 2 "-16,0,4.516" "-16,0,4.516" "0,-180,0"
TRACKASSEMBLY_PIECES "models/props/g_gauge/track/g_gauge_track_ramp_3.mdl" "Mr.Train's G-Gauge" "Ramp 3" 1 "16,0,1.516" "16,0,1.516" "0,0,0"
TRACKASSEMBLY_PIECES "models/props/g_gauge/track/g_gauge_track_ramp_3.mdl" "Mr.Train's G-Gauge" "Ramp 3" 2 "-16,0,6.016" "-16,0,6.016" "0,-180,0"
TRACKASSEMBLY_PIECES "models/props/g_gauge/track/g_gauge_track_s_left_22_5.mdl" "Mr.Train's G-Gauge" "S Left 22 5" 1 "256,39,1.516" "256,39,1.516" "0,0,0"
TRACKASSEMBLY_PIECES "models/props/g_gauge/track/g_gauge_track_s_left_22_5.mdl" "Mr.Train's G-Gauge" "S Left 22 5" 2 "-256,-39,1.516" "-256,-39,1.516" "0,-180,0"
TRACKASSEMBLY_PIECES "models/props/g_gauge/track/g_gauge_track_s_right_22_5.mdl" "Mr.Train's G-Gauge" "S Right 22 5" 1 "256,-39,1.516" "256,-39,1.516" "0,0,0"
TRACKASSEMBLY_PIECES "models/props/g_gauge/track/g_gauge_track_s_right_22_5.mdl" "Mr.Train's G-Gauge" "S Right 22 5" 2 "-256,39,1.516" "-256,39,1.516" "0,-180,0"
TRACKASSEMBLY_PIECES "models/props/g_gauge/track/g_gauge_track_straight_1024.mdl" "Mr.Train's G-Gauge" "Straight 1024" 1 "512,0,1.516" "512,0,1.516" "0,0,0"
TRACKASSEMBLY_PIECES "models/props/g_gauge/track/g_gauge_track_straight_1024.mdl" "Mr.Train's G-Gauge" "Straight 1024" 2 "-512,0,1.516" "-512,0,1.516" "0,-180,0"
TRACKASSEMBLY_PIECES "models/props/g_gauge/track/g_gauge_track_straight_128.mdl" "Mr.Train's G-Gauge" "Straight 128" 1 "64,0,1.516" "64,0,1.516" "0,0,0"
TRACKASSEMBLY_PIECES "models/props/g_gauge/track/g_gauge_track_straight_128.mdl" "Mr.Train's G-Gauge" "Straight 128" 2 "-64,0,1.516" "-64,0,1.516" "0,-180,0"
TRACKASSEMBLY_PIECES "models/props/g_gauge/track/g_gauge_track_straight_2048.mdl" "Mr.Train's G-Gauge" "Straight 2048" 1 "1024,0,1.516" "1024,0,1.516" "0,0,0"
TRACKASSEMBLY_PIECES "models/props/g_gauge/track/g_gauge_track_straight_2048.mdl" "Mr.Train's G-Gauge" "Straight 2048" 2 "-1024,0,1.516" "-1024,0,1.516" "0,-180,0"
TRACKASSEMBLY_PIECES "models/props/g_gauge/track/g_gauge_track_straight_256.mdl" "Mr.Train's G-Gauge" "Straight 256" 1 "128,0,1.516" "128,0,1.516" "0,0,0"
TRACKASSEMBLY_PIECES "models/props/g_gauge/track/g_gauge_track_straight_256.mdl" "Mr.Train's G-Gauge" "Straight 256" 2 "-128,0,1.516" "-128,0,1.516" "0,-180,0"
TRACKASSEMBLY_PIECES "models/props/g_gauge/track/g_gauge_track_straight_32.mdl" "Mr.Train's G-Gauge" "Straight 32" 1 "16,0,1.516" "16,0,1.516" "0,0,0"
TRACKASSEMBLY_PIECES "models/props/g_gauge/track/g_gauge_track_straight_32.mdl" "Mr.Train's G-Gauge" "Straight 32" 2 "-16,0,1.516" "-16,0,1.516" "0,-180,0"
TRACKASSEMBLY_PIECES "models/props/g_gauge/track/g_gauge_track_straight_512.mdl" "Mr.Train's G-Gauge" "Straight 512" 1 "256,0,1.516" "256,0,1.516" "0,0,0"
TRACKASSEMBLY_PIECES "models/props/g_gauge/track/g_gauge_track_straight_512.mdl" "Mr.Train's G-Gauge" "Straight 512" 2 "-256,0,1.516" "-256,0,1.516" "0,-180,0"
TRACKASSEMBLY_PIECES "models/props/g_gauge/track/g_gauge_track_straight_64.mdl" "Mr.Train's G-Gauge" "Straight 64" 1 "32,0,1.516" "32,0,1.516" "0,0,0"
TRACKASSEMBLY_PIECES "models/props/g_gauge/track/g_gauge_track_straight_64.mdl" "Mr.Train's G-Gauge" "Straight 64" 2 "-32,0,1.516" "-32,0,1.516" "0,-180,0"
TRACKASSEMBLY_PIECES "models/props/g_gauge/track/g_gauge_track_switch_1_left_1.mdl" "Mr.Train's G-Gauge" "Switch 1 Left 1" 1 "256,39,1.516" "256,39,1.516" "0,0,0"
TRACKASSEMBLY_PIECES "models/props/g_gauge/track/g_gauge_track_switch_1_left_1.mdl" "Mr.Train's G-Gauge" "Switch 1 Left 1" 2 "0,39,1.516" "0,39,1.516" "0,-180,0"
TRACKASSEMBLY_PIECES "models/props/g_gauge/track/g_gauge_track_switch_1_left_1.mdl" "Mr.Train's G-Gauge" "Switch 1 Left 1" 3 "-256,-39,1.516" "-256,-39,1.516" "0,-180,0"
TRACKASSEMBLY_PIECES "models/props/g_gauge/track/g_gauge_track_switch_1_left_2.mdl" "Mr.Train's G-Gauge" "Switch 1 Left 2" 1 "256,39,1.516" "256,39,1.516" "0,0,0"
TRACKASSEMBLY_PIECES "models/props/g_gauge/track/g_gauge_track_switch_1_left_2.mdl" "Mr.Train's G-Gauge" "Switch 1 Left 2" 2 "0,39,1.516" "0,39,1.516" "0,-180,0"
TRACKASSEMBLY_PIECES "models/props/g_gauge/track/g_gauge_track_switch_1_left_2.mdl" "Mr.Train's G-Gauge" "Switch 1 Left 2" 3 "-256,-39,1.516" "-256,-39,1.516" "0,-180,0"
TRACKASSEMBLY_PIECES "models/props/g_gauge/track/g_gauge_track_switch_1_right_1.mdl" "Mr.Train's G-Gauge" "Switch 1 Right 1" 1 "256,-39,1.516" "256,-39,1.516" "0,0,0"
TRACKASSEMBLY_PIECES "models/props/g_gauge/track/g_gauge_track_switch_1_right_1.mdl" "Mr.Train's G-Gauge" "Switch 1 Right 1" 2 "0,-39,1.516" "0,-39,1.516" "0,-180,0"
TRACKASSEMBLY_PIECES "models/props/g_gauge/track/g_gauge_track_switch_1_right_1.mdl" "Mr.Train's G-Gauge" "Switch 1 Right 1" 3 "-256,39,1.516" "-256,39,1.516" "0,-180,0"
TRACKASSEMBLY_PIECES "models/props/g_gauge/track/g_gauge_track_switch_1_right_2.mdl" "Mr.Train's G-Gauge" "Switch 1 Right 2" 1 "256,-39,1.516" "256,-39,1.516" "0,0,0"
TRACKASSEMBLY_PIECES "models/props/g_gauge/track/g_gauge_track_switch_1_right_2.mdl" "Mr.Train's G-Gauge" "Switch 1 Right 2" 2 "0,-39,1.516" "0,-39,1.516" "0,-180,0"
TRACKASSEMBLY_PIECES "models/props/g_gauge/track/g_gauge_track_switch_1_right_2.mdl" "Mr.Train's G-Gauge" "Switch 1 Right 2" 3 "-256,39,1.516" "-256,39,1.516" "0,-180,0"
TRACKASSEMBLY_PIECES "models/props/g_gauge/track/g_gauge_track_switch_2_left_1.mdl" "Mr.Train's G-Gauge" "Switch 2 Left 1" 1 "195.938,39,1.516" "195.938,39,1.516" "0,0,0"
TRACKASSEMBLY_PIECES "models/props/g_gauge/track/g_gauge_track_switch_2_left_1.mdl" "Mr.Train's G-Gauge" "Switch 2 Left 1" 2 "195.938,-39,1.516" "195.938,-39,1.516" "0,0,0"
TRACKASSEMBLY_PIECES "models/props/g_gauge/track/g_gauge_track_switch_2_left_1.mdl" "Mr.Train's G-Gauge" "Switch 2 Left 1" 3 "-195.937,-39,1.516" "-195.937,-39,1.516" "0,-180,0"
TRACKASSEMBLY_PIECES "models/props/g_gauge/track/g_gauge_track_switch_2_left_1.mdl" "Mr.Train's G-Gauge" "Switch 2 Left 1" 4 "-195.937,39,1.516" "-195.937,39,1.516" "0,-180,0"
TRACKASSEMBLY_PIECES "models/props/g_gauge/track/g_gauge_track_switch_2_left_2.mdl" "Mr.Train's G-Gauge" "Switch 2 Left 2" 1 "195.938,39,1.516" "195.938,39,1.516" "0,0,0"
TRACKASSEMBLY_PIECES "models/props/g_gauge/track/g_gauge_track_switch_2_left_2.mdl" "Mr.Train's G-Gauge" "Switch 2 Left 2" 2 "195.938,-39,1.516" "195.938,-39,1.516" "0,0,0"
TRACKASSEMBLY_PIECES "models/props/g_gauge/track/g_gauge_track_switch_2_left_2.mdl" "Mr.Train's G-Gauge" "Switch 2 Left 2" 3 "-195.937,-39,1.516" "-195.937,-39,1.516" "0,-180,0"
TRACKASSEMBLY_PIECES "models/props/g_gauge/track/g_gauge_track_switch_2_left_2.mdl" "Mr.Train's G-Gauge" "Switch 2 Left 2" 4 "-195.937,39,1.516" "-195.937,39,1.516" "0,-180,0"
TRACKASSEMBLY_PIECES "models/props/g_gauge/track/g_gauge_track_switch_2_right_1.mdl" "Mr.Train's G-Gauge" "Switch 2 Right 1" 1 "195.938,39,1.516" "195.938,39,1.516" "0,0,0"
TRACKASSEMBLY_PIECES "models/props/g_gauge/track/g_gauge_track_switch_2_right_1.mdl" "Mr.Train's G-Gauge" "Switch 2 Right 1" 2 "195.938,-39,1.516" "195.938,-39,1.516" "0,0,0"
TRACKASSEMBLY_PIECES "models/props/g_gauge/track/g_gauge_track_switch_2_right_1.mdl" "Mr.Train's G-Gauge" "Switch 2 Right 1" 3 "-195.937,-39,1.516" "-195.937,-39,1.516" "0,-180,0"
TRACKASSEMBLY_PIECES "models/props/g_gauge/track/g_gauge_track_switch_2_right_1.mdl" "Mr.Train's G-Gauge" "Switch 2 Right 1" 4 "-195.937,39,1.516" "-195.937,39,1.516" "0,-180,0"
TRACKASSEMBLY_PIECES "models/props/g_gauge/track/g_gauge_track_switch_2_right_2.mdl" "Mr.Train's G-Gauge" "Switch 2 Right 2" 1 "195.938,39,1.516" "195.938,39,1.516" "0,0,0"
TRACKASSEMBLY_PIECES "models/props/g_gauge/track/g_gauge_track_switch_2_right_2.mdl" "Mr.Train's G-Gauge" "Switch 2 Right 2" 2 "195.938,-39,1.516" "195.938,-39,1.516" "0,0,0"
TRACKASSEMBLY_PIECES "models/props/g_gauge/track/g_gauge_track_switch_2_right_2.mdl" "Mr.Train's G-Gauge" "Switch 2 Right 2" 3 "-195.937,-39,1.516" "-195.937,-39,1.516" "0,-180,0"
TRACKASSEMBLY_PIECES "models/props/g_gauge/track/g_gauge_track_switch_2_right_2.mdl" "Mr.Train's G-Gauge" "Switch 2 Right 2" 4 "-195.937,39,1.516" "-195.937,39,1.516" "0,-180,0"
TRACKASSEMBLY_PIECES "models/props/g_gauge/track/g_gauge_track_turn_left_22_5.mdl" "Mr.Train's G-Gauge" "Turn Left 22 5" 1 "263.75,248.25,1.516" "263.75,248.25,1.516" "0,0,0"
TRACKASSEMBLY_PIECES "models/props/g_gauge/track/g_gauge_track_turn_left_22_5.mdl" "Mr.Train's G-Gauge" "Turn Left 22 5" 2 "67.855,209.265,1.516" "67.855,209.265,1.516" "0,-157.5,0"
TRACKASSEMBLY_PIECES "models/props/g_gauge/track/g_gauge_track_turn_left_45.mdl" "Mr.Train's G-Gauge" "Turn Left 45" 1 "263.75,248.25,1.516" "263.75,248.25,1.516" "0,0,0"
TRACKASSEMBLY_PIECES "models/props/g_gauge/track/g_gauge_track_turn_left_45.mdl" "Mr.Train's G-Gauge" "Turn Left 45" 2 "-98.326,98.323,1.516" "-98.326,98.323,1.516" "0,-135,0"
TRACKASSEMBLY_PIECES "models/props/g_gauge/track/g_gauge_track_turn_left_90.mdl" "Mr.Train's G-Gauge" "Turn Left 90" 1 "263.75,248.25,1.516" "263.75,248.25,1.516" "0,0,0"
TRACKASSEMBLY_PIECES "models/props/g_gauge/track/g_gauge_track_turn_left_90.mdl" "Mr.Train's G-Gauge" "Turn Left 90" 2 "-248.25,-263.75,1.516" "-248.25,-263.75,1.516" "0,-90,0"
TRACKASSEMBLY_PIECES "models/props/g_gauge/track/g_gauge_track_turn_right_22_5.mdl" "Mr.Train's G-Gauge" "Turn Right 22 5" 1 "263.75,-248.25,1.516" "263.75,-248.25,1.516" "0,0,0"
TRACKASSEMBLY_PIECES "models/props/g_gauge/track/g_gauge_track_turn_right_22_5.mdl" "Mr.Train's G-Gauge" "Turn Right 22 5" 2 "67.872,-209.299,1.516" "67.872,-209.299,1.516" "0,157.5,0"
TRACKASSEMBLY_PIECES "models/props/g_gauge/track/g_gauge_track_turn_right_45.mdl" "Mr.Train's G-Gauge" "Turn Right 45" 1 "263.75,-248.25,1.516" "263.75,-248.25,1.516" "0,0,0"
TRACKASSEMBLY_PIECES "models/props/g_gauge/track/g_gauge_track_turn_right_45.mdl" "Mr.Train's G-Gauge" "Turn Right 45" 2 "-98.302,-98.302,1.516" "-98.302,-98.302,1.516" "0,135,0"
TRACKASSEMBLY_PIECES "models/props/g_gauge/track/g_gauge_track_turn_right_90.mdl" "Mr.Train's G-Gauge" "Turn Right 90" 1 "263.75,-248.25,1.516" "263.75,-248.25,1.516" "0,0,0"
TRACKASSEMBLY_PIECES "models/props/g_gauge/track/g_gauge_track_turn_right_90.mdl" "Mr.Train's G-Gauge" "Turn Right 90" 2 "-248.25,263.75,1.516" "-248.25,263.75,1.516" "0,90,0"
TRACKASSEMBLY_PIECES "models/props/m_gauge/track/m_gauge_128_cross.mdl" "Mr.Train's M-Gauge" "Cross 128" 1 "64,0,0.016" "64,0,0.016" "0,0,0"
TRACKASSEMBLY_PIECES "models/props/m_gauge/track/m_gauge_128_cross.mdl" "Mr.Train's M-Gauge" "Cross 128" 2 "0,64,0.016" "0,64,0.016" "0,90,0"
TRACKASSEMBLY_PIECES "models/props/m_gauge/track/m_gauge_128_cross.mdl" "Mr.Train's M-Gauge" "Cross 128" 3 "-64,0,0.016" "-64,0,0.016" "0,-180,0"
Expand Down
2 changes: 1 addition & 1 deletion data/trackassembly/dsv/sv_TRACKASSEMBLY_ADDITIONS.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ExportIntoFile( DSV ): 12/31/15 21:41:32 [ LUA ]
# ExportIntoFile( DSV ): 01/17/16 17:32:16 [ LUA ]
# Data settings: MODELBASE MODELADD ENTCLASS LINEID POSOFF ANGOFF MOVETYPE PHYSINIT DRSHADOW PHMOTION PHYSLEEP SETSOLID
TRACKASSEMBLY_ADDITIONS models/shinji85/train/rail_r_switch.mdl "models/shinji85/train/sw_lever.mdl" "buttonswitch" 1 "-100,125,0" "NULL" -1 -1 -1 -1 -1 -1
TRACKASSEMBLY_ADDITIONS models/shinji85/train/rail_r_switch.mdl "models/shinji85/train/rail_r_switcher1.mdl" "prop_dynamic" 2 "NULL" "NULL" 6 6 -1 1 1 6
Expand Down
2 changes: 1 addition & 1 deletion data/trackassembly/dsv/sv_TRACKASSEMBLY_PHYSPROPERTIES.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ExportIntoFile( DSV ): 12/31/15 21:41:32 [ LUA ]
# ExportIntoFile( DSV ): 01/17/16 17:32:16 [ LUA ]
# Data settings: TYPE LINEID NAME
TRACKASSEMBLY_PHYSPROPERTIES "Special" 1 "default"
TRACKASSEMBLY_PHYSPROPERTIES "Special" 2 "default_silent"
Expand Down
Loading

0 comments on commit 2d2ef31

Please sign in to comment.