Home   Help Search Login Register  

Author Topic: error executin script  (Read 1325 times)

0 Members and 1 Guest are viewing this topic.

techn9ne

  • Guest
error executin script
« on: 19 Aug 2006, 18:04:42 »
hey its me again, erm i've got a problem executin a cam script...Again... when the cutscene should start, an error pops up in the corner of the screen sayin

camcommitted _cam |#|\par': error unknown command

please help arrgggghhh thanks

marcus :afro:


Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re: error executin script
« Reply #1 on: 19 Aug 2006, 18:09:00 »
It would help us if you would post the relevant lines of the script.  Bye the way the |#| is to show you where the error was detected.

techn9ne

  • Guest
Re: error executin script
« Reply #2 on: 19 Aug 2006, 18:18:53 »
well i dont really know what lines are relevant coz it it all seems fine, sorry im a noob at all this so its probly somthin really stupid to you guys but heres the whole cam script


_cam = "camera" camcreate [0,0,0]
_cam cameraeffect ["internal", "top"]

_cam camsettarget sp
_cam camsetrelpos [1, 1, 1.7]
_cam camcommit 0
@camcommitted _cam
titlecut [" ", "plain down",0.002]
titlecut ["You better tell me what i want to know spy!", "plain down", 2]
~4

_cam camsettarget spy
_cam camsetrelpos [1, 1, 1.7]
_cam camcommit 0
@camcommitted _cam
titlecut [" ", "plain down",0.002]
titlecut ["Well it all depends on what that is", "plain down", 2]
~4

_cam camsettarget sp
_cam camsetrelpos [1, 1, 1.7]
_cam camcommit 0
@camcommitted _cam
titlecut [" ", "plain down",0.002]
titlecut ["Why is jimmy dead?", "plain down", 2]
~4

_cam camsettarget spy
_cam camsetrelpos [1, 1, 1.7]
_cam camcommit 0
@camcommitted _cam
titlecut [" ", "plain down",0.002]
titlecut ["so they finally got him did they", "plain down", 2]
~4
titlecut [" ", "plain down",0.002]
titlecut ["still, it dont suprise me after all he'd been expectin them", "plain down", 2]
~4

_cam camsettarget sp
_cam camsetrelpos [1, 1, 1.7]
_cam camcommit 0
@camcommitted _cam
titlecut [" ", "plain down",0.002]
titlecut ["Who, and tell me straight, or i WILL fucking shoot you", "plain down", 2]
~4

_cam camsettarget spy
_cam camsetrelpos [1, 1, 1.7]
_cam camcommit 0
@camcommitted _cam
titlecut [" ", "plain down",0.002]
titlecut ["The russians you dumb fuck, who else", "plain down", 2]
~4

_cam camsettarget sp
_cam camsetrelpos [1, 1, 1.7]
_cam camcommit 0
@camcommitted _cam
titlecut [" ", "plain down",0.002]
titlecut ["But the war ended years ago, why did they want him?", "plain down", 2]
~4

_cam camsettarget spy
_cam camsetrelpos [1, 1, 1.7]
_cam camcommit 0
@camcommitted _cam
titlecut [" ", "plain down",0.002]
titlecut ["Being a tank commander was a front. He was a spy", "plain down", 2]
~4
titlecut [" ", "plain down",0.002]
titlecut ["and the ruskies unfortunatly found out", "plain down", 2]
~4
titlecut [" ", "plain down",0.002]
titlecut ["The russians have been after his arse for years", "plain down", 2]
~4

_cam camsettarget sp
_cam camsetrelpos [1, 1, 1.7]
_cam camcommit 0
@camcommitted _cam
titlecut [" ", "plain down",0.002]
titlecut ["A spy, but i thought you were the spy in these parts", "plain down", 2]
~4

_cam camsettarget spy
_cam camsetrelpos [1, 1, 1.7]
_cam camcommit 0
@camcommitted _cam
titlecut [" ", "plain down",0.002]
titlecut ["I am, i took over when there became to much heat for jimmy to deal with", "plain down", 2]
~4

_cam camsettarget sp
_cam camsetrelpos [1, 1, 1.7]
_cam camcommit 0
@camcommitted _cam
titlecut [" ", "plain down",0.002]
titlecut ["If thats the case, you know who killed him", "plain down", 2]
~4

_cam camsettarget spy
_cam camsetrelpos [1, 1, 1.7]
_cam camcommit 0
@camcommitted _cam
titlecut [" ", "plain down",0.002]
titlecut ["I have an idea", "plain down", 2]
~4

_cam camsettarget sp
_cam camsetrelpos [1, 1, 1.7]
_cam camcommit 0
@camcommitted _cam
titlecut [" ", "plain down",0.002]
titlecut ["Who", "plain down", 2]
~2

_cam camsettarget spy
_cam camsetrelpos [1, 1, 1.7]
_cam camcommit 0
@camcommitted _cam
titlecut [" ", "plain down",0.002]
titlecut ["Colonel Volgin, hes the man incharge of russian operations in this area", "plain down", 2]
~4
titlecut [" ", "plain down",0.002]
titlecut ["and a very dangerous man", "plain down", 2]
~4

_cam cameraeffect ["terminate", "back"]
camdestroy _cam
exit

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re: error executin script
« Reply #3 on: 19 Aug 2006, 18:28:13 »
Well if it fails at the start then the problem must be at the top of the script.  I have nver used

_cam cameraeffect ["internal", "top"]

I always used

_cam cameraeffect ["internal", "back"]


I doubt that is the problem.

What puzzles me is the absence of an @ in your error message.  Did you write the script in anything other than a simple text editor suuch as notepad?  Try opening your script file in note pad and see what the
@camcommitted _cam
line looks like.  It may be that you have a different character instead of the @
« Last Edit: 19 Aug 2006, 18:31:45 by THobson »

techn9ne

  • Guest
Re: error executin script
« Reply #4 on: 19 Aug 2006, 18:40:41 »
no i opend it in both wordpad and notepad and they both look exctly the same, im  totaly stuck

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re: error executin script
« Reply #5 on: 19 Aug 2006, 18:57:14 »
Are you absolutely sure this is the script that is running - there can't be an older version around?

techn9ne

  • Guest
Re: error executin script
« Reply #6 on: 19 Aug 2006, 19:01:15 »
yeah im pretty sure

Offline Cheetah

  • Former Staff
  • ****
Re: error executin script
« Reply #7 on: 19 Aug 2006, 19:49:55 »
Just made a new mission on desert island, placed two soldiers named them sp and spy. Made a file named "intro.sqs" and ran it from a trigger. Works fine for me. Just copied your script into the file.
Like missions? Help with Beta Testing! or take a look at the OFPEC Missions Depot for reviewed missions!

techn9ne

  • Guest
Re: error executin script
« Reply #8 on: 19 Aug 2006, 20:42:50 »
dont worry, crissis over, i dont know what went wrong but i wrote the whole script out again and it works perfectly, thanks anyway guys  :D

marcus