Home   Help Search Login Register  

Author Topic: Help with where to put files  (Read 501 times)

0 Members and 1 Guest are viewing this topic.

WiCkEd

  • Guest
Help with where to put files
« on: 20 Dec 2002, 03:42:59 »
I downloaded the script to put different amounts of weapons and ammo into crates. It all downloaded great but i am having some trouble in finding exactly where to put it. I know to put it in the user missions, but i can't figure out why it can never find it in the script. A message comes up telling me that it can't find the .sqs file that it wants to use, but i know its in my user missions file. I know its a noobie question, but i am only on my second day of using scripts. Please help.

Thanks in Advance,
                 WiCkEd

Foo

  • Guest
Re:Help with where to put files
« Reply #1 on: 20 Dec 2002, 14:08:56 »
it did this on me once, even though i had it perfectly named.... 1st make sure you have the right file type (not sure if its HTML or just HTM)

I got round it by moving the script to another location, making a new file in notepad,and cutting and pasting the original script into the new file, then saving it under the correct name into the mission directory.
I seem to remember this worked, though i dont know why...

Thats the best i can do!

Offline Ranger

  • Members
  • *
  • Hoo-ah!
Re:Help with where to put files
« Reply #2 on: 20 Dec 2002, 19:05:55 »
Make sure you put the script in your mission's directory.  For example, the default directory would be as follows:

c:\windows\program files\operation flashpoint\users\YourUserName\missions\YourMissionName

Next, make sure the script has an extension of .sqs.  For example, MyScript.sqs.

If both of these are true, then you should have no problem executing the script.

Just to be sure, the command for executing a script is as follows:

[param1,param2,param3,...,paramN] exec "MyScript.sqs"

Where param1 through paramN are any parameters that you are passing (if any), and MyScript.sqs is the name of your script.
« Last Edit: 20 Dec 2002, 19:07:03 by Ranger »
Ranger