User Details
- User Since
- Mar 5 2013, 8:51 PM (610 w, 6 d)
May 20 2016
May 10 2016
those commands are quite nice but they all involve copying/modifiying the source array, introducing overhead and messing up the indices (e.g. the indices are relative to the new paritally array)
so I think having a findNext command would be still an advantage
looks like they got renamed to visible...
e.g. visibleModelToWorld, visibleGetDir, visibleVectorUp, ...
I think the problem is related to non-standard DPI - I've set the scaling in Windows to 125%.
Probably the width and height of the launcher (saved to the .config file) needs to be scaled by the DPI of the system as described in part 2 subitem 3. at http://msdn.microsoft.com/en-us/library/windows/desktop/dd370994%28v=vs.85%29.aspx#part2
Happens for me all the time, too.
After deleting the launcher config at
C:\Users\<username>\AppData\Local\Bohemia_Interactive\arma3launcher.exe_Url_<someRandomText>
the launcher starts with the correct size but the next time it's showing up broken again.
was too slow with writing - posting it anyway:
@KK:
your version of the shuffle can't be compared to the other ones:
- you're not using BIS_fnc_param to check the input
- you're not making a copy
- your version doesn't create an uniform distribution - not even slightly, some permutations aren't possible at all
10000 runs of [0,1,2] call KK_fnc_arrayShuffle (+ array copy):
permutaton - #
[0,1,2] - 0
[0,2,1] - 3714
[1,0,2] - 2577
[1,2,0] - 0
[2,0,1] - 0
[2,1,0] - 3709
@neokika & JSharpe:
any specific reason for using that forEach-loop for copying instead of "+" (https://community.bistudio.com/wiki/plus_a)?
@JSharpe:
In your blog post you wrote that you're using the modern version of Fisher-Yates shuffle algorithm - you aren't exchanging the 2 elements.
2 implementations:
- Modern version of Fisher-Yates shuffle algorithm
MR85_fnc_modernShuffle =
{
private["_array", "_result", "_index", "_tmp"]; _array = [[_this], 0, [], [[]]] call BIS_fnc_param; _result = +_array; for "_i" from (count _result-1) to 1 step -1 do { _index = floor random (_i + 1); _tmp = _result select _i; _result set [_i, _result select _index]; _result set [_index, _tmp]; }; _result
}
- The "inside-out" algorithm as described on the wikipedia (without that i!=j check which hurts more than it helps performancewise)
MR85_fnc_insideOutShuffle =
{
private["_array", "_result", "_index"]; _array = [[_this], 0, [], [[]]] call BIS_fnc_param; _result = []; _result resize (count _array); for "_i" from 0 to (count _array -1) do { _index = floor random (_i + 1); _result set [_i, _result select _index]; _result set [_index, _array select _i]; }; _result
}
getting a substring command was the plan - was preparing a feature ticket for "b:ARRAY select ARRAY"
with a syntax similar to the extended slicing syntax of python
but I think extending the select command for usage with strings would be quite handy anyway - and the same syntax is available in o2script
01-07-2014
EXE rev. 125563
Fixed: RscTextCheckBox spam in RPT when opening GUI editor
can confirm fix in today's dev branch update
some guesswork:
At some point - probably after the eventhandler code has finished or in the next frame - the object gets deleted and all object references return null.
You're using execVM to execute "objectDeleted.sqf", i.e. it gets executed in scheduled space, so it's possible that its execution gets delayed and the object reference returns null.
Try to stay in unscheduled space (i.e. call your script) or pass a value (e.g. a string) and not an object reference to your spawned/execVM'ed script.
added a repro mission: waypointAttachObject_bug.Stratis.zip
wp is a waypoint.
use addactions to execute the 2 different syntaxes
- wp waypointAttachObject 66220
- wp waypointAttachObject ((waypointPosition wp) nearestObject 66220)
check the hint for the result of "waypointAttachedObject wp"
still valid, tested with DEV 1.23.125330
There's probably a similair issue with triggerAttachObject (#15750).
But there's no alternative syntax (object as 2nd argument) available.
it's probably the signature verification, which is enabled on about 60% of the servers
according to your .rpt file you've got 2 files loaded which aren't part of the default arma 3 install (at least not part of my install)
without any warranty - if your pc explodes it's not my fault:
1.) remove (backup/move them somewhere outside of your arma 3 install)
C:\Program Files (x86)\Steam\steamapps\common\Arma 3\dta\languagecore.pbo C:\Program Files (x86)\Steam\steamapps\common\Arma 3\dta\languagecore_h.pbo
2.) verify your arma 3 install with steam
3.) try to connect to some servers
cbChecked and cbSetChecked is for the new checkboxes (type = 77).
for the (old) textual checkboxes (type = 7) use https://community.bistudio.com/wiki/ctrlChecked and https://community.bistudio.com/wiki/ctrlSetChecked
ok, I've added a picture and some text to clarify my request.
The command itself is working fine here.
The issue is most likely because of partly broken syntax of waypointAttachObject (#18445).
use createMine for mines
http://community.bistudio.com/wiki/createMine