Home   Help Search Login Register  

Author Topic: Problems with Scripts  (Read 1333 times)

0 Members and 2 Guests are viewing this topic.

Stonge

  • Guest
Problems with Scripts
« on: 07 Jan 2004, 03:48:42 »
Every time I try to write a cutscene script or use a snippet, I receive a message that the script cannot be found, even though I placed it in the mission folder.  Does anybody know why this happens? :help:

FLBEE

  • Guest
Re:Problems with Scripts
« Reply #1 on: 07 Jan 2004, 04:08:21 »
Make sure the spelling in mission that calls for the script is exactly the same as the script name.
I think spaces will mess it up too. (not totally sure about that tho)

I know this obvious and I hope its not insulting.  ;D
but i've had a problem like that and changed all kinds of stuff in the script itself, killing all kinds of time, just to finally see that the script name was one letter off from the script i was calling for.




Stonge

  • Guest
Re:Problems with Scripts
« Reply #2 on: 07 Jan 2004, 05:49:33 »
Thanks, I double checked, but im entering the script name correctly.  Is this the proper syntax?

[] exec "scriptname.sqs"


Is there any other reason this might happen, such as conflicts with virus protection software?

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:Problems with Scripts
« Reply #3 on: 07 Jan 2004, 07:15:48 »
Some weird userrights set on your missions folder ???
Not all is lost.

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:Problems with Scripts
« Reply #4 on: 07 Jan 2004, 11:20:45 »
Are u sure u've put the script in your OFP\users\username\missions\missionname and NOT your OFP\missions?

EDIT: Whooops:

:beat: *Gets Shot* :beat:
« Last Edit: 07 Jan 2004, 11:21:04 by The real Armstrong »

Offline .pablo.

  • Former Staff
  • ****
  • When in doubt, empty the magazine.
Re:Problems with Scripts
« Reply #5 on: 08 Jan 2004, 01:26:30 »
post the mission files or the zipped mission folder
« Last Edit: 08 Jan 2004, 01:27:10 by .pablo. »

Stonge

  • Guest
Re:Problems with Scripts
« Reply #6 on: 08 Jan 2004, 03:27:14 »
sorry, for some reason i cant post the file.  Al i know is that Im placing it in in the mission folder under my username (...username/user/missions/mission name)
« Last Edit: 08 Jan 2004, 03:30:07 by Stonge »

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Problems with Scripts
« Reply #7 on: 08 Jan 2004, 03:50:34 »
Emmmm.......that should be:

Users\yourname\missions\missionname

Or is that what you meant to type?


Planck
I know a little about a lot, and a lot about a little.

Stonge

  • Guest
Re:Problems with Scripts
« Reply #8 on: 08 Jan 2004, 04:13:15 »
yeah, that's wht i meant.

spiralsoap

  • Guest
Re:Problems with Scripts
« Reply #9 on: 08 Jan 2004, 16:38:37 »
maybe check the .sqs file itself.. highlight everything and re-save it as an sqs.. sometimes doing things in notepad and saving as "All Files" and just naming it "scriptname.sqs" doesnt work for me.

Quid Novi

  • Guest
Re:Problems with Scripts
« Reply #10 on: 08 Jan 2004, 16:44:01 »
good point... if you just saved it... then it will be a txt document and not a sqs... double check  ;)

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Problems with Scripts
« Reply #11 on: 08 Jan 2004, 20:55:57 »
Well,,,,,,if it is actually named........scriptname.sqs, then it will be an sqs file.

Thing to watch for is saving it as scriptname.sqs when the file save type is still set on text.  In this case you will have scriptname.sqs.txt

However if it is named scriptname.sqs, then it will be an sqs file.  An sqs file is really only a text file anyway, but it must have the sqs extension to work as a script file with OFP..




Planck
I know a little about a lot, and a lot about a little.

Stonge

  • Guest
Re:Problems with Scripts
« Reply #12 on: 09 Jan 2004, 02:57:32 »
SO........, how do i make sure the file gets saved as an sqs without the txt extension? When I saved it the first time I saved it as intro.sqs.  how do i eliminate the txt extension? ???

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Problems with Scripts
« Reply #13 on: 09 Jan 2004, 03:09:38 »
When you save it from Notepad........change the file type in the save requester to All Files.........and type in the filename you require............scriptname.sqs.......for example.



Planck
I know a little about a lot, and a lot about a little.

Stonge

  • Guest
Re:Problems with Scripts
« Reply #14 on: 09 Jan 2004, 05:10:25 »
I tried this.  I created a new text file, i called it intro.sqs, clicked save as type-all files, but it still always saves as intro.sqs.txt.  I've also tried re-saving without any luck.

FLBEE

  • Guest
Re:Problems with Scripts
« Reply #15 on: 09 Jan 2004, 05:59:50 »
 I use a seperate OFP scripting program just for avioding stuff like that.
I use Chris's OFP scripting editor. It also color codes key words and commands in the script to let you know if you have proper spelling and syntax. It also comes with the official command ref. and a syntax library type deal.
I hope it doesn't seem like i'm advertising, i'm just sayin what works for me.

http://www.chenderman.com/Contents/Applications/CHOFPSE_Setup_240.msi

« Last Edit: 09 Jan 2004, 06:00:57 by FLBEE »

Quid Novi

  • Guest
Re:Problems with Scripts
« Reply #16 on: 09 Jan 2004, 10:45:32 »
strange.... i've never had that problem with saving scripts... i just save it as name.sqs and works fine...

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:Problems with Scripts
« Reply #17 on: 09 Jan 2004, 22:48:11 »
Yo m8y, you have to change something in your explorer options, dunno why Windows so stupid, prooly cause Bill Gates don't like OFP players.

:beat: *Gets Gated* :beat:

Stonge

  • Guest
Re:Problems with Scripts
« Reply #18 on: 10 Jan 2004, 03:12:35 »
Hey, FLBEE, i downloaded the editor and so far it works great, you're a lifesaver! Thanks for the help everybody, hopefully someday Bill Gates will make things easier for us!  ;)