Hello,there,good people of this forum.
I need some help with a normal mapping tutorial.I used the Nvidia plugin for photoshop,i skinned my model ,etc.I added the code,& builded the proyect,but at the moment of make it run,i got the following error:

Error in effect:
MtlNormalMaped(1): syntax error

heres the code.The version is 3dgsPro 6.22.0 :

//////////////////////////////////////////////////////////////////////////////////////////////////////////

var video_mode = 7;
var video_depth = 32;
var video_screen = 1;

////////////////////////////////////////////////////////////////////////////////////////////////////////
string test2_wmb = <test2.wmb>;
var eye_tall = 25;
var dist_planar = 300;
var cam_angle = 0;
var dist_total = 300; // Change THIS value to zoom in or out
var tilt_3rd = 0;
var dist_traced;

////////////////////////////////////////////////////////////////////////////////////////////////////////
// Declare the material:
material MtlNormalMapped //<---Here´s the bastard!
{
ambient_red = 64; // The ambient color.
ambient_green = 64;
ambient_blue = 64;
flags = tangent;
effect = <NormalMapped.fx>;
// The effect file containing the vertex shader, pixel shader and technique.
}



function main()
{
fps_max = 30;
level_load (test2_wmb);
wait (3);

}

function camera3d()
{
dist_planar = cos (tilt_3rd) * dist_total;
camera.x = my.x - cos (cam_angle) * dist_planar;
camera.y = my.y - sin (cam_angle) * dist_planar;
camera.z = my.z + eye_tall + sin (tilt_3rd) * dist_total;
camera.pan = cam_angle;
camera.roll = 0;
camera.tilt = - tilt_3rd;

}

function validate_view()
{

trace_mode = ignore_me + ignore_passable;
dist_traced = trace (my.x, camera.x);
if (dist_traced == 0) { return; } // No obstacles hit... fine
if (dist_traced < dist_total)
{
dist_traced -= 5; // Move it out of the wall
dist_planar = cos (tilt_3rd) * dist_traced;
camera.x = my.x - cos (cam_angle) * dist_planar;
camera.y = my.y - sin (cam_angle) * dist_planar;
camera.z = my.z + sin (tilt_3rd) * dist_traced;
}
}

ACTION dLight
{
my.lightrange = 300;
my.red = 255;
my.green = 255;
my.blue = 0;
}


action pop
{
my.material = MtlNormalMapped;
my.fat = on;
my.narrow = on;
c_setminmax(my);

while (1)
{
//posicion incial de camara
camera3d();
validate_view();
//controles de camara
if(mouse_middle == 1)
{
dist_total += mouse_force.y * -30;
if (dist_total <= 30)
{
dist_total = 30;
}
}

if (mouse_right == 1)
{
cam_angle += mouse_force.x * -4;
tilt_3rd += mouse_force.y * -4;
}
if (key_cuu == on)
{
dist_total -= 10;
if (dist_total <= 30)
{
dist_total = 30;
}
}
if (key_cud == on)
{
dist_total += 10;
if (dist_total <= 30)
{
dist_total = 30;
}
}
if (key_cur == on)
{
cam_angle += 2;
}
if (key_cul == on)
{
cam_angle -= 2;
}
//control de personaje
if (key_a == on)
{
my.pan += 1;
}


if (key_d == on)
{
my.pan -= 1;
}
if (key_w == on)
{
c_move (my,vector(4,0,0),vector(0,0,-4),glide);
}
if (key_s == on)
{
c_move (my,vector(-4,0,0),vector(0,0,-4),glide);
}

wait(1);
}

}


Any help will be welcome

Thanks & my apollogize for my terrible inglish!


Stop pointing me with that thing!!!