Game Development Community

TX 3D Builder open beta bug: error loading scene

by Andrew Douglas · in Torque X 2D · 08/11/2008 (5:09 pm) · 2 replies

Created the 3d starter game. Added a sphere and a box to the default scene and was playing around with their properties. Tried to save and then reload the scene and now whenever I load the scene I get a hard crash. Here's the scene file - split into two posts at least :(

<?xml version="1.0" encoding="UTF-8"?>
<TorqueSceneData>
  <Version>1.0</Version>
  <SceneData>
    <ObjectTypeDeclaration>
      <LockTypes>true</LockTypes>
      <ObjectTypes />
    </ObjectTypeDeclaration>
    <SceneGraph type="GarageGames.Torque.T3D.T3DSceneGraph" name="SceneGraph" />
  </SceneData>
  <Materials>
    <TerrainDetailMaterial type="GarageGames.Torque.Materials.DetailMaterial" name="TerrainDetailMaterial">
      <TextureFilename>data/terrains/SandDetail01</TextureFilename>
      <DetailTextureRepeat>256</DetailTextureRepeat>
      <DetailDistance>50</DetailDistance>
      <EffectFilename>DetailEffect</EffectFilename>
      <IsWireframe>false</IsWireframe>
      <IsReflective>false</IsReflective>
      <IsRefractive>false</IsRefractive>
      <IsTranslucent>false</IsTranslucent>
      <IsAdditive>false</IsAdditive>
    </TerrainDetailMaterial>
    <Material1 type="GarageGames.Torque.Materials.SimpleMaterial" name="Material1">
      <TextureFilename>C:\Users\Andrew\Documents\Visual Studio 2005\Projects\Whirled\Whirled\Game\data\terrains\SandDetail01.png</TextureFilename>
      <Opacity>1</Opacity>
      <IsColorBlended>false</IsColorBlended>
      <IsCopyPass>false</IsCopyPass>
      <EffectFilename>SimpleEffect</EffectFilename>
      <IsWireframe>false</IsWireframe>
      <IsReflective>false</IsReflective>
      <IsRefractive>false</IsRefractive>
      <IsTranslucent>false</IsTranslucent>
      <IsAdditive>false</IsAdditive>
    </Material1>
  </Materials>
  <Objects>
    <RigidCollisionManager type="GarageGames.Torque.T3D.RigidCollision.RigidCollisionManager" name="RigidManager">
      <MaxUpdateSetp>0.01</MaxUpdateSetp>
      <Pool>false</Pool>
      <PoolWithComponents>false</PoolWithComponents>
      <IsTemplate>false</IsTemplate>
      <IsPersistent>false</IsPersistent>
      <Notched>false</Notched>
    </RigidCollisionManager>
    <Sky type="GarageGames.Torque.T3D.Sky" name="Sky">
      <Visible>true</Visible>
      <SkyDistance>5</SkyDistance>
      <Sides>
        <string>data\skies\front</string>
        <string>data\skies\right</string>
        <string>data\skies\back</string>
        <string>data\skies\left</string>
        <string>data\skies\top</string>
        <string>data\skies\bottom</string>
      </Sides>
      <RenderBottom>true</RenderBottom>
      <Pool>false</Pool>
      <PoolWithComponents>false</PoolWithComponents>
      <IsTemplate>false</IsTemplate>
      <IsPersistent>false</IsPersistent>
      <Notched>false</Notched>
    </Sky>
    <TorqueObject type="GarageGames.Torque.Core.TorqueObject" name="Camera">
      <Components>
        <CameraComponent type="GarageGames.Torque.T3D.FreeCameraComponent" name="CameraComponent" />
        <T3DSceneComponent type="GarageGames.Torque.T3D.T3DSceneComponent" name="">
          <UseOwnerObjectType>true</UseOwnerObjectType>
          <Visible>true</Visible>
          <VisibilityLevel>1</VisibilityLevel>
          <Position>
            <X>1024</X>
            <Y>1014</Y>
            <Z>300</Z>
          </Position>
          <Rotation>
            <X>0</X>
            <Y>0</Y>
            <Z>0</Z>
            <W>1</W>
          </Rotation>
          <Scale>
            <X>1</X>
            <Y>1</Y>
            <Z>1</Z>
          </Scale>
        </T3DSceneComponent>
      </Components>
      <Pool>false</Pool>
      <PoolWithComponents>false</PoolWithComponents>
      <IsTemplate>false</IsTemplate>
      <IsPersistent>false</IsPersistent>
      <Notched>false</Notched>
    </TorqueObject>

