Race Track Builder

Race Track Builder

Track Width
Sorry for the nooby question but how do I edit the width of the track because I'm trying to make a kart track and the standard width is too wide
< >
Zobrazeno 14 z 4 komentářů
Use the cross-sections to edit the road width and check out brendon his youtube for tutorials https://www.youtube.com/watch?v=ZB9YBDfm7AM
Naposledy upravil lux3y; 29. kvě. 2017 v 3.41
lux3y původně napsal:
Use the cross-sections to edit the road width and check out brendon his youtube for tutorials https://www.youtube.com/watch?v=ZB9YBDfm7AM

Thanks very much
You can also modify the .xml file for the track you are placing down if you want the road you are creating to already be a specific width.

For example, I was making a gokart track and needed the track to be 7.1meters wide instead of the default 16(i think)meters wide.

Here's what I did:
Modified the TarmacLightRoughAC.xml file inside the .zip (with 7zip / notepad) located here:
"C:/Users/YOURUSERNAME/Documents/RaceTrackBuilder/YOURPROJECTNAME/XPacks/Raceday.zip/CrossSections/Road/TarmacLightRoughAC.xml"

to the following:

<?xml version="1.0"?> <CrossSection Name="" Path="Raceday\CrossSections\Road\TarmacLightRoughAC" ForRoad="True" RollStrength="0.1" PanelLength="1"> <SurfaceShape RoadLeft="2" RoadRight="18" Points="21"> <Point Selected="False" Grounded="0.75"> <Position x="-7.05" y="0" z="0" /> </Point> <Point Selected="False" Grounded="0.35"> <Position x="-5.3" y="0" z="0" /> </Point> <Point Selected="False"> <Position x="-3.55" y="0" z="0" /> <Randomness x="0" y="0" z="0" /> </Point> <Point Selected="False"> <Position x="-3.10625" y="0" z="0" /> <Randomness x="0" y="0" z="0" /> </Point> <Point Selected="False"> <Position x="-2.6625" y="0" z="0" /> <Randomness x="0" y="0" z="0" /> </Point> <Point Selected="False"> <Position x="-2.21875" y="0" z="0" /> <Randomness x="0" y="0" z="0" /> </Point> <Point Selected="False"> <Position x="-1.775" y="0" z="0" /> <Randomness x="0" y="0" z="0" /> </Point> <Point Selected="False"> <Position x="-1.33125" y="0" z="0" /> <Randomness x="0" y="0" z="0" /> </Point> <Point Selected="False"> <Position x="-0.8875" y="0" z="0" /> <Randomness x="0" y="0" z="0" /> </Point> <Point Selected="False"> <Position x="-0.44375" y="0" z="0" /> <Randomness x="0" y="0" z="0" /> </Point> <Point Selected="False"> <Position x="0" y="0" z="0" /> <Randomness x="0" y="0" z="0" /> </Point> <Point Selected="False"> <Position x="0.44375" y="0" z="0" /> <Randomness x="0" y="0" z="0" /> </Point> <Point Selected="False"> <Position x="0.8875" y="0" z="0" /> <Randomness x="0" y="0" z="0" /> </Point> <Point Selected="False"> <Position x="1.33125" y="0" z="0" /> <Randomness x="0" y="0" z="0" /> </Point> <Point Selected="False"> <Position x="1.775" y="0" z="0" /> <Randomness x="0" y="0" z="0" /> </Point> <Point Selected="False"> <Position x="2.21875" y="0" z="0" /> <Randomness x="0" y="0" z="0" /> </Point> <Point Selected="True"> <Position x="2.6625" y="0" z="0" /> <Randomness x="0" y="0" z="0" /> </Point> <Point Selected="False"> <Position x="3.10625" y="0" z="0" /> <Randomness x="0" y="0" z="0" /> </Point> <Point Selected="False"> <Position x="3.55" y="0" z="0" /> <Randomness x="0" y="0" z="0" /> </Point> <Point Selected="False" Grounded="0.35"> <Position x="5.3" y="0" z="0" /> <Randomness x="0" y="0" z="0" /> </Point> <Point Selected="False" Grounded="0.75"> <Position x="7.05" y="0" z="0" /> <Randomness x="0" y="0" z="0" /> </Point> </SurfaceShape> <SurfaceMaterials> <SurfaceMaterial UseTerrainAsMaterial="True"> <StartPoint>0</StartPoint> <EndPoint>2</EndPoint> <texture_coordinate> <Angle>0</Angle> <scale x="1" y="1" /> <offset x="0" y="0" /> </texture_coordinate> </SurfaceMaterial> <SurfaceMaterial MaterialPath="Road\TarmacLightAC"> <PerMeterCoverage>15</PerMeterCoverage> <ApplicationType>PerMeter</ApplicationType> <StartPoint>2</StartPoint> <EndPoint>18</EndPoint> <texture_coordinate> <Angle>0</Angle> <scale x="1" y="1" /> <offset x="0" y="0" /> </texture_coordinate> </SurfaceMaterial> <SurfaceMaterial UseTerrainAsMaterial="True"> <StartPoint>18</StartPoint> <EndPoint>20</EndPoint> <texture_coordinate> <Angle>0</Angle> <scale x="1" y="1" /> <offset x="0" y="0" /> </texture_coordinate> </SurfaceMaterial> </SurfaceMaterials> </CrossSection>

And then when i placed the light rough road it was the correct width.

note that the important sections to change to modify the width are the "Position X" value in these lines:
</Point>
<Point Selected="False">
<Position x="-0.8875" y="0" z="0" />
<Randomness x="0" y="0" z="0" />

basically this is saying how far from the center each control point is in the cross section.
For example if there are 7 "points" in your cross section (as listed here: <SurfaceShape Points="7">)
and you want a 10 meter wide road,
then you have to have 7 points distributed evenly so that the road is 10 meters wide. The outside 2 points on both sides of the road are used for the terrain blending, so you're focusing mostly on the other points.

Example
Point (ouside, terrain)(any value you want, -7 for example)
Point (terrain) (any value you want, -6 for example)
Point (edge of road) -5
Point (center of road) 0
Point (edge of road) 5
Point (terrain) (any value you want, 6 for example)
Point (ouside, terrain)(any value you want, 7 for example)


If you had 9 points and wanted a 10m wide road:

Example
Point (ouside, terrain)(any value you want)
Point (terrain) (any value you want)
Point (edge of road) -5
Point -2.5
Point (center of road) 0
Point 2.5
Point (edge of road) 5
Point (terrain) (any value you want)
Point (ouside, terrain)(any value you want)

Note that when making the track considerably thinner or thicker, it can make the texture streched.
Because I made the track less than half the width, I had to modify the "PerMeterCoverage" to less than half the value (from 35 to 15):
<PerMeterCoverage>15</PerMeterCoverage>
Or you could just load Xpacker and move the points closer together for that cross section.
< >
Zobrazeno 14 z 4 komentářů
Na stránku: 1530 50

Datum zveřejnění: 28. kvě. 2017 v 12.03
Počet příspěvků: 4