Major Blood 0 Posted November 15, 2007 Hello All Here is my config for a box: #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.2, 0.3, 0.3, 0.6};//{0.2, 0.3, 0.3, 0.6}; specularPower = 10.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 get this error: File box\config.cpp, line 36: '/CfgMaterials/Box-material.a': "m" encountered instead of "=" Have any ideas? Im so noob. I have been lucky to get this far. Share this post Link to post Share on other sites
HitmanFF 6 Posted November 16, 2007 class BOX_material{a mbient[] = {1.0, 1.0, 1.0, 1.0}; I think the problem is with ambient[] being spread over two lines. The first 18 lines with #defines don't count, so line 36 is really line 54, which is at the mbient[] part. <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class BOX_material { ambient[] = {1.0, 1.0, 1.0, 1.0}; . . should to the trick. Share this post Link to post Share on other sites
Major Blood 0 Posted November 16, 2007 HitmanFF Thanks for the help man. It worked !! I appreciate it. Over and out Share this post Link to post Share on other sites