OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Batdog on 04 Sep 2002, 07:38:24
-
Ok here what I've done. I've made the file using notepad and now need to change it to a SQS and I don't know how to do it. ???
-
there are 2 easy ways,
Make the File rename the whole thing to scriptname.sqs
or
In Notepad, click save as, Choose All Files and save as an sqs format so in the save as box, type Scriptname.sqs, scriptname can be what you want
Cheers ;D
-
Ok i did that and see'ed if it worked and came up with
Error unknown.
And it starting to piss me off. >:(
-
Hrrm, well, can you see the file extentions?
Do SQS files open up automatically in Notepad?
-
What do you mean by that.
Can you load SQS file in Notepad.
-
You made your file in notepad, you said so yourself:
I've made the file using notepad...
So yes, you can load .sqs files in notepad. They are just text after all.
Anyway, could you describe the error message a bit more?
Like: Where do you get it?
When saving as .sqs, when loading the file in OFP, when renaming to .sqs?
This is how you create new .sqs files:
Open up notepad (or texteditor of your choice) and write your script.
Then select "Save As".
In the Save As dialog, select file type: All Files *.*
then write YourScriptName.sqs in the file field.
This is how you make a .txt into a .sqs
First off, in Explorer. Go to Tools - > Folder Options - > View
And find the place where it says:
Hide extensions for known filetypes.
Then you find your file, YourScriptName.txt, right click and select "Rename".
Remove the .txt part and add .sqs.
Some times your file is saved as YourScriptName.sqs.txt in which case you just follow the above instructions and remove the .txt part.
Now, that will get you a working .sqs file. I can't troubleshoot the script itself, since I haven't seen it, but this will produce a .sqs file readable by OFP.
Cheers, KTottE
PS. Oh, and I moved this to Scripting: General since it had nothing to do with Cutscenes ;D
-
I did what you said and nope dosent work.
I get it when the player get to a place it should activate.
The error messege is just made of well like a P looking shape a y with 2 dots above it.
pl#lY with 2 dots above it. And a messege saying Error unknown operator
-
Alright it worked.
All i did was wtite it again and do what Ktotte said and yeah it worked.
Thank you all for your help.
-
So the topic is solved then?