Author Topic: Landmine  (Read 2369 times)

Why would i quote nothing. I added the semicolon on the line that needed it.

Why would i quote nothing. I added the semicolon on the line that needed it.
Reading comprehension: an issue when you're trying to help people debug.

Syntax errors are caused when your missing ;'s and things. You can also get other problems when certain functions are invalid.

Reading comprehension: an issue when you're trying to help people debug.

QFT.

Your first problem, even before the missing semi-colon

^rotation = eulerToMatrix("-90 90 0");

Your first problem, even before the missing semi-colon

^rotation = eulerToMatrix("-90 90 0");
Should i add that in. Should i mess around with that?
« Last Edit: April 10, 2009, 08:34:28 AM by heedicalking »

Should i add that in. Should i mess around with that?

Yup, right here in the script

Code: [Select]
^offSet = "-0.17 0.17 -0.07";

^rotation = eulerToMatrix("-90 90 0);
##
##^eyeoffset = "0.7 1.2 -0.15"

^eyeRotation = eulerToMatrix(90 -90 0);

^rotation = eulerToMatrix("-90 90 0); should have a  " after 0 in the parenthesis. That was your original error the console was reporting.

Next error

##^eyeoffset = "0.7 1.2 -0.15" needs a semicolon ; , but you fixed that already.

Ok, there is one more error the console is reporting and that is this.
Fixed that, now just this.
Code: [Select]
Loading Add-On: Weapon_mine (CRC:-511718880)
Add-Ons/Weapon_mine/Weapon_mine.cs Line: 440 - Syntax error.
>>> Some error context, with ## on sides of error halt:
^%obj.playthread(2, spearThrow);

^Parent::onFire(%this, %obj, %slot);

}



//this is where it gets fancy



function mineProjectile::onCollision(%this,%obj,%col,%fade,%pos,%normal)

{

^%col.getTransform(); //gets postition and below sets them to the variables

^{##
##
^^%position = %col.getTransform

^^^

^^%item = new Item()

^^{

^^^datablock = "mineItem";

^^^static = 1;

^^^position = %position;

^^^Rotation = "1 0 0 0";

^^^scale = "1 1 1"

^^};

^^

^^%col.item = %item; //makes the thing go away if the brick it is on does? I dotn really know what it does
>>> Error report complete.

ADD-ON "Weapon_mine" CONTAINS SYNTAX ERRORS
« Last Edit: April 10, 2009, 12:19:16 PM by heedicalking »

Code: [Select]
function mineProjectile::onCollision(%this,%obj,%col,%fade,%pos,%normal)

{

^%col.getTransform(); //gets postition and below sets them to the variables

^{##
##
^^%position = %col.getTransform

^^^

^^%item = new Item()

^^{

^^^datablock = "mineItem";

^^^static = 1;

^^^position = %position;

^^^Rotation = "1 0 0 0";

^^^scale = "1 1 1"

^^};

What're you even trying to do here?

I worked on some more fixes myself. I am stuck here though.

Code: [Select]
//this is where it gets fancy



function mineProjectile::onCollision(%this,%obj,%col,%fade,%pos,%normal)

{

^%col.getTransform(); //gets postition and below sets them to the variables

^};##
##
^^{

^^%position = %col.getTransform

^^^

^^%item = new Item()

^^};

^^^datablock = "mineItem";

^^^static = 1;

^^^position = %position;

^^^Rotation = "1 0 0 0";

^^^scale = "1 1 1"

^^};

^^

^^%col.item = %item; //makes the thing go away if the brick it is on does? I dotn really know what it does
>>> Error report complete.

ADD-ON "Weapon_mine" CONTAINS SYNTAX ERRORS