Frictional Games Forum (read-only)
[LVL ED] "Planes" doesn't save correctly using custom material in the "Level Editor" - 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: [LVL ED] "Planes" doesn't save correctly using custom material in the "Level Editor" (/thread-25612.html)

Pages: 1 2


"Planes" doesn't save correctly using custom material in the "Level Editor" - BigG2k Gameplay - 07-05-2014

Hi I have made a "custom .mat" to make a background. i used the "zimmerman_ground_forest.mat" and edited it to make it look more like the pine tree from the editor to make an outside level. but everytime i close the Level editor the custom material is not applied to any of those plane... ? what is the problem here?


Here's An image to show you what it does.
[Image: Level_Editor_ERROR.png]

The plane itself it still there but it doesn't save the Material assigned to it.
is anyone aware of this problem? and if so what is the solution?

thank you.


RE: "Planes" doesn't save correctly using custom material in the "Level Editor" - PutraenusAlivius - 07-05-2014

Um, did you edit the original material? You were supposed to create a duplicate then edit the duplicate.
Another thing, it's possible the mat file cannot found the texture/has a conflict.


RE: "Planes" doesn't save correctly using custom material in the "Level Editor" - The chaser - 07-05-2014

Can you post your LevelEditor.log, located in Documents/HPL2/, please?

I'm pretty sure it'll say what is wrong there.


RE: "Planes" doesn't save correctly using custom material in the "Level Editor" - DnALANGE - 07-05-2014

I think it is loading from a place the leveleditor can not find it.
Try look where you pick the plane from and let us know, or you might know yourself then..


RE: "Planes" doesn't save correctly using custom material in the "Level Editor" - BigG2k Gameplay - 07-05-2014

it is a duplicated version of the original saved in my custom story folder.

Here is the log file:

Spoiler below!
-------- THE HPL ENGINE LOG ------------
Creating Engine Modules
--------------------------------------------------------
Creating graphics module
Creating system module
Creating resource module
Creating input module
Creating sound module
Creating physics module
Creating ai module
Creating gui module
Creating generate module
Creating haptic module
Creating scene module
--------------------------------------------------------

Initializing Resources Module
--------------------------------------------------------
Creating loader handlers
Creating resource managers
Adding loaders to handlers
--------------------------------------------------------

Initializing Graphics Module
--------------------------------------------------------
Init lowlevel graphics: 1800x1000 bpp:32 fs:0 ms:0 gpufmt:2 cap:'HPL Level Editor' posSad-1x-1)
Setting video mode: 1800 x 1000 - 32 bpp
Init Glew...OK
Setting up OpenGL
Vendor: ATI Technologies Inc.
Renderer: AMD Radeon HD 7700 Series
Version: 4.4.12967 Compatibility Profile Context 14.200.0.0
Max texture image units: 32
Max texture coord units: 16
Max user clip planes: 8
Two sided stencil: 1
Vertex Buffer Object: 1
Anisotropic filtering: 1
Max Anisotropic degree: 16
Multisampling: 1
Texture compression: 1
Texture compression S3TC: 1
Auto generate MipMaps: 1
Render to texture: 1
Max draw buffers: 8
Max color render targets: 8
Packed depth-stencil: 1
Texture float: 1
GLSL Version: 4.40
ShaderModel 2: 1
ShaderModel 3: 1
ShaderModel 4: 1
OGL ATIFragmentShader: 1
Setting up G-Bugger: type: 0 texturenum: 4
Adding engine materials
Initializing DevIL
Vendor String: Abysmal Software
Version String: Developer's Image Library (DevIL) 1.6.8pre Aug 12 2006
Version Number: 168
Adding engine post effects
--------------------------------------------------------

Initializing Sound Module
--------------------------------------------------------
Initializing OpenAL
Available OpenAL devices:
0. Generic Software on Speakers (Realtek High Definition Audio)(OpenAL default)
1. Generic Software on 1 - HD-PVR2 (AMD High Definition Audio Device)
Trying to open device 'Generic Software on Speakers (Realtek High Definition Audio)'... Success!
Number of mono sources: 32
Streaming setup: 2 Buffers x 524288 bytes each
--------------------------------------------------------

Initializing Game Module
--------------------------------------------------------
Adding engine updates
Initializing script functions
--------------------------------------------------------

