Frictional Games Forum (read-only)
[CONFIG] Edited entities come invisible in game? - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: [CONFIG] Edited entities come invisible in game? (/thread-20676.html)



Edited entities come invisible in game? - vampirexevipex - 03-09-2013

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!

Code:
<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>




RE: Edited entities come invisible in game? - Your Computer - 03-09-2013

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


RE: Edited entities come invisible in game? - vampirexevipex - 03-09-2013

ORLY? .__. Thanks! XD


RE: Edited entities come invisible in game? - NaxEla - 03-09-2013

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