Warning: include(/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php): failed to open stream: No such file or directory in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Warning: include(): Failed opening '/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Notice: Undefined index: OFPEC in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152
    Home   Help Login Register  

Author Topic: Creating .sqs files  (Read 1258 times)

0 Members and 1 Guest are viewing this topic.

ZillyBoi

  • Guest
Creating .sqs files
« on: 17 Aug 2005, 22:54:21 »
Hmm, I don't think that this is under your usual faq's. I need to create a .sqs file but I don't know if its something I'm doing wrong or if my computer is messed up. I read through a tutorial and went by the word and created a notepad file and entered in a simple script to make two units look at each other. The tutorial said that I enter the text and save the file as "dowatch.sqs" and save it under "all files" and i saved it but instead of it creating a windows file its just a notepad file. I go into the game anyway and it just says that the .sqs file cannot be found .... but I did everything the tutorial told me to do. Does the file look like a windows file after you save it and put it into the mission folder? I don't know if the computer is saving the thing wrong or what. I need help and once you guys help me then I should be conent ..... should be. Cheers.

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Creating .sqs files
« Reply #1 on: 17 Aug 2005, 22:56:32 »
Get the Tutorial Mission from the Editors Depot.   It shows you how everything should look.   Copy and paste one of the .sqs files from it into your mission, then copy and paste into it your code.

Oh, and

Welcome to the forum!
« Last Edit: 17 Aug 2005, 22:56:59 by macguba »
Plenty of reviewed ArmA missions for you to play

ZillyBoi

  • Guest
Re:Creating .sqs files
« Reply #2 on: 17 Aug 2005, 23:07:39 »
ok cheers man, I will do that and see what happens. Thanx again.

Offline General Barron

  • Former Staff
  • ****
  • Semper Fi!
Re:Creating .sqs files
« Reply #3 on: 18 Aug 2005, 01:11:22 »
I bet you have file extensions hidden in your Windows settings. So really, the file is named "script.sqs.txt", but the .txt part is just hidden from you. You need to either unhide file extensions (in the "folder options"), or else select "save as type: all files" when you save the file in notepad.
HANDSIGNALS COMMAND SYSTEM-- A realistic squad-control modification for OFP
kexp.org-- The best radio station in the world, right here at home! Listen to John Richards!

funkster

  • Guest
Re:Creating .sqs files
« Reply #4 on: 18 Aug 2005, 02:48:22 »
Yep, I had exactly the same problem when I first started making files - thought I was cursed or something, but its not anything your doing wrong after all...

ZillyBoi

  • Guest
Re:Creating .sqs files
« Reply #5 on: 18 Aug 2005, 19:01:22 »
I'm not sure what you mean Barron, erm i mean General Barron sir, I am saving the notepad under "all files" but still it saves as a notepad file. I just need to know if thats normally like that and when you export the mission, then the notepad file turns into a windows file. I just want to know why the mission keeps starting up with "unable to find "dowatch.sqs" even though I did everything the tutorial says. Grrr if a man harnessed the power of the pc and injected it with the simplicity of playstation .... then the world would be a happier place. :'(

Offline Triggerhappy

  • Contributing Member
  • **
  • Llama, it's what's for dinner.
Re:Creating .sqs files
« Reply #6 on: 19 Aug 2005, 00:49:58 »
sqs files look exactly like txt files, except that they end in sqs

do this:
open up notepad and copy your code into that file, the click file/save as..
set to all files and save as dowatch.sqs

if you right-clicked and hit new notepad file it may have kept the txt extension, if that isn't what you did, then just try waht i said anyway and see what happens lol  ::)

ZillyBoi

  • Guest
Re:Creating .sqs files
« Reply #7 on: 19 Aug 2005, 19:15:12 »
Its all fixed, turns out that the file extensions where wrong. I went into the folder options and unticked the hide extensions. Turns out the file was dowatch.sqs.sqs ..... slight variation on dowatch.sqs. So I fiddled and managed to edit an existing tutorial example from ofpec and made a simple camera movements and targeting so thanx again all for you help!