HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

The game is unable to read my custom code....

08-30-2004, 01:20 AM#1
Eeporgorg
Ok. I did every single step of the implementation, making sure everything was correct. I made my trigger, tried to test it, and I get an error called "expected a name" The line of jass is the line of custom code, but I know that can't be the problem, because I copied the custom code for the 'Grenade' spell(Through Copy + Past action), and it had the same error.

Just incase some how this is the code's fault, here it is.

Custom script: call ProjectileLaunchDamageLoc( GetOwningPlayer(udg_Caster), "Abilities\\Weapons\\PhoenixMissile\\Phoenix_Missile_mini.mdl", 522, 0, udg_CasterPoint, 100, udg_TargetPoint, 0, 50,200,false)

(NOTE: The blank space between the "Missil" and "e" in the model path is not there, it's just a bug in the forums.)


Please help, Lord Vexorian.
08-30-2004, 06:30 PM#2
Vexorian
Quote:
Originally Posted by EePoRgOrG
Ok. I did every single step of the implementation, making sure everything was correct. I made my trigger, tried to test it, and I get an error called "expected a name" The line of jass is the line of custom code, but I know that can't be the problem, because I copied the custom code for the 'Grenade' spell(Through Copy + Past action), and it had the same error.

Just incase some how this is the code's fault, here it is.

Custom script: call ProjectileLaunchDamageLoc( GetOwningPlayer(udg_Caster), "Abilities\\Weapons\\PhoenixMissile\\Phoenix_Missile_mini.mdl", 522, 0, udg_CasterPoint, 100, udg_TargetPoint, 0, 50,200,false)

(NOTE: The blank space between the "Missil" and "e" in the model path is not there, it's just a bug in the forums.)


Please help, Vexorian.
Could be anything, I need to see the complete trigger, also could be that the Caster variable you are using is misspelt or something like that
08-30-2004, 07:30 PM#3
Eeporgorg
I think I figured it out. This happened with an earlier version of the caster system, too. I think you get problems if you use the word "Caster" as a unit variable. I changed it to find the direct location of the casting unit, and it works fine, now.
08-30-2004, 07:33 PM#4
Vexorian
that doesn't have any sense, so your problem was something else, I think you just misspelt the variable name
08-30-2004, 07:35 PM#5
Eeporgorg
That could be, but it isn't a coincedence that 2 different maps, time periods, but the same name "Caster" screw up the jass.
08-30-2004, 07:39 PM#6
Eeporgorg
God, I am the dumbest man on earth.Lord Vexorian, please give me negative rep, I figured out what happened.

Everytime I tried testing it, the custom script reset. So if I fixed 1 error, it would make it an error again. So "CasterPoint" was supposed to be "CastPoint"

I feel a little embarrased for calling your system faulty, when it was my stupidity all along :(

Rep for you, just for putting up with me.
08-30-2004, 07:40 PM#7
Vexorian
it is a coincidence, because JASS isn't alchemy, having a variable that isn't used by the functions can't affect them