Praetorian – User talk
No edit summary |
Lou Montana (talk | contribs) m (Text replacement - "<code>" to "<code style="display: block">") |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 4: | Line 4: | ||
Yes thanks for this ... I will comply. LOL. [[User:Praetorian|Praetorian]] 04:48, 12 May 2007 (CEST) | Yes thanks for this ... I will comply. LOL. [[User:Praetorian|Praetorian]] 04:48, 12 May 2007 (CEST) | ||
---- | |||
Good, let's do this step by step: | |||
# Create a '''new mission''' in Sahrani, | |||
# Put your '''player''' somewhere, | |||
# '''Save''' the mission as ''mytest'', | |||
# Open your favorite '''text editor''' (Notepad, UltraEdit, ...), | |||
# '''Write''': <code style="display: block"><nowiki>hint "I am a script file and I have been called upon";</nowiki></code> | |||
# '''Save''' the file in your mission root folder as ''test.sqf'' (most likely in: ''C:\Documents and Settings\Spartan\My Documents\ArmA Other Profiles\Praetorian\missions\mytest.sara\''), | |||
#* if you're using notepad, '''set the file type''' to ''All files (*.*)'' first, | |||
#* you might want to '''double-check''' that the file actually got named ''test.sqf'' and not ''test.sqf.txt''. You could for instance fire up the console (''Run'' -> ''cmd.exe''), go to the directory (''cd "C:\Documents and Settings\Spartan\My Documents\ArmA Other Profiles\Praetorian\missions\mytest.sara\"'') and check the files (''dir''), | |||
# Go back to the '''editor''' (and open your mission, if you have closed it before opening your text editor), | |||
# '''Edit''' your player unit: | |||
#* In the '''initialization''' line write: <code style="display: block"><nowiki>nil = [] execVM "test.sqf"</nowiki></code> | |||
# '''Preview''' the mission and observe. ''I am a script file and I have been called upon'' should appear in the upper left corner. | |||
Also, these kinds of questions are perhaps better suited for ArmA editing related forums. Wikis actually ain't the best place to ask questions like these. -- [[User:Manny|Manny]] 15:17, 12 May 2007 (CEST) | |||
:: Thanks Manny, it was the file itself ... it was named hello.sqf.txt and once I changed this, I worked out the paths easily. Thanks again and I will put this type of thing in forums from now on. Well technically, this is my first ever successful script I made for a game so today's a good day (lol) -- [[User:Praetorian|Praetorian]] 02:16, 13 May 2007 (CEST) |
Latest revision as of 11:52, 11 January 2023
Bedtime here in Austria, Central Europe. 4:30am surely isn't the best time to be awake. If you don't get your kickoff problems resolved this (=your) day, then we can dig into it tomorrow/today (well... in ~20 hours or so). -- Manny 04:19, 12 May 2007 (CEST)
Oh, and as a further addendum: try to use the Preview button more often to reduce the number of times you edit your texts. Multiple edits generate significant load on the database (each revision gets stored) and spams the popular list of recent changes. Also, moderators get pissed of because of the latter reason. And you don't want the moderators to give you a mean look, do you? :) -- Manny 04:26, 12 May 2007 (CEST)
Yes thanks for this ... I will comply. LOL. Praetorian 04:48, 12 May 2007 (CEST)
Good, let's do this step by step:
- Create a new mission in Sahrani,
- Put your player somewhere,
- Save the mission as mytest,
- Open your favorite text editor (Notepad, UltraEdit, ...),
- Write:
hint "I am a script file and I have been called upon";
- Save the file in your mission root folder as test.sqf (most likely in: C:\Documents and Settings\Spartan\My Documents\ArmA Other Profiles\Praetorian\missions\mytest.sara\),
- if you're using notepad, set the file type to All files (*.*) first,
- you might want to double-check that the file actually got named test.sqf and not test.sqf.txt. You could for instance fire up the console (Run -> cmd.exe), go to the directory (cd "C:\Documents and Settings\Spartan\My Documents\ArmA Other Profiles\Praetorian\missions\mytest.sara\") and check the files (dir),
- Go back to the editor (and open your mission, if you have closed it before opening your text editor),
- Edit your player unit:
- In the initialization line write:
nil = [] execVM "test.sqf"
- In the initialization line write:
- Preview the mission and observe. I am a script file and I have been called upon should appear in the upper left corner.
Also, these kinds of questions are perhaps better suited for ArmA editing related forums. Wikis actually ain't the best place to ask questions like these. -- Manny 15:17, 12 May 2007 (CEST)
- Thanks Manny, it was the file itself ... it was named hello.sqf.txt and once I changed this, I worked out the paths easily. Thanks again and I will put this type of thing in forums from now on. Well technically, this is my first ever successful script I made for a game so today's a good day (lol) -- Praetorian 02:16, 13 May 2007 (CEST)