Home   Help Search Login Register  

Author Topic: Normal Mapping Config errors (solved)  (Read 2973 times)

0 Members and 1 Guest are viewing this topic.

Offline Alloy007p

  • Members
  • *
Normal Mapping Config errors (solved)
« on: 20 Jun 2008, 02:49:36 »
EDIT:
I jsut tried deleting the addon and everything related to it and I am still getting the error, it wont even let me start arma :dunno:

Just tried going through a tutorial here on the site for normal mapping; all went well untill the end. Now when I trie to start arma up it gives me this error

tutorial-
http://www.ofpec.com/ed_depot/index.php?action=details&id=462&page=0&cat=xyz




My config

Code: [Select]
#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
{a
mbient[] = {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!";
};
};

I noticed, I think on line 37 ambeint is spelt without the a but when I tried changeing it, it still gave me the error. Also i am useing arma vers 1.14
« Last Edit: 21 Jun 2008, 01:14:17 by Alloy007p »

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re: Normal Mapping Config errors
« Reply #1 on: 20 Jun 2008, 04:03:14 »
Ambient is being good now I hope!

Code: [Select]
#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
« Last Edit: 20 Jun 2008, 04:08:11 by Planck »
I know a little about a lot, and a lot about a little.

Offline Alloy007p

  • Members
  • *
Re: Normal Mapping Config errors
« Reply #2 on: 20 Jun 2008, 05:35:57 »
I forgot to mention I already tried that, and mabey it would work but I can't possibly confirm it becuase even though I deleted everypossible thing realted to this file I am still getting the same error; its not even leting me start arma. The only possible explantion I could think of was mabey I had overwritten a different addon in the folder, so I restored my folder from what it was yesterday but still I get the error. Now I don't have a clue of what the hell is going on. >:(

Offline Gnat

  • Addons Depot
  • Moderator
  • *****
  • I Bite!
    • Gnats
Re: Normal Mapping Config errors
« Reply #3 on: 20 Jun 2008, 10:58:52 »
Have you checked all your addon or Mod folders, including the default Addon folder?
There isn't another copy laying around ?

Offline Alloy007p

  • Members
  • *
Re: Normal Mapping Config errors (solved)
« Reply #4 on: 21 Jun 2008, 01:16:52 »
It turns out I had a copy of the file named something completely differnt from what I thoguh I had saved, although I thoguht it would have been removed when I restored my addons folder from a few days ago. Everyhting works fine now thanks for the help.