DreadedEntity – User talk
Killzone Kid (talk | contribs) (→Re: reverse note: new section) |
Lou Montana (talk | contribs) (Add User talk:Dreadedentity content) |
||
Line 1: | Line 1: | ||
{{TOC|side}} | |||
== Error message == | |||
Does anybody know why it says my user page is not registered? How to fix it? Can't seem to find the bulk of my contributions in wiki history either | |||
: yup, it's unfortunately the wiki that is not understanding your username starting with a lowercase - {{ic|1= dreadedentity != Dreadedentity}} - and it weirdly cannot have a user without first uppercase as of now :-\ - [[User:Lou Montana|Lou Montana]] ([[User talk:Lou Montana|talk]]) 11:51, 20 March 2022 (CET) | |||
== params page == | |||
The note you left on the params page actually talks about a effect of private variables | |||
https://community.bistudio.com/wiki/private | |||
Not params itself. Params just has the side effect of creating new variables as private versions. | |||
"[[params]] gets around this, most likely, by creating a new, unique application-level variable under the hood, despite being of the same name." | |||
Not "most likely". We know exactly what's happening. If you access a local variable the engine walks up all scopes and tries to find a existing varible with same name. | |||
"private" variables just disable that check and only look in the current scope, and create a new variable if it doesn't exist yet. | |||
Consider rewording your text or just moving it to the private page. It's not really relevant to params. | |||
Just noticed. The params command description already says "Parses input argument into array of private variables." So your note is kinda redundant information | |||
== Arma dedicated server == | |||
Is pointing to Arma 2 config, was this your intention? [[User:killzone_kid|killzone_kid]] ([[User talk:killzone_kid|talk]]) 13:35, 18 March 2022 (CET) | |||
:That page seems to be more of a generic page for any game, even though there's a link to the Arma 3-specific page. So I think I got lucky in that regard. I also added a Feature on the A3 dedicated server page that links back to the generic page with a note about it -[[User:DreadedEntity|DreadedEntity]] ([[User talk:dreadedentity|talk]]) 14:19, 18 March 2022 (CET) | |||
== Join Discord == | |||
Please consider joining A3 discord if you are planning on continuing editing wiki [[User:killzone_kid|killzone_kid]] ([[User talk:killzone_kid|talk]]) 11:03, 20 March 2022 (CET) | |||
Hi! Be sure to check [https://community.bistudio.com/wiki?title=load&diff=308820&oldid=308819 changes] before committing :) also, don't hesitate to join the [https://discord.gg/arma Arma Discord Server], {{hl|#community_wiki}} channel! - [[User:Lou Montana|Lou Montana]] ([[User talk:Lou Montana|talk]]) 18:37, 3 April 2022 (CEST) | |||
== Tips & Tricks == | == Tips & Tricks == | ||
The easiest way to remove a hint from the screen is: | The easiest way to remove a hint from the screen is: | ||
< | <sqf> | ||
hint "Delete this hint after 5 seconds." | |||
[] spawn { | [] spawn { | ||
sleep 5; | sleep 5; | ||
hint ""; | hint ""; | ||
}</ | } | ||
</sqf> | |||
This should be common sense, but...Always use parenthesis when dealing with array elements. All of the scripting commands will reach the array variable reference, then use that for input, ignoring your select command. This will usually result in a "Type Array, expected (something else)" error. Occasionally, a command is able to accept arrays '''and''' single objects, so it will throw a different error when it reaches your select command. | This should be common sense, but...Always use parenthesis when dealing with array elements. All of the scripting commands will reach the array variable reference, then use that for input, ignoring your select command. This will usually result in a "Type Array, expected (something else)" error. Occasionally, a command is able to accept arrays '''and''' single objects, so it will throw a different error when it reaches your select command. | ||
< | <sqf> | ||
_myResult = _myArray | _myArray = [0,1,2,3,4,5]; | ||
_myResult = (_myArray | _myResult = _myArray select 0 + _myArray select 4; //Generic Error Reported, engine is trying to add 0 & _myArray together. "#" is right before the "+" | ||
_myResult = (_myArray select 0) + (_myArray select 4); //Result is 4 as expected | |||
</ | hint str _myArray select 3; //Hint will be [0,1,2,3,4,5]. Yes, that's the entire array. | ||
hint str (_myArray select 3); //Hint will be 3, as expected. | |||
</sqf> | |||
There are many more situations where programming techniques will break your code. Use parenthesis. | There are many more situations where programming techniques will break your code. Use parenthesis. | ||
Memorize a large portion of the wiki. Seriously. | Memorize a large portion of the wiki. Seriously. | ||
== cursortarget == | == cursortarget == | ||
Your note on cursorTarget is half true**, while in the boundingbox (seemingly correlated) that object is returned constantly; but it still returns other objects when pointed at them. best examples of this seem to be standing under the taru, mh tail rotor or in a shoothouse tunnel. **edit: i guess my issue really is just the word 'always' | Your note on cursorTarget is half true**, while in the boundingbox (seemingly correlated) that object is returned constantly; but it still returns other objects when pointed at them. best examples of this seem to be standing under the taru, mh tail rotor or in a shoothouse tunnel. **edit: i guess my issue really is just the word 'always' | ||
== Signatures and Interwiki Links == | == Signatures and Interwiki Links == | ||
Line 32: | Line 75: | ||
Just figured I would point this out, because I have seen a few times that you have used full links in the wiki. Cheers | Just figured I would point this out, because I have seen a few times that you have used full links in the wiki. Cheers | ||
--[[User:Benargee|Benargee]] ([[User talk:Benargee|talk]]) 04:00, 12 December 2014 (CET) | --[[User:Benargee|Benargee]] ([[User talk:Benargee|talk]]) 04:00, 12 December 2014 (CET) | ||
== Re: reverse note == | == Re: reverse note == | ||
As syntax page clearly states reverse alters existing array and returns NOTHING. Your example imply that command actually return something, for example, I quote: | As syntax page clearly states reverse alters existing array and returns NOTHING. Your example imply that command actually return something, for example, I quote: | ||
< | <sqf>hint str (reverse(toArray("test"))); //will always return []</sqf> | ||
it does not return [] and it cannot return []. Would you like to revise your note? [[User:Killzone Kid|Killzone Kid]] ([[User talk:Killzone Kid|talk]]) 12:22, 16 December 2014 (CET) | it does not return [] and it cannot return []. Would you like to revise your note? [[User:Killzone Kid|Killzone Kid]] ([[User talk:Killzone Kid|talk]]) 12:22, 16 December 2014 (CET) |
Revision as of 12:27, 5 April 2022
Error message
Does anybody know why it says my user page is not registered? How to fix it? Can't seem to find the bulk of my contributions in wiki history either
- yup, it's unfortunately the wiki that is not understanding your username starting with a lowercase -
dreadedentity != Dreadedentity
- and it weirdly cannot have a user without first uppercase as of now :-\ - Lou Montana (talk) 11:51, 20 March 2022 (CET)
params page
The note you left on the params page actually talks about a effect of private variables https://community.bistudio.com/wiki/private Not params itself. Params just has the side effect of creating new variables as private versions.
"params gets around this, most likely, by creating a new, unique application-level variable under the hood, despite being of the same name."
Not "most likely". We know exactly what's happening. If you access a local variable the engine walks up all scopes and tries to find a existing varible with same name.
"private" variables just disable that check and only look in the current scope, and create a new variable if it doesn't exist yet.
Consider rewording your text or just moving it to the private page. It's not really relevant to params.
Just noticed. The params command description already says "Parses input argument into array of private variables." So your note is kinda redundant information
Arma dedicated server
Is pointing to Arma 2 config, was this your intention? killzone_kid (talk) 13:35, 18 March 2022 (CET)
- That page seems to be more of a generic page for any game, even though there's a link to the Arma 3-specific page. So I think I got lucky in that regard. I also added a Feature on the A3 dedicated server page that links back to the generic page with a note about it -DreadedEntity (talk) 14:19, 18 March 2022 (CET)
Join Discord
Please consider joining A3 discord if you are planning on continuing editing wiki killzone_kid (talk) 11:03, 20 March 2022 (CET)
Hi! Be sure to check changes before committing :) also, don't hesitate to join the Arma Discord Server, #community_wiki channel! - Lou Montana (talk) 18:37, 3 April 2022 (CEST)
Tips & Tricks
The easiest way to remove a hint from the screen is:
This should be common sense, but...Always use parenthesis when dealing with array elements. All of the scripting commands will reach the array variable reference, then use that for input, ignoring your select command. This will usually result in a "Type Array, expected (something else)" error. Occasionally, a command is able to accept arrays and single objects, so it will throw a different error when it reaches your select command.
There are many more situations where programming techniques will break your code. Use parenthesis.
Memorize a large portion of the wiki. Seriously.
cursortarget
Your note on cursorTarget is half true**, while in the boundingbox (seemingly correlated) that object is returned constantly; but it still returns other objects when pointed at them. best examples of this seem to be standing under the taru, mh tail rotor or in a shoothouse tunnel. **edit: i guess my issue really is just the word 'always'
Signatures and Interwiki Links
FYI using ~~~~ will automatically mark your signature where ever you put it like this: Benargee (talk) 04:00, 12 December 2014 (CET)
Also for linking pages on this wiki there is no need to do this: [https://community.bistudio.com/wiki/User_talk:Benargee Benargee] = Benargee.
They can simply be done like this: [[User talk:Benargee]] = User talk:Benargee.
Or like this [[User talk:Benargee|Benargee]] = Benargee.
Just figured I would point this out, because I have seen a few times that you have used full links in the wiki. Cheers
--Benargee (talk) 04:00, 12 December 2014 (CET)
Re: reverse note
As syntax page clearly states reverse alters existing array and returns NOTHING. Your example imply that command actually return something, for example, I quote:
it does not return [] and it cannot return []. Would you like to revise your note? Killzone Kid (talk) 12:22, 16 December 2014 (CET)