Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Configuration Files Help Edited entities come invisible in game?
vampirexevipex Offline
Junior Member

Posts: 16
Threads: 5
Joined: Jan 2013
Reputation: 0
#1
Question  Edited entities come invisible in game?

So i edited the pine static object and made it an entity so the character only collides with the trunk, not the leaves and use them as a stair and to save some time and not edit more than 200 trees and put them as uncollidable and put a block box in the trunk. Well after i did that i tested the model in the model and level editor and came out fine and looks good, but, when i test the game, the entities won't show up. I can't seem to find a solution >:c so can anyone help?

Entity file:
Spoiler below!

<Entity>
    <EditorSession>
        <Performance CamClipPlanes="0.05 1000" LightsActive="true" PSActive="true" ShowFog="true" ShowSkybox="true" WorldReflection="true" />
        <ViewportConfig BGColor="0.2 0.2 0.2 1" GAmbientLight="true" GPointLight="true" GridSnap="false" GridSnapSeparation="0.25" SelectedViewport="3" UsingEnlargedViewport="true">
            <Viewport CameraPosition="0 0 180" CameraTarget="0 0 0" CameraZoom="0" GridHeight="0" GridPlane="2" Preset="0" RenderMode="1" ShowAxes="true" ShowGrid="true" UsingLTCam="false" />
            <Viewport CameraPosition="180 0 0" CameraTarget="0 0 0" CameraZoom="0" GridHeight="0" GridPlane="0" Preset="1" RenderMode="1" ShowAxes="true" ShowGrid="true" UsingLTCam="false" />
            <Viewport CameraPosition="0 180 0" CameraTarget="0 0 0" CameraZoom="0" GridHeight="0" GridPlane="1" Preset="2" RenderMode="1" ShowAxes="true" ShowGrid="true" UsingLTCam="false" />
            <Viewport CameraPosition="-0.877465 1.49199 -5.30888" CameraTarget="0 0 0" CameraZoom="2.19213" GridHeight="0" GridPlane="1" Preset="3" RenderMode="0" ShowAxes="true" ShowGrid="true" UsingLTCam="false" />
        </ViewportConfig>
    </EditorSession>
    <ModelData>
        <Entities />
        <Mesh Filename="static_objects/outside/tree/pine.dae">
            <SubMesh Active="true" ID="0" Material="" Name="pine_tree" Rotation="0 0 0" Scale="1 1 1" SubMeshID="0" Tag="" WorldPos="0 0 0" />
        </Mesh>
        <Bones />
        <Shapes>
            <BodyShape Active="true" ID="1" Name="Shape_1" RelativeRotation="3.14159 0 3.14159" RelativeScale="0.25 7.8 0.25" RelativeTranslation="0 0 0" Rotation="3.14159 0 3.14159" Scale="0.25 7.8 0.25" ShapeType="Cylinder" Tag="" WorldPos="0 3.83398 0" />
        </Shapes>
        <Bodies>
            <Body Active="true" AngularDamping="0" BlocksSound="false" BuoyancyDensityMul="1" CanAttachCharacter="true" CollideCharacter="true" CollideNonCharacter="true" ContinuousCollision="true" HasGravity="false" ID="2" LinearDamping="0" Mass="1" Material="Wood_Heavy" MaxAngularSpeed="0" MaxLinearSpeed="0" Name="Body_1" PushedByCharacterGravity="false" Rotation="0 0 0" Scale="1 1 1" Tag="" UseSurfaceEffects="true" Volatile="false" WorldPos="0 3.83398 0">
                <Shape ID="1" />
            </Body>
        </Bodies>
        <Joints />
        <Animations />
    </ModelData>
    <UserDefinedVariables EntitySubType="Static" EntityType="Object">
        <Var Name="Health" Value="100" />
        <Var Name="Toughness" Value="0" />
        <Var Name="MaxFocusDistance" Value="0" />
        <Var Name="MainPhysicsBody" Value="" />
        <Var Name="ShowMesh" Value="true" />
        <Var Name="DissolveOnDestruction" Value="false" />
        <Var Name="DissolveTime" Value="1.0" />
        <Var Name="EffectsOnSound" Value="" />
        <Var Name="EffectsOffSound" Value="" />
        <Var Name="EffectsOnTime" Value="1" />
        <Var Name="EffectsOffTime" Value="1" />
        <Var Name="EffectsOffLightColor" Value="0 0 0 0" />
        <Var Name="EffectsOffLightRadius" Value="-1" />
        <Var Name="ShowHints" Value="true" />
        <Var Name="StaticMoveCheckCollision" Value="false" />
        <Var Name="StaticMoveStartSound" Value="" />
        <Var Name="StaticMoveStopSound" Value="" />
        <Var Name="StaticMoveLoopSound" Value="" />
        <Var Name="RandomizeAnimationStart" Value="true" />
        <Var Name="BreakActive" Value="false" />
        <Var Name="BreakDestroyJoints" Value="false" />
        <Var Name="BreakMinEnergy" Value="100" />
        <Var Name="BreakEntity" Value="" />
        <Var Name="BreakEntityAlignBody" Value="" />
        <Var Name="BreakSound" Value="" />
        <Var Name="BreakParticleSystem" Value="" />
        <Var Name="BreakImpulse" Value="4" />
        <Var Name="HitDamageAmount" Value="5" />
        <Var Name="HitDamageStrength" Value="1" />
        <Var Name="MinHitDamageSpeed" Value="3" />
        <Var Name="LifeLength" Value="0" />
        <Var Name="IsFood" Value="false" />
    </UserDefinedVariables>
</Entity>


Dem thingz shall be happening, dem days shall be counted...
TEH END!
03-09-2013, 08:06 PM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#2
RE: Edited entities come invisible in game?

You didn't attach the mesh to the entity body.

Tutorials: From Noob to Pro
03-09-2013, 08:18 PM
Website Find
vampirexevipex Offline
Junior Member

Posts: 16
Threads: 5
Joined: Jan 2013
Reputation: 0
#3
RE: Edited entities come invisible in game?

ORLY? .__. Thanks! XD

Dem thingz shall be happening, dem days shall be counted...
TEH END!
03-09-2013, 09:02 PM
Find
NaxEla Offline
Senior Member

Posts: 415
Threads: 5
Joined: Dec 2012
Reputation: 28
#4
RE: Edited entities come invisible in game?

Btw, The chaser made something exactly like this, so you can just download his if you want to. You can download it here: http://www.frictionalgames.com/forum/thread-20132.html

In Ruins [WIP]
03-09-2013, 09:56 PM
Find




Users browsing this thread: 1 Guest(s)