Home   Help Search Login Register  

Author Topic: Problem with dowloaded scrip Init.sqs's  (Read 537 times)

0 Members and 1 Guest are viewing this topic.

kymandro

  • Guest
Problem with dowloaded scrip Init.sqs's
« on: 06 Feb 2005, 04:55:00 »
Hey i found some cool scrips in the editors depot and i wanted to have a couple of them in my map the problem is they all have the same file its Init.sqs and it wont let me put a file with the same name as another file in the same folder. i have tryed Combining the files so its just one big init.sqs but that dosnt work and im not very smart and cant think of any thing else to do please help. ??? ??? ??? ??? ??? ???

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Problem with dowloaded scrip Init.sqs's
« Reply #1 on: 06 Feb 2005, 05:08:15 »
It is true that you may have only one file called init.sqs in your mission folder.     The way to do is to use one of the init.sqs files as you basic file:  put it in the mission folder.   Now copy and paste the stuff from the other init.sqs files into this basic one.    Your final init.sqs should look somethng like this

; stuff for script A
blah blah

; stuff for script B (copied and pasted in)
blah blah

; stuff for script C (copied and pasted in)
blah blah
exit


And so on.    It is possible, although unlikely, that the various bits and pieces will conflict.    If something goes wrong, tell us in detail what happened.   Quote any error messages in full, inlcuding the # and we will try to help.
Plenty of reviewed ArmA missions for you to play

kymandro

  • Guest
Re:Problem with dowloaded scrip Init.sqs's
« Reply #2 on: 06 Feb 2005, 05:22:28 »
hey I tryed doing that and it didnt do any thing i dont know if i seperated the script stuff right

;[] exec "satellite\init.sqs"

;titleText ["Select the Radio option you want (0-0-1) for Airstrike or (0-0-2) for Napalm\nThen click on the map to airstrike the location","plain"]
strikePilot setBehaviour "careless"
strikePilot setCombatMode "blue"
strikePilot setSpeedMode "limited"

exit

I just used the semi-colon is that right or is there some thing else i have to do?

thanks ???

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Problem with dowloaded scrip Init.sqs's
« Reply #3 on: 06 Feb 2005, 11:49:33 »
Read snYpir's A Friendly Intro to Code Snippets.

Lines starting with ; are just notes, they do not get executed.    Remove the semicolons and see what happens.
Plenty of reviewed ArmA missions for you to play

Offline 456820

  • Contributing Member
  • **
Re:Problem with dowloaded scrip Init.sqs's
« Reply #4 on: 06 Feb 2005, 11:50:05 »
what i would do i have on init.sqs and name all the other files 1.sqs, 2.sqs and so on the top of the init.sqs and put "[] exec "1.sqs" minus the quotes and so on until you have that for every script you whant

kymandro

  • Guest
Re:Problem with dowloaded scrip Init.sqs's
« Reply #5 on: 06 Feb 2005, 17:36:40 »
Thanks it works now