#1
08/11/2008 (5:09 pm)
<Terrain type="GarageGames.Torque.T3D.XTerrain" name="Terrain">
      <Components>
        <T3DSceneComponent type="GarageGames.Torque.T3D.T3DSceneComponent" name="">
          <UseOwnerObjectType>true</UseOwnerObjectType>
          <Visible>true</Visible>
          <VisibilityLevel>1</VisibilityLevel>
          <Position>
            <X>0</X>
            <Y>0</Y>
            <Z>0</Z>
          </Position>
          <Rotation>
            <X>0</X>
            <Y>0</Y>
            <Z>0</Z>
            <W>1</W>
          </Rotation>
          <Scale>
            <X>1</X>
            <Y>1</Y>
            <Z>1</Z>
          </Scale>
        </T3DSceneComponent>
        <T3DRigidComponent type="GarageGames.Torque.T3D.T3DRigidComponent" name="">
          <GravityScale>0</GravityScale>
          <Mass>0</Mass>
          <Kinetic>true</Kinetic>
          <Immovable>true</Immovable>
          <Velocity>
            <X>0</X>
            <Y>0</Y>
            <Z>0</Z>
          </Velocity>
          <RotationScale>1</RotationScale>
          <ResolveCollisions>true</ResolveCollisions>
          <AnimateCollisionOffsets>false</AnimateCollisionOffsets>
          <RenderCollisionBounds>false</RenderCollisionBounds>
        </T3DRigidComponent>
      </Components>
      <Position>
        <X>1028</X>
        <Y>1028</Y>
        <Z>0</Z>
      </Position>
      <HorizontalScale>8</HorizontalScale>
      <VerticalScale>1</VerticalScale>
      <Scale>
        <X>8</X>
        <Y>8</Y>
        <Z>1</Z>
      </Scale>
      <Repeat>true</Repeat>
      <RepeatX>true</RepeatX>
      <RepeatY>true</RepeatY>
      <Visible>true</Visible>
      <Data type="GarageGames.Torque.T3D.TGETerrainData">
        <TerrainFilename>data/terrains/terrain.ter</TerrainFilename>
        <LightMapFilename>data/terrains\lightmap.png</LightMapFilename>
        <TexturePathSubstitution>data/terrains</TexturePathSubstitution>
        <DetailMaterial>
        </DetailMaterial>
      </Data>
      <ViewError>2</ViewError>
      <LODError>0.5</LODError>
      <LevelZeroError>0</LevelZeroError>
      <Pool>false</Pool>
      <PoolWithComponents>false</PoolWithComponents>
      <IsTemplate>false</IsTemplate>
      <IsPersistent>false</IsPersistent>
      <Notched>false</Notched>
    </Terrain>
<TorqueObject type="GarageGames.Torque.Core.TorqueObject" name="TorqueObject_32115247">
      <Components>
        <T3DSceneComponent type="GarageGames.Torque.T3D.T3DSceneComponent" name="">
          <SceneGroup>Sphere</SceneGroup>
          <UseOwnerObjectType>true</UseOwnerObjectType>
          <Visible>true</Visible>
          <VisibilityLevel>1</VisibilityLevel>
          <Position>
            <X>1024.101</X>
            <Y>1024</Y>
            <Z>298.8535</Z>
          </Position>
          <Rotation>
            <X>4.544996E-06</X>
            <Y>-2.95696E-19</Y>
            <Z>-1.113777E-15</Z>
            <W>0.6123725</W>
          </Rotation>
          <Scale>
            <X>-0.625</X>
            <Y>-0.875</Y>
            <Z>0.75</Z>
          </Scale>
        </T3DSceneComponent>
        <T3DSphere type="GarageGames.Torque.T3D.T3DSphere" name="">
          <Radius>2</Radius>
          <Color>
            <X>0</X>
            <Y>0</Y>
            <Z>0</Z>
            <W>0</W>
          </Color>
          <IsTranslucent>false</IsTranslucent>
          <SceneGroupName>Sphere</SceneGroupName>
        </T3DSphere>
      </Components>
      <Pool>false</Pool>
      <PoolWithComponents>false</PoolWithComponents>
      <IsTemplate>false</IsTemplate>
      <IsPersistent>false</IsPersistent>
      <Notched>false</Notched>
    </TorqueObject>
    <TorqueObject type="GarageGames.Torque.Core.TorqueObject" name="TorqueObject_53540541">
      <Components>
        <T3DSceneComponent type="GarageGames.Torque.T3D.T3DSceneComponent" name="">
          <SceneGroup>Box</SceneGroup>
          <UseOwnerObjectType>true</UseOwnerObjectType>
          <Visible>true</Visible>
          <VisibilityLevel>1</VisibilityLevel>
          <Position>
            <X>1022.362</X>
            <Y>1020.107</Y>
            <Z>299.9755</Z>
          </Position>
          <Rotation>
            <X>0</X>
            <Y>0</Y>
            <Z>0</Z>
            <W>1</W>
          </Rotation>
          <Scale>
            <X>-0.125</X>
            <Y>1.875</Y>
            <Z>-0.125</Z>
          </Scale>
        </T3DSceneComponent>
        <T3DBox type="GarageGames.Torque.T3D.T3DBox" name="special">
          <Size>
            <X>2</X>
            <Y>2</Y>
            <Z>2</Z>
          </Size>
          <Color>
            <X>0</X>
            <Y>0</Y>
            <Z>255</Z>
            <W>25</W>
          </Color>
          <IsTranslucent>false</IsTranslucent>
          <SceneGroupName>Box</SceneGroupName>
          <Name>special</Name>
        </T3DBox>
      </Components>
      <Pool>false</Pool>
      <PoolWithComponents>false</PoolWithComponents>
      <IsTemplate>false</IsTemplate>
      <IsPersistent>false</IsPersistent>
      <Notched>false</Notched>
    </TorqueObject>
  </Objects>
</TorqueSceneData>
#2
08/11/2008 (6:16 pm)
The Boxes, Spheres, and Planes are not exposed as public classes in Torque X 2.0. If you have the Torque X Pro version, you can manually set these classes as public. In the next release of Torque X (which should be really soon), these classes will be made public.

John K.