Home   Help Search Login Register  

Author Topic: Script not Found, Newb needs Help!  (Read 619 times)

0 Members and 2 Guests are viewing this topic.

Offline Blip

  • Members
  • *
  • ...Old OFP FART...
Script not Found, Newb needs Help!
« on: 31 Mar 2004, 20:49:57 »
Let me start by saying Hello to all.  I have been around the site for awhile learning as much as possible and your posts have all been helpful.

Anyway I have begun scripting.  After going through snYpir's tut on camera's I found that when i try and preview, the game says it can't find the script.   ???

I saved the script as All files not as a text document, its in C:\Program Files\Codemasters\Operation Flashpoint\Users\Tadow\missions\training mission.Intro

but it still ain't working.  Any help would be greatly appreciated.

p.s. I know this has been touched on before, I read through many a topic but couldn't find an answer.
...NIGHT WALKER....

Offline MeKillYou

  • Members
  • *
  • Looking for some prob, shout for me(hehe)
Re:Script not Found, Newb needs Help!
« Reply #1 on: 31 Mar 2004, 21:43:41 »
What did you put in initial.... line in trigger?

Type this in it ----> [] exec "intro.sqs"

If the file name is intro and saved as sqs file in example intro.sqs

That should work.


Offline Blip

  • Members
  • *
  • ...Old OFP FART...
Re:Script not Found, Newb needs Help!
« Reply #2 on: 31 Mar 2004, 23:14:04 »
MKY-

I put exactly that in the initialization--  [] exec "intro.sqs"

(I did rename the file intro.sqs)

Still says that the script wasn't found.
Initially when I first saved the script it game me the option of saving it as a text document or under All files.  Save under as "All files" it says the script can't be found.  Save under "text document" and the preview simply gives me a shot of the ocean with some errors written across the top.
...NIGHT WALKER....

m21man

  • Guest
Re:Script not Found, Newb needs Help!
« Reply #3 on: 31 Mar 2004, 23:32:49 »
Quote
Save under "text document" and the preview simply gives me a shot of the ocean with some errors written across the top.
The script is executing, but it contains errors.

Offline Blip

  • Members
  • *
  • ...Old OFP FART...
Re:Script not Found, Newb needs Help!
« Reply #4 on: 01 Apr 2004, 01:12:44 »
Well I figured out the problem and finally made my first camera script.  I went back through snYpirs tut and caught something I didn't notice the first time through.

"Ensure that windows is not hiding extensions for known file types first.."

Yeah well windows was hiding extensions in this case.  

Thanks for help though.

p.s. If anybody wants to know how to prevent windows from hiding extension for certain file types, let me know.  ;D
...NIGHT WALKER....

Offline myke13021

  • Contributing Member
  • **
  • Myke
Re:Script not Found, Newb needs Help!
« Reply #5 on: 01 Apr 2004, 14:19:59 »
When you like to go deeper into scripting, i would suggest you look for CHOFPSE (Chris's OFP Script Editor).
As for sure you can make Script with any word processor of your choice, CHOFPSE will highlight the syntax in different colors. This makes it easy to avoid typo's in the Script. And it also contains Wizards for the most used file types (Briefing, description.ext and so on)

You'll find this prog in the Editors Depot or for sure on every major OFP fansite. We do also have this prog on our site www.stormtroopers.ch

« Last Edit: 01 Apr 2004, 14:20:26 by myke13021 »