Lou Montana/Sandbox – User

From Bohemia Interactive Community
Jump to navigation Jump to search
m (#ifeq #expr → #ifexpr)
m (Update w/ links)
 
(29 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><span class="gvi2{{#if:{{#pos:{{{2|}}}|.}} |
[[Category: Sandbox]]
{{#ifexpr:{{{2}}} < 0.7|<nowiki/> gvi-alpha}}
{{Feature|informative|To go on [[Initialisation Order]].}}
{{#ifexpr:{{{2}}} >= 0.7 and {{{2}}} < 1|<nowiki/> gvi-beta}}
{{#ifeq:{{Name|{{{1}}}|id}} | arma3 |
{{#ifexpr: {{{2}}} > 2.02 or ({{{2}}} > 1 and {{#replace:{{{2}}}|.}} mod 2)|<nowiki/> gvi-dev}}
}}
| {{#if:{{#pos:{{{1}}}{{{2|}}}|dev}}|<nowiki/> gvi-dev}}
}}{{#if:{{#pos:{{{1}}}{{{2|}}}|diag}}|<nowiki/> gvi-diag}}"><span class="icon">{{Icon|{{Name|{{{1}}}|id}}|38}}</span><span class="version">[[:Category:Introduced with {{Name|{{{1}}}}} version {{{2|}}}|{{#if:{{{2|}}}|{{uc:{{{2}}}}}|?}}]]</span></span></includeonly><noinclude>Template '''''GVI''''' standing for '''''G'''ame '''V'''ersion '''I'''con'' - should appear inline {{{{FULLPAGENAME}}|arma3|1.00}} when in a paragraph.


== Usage ==
{| class="wikitable sortable align-center align-left-col-1"
{{<nowiki/>GVI|'''''game'''''|'''''version'''''}}
|+ Order of Initialisation (use column sorting for respective machine order)
* game: identical to [[Template:Name|Name Identifiers]]
! rowspan="2" class="unsortable" style="text-align: center" | Task
* version: (Optional, default <tt>1.00</tt>) game version such as "1.75", '''two digits''' after the period
! rowspan="2" | Exec Environment
! rowspan="1" colspan="5" class="unsortable" | Machine
|-
! Single Player
! Dedicated Server
! Hosted Server
! Multiplayer Client
! [[Multiplayer Scripting#Join In Progress|JIP]] MP Client


{| class="wikitable"
|+ Examples
! Code
! Result
|-
|-
| <tt><nowiki>{{GVI|ofp}}</nowiki></tt>
| [[Arma 3: Functions Library|Functions]] with <syntaxhighlight lang="cpp" inline>recompile</syntaxhighlight> {{Link|Arma 3: Functions Library#Attributes 3|attribute}} are recompiled
| {{{{FULLPAGENAME}}|ofp}}
| {{n/a}}
| 1 <!-- Single Player -->
| 1 <!-- Dedicated Server -->
| 1 <!-- Hosted Server -->
| 1 <!-- Multiplayer Client -->
| 1 <!-- JIP MP Client -->
 
|-
|-
| <tt><nowiki>{{GVI|ofp|1.30}}</nowiki></tt>
| [[Arma 3: Functions Library|Functions]] with <syntaxhighlight lang="cpp" inline>preInit</syntaxhighlight> {{Link|Arma 3: Functions Library#Attributes 3|attribute}} are called
| {{{{FULLPAGENAME}}|ofp|1.30}}
| [[Scheduler#Unscheduled Environment|Unscheduled]]
| 2 <!-- Single Player -->
| 2 <!-- Dedicated Server -->
| 2 <!-- Hosted Server -->
| 2 <!-- Multiplayer Client -->
| 2 <!-- JIP MP Client -->
 
|-
|-
| <tt><nowiki>{{GVI|ofpr|1.80}}</nowiki></tt>
| Object Init Event Handlers are called
| {{{{FULLPAGENAME}}|ofpr|1.80}}
| [[Scheduler#Unscheduled Environment|Unscheduled]]
| 3 <!-- Single Player -->
| 3 <!-- Dedicated Server -->
| 3 <!-- Hosted Server -->
| 3 <!-- Multiplayer Client -->
| {{Icon|unchecked}} <!-- JIP MP Client -->
 
|-
|-
| <tt><nowiki>{{GVI|ofpe|1.00}}</nowiki></tt>
| Expressions of [[Eden Editor: Configuring Attributes|Eden Editor entity attributes]] are called<ref name="isPlayer"><sqf inline>isPlayer _entity</sqf> does not return [[true]] immediately. Once the entity has become a [[player]], it is transferred to the client.</ref>
| {{{{FULLPAGENAME}}|ofpe|1.00}}
| [[Scheduler#Unscheduled Environment|Unscheduled]]
| 4 <!-- Single Player -->
| 4 <!-- Dedicated Server -->
| 4 <!-- Hosted Server -->
| {{Icon|unchecked}} <!-- Multiplayer Client -->
| {{Icon|unchecked}} <!-- JIP MP Client -->
 
|-
|-
| <tt><nowiki>{{GVI|arma1|?}}</nowiki></tt>
| Object initialisation fields are called
| {{{{FULLPAGENAME}}|arma1|?}}
| [[Scheduler#Unscheduled Environment|Unscheduled]]
| 5 <!-- Single Player -->
| 5 <!-- Dedicated Server -->
| 5 <!-- Hosted Server -->
| 4 <!-- Multiplayer Client -->
| 3 <!-- JIP MP Client -->
 
|- style="background-color: #95F0AD"
| [[Event Scripts#init.sqs|init.sqs]] is executed
|
| 6 <!-- Single Player -->
| <!-- Dedicated Server -->
| <!-- Hosted Server -->
| <!-- Multiplayer Client -->
| <!-- JIP MP Client -->
 
|- style="background-color: #95F0AD"
| [[Event Scripts#init.sqf|init.sqf]] is executed
| [[Scheduler#Scheduled Environment|Scheduled]]<ref name="enginewaits">Note '''in single player''' that while the environment is [[Scheduler#Scheduled Environment|Scheduled]] ([[canSuspend]] returns true), the engine seems to wait until the script is done executing, essentially behaving similarly to an [[Scheduler#Unscheduled Environment|Unscheduled environment]] - infinite loops will freeze the game, [[uiSleep]] may pause the game for up to ~20s (postInit), [[waitUntil]] can cause catastrophic issues, etc.</ref>
| <!-- Single Player -->
| <!-- Dedicated Server -->
| <!-- Hosted Server -->
| <!-- Multiplayer Client -->
| <!-- JIP MP Client -->
 
|-
|-
| <tt><nowiki>{{GVI|arma1|1}}</nowiki></tt>
| Expressions of [[Eden Editor: Configuring Attributes|Eden Editor scenario attributes]] are called<ref name="playerCommandNotAvailable">[[player]] is not available immediately.</ref>
| {{{{FULLPAGENAME}}|arma1|1}}
| [[Scheduler#Unscheduled Environment|Unscheduled]]
| <!-- Single Player -->
| <!-- Dedicated Server -->
| <!-- Hosted Server -->
| <!-- Multiplayer Client -->
| <!-- JIP MP Client -->
 
|- style="background-color: #95DEF0"
| Persistent functions are called
|
| <!-- Single Player -->
| <!-- Dedicated Server -->
| <!-- Hosted Server -->
| <!-- Multiplayer Client -->
| <!-- JIP MP Client -->
 
|-
|-
| <tt><nowiki>{{GVI|arma1|1.1}}</nowiki></tt>
| [[Modules]] are initialised
| {{{{FULLPAGENAME}}|arma1|1.1}}
|
| <!-- Single Player -->
| <!-- Dedicated Server -->
| <!-- Hosted Server -->
| <!-- Multiplayer Client -->
| {{Icon|unchecked}} <!-- JIP MP Client -->
 
|- style="background-color: #DEF0AD"
| [[Event Scripts#initServer.sqf|initServer.sqf]] is executed
| [[Scheduler#Scheduled Environment|Scheduled]]
| <!-- Single Player -->
| <!-- Dedicated Server -->
| <!-- Hosted Server -->
| {{n/a}} <!-- Multiplayer Client -->
| {{n/a}} <!-- JIP MP Client -->
 
|- style="background-color: #DEF0AD"
| [[Event Scripts#initPlayerLocal.sqf|initPlayerLocal.sqf]] is executed
| [[Scheduler#Scheduled Environment|Scheduled]]
| <!-- Single Player -->
| {{n/a}} <!-- Dedicated Server -->
| <!-- Hosted Server -->
| <!-- Multiplayer Client -->
| <!-- JIP MP Client -->
 
|- style="background-color: #DEF0AD"
| [[Event Scripts#initPlayerServer.sqf|initPlayerServer.sqf]] is executed on the server
| [[Scheduler#Scheduled Environment|Scheduled]]
| <!-- Single Player -->
| {{n/a}} <!-- Dedicated Server -->
| ?? <!-- Hosted Server -->
| <!-- Multiplayer Client -->
| <!-- JIP MP Client -->
 
|-
|-
| <tt><nowiki>{{GVI|arma2|1.05}}</nowiki></tt>
| [[Arma 3: Functions Library|Functions]] with <syntaxhighlight lang="cpp" inline>postInit</syntaxhighlight> {{Link|Arma 3: Functions Library#Attributes 3|attribute}} are called
| {{{{FULLPAGENAME}}|arma2|1.05}}
| [[Scheduler#Scheduled Environment|Scheduled]]<ref name="enginewaits"/>
| <!-- Single Player -->
| <!-- Dedicated Server -->
| <!-- Hosted Server -->
| <!-- Multiplayer Client -->
| <!-- JIP MP Client -->
 
|- style="background-color: #95DEF0"
| [[Event Scripts#init.sqs|init.sqs]] is executed
| [[Scheduler#Scheduled Environment|Scheduled]]
| <!-- Single Player -->
| <!-- Dedicated Server -->
| <!-- Hosted Server -->
| <!-- Multiplayer Client -->
| <!-- JIP MP Client -->
 
|- style="background-color: #95DEF0"
| [[Event Scripts#init.sqf|init.sqf]] is executed
| [[Scheduler#Scheduled Environment|Scheduled]]
| <!-- Single Player -->
| <!-- Dedicated Server -->
| <!-- Hosted Server -->
| <!-- Multiplayer Client -->
| <!-- JIP MP Client -->
 
|-
|-
| <tt><nowiki>{{GVI|a2oa|1.63}}</nowiki></tt>
| [[remoteExec]]'s [[Multiplayer Scripting#Join In Progress|JIP]] queue
| {{{{FULLPAGENAME}}|a2oa|1.63}}
| {{n/a}}
| {{n/a}} <!-- Single Player -->
| {{n/a}} <!-- Dedicated Server -->
| {{n/a}} <!-- Hosted Server -->
| {{n/a}} <!-- Multiplayer Client -->
| 42 <!-- JIP MP Client -->
 
|- style="background-color: #EEE"
| ''Scenario going''
| {{n/a}}
| <!-- Single Player -->
| <!-- Dedicated Server -->
| <!-- Hosted Server -->
| <!-- Multiplayer Client -->
| <!-- JIP MP Client -->
 
|-
|-
| <tt><nowiki>{{GVI|arma2oa|1.60}}</nowiki></tt>
| [[Event Scripts#exit.sqf|exit.sqf]]
| {{{{FULLPAGENAME}}|arma2oa|1.60}}
|
| <!-- Single Player -->
| <!-- Dedicated Server -->
| <!-- Hosted Server -->
| <!-- Multiplayer Client -->
| <!-- JIP MP Client -->
 
|-
|-
| <tt><nowiki>{{GVI|arma3|0.05}}</nowiki></tt>
| [[Event Scripts#exit.sqs|exit.sqs]]
| {{{{FULLPAGENAME}}|arma3|0.05}}
|
| <!-- Single Player -->
| <!-- Dedicated Server -->
| <!-- Hosted Server -->
| <!-- Multiplayer Client -->
| <!-- JIP MP Client -->
 
|-
|-
| <tt><nowiki>{{GVI|arma3|0.50}}</nowiki></tt>
| {{Link|Arma 3: Mission Event Handlers#Ended|"Ended" Mission Event Handler}}
| {{{{FULLPAGENAME}}|arma3|0.50}}
|
| <!-- Single Player -->
| <!-- Dedicated Server -->
| <!-- Hosted Server -->
| <!-- Multiplayer Client -->
| <!-- JIP MP Client -->
 
|-
|-
| <tt><nowiki>{{GVI|arma3|0.58}}</nowiki></tt>
| {{Link|Arma 3: Mission Event Handlers#MPEnded|"MPEnded" Mission Event Handler}}
| {{{{FULLPAGENAME}}|arma3|0.58}}
|
|-
| <!-- Single Player -->
| <tt><nowiki>{{GVI|arma3|0.70}}</nowiki></tt>
| <!-- Dedicated Server -->
| {{{{FULLPAGENAME}}|arma3|0.70}}
| <!-- Hosted Server -->
|-
| <!-- Multiplayer Client -->
| <tt><nowiki>{{GVI|arma3|0.76}}</nowiki></tt>
| <!-- JIP MP Client -->
| {{{{FULLPAGENAME}}|arma3|0.76}}
 
|-
| <tt><nowiki>{{GVI|arma3|1.14}}</nowiki></tt>
| {{{{FULLPAGENAME}}|arma3|1.14}}
|-
| <tt><nowiki>{{GVI|arma3|1.99}}</nowiki></tt>
| {{{{FULLPAGENAME}}|arma3|1.99}}
|-
| <tt><nowiki>{{GVI|arma3|2.00}}</nowiki></tt>
| {{{{FULLPAGENAME}}|arma3|2.00}}
|-
| <tt><nowiki>{{GVI|arma3|2.49}}</nowiki></tt>
| {{{{FULLPAGENAME}}|arma3|2.49}}
|-
| <tt><nowiki>{{GVI|arma3|2.50}}</nowiki></tt>
| {{{{FULLPAGENAME}}|arma3|2.50}}
|-
| <tt><nowiki>{{GVI|arma3dev|1.00}}</nowiki></tt>
| {{{{FULLPAGENAME}}|arma3dev|1.00}}
|-
| <tt><nowiki>{{GVI|arma3|dev}}</nowiki></tt>
| {{{{FULLPAGENAME}}|arma3|dev}}
|-
| <tt><nowiki>{{GVI|arma3dev}}</nowiki></tt>
| {{{{FULLPAGENAME}}|arma3dev}}
|-
| <tt><nowiki>{{GVI|arma3diag|1.00}}</nowiki></tt>
| {{{{FULLPAGENAME}}|arma3diag|1.00}}
|-
| <tt><nowiki>{{GVI|arma3|diag}}</nowiki></tt>
| {{{{FULLPAGENAME}}|arma3|diag}}
|-
| <tt><nowiki>{{GVI|carriercommand|1.00}}</nowiki></tt>
| {{{{FULLPAGENAME}}|carriercommand|1.00}}
|-
| <tt><nowiki>{{GVI|dayz|1.00}}</nowiki></tt>
| {{{{FULLPAGENAME}}|dayz|1.00}}
|-
| <tt><nowiki>{{GVI|tkoh|1.00}}</nowiki></tt>
| {{{{FULLPAGENAME}}|tkoh|1.00}}
|-
| <tt><nowiki>{{GVI|tkom|1.00}}</nowiki></tt>
| {{{{FULLPAGENAME}}|tkom|1.00}}
|}
|}


[[Category:Templates|{{uc:{{PAGENAME}}}}]]
 
</noinclude>
== See Also ==
 
* [[Arma 3: Functions Library]]<!--
* [[Arma 2: Functions Library]] -->
* [[Arma 3: Remote Execution]], [[BIS_fnc_MP]] <!-- keep? -->
* [[Eden Editor: Configuring Attributes|Eden Editor: Configuring Attributes]]
* [[Event Scripts]]
* [[Scheduler]]

Latest revision as of 00:29, 18 March 2024

Order of Initialisation (use column sorting for respective machine order)
Task Exec Environment Machine
Single Player Dedicated Server Hosted Server Multiplayer Client JIP MP Client
Functions with recompile attribute are recompiled N/A 1 1 1 1 1
Functions with preInit attribute are called Unscheduled 2 2 2 2 2
Object Init Event Handlers are called Unscheduled 3 3 3 3 Unchecked
Expressions of Eden Editor entity attributes are called[1] Unscheduled 4 4 4 Unchecked Unchecked
Object initialisation fields are called Unscheduled 5 5 5 4 3
init.sqs is executed 6
init.sqf is executed Scheduled[2]
Expressions of Eden Editor scenario attributes are called[3] Unscheduled
Persistent functions are called
Modules are initialised Unchecked
initServer.sqf is executed Scheduled N/A N/A
initPlayerLocal.sqf is executed Scheduled N/A
initPlayerServer.sqf is executed on the server Scheduled N/A ??
Functions with postInit attribute are called Scheduled[2]
init.sqs is executed Scheduled
init.sqf is executed Scheduled
remoteExec's JIP queue N/A N/A N/A N/A N/A 42
Scenario going N/A
exit.sqf
exit.sqs
"Ended" Mission Event Handler
"MPEnded" Mission Event Handler


See Also

  1. isPlayer _entity does not return true immediately. Once the entity has become a player, it is transferred to the client.
  2. 2.0 2.1 Note in single player that while the environment is Scheduled (canSuspend returns true), the engine seems to wait until the script is done executing, essentially behaving similarly to an Unscheduled environment - infinite loops will freeze the game, uiSleep may pause the game for up to ~20s (postInit), waitUntil can cause catastrophic issues, etc.
  3. player is not available immediately.