User Initialization
--------------------------------------------------------
-----------------------------------------------------
LevelEditor Build ID: 20101027185544
-----------------------------------------------------
Created Entity Loader
Added object type: Compound <Compound>
Added object type: Light <BoxLight>
Added object type: Light <PointLight>
Added object type: Light <SpotLight>
Added object type: Billboard <Billboard>
Added object type: Particle System <ParticleSystem>
Added object type: Sound <Sound>
Added object type: Static Object <StaticObject>
Added object type: Entity <Entity> StaticProp
Added object type: Entity <Entity> CommentaryIcon
Added object type: Entity <Entity> Object,Static
Added object type: Entity <Entity> Object,Grab
Added object type: Entity <Entity> Object,Push
Added object type: Entity <Entity> Object,Slide
Added object type: Entity <Entity> SwingDoor
Added object type: Entity <Entity> Lever
Added object type: Entity <Entity> Wheel
Added object type: Entity <Entity> MultiSlider
Added object type: Entity <Entity> Lamp
Added object type: Entity <Entity> Button
Added object type: Entity <Entity> Photocell
Added object type: Entity <Entity> MoveObject
Added object type: Entity <Entity> Item,Puzzle
Added object type: Entity <Entity> Item,Coins
Added object type: Entity <Entity> Item,Note
Added object type: Entity <Entity> Item,Diary
Added object type: Entity <Entity> Item,Lantern
Added object type: Entity <Entity> Item,Health
Added object type: Entity <Entity> Item,Sanity
Added object type: Entity <Entity> Item,LampOil
Added object type: Entity <Entity> Item,Tinderbox
Added object type: Entity <Entity> Item,HandObject
Added object type: Entity <Entity> Chest
Added object type: Entity <Entity> OilBarrel
Added object type: Entity <Entity> EmotionStone
Added object type: Entity <Entity> NPC
Added object type: Entity <Entity> LevelDoor
Added object type: Entity <Entity> CritterBug
Added object type: Entity <Entity> CritterSpider
Added object type: Entity <Entity> Enemy_Grunt
Added object type: Entity <Entity> Enemy_WaterLurker
Added object type: Entity <Entity> PlayerHands
Added object type: Entity <Entity> HandObject
Added object type: Area <Area> Script
Added object type: Area <Area> PosNode
Added object type: Area <Area> Flashback
Added object type: Area <Area> Sign
Added object type: Area <Area> SlimeDamage
Added object type: Area <Area> Examine
Added object type: Area <Area> Insanity
Added object type: Area <Area> Ladder
Added object type: Area <Area> Liquid
Added object type: Area <Area> Sticky
Added object type: Area <Area> Rope
Added object type: Area <Area> PathNode
Added object type: Area <Area> PlayerStart
Added object type: Primitive <Plane>
Added object type: Decal <Decal>
Added object type: FogArea <FogArea>

/////////////////////////////////////////////////////////////////
// Resetting scene
/////////////////////////////////////////////////////////////////

--------------------------------------------------------

Game Running
--------------------------------------------------------

/////////////////////////////////////////////////////////////////
// Resetting scene
/////////////////////////////////////////////////////////////////


/////////////////////////////////////////////////////////////////
// Loading file C:/Program Files (x86)/Amnesia - The Dark Descent/redist/custom_stories/BigG2k TEST1/maps/Level01.map
/////////////////////////////////////////////////////////////////

ERROR: Couldn't create material 'C:/Program Files (x86)/Amnesia - The Dark Descent/redist/custom_stories/BigG2k TEST1/textures/Background01.mat'
ERROR: Couldn't create material 'Background01.mat'
ERROR: Couldn't create material 'Background01.mat'
ERROR: Couldn't create material 'Background01.mat'
ERROR: Couldn't create material 'Background01.mat'
ERROR: Couldn't create material 'Background01.mat'
ERROR: Couldn't create material 'Background01.mat'
ERROR: Couldn't create material 'Background01.mat'

/////////////////////////////////////////////////////////////////
// Loaded successfully
/////////////////////////////////////////////////////////////////

I have made a custom material for the roof too. and it loads fine. but this material doesn't. i can see that in the log it says that the material could not be created. so what do you think goes wrong here?


RE: "Planes" doesn't save correctly using custom material in the "Level Editor" - DnALANGE - 07-05-2014

Background01.mat' is OR a wrong size wjhat i think is NOT..
But, did you add the meteirial in YOUR story folder?
AND did you say the leveleditor to load it from YOUR story?


RE: "Planes" doesn't save correctly using custom material in the "Level Editor" - BigG2k Gameplay - 07-05-2014

1: Well it would be weird that the texture would be at a wrong size because i've used a texture that works and edited it... i've used the "zimmerman_ground_forest.dds". the only thing that i've changed to it was the color.

2: I do not know how to say to the "Level Editor" how to load it from my story?? but i have a custom roof texture that i've made but it work and load properly...


RE: "Planes" doesn't save correctly using custom material in the "Level Editor" - The chaser - 07-05-2014

Make sure your texture (not your material) is in your Amnesia folder, like:

'C:/Program Files (x86)/Amnesia - The Dark Descent/redist/custom_stories/BigG2k TEST1/textures/Background.mat

And, inside this folder, to have the .dds. Remain to make it so that Background01.mat points out to your texture.


RE: "Planes" doesn't save correctly using custom material in the "Level Editor" - BigG2k Gameplay - 07-05-2014

it is still not working after trying what you said. i will just use the regular zimmerman material instead and a greenish box light to make it look more like those 3D pine trees. anyway thanks for the help


RE: "Planes" doesn't save correctly using custom material in the "Level Editor" - Mudbill - 07-05-2014

Open the resources.cfg file located in the Amnesia root folder, and add the custom_stories directory if you haven't already. This might be the issue, because the editors use that file.