Home   Help Search Login Register  

Author Topic: SQS files. Where to put them?  (Read 701 times)

0 Members and 2 Guests are viewing this topic.

Offline penguinman

  • Contributing Member
  • **
  • Money is worthless, just paper, ink, and threads
SQS files. Where to put them?
« on: 22 Sep 2004, 04:38:26 »
this should be an easy one: i know where u place the addon files(PBO files) after u download an addon (in the opf addons folder) but where do u place the scripts that come with an addon(SQS files). do u put them in the addons folder with the PBO files or somewhere else?
« Last Edit: 22 Sep 2004, 04:40:26 by penguinman »

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:SQS files. Where to put them?
« Reply #1 on: 22 Sep 2004, 08:36:40 »
A script (.sqs) file goes in the mission folder beside the mission.sqm file.     To make a script work, it must be explicitly called (activated) from inside the mission.

When you export the mission from the mission editor, thereby creating the .pbo, the .sqs file gets wrapped up inside the .pbo.

Scripts that are required by an addon are wrapped inside the addon .pbo.

Read macguba's guide to mission editing for beginners, snYpir's A Friendly Intro to Code Snippets and Johan Gustafsson's Scripting Tutorial.    All in the Editors Depot.
Plenty of reviewed ArmA missions for you to play

Offline penguinman

  • Contributing Member
  • **
  • Money is worthless, just paper, ink, and threads
Re:SQS files. Where to put them?
« Reply #2 on: 23 Sep 2004, 00:12:58 »
I tried this on a smoke script for a plane. It did not work. im pretty sure i had the script in the right place. when the plane got to the trigger that activated the script it made an error message that said the script was not found. could it just be the script? but it worked on a mission that came with the plane?  I read the tutorials u showed me. they said the same thing.

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:SQS files. Where to put them?
« Reply #3 on: 23 Sep 2004, 00:18:21 »
There are several possible reasons for getting a "script not found" error message.    If you're not sure whether the script really is in the right place get the Tutorial Mission from the Editors Depot.   It has script files in the right place, so you can see how it works.

More common is a minor error of syntax or spelling.  Make sure that the trigger command and the script name match.    You've checked it?  Good - now check it again.   ;D   The command line in the trigger should look something like this:-

[plane1] exec "smokeScript.sqs"

If it still doesn't work, post the exact line from the trigger and also the exact error message.

Plenty of reviewed ArmA missions for you to play

Offline penguinman

  • Contributing Member
  • **
  • Money is worthless, just paper, ink, and threads
Re:SQS files. Where to put them?
« Reply #4 on: 23 Sep 2004, 02:34:24 »
I got the tutorial mission and saw that i had put the script in the right place,but do u need a briefing and overview in the folder with ur mission under users/name/missions. also the exact trigger line is

[name] exec "\mtyc47\startfire.sqs"

and i know where name is put the planes name.
the error message is

Script \mtyc47\startfire.sqs not found

and then an option to click ok whereas the mission then continues without activating the script
and im positive I put it exactly right? it was actualy a fire script with smoke added but its the same idea?

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:SQS files. Where to put them?
« Reply #5 on: 23 Sep 2004, 10:32:05 »
Do you have a subfolder named mtyc47?   If not, then the command line should be

[name] exec "startfire.sqs"

If you want anybody else at all to play your mission then yes, you must have Briefing and Overview files.    Copy the Tutorial Mission ones and use a text editor such as Notepad to edit them.
Plenty of reviewed ArmA missions for you to play

Offline penguinman

  • Contributing Member
  • **
  • Money is worthless, just paper, ink, and threads
Re:SQS files. Where to put them?
« Reply #6 on: 24 Sep 2004, 00:16:22 »
THANK YOU ive been tryin to get that to work for a long time. ur the coolest ofpec member i know and the only one that realy helps the noobs and the people who are not noobs but are dumb like me. and also the guys who r good editors but just hit  a problem. im getin carried away anyways thx.