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
Level Editor Help "Planes" doesn't save correctly using custom material in the "Level Editor"
BigG2k Gameplay Offline
Junior Member

Posts: 11
Threads: 3
Joined: Jul 2014
Reputation: 0
#1
"Planes" doesn't save correctly using custom material in the "Level Editor"

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.
07-05-2014, 07:10 AM
Website Find
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#2
RE: "Planes" doesn't save correctly using custom material in the "Level Editor"

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.

"Veni, vidi, vici."
"I came, I saw, I conquered."
07-05-2014, 08:06 AM
Find
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#3
RE: "Planes" doesn't save correctly using custom material in the "Level Editor"

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

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

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
07-05-2014, 09:54 AM
Find
DnALANGE Offline
Banned

Posts: 1,549
Threads: 73
Joined: Jan 2012
#4
RE: "Planes" doesn't save correctly using custom material in the "Level Editor"

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..
07-05-2014, 11:29 AM
Find
BigG2k Gameplay Offline
Junior Member

Posts: 11
Threads: 3
Joined: Jul 2014
Reputation: 0
#5
RE: "Planes" doesn't save correctly using custom material in the "Level Editor"

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?
07-05-2014, 02:33 PM
Website Find
DnALANGE Offline
Banned

Posts: 1,549
Threads: 73
Joined: Jan 2012
#6
RE: "Planes" doesn't save correctly using custom material in the "Level Editor"

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?
07-05-2014, 04:22 PM
Find
BigG2k Gameplay Offline
Junior Member

Posts: 11
Threads: 3
Joined: Jul 2014
Reputation: 0
#7
RE: "Planes" doesn't save correctly using custom material in the "Level Editor"

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...
07-05-2014, 04:58 PM
Website Find
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#8
RE: "Planes" doesn't save correctly using custom material in the "Level Editor"

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.

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
07-05-2014, 05:43 PM
Find
BigG2k Gameplay Offline
Junior Member

Posts: 11
Threads: 3
Joined: Jul 2014
Reputation: 0
#9
RE: "Planes" doesn't save correctly using custom material in the "Level Editor"

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
07-05-2014, 06:32 PM
Website Find
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#10
RE: "Planes" doesn't save correctly using custom material in the "Level Editor"

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.

07-05-2014, 07:13 PM
Find




Users browsing this thread: 1 Guest(s)