Author |
Message |
aracanid
Joined: Fri Apr 06, 2007 12:27 pm Posts: 181 Location: Ireland du nord
|
A problem with materials
At the moment im making a scene. Its my first one and ive spend alot of time making it, however.... I keep getting errors about trying to use a material that isnt in use or something along those lines. It comes up as material #183 but when I searched the scenes.ini I couldnt find what was causing it. Any ideas?
|
Fri Jun 22, 2007 3:52 pm |
|
|
Alenth Eneil
Joined: Mon Dec 04, 2006 3:34 am Posts: 2378
|
I take it you are trying to use a custom mat.
|
Fri Jun 22, 2007 3:55 pm |
|
|
aracanid
Joined: Fri Apr 06, 2007 12:27 pm Posts: 181 Location: Ireland du nord
|
yes... is that bad?
|
Fri Jun 22, 2007 3:56 pm |
|
|
Alenth Eneil
Joined: Mon Dec 04, 2006 3:34 am Posts: 2378
|
Is the material defined prior to being used?
|
Fri Jun 22, 2007 3:57 pm |
|
|
aracanid
Joined: Fri Apr 06, 2007 12:27 pm Posts: 181 Location: Ireland du nord
|
im guessing you mean have I defined it first... I so, I cant find where it defines it because when i search I get no results. As soon as the map loads it crashes with that error
|
Fri Jun 22, 2007 3:58 pm |
|
|
Alenth Eneil
Joined: Mon Dec 04, 2006 3:34 am Posts: 2378
|
It helps to actually make a material if you want to use it...
|
Fri Jun 22, 2007 4:01 pm |
|
|
aracanid
Joined: Fri Apr 06, 2007 12:27 pm Posts: 181 Location: Ireland du nord
|
does it matter which number I use?
|
Fri Jun 22, 2007 4:06 pm |
|
|
Alenth Eneil
Joined: Mon Dec 04, 2006 3:34 am Posts: 2378
|
Not unless you try to put two mats on teh same index.
I really really have no idea how to confuse a scene into loading a non-existant material...
|
Fri Jun 22, 2007 4:10 pm |
|
|
aracanid
Joined: Fri Apr 06, 2007 12:27 pm Posts: 181 Location: Ireland du nord
|
this happened to my bloodguard mod aswell but I set the index number to 10000 or something and it worked. Maybe I can do the same. But how do I add a custom index number to the mat?
|
Fri Jun 22, 2007 4:12 pm |
|
|
Alenth Eneil
Joined: Mon Dec 04, 2006 3:34 am Posts: 2378
|
Do you have any idea what you are doing?
|
Fri Jun 22, 2007 4:13 pm |
|
|
aracanid
Joined: Fri Apr 06, 2007 12:27 pm Posts: 181 Location: Ireland du nord
|
everything works fine apart for that index number... and no. Im very confused by these new material index things... I dont understand em at all
|
Fri Jun 22, 2007 4:14 pm |
|
|
Alenth Eneil
Joined: Mon Dec 04, 2006 3:34 am Posts: 2378
|
It's not exactly difficult, Data posted it himself, a number between 0 and 255 that is not already in use.
|
Fri Jun 22, 2007 4:15 pm |
|
|
aracanid
Joined: Fri Apr 06, 2007 12:27 pm Posts: 181 Location: Ireland du nord
|
right, where abouts do I put this in the scenes code?
Code: AddMaterial = Material Index = 4 InstanceName = BunkerConcrete Bounce = 0.6 Friction = 0.9 StructuralIntegrity = 100 DensityKGPerVolumeL = 2.3 GibImpulseLimitPerVolumeL = 20 GibWoundLimitPerVolumeL = 0.2 Priority = 6 Color = Color R = 165 G = 165 B = 165
|
Fri Jun 22, 2007 4:21 pm |
|
|
Alenth Eneil
Joined: Mon Dec 04, 2006 3:34 am Posts: 2378
|
1.) That index is taken.
2.) That color is taken.
3.) Before you try to load it into anything...
|
Fri Jun 22, 2007 4:29 pm |
|
|
aracanid
Joined: Fri Apr 06, 2007 12:27 pm Posts: 181 Location: Ireland du nord
|
It has to have diff color aswell?! And index 4 is undefined. According to Data
|
Fri Jun 22, 2007 4:31 pm |
|
|
|