1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
Dismiss Notice
Like RaceDepartment on Facebook.

xml editing failed

Discussion in 'Bob's Track Builder' started by dampire, Apr 11, 2009.

  1. Ok so I had 85 guard rails (walls) that I duplicated renumbered, took the last number off the randomseed, made them not render but collide, and replaced the surface for a straight line.

    I also took the original walls and made them render but not collide.

    Well some how it failed and non of the 85 walls duplicated are colliding.

    I made plane wall to compare the two entries and it seems identical where it needs to be. (code bellow)

    So I was wondering what I missed? (yes wall count was updated)

    Wall that doesnt collide but should
    Code:
     
    <Wall RandomSeed="34173019">
          <Name>Wall169</Name>
          <Renderable>False</Renderable>
          <nodes count="2">
            <OnlyOneNodeSelected>1</OnlyOneNodeSelected>
            <LineType>BezierSpline</LineType>
            <node NodeId="0">
              <Position x="845.1208" y="937.542" z="789.2949" />
              <ControlPoints AngleXZ="-0.892694" AngleY="0.05529446" EntryDistance="5.525157" ExitDistance="3.268974" />
            </node>
            <node NodeId="1" Selected="True">
              <Position x="854.1086" y="936.7393" z="779.1723" />
              <ControlPoints AngleXZ="-0.6346516" AngleY="0.05578382" EntryDistance="2.609777" ExitDistance="4.954647" />
            </node>
          </nodes>
          <surfaces count="1">
            <surface SurfaceId="0" Visible="True">
              <StartNode>0</StartNode>
              <StartPercentage>0</StartPercentage>
              <Name>Surface1</Name>
              <SetShape>True</SetShape>
              <SurfaceShape Points="2">
                <Point Selected="True" Grounded="True">
                  <Position x="0" y="0.65" z="0" />
                </Point>
                <Point Selected="True" Grounded="True">
                  <Position x="0" y="-0.01" z="0" />
                </Point>
              </SurfaceShape>
              <SetMaterial>True</SetMaterial>
              <SurfaceMaterials>
                <SurfaceMaterial MaterialPath="Default\Materials\Wall\Cement\Cement001" Selected="False">
                  <StartPoint>0</StartPoint>
                  <EndPoint>1</EndPoint>
                  <MaterialApplicationType>PerMeter</MaterialApplicationType>
                  <PerMeterCoverage>12</PerMeterCoverage>
                  <FitNeatly>True</FitNeatly>
                  <texture_coordinate>
                    <FlippedHorizontal>1</FlippedHorizontal>
                    <FlippedVertical>1</FlippedVertical>
                    <Angle>0</Angle>
                    <scale x="1" y="1" />
                    <offset x="0" y="0" />
                  </texture_coordinate>
                </SurfaceMaterial>
              </SurfaceMaterials>
              <PanelLength>1</PanelLength>
              <CloudInfluence>1</CloudInfluence>
            </surface>
          </surfaces>
        </Wall>
    
    Wall that I created to check against the xml entries not working that works.
    Code:
        <Wall RandomSeed="380778644">
          <Name>Wall170</Name>
          <Renderable>False</Renderable>
          <nodes count="3">
            <OnlyOneNodeSelected>0</OnlyOneNodeSelected>
            <LineType>Straight</LineType>
            <node NodeId="0" Selected="True">
              <Position x="-319.1711" y="1245.338" z="1128.024" />
              <ControlPoints AngleXZ="0" AngleY="0" EntryDistance="0" ExitDistance="0" />
            </node>
            <node NodeId="1">
              <Position x="-318.0844" y="1245.332" z="1127.601" />
              <ControlPoints AngleXZ="0" AngleY="0" EntryDistance="0" ExitDistance="0" />
            </node>
            <node NodeId="2">
              <Position x="-311.2812" y="1245.296" z="1124.871" />
              <ControlPoints AngleXZ="0" AngleY="0" EntryDistance="0" ExitDistance="0" />
            </node>
          </nodes>
          <surfaces count="1">
            <surface SurfaceId="0" Visible="True">
              <StartNode>0</StartNode>
              <StartPercentage>0</StartPercentage>
              <Name>Surface1</Name>
              <SetShape>True</SetShape>
              <SurfaceShape Points="2">
                <Point Selected="False">
                  <Position x="-0.006666653" y="0.6715555" z="0" />
                </Point>
                <Point Selected="True">
                  <Position x="-0.003999999" y="-0.03466669" z="0" />
                </Point>
              </SurfaceShape>
              <SetMaterial>True</SetMaterial>
              <SurfaceMaterials>
                <SurfaceMaterial MaterialPath="Default\Materials\Wall\Cement\Cement001" Selected="True">
                  <StartPoint>0</StartPoint>
                  <EndPoint>1</EndPoint>
                  <MaterialApplicationType>PerMeter</MaterialApplicationType>
                  <PerMeterCoverage>12</PerMeterCoverage>
                  <FitNeatly>True</FitNeatly>
                  <texture_coordinate>
                    <FlippedHorizontal>1</FlippedHorizontal>
                    <FlippedVertical>1</FlippedVertical>
                    <Angle>0</Angle>
                    <scale x="1" y="1" />
                    <offset x="0" y="0" />
                  </texture_coordinate>
                </SurfaceMaterial>
              </SurfaceMaterials>
              <PanelLength>5</PanelLength>
              <CloudInfluence>1</CloudInfluence>
            </surface>
          </surfaces>
        </Wall>
    
     
  2. 1 hour to edit the xml file . . . . 2.3 minutes from the start of irohazaka going downhill till not realizing the guardrails dont work halfway down the track lol

    about 2 or 3 hours to readd working walls in BTB


    problem not solved by resolved.
     
  3. Brendon Pywell

    Brendon Pywell
    Bob's Track Builder

  4. I have manually edited the xml before and saved a lot of time.

    The first time I did it was to unify all the shapes for the rails I was making. Took about 30 minutes to do . . . idk how long or accurate it would have been to do it manually in BTB.


    The code looks right idk why it wouldn't work unless there is a size requirement for the randomseed that would cause them not to work ? idk.

    in the scn they even have the right requirements . . .

    And yeah I always save a back up :) several of them . . .