Ambient is being good now I hope!
#define ReadAndWrite 0
#define ReadAndCreate 1
#define ReadOnly 2
#define ReadOnlyVerified 3
#define private 0
#define protected 1
#define public 2
#define true 1
#define false 0
#define TEast 0
#define TWest 1
#define TGuerrila 2
#define TCivilian 3
#define TSideUnknown 4
#define TEnemy 5
#define TFriendly 6
#define TLogic 7
class CfgPatches
{
class Linker_test1
{
units[] = {"BOX_BOX"};
weapons[] = {};
requiredVersion = 0.1;
requiredAddons[] = {};
};
};
class cfgVehicleClasses
{
class Simple_box_class
{
displayName = "SIMPLE BOX";
};
};
class CfgDestroy
{
class BuildingHit
{
sound[] = {};
};
};
class CfgTextureToMaterial
{
class BOX_material
{
textures[] = {"BOX\tex1_co.paa"};
material = "#BOX_material";
};
};
class CfgMaterials
{
class BOX_material
{
ambient[] = {1.0, 1.0, 1.0, 1.0};
diffuse[] = {0.0, 0.0, 0.0, 1.0};
forcedDiffuse[] = {0.0, 0.0, 0.0, 1.0};
emmisive[] = {0.0, 0.0, 0.0, 1.0};
specular[] = {0.0, 0.0, 0.0, 1.0};
specularPower = 0.0;
PixelShaderID = "NormalMapDetailSpecularMap";
VertexShaderID = "NormalMap";
class Stage1
{
texture = "BOX\tex1_nohq.paa";
uvSource = "tex";
class uvTransform
{
aside[] = {1.0, 0.0, 0.0};
up[] = {0.0, 1.0, 0.0};
dir[] = {0.0, 0.0, 0.0};
pos[] = {0.0, 0.0, 0.0};
};
};
class Stage2
{
texture = "BOX\tex1_co.paa";
uvSource = "tex";
class uvTransform
{
aside[] = {1.0, 0.0, 0.0};
up[] = {0.0, 1.0, 0.0};
dir[] = {0.0, 0.0, 0.0};
pos[] = {0.0, 0.0, 0.0};
};
};
class Stage3
{
texture = "BOX\tex1_smdi.paa";
uvSource = "tex";
class uvTransform
{
aside[] = {1.0, 0.0, 0.0};
up[] = {0.0, 1.0, 0.0};
dir[] = {0.0, 0.0, 0.0};
pos[] = {0.0, 0.0, 0.0};
};
};
};
};
class CfgVehicles
{
class Thing;
class Building;
class Strategic;
class NonStrategic : Building
{
class DestructionEffects;
};
class HouseBase;
class Land_VASICore;
class House : HouseBase
{
class DestructionEffects;
};
class BOX_BOX : House
{
scope = public;
simulation = "house";
vehicleClass = "Simple_box_class";
model = "\BOX\box.p3d";
displayName = "Simple box!";
};
};
The problem was that ambient was all there, but the a was on a line by itself and the rest 'mbient' was on the next line.
The game came across the a and thought 'aha a variable called a', and then expected to find the '=' sign follwed by a value.
Instead it found an 'm' ... the beginning of 'mbient', so it threw up its digital hands and resigned.
Planck