Jump to content
Sign in to follow this  
Urbanski

Really basic scripting questions

Recommended Posts

Hi,

I used to make missions for the original OFP a long time ago.

There used to be a camera tool in the editor which BIS took out for ARMA and ARMAII (no idea why they did that, it was great for simple cutscenes).

I'm following a camera script tutorial (snypir) I found at OFPEC however it's designed for use in OFP. With Vista and ARMAII the way you set up folders for the game has changed.

I'm trying to get a camera script to work on a mission intro. I've found the path C://users/me/documents/arma2/missions/missionname - and i've put my camera.sqs file in the folder for the mission with [] exec "camera.sqs" in the init field of the player but it is saying "camera.sqs" not found.

Where do i need to put the script to get it working??

Also I know the scripting language is basically the same since OFP but are there any tutorials or aids for camera scripting in ARMAII as there are bound to be some differences.

Embarrasing I know but we all have to start somewhere :o

I just realised this is in the wrong forum d'oh - can it be moved by a admin please?

Edited by Urbanski

Share this post


Link to post
Share on other sites

All I can say is make sure the file is indeed in the same folder as the mission.sqm file... It should find the script if it's in the same folder as the mission.sqm file that you are running in the editor.

Share this post


Link to post
Share on other sites

Thx for the reply Galzohar.

The script is in the right folder....i'm really puzzled and frustrated. No doubt i'm doing something wrong.

The camera script is a .sqs notepad file......is that ok?....is .sqs the right file extension for a camera script?

I want to learn scripting (again) but if I can't even get a basic tutorial script to work i think I might be in trouble.

Share this post


Link to post
Share on other sites

nettrucker - thx for the link.

I have an earlier version of this editing guide by Mr.Murray but i've downloaded this one anyway.

I was using this excellent guide yesterday and looked through the part on cam scripting and on setting up the mission folders......unfortunately it hasn't helped me so far.

I'll keep trying but it's very frustrating when you want to learn but can't even get past step 1..... feeling very stupid here :(

Thank you for offering me help with editing questions, its much appreciated and i'm sure I will be asking for your help in the future.

I'm determined to crack this problem.....onwards and upwards!!!

Share this post


Link to post
Share on other sites

Hi Urbanski, did you check the extension of the file is really .sqs ? Because under Vista, files extensions aren't shown on default, you must unmask them in the control panel. Otherwise your file is "camera.sqs.txt" and it doesn't work.

Share this post


Link to post
Share on other sites

ProfTournesol you are absolutely spot on, I just worked it out, came on here to post and your comment is exactly the error I found.

It was still a text file so on using "camera.sqs.txt" it worked.

I now save my notepad text files as "all" file type and its saves them as an .sqs file properly now instead of a .sqs.txt

I knew it was something stupid I was doing. I have to say i've never liked vista, it's far too overbearing in how it tries to protect the user, I much prefered XP and i'm going to look at Windows 7 as an alternative.

Thanks all for your help - I'm now experimenting with the camera which will make my missions that much more immersive. :)

Cheers

Share this post


Link to post
Share on other sites

Of course the most sensible thing to do would be getting something better than notepad ;)

Personally I prefer UltraEdit, but there are many (any!) free ones as well.

Share this post


Link to post
Share on other sites
Take a look at this.

There's also a section about cam scripting and basically it should work also in ArmA II

http://www.armaholic.com/page.php?id=4847

Hope that can help also with maybe other editing question which might arise.

Cheers

nettrucker:D

Good link, i need this sexii book to ;)

Lol @ vista hidden extensions, it gets so many :yay:

Share this post


Link to post
Share on other sites

I now save my notepad text files as "all" file type and its saves them as an .sqs file properly now instead of a .sqs.txt

This is also required when saving a file, of any type other than txt, in XP as well.

Does Vista not allow you to uncheck the "Hide extensions for known file types" box in Folder Options (as in XP)? By doing so it will help avoid such errors by showing you exactly what the file extension is when saved.

As for Windows 7? XP pro is still their best O/S I think but at least Windows 7 uses 2/3 less RAM (so your already on a winner over Vista), .

Share this post


Link to post
Share on other sites

Yeah vista does allow you to uncheck the "Hide extensions for known file types"

It's just I missed it and vista doesn't make it easy for the user. Now I know I won't make that mistake again.

Win 7 might be worth a look but I'm getting microsoft fatigue...if you know what I mean.

Release broken OS, spend the next 3 years fixing it....get it working and then release the next broken OS.......rinse and repeat until you are rich beyond imagination.

I prefer the gnome method -

1.steal underpants

2. ?

3. Profit

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×