Page MenuHomeFeedback Tracker
Feed Advanced Search

May 10 2016

BIS_fnc_KK added a comment to T85187: New "if ... throw" implementation is broken.

I'm afraid this is not a bug but expected behaviour. You pass an argument to throw command which is a result of the function call. With any other command the compiler will behave in the same way, it will first call the function to obtain return value and only then use the value as the argument for the command.

You probably did not expect the function to be executed at all, but there is no reason why it shouldn't, it is inside try {} scope that has been entered. In other cases when you have throw inside then {} scope, it is different because then {} scope is only entered when "if" before that evaluates to true. And since it is false in your example it never has a chance.

Compare this to getVariable with devault value. Same thing would happen, if default value is a function call, it will first call the function.

a = 10;
b = missionNamespace getVariable ["a", 123 call abc];

the abc function will always run, regardless if a is or isn't defined. I hope this clears it up and sorry for the time you have wasted on changing.

May 10 2016, 12:29 PM · Arma 3
BIS_fnc_KK added a comment to T85166: cursortarget on animals return NULL since 1.54.

Please try "cursorObject" command, which should be available in tomorrow's DEV

May 10 2016, 12:28 PM · Arma 3
BIS_fnc_KK added a comment to T85164: Some building return cursortarget NULL & disapear from map on altis since 1.54.

Please try "cursorObject" command, which should be available in tomorrow's DEV

May 10 2016, 12:28 PM · Arma 3
BIS_fnc_KK added a comment to T85055: addWeaponCargo ignores available space.

It is actually a bug that turned into a feature. This will remain unlimited for scripted use while the means of detecting of available space will be extended.

May 10 2016, 12:24 PM · Arma 3
BIS_fnc_KK added a comment to T85048: param command should pick default value for negative indices.

Fixed in today's dev.

May 10 2016, 12:24 PM · Arma 3
BIS_fnc_KK added a comment to T84816: a && b Lazy Eval.

The way the current compiler works, it is not possible to for example

a || b

to stop evaluation if a is true, but

a || {b}

scope with b will be ignored, unless a is false. Ideally it would have benefited to have lazy eval all the time, unfortunately not possible with current compiler.

May 10 2016, 12:17 PM · Arma 3
BIS_fnc_KK added a comment to T84484: Error: File A3\functions_f\numbers\fn_sortNum.sqf.

Old ticket, must have been fixed awhile ago, if not, dev branch has the function rewritten completely.

May 10 2016, 12:08 PM · Arma 3
BIS_fnc_KK added a comment to T84046: [Respawn Camp] JIP problem with respawn tent & sleeping bag (ability to cheat).

I suppose you can override tent/sleeping bag assembly with https://community.bistudio.com/wiki/inGameUISetEventHandler

May 10 2016, 11:55 AM · Arma 3
BIS_fnc_KK added a comment to T84046: [Respawn Camp] JIP problem with respawn tent & sleeping bag (ability to cheat).

Just checked, unfortunately the fix for some reason didn't make it to DEV. Probably after Christmas.

May 10 2016, 11:55 AM · Arma 3
BIS_fnc_KK added a comment to T84046: [Respawn Camp] JIP problem with respawn tent & sleeping bag (ability to cheat).

The fix should have beed added to dev branch awhile ago, could you confirm it solved the problem?

May 10 2016, 11:55 AM · Arma 3
BIS_fnc_KK added a comment to T84004: clearBackpackCargoGlobal does not update the capacity bar.

Should be fixed from 1.57.134270

May 10 2016, 11:54 AM · Arma 3
BIS_fnc_KK added a comment to T83508: Unexpected outcome of CtrlMapCursor command.

Please see updated https://community.bistudio.com/wiki/ctrlMapCursor for the correct usage.

May 10 2016, 11:39 AM · Arma 3
BIS_fnc_KK added a comment to T83441: getPlayerChannel dont trigger direct channel.
May 10 2016, 11:37 AM · Arma 3
BIS_fnc_KK added a comment to T82775: If you remove a Backpack from a box via clearBackpackCargo, it still takes some space inside the box..

Should be fixed from 1.57.134270

May 10 2016, 11:15 AM · Arma 3
BIS_fnc_KK added a comment to T82492: Add "<array> select <code>" to filter arrays, and "<array> apply <code>" to map/apply a function over array elements..

select has been extended awhile ago, apply should be added in tomorrow's dev.

May 10 2016, 11:04 AM · Arma 3
BIS_fnc_KK added a comment to T82374: paramsArray no longer avaiable during preInit on server.

Seems resolved. Please request reopening if this is not the case.

May 10 2016, 11:00 AM · Arma 3
BIS_fnc_KK added a comment to T81652: Visibility Of "Backpack" Spawn To All Sides.

Should be fixed on dev, did it work?

May 10 2016, 10:37 AM · Arma 3
BIS_fnc_KK added a comment to T81390: No "cursorTarget" for the brave (if SP autoreport disabled). [video].

Please try "cursorObject" command instead, which should be available tomorrow.

May 10 2016, 10:29 AM · Arma 3
BIS_fnc_KK added a comment to T80223: Can't put items into Taru transport pod after removing all the items via script..

Should be fixed from 1.57.134270

May 10 2016, 9:46 AM · Arma 3
BIS_fnc_KK added a comment to T80161: Add ability to obtain client id without using owner.

One month no reply - resolving then

May 10 2016, 9:44 AM · Arma 3
BIS_fnc_KK added a comment to T80161: Add ability to obtain client id without using owner.

There is clientOwner command available now that should return client id regardless of player existence on the client. Also both onPlayerConnected and onPlayerDisconnected have _owner information for the joining/leaving client.

Does this resolve the issue?

May 10 2016, 9:44 AM · Arma 3
BIS_fnc_KK added a comment to T79666: WeaponDisassembled event doesn't fire if static weapon is not local.

This should be fixed in today's dev, could anyone confirm?

May 10 2016, 9:29 AM · Arma 3
BIS_fnc_KK added a comment to T78237: USER_DEFINED markers are not unique, which results in duplication [VIDEO].

Fixed in today's DEV

May 10 2016, 8:46 AM · Arma 3
BIS_fnc_KK added a comment to T71186: Position value of backpacks is incorrectly reported by getPos.

Backpack created in editor returns reference to actual backpack container inside its parent weaponholder. In order to get the position of the weaponholder use objectParent

getpos objectParent myPack

reports correct position https://community.bistudio.com/wiki/objectParent

Does this resolve this issue for you?

May 10 2016, 5:38 AM · Arma 3
BIS_fnc_KK added a comment to T66515: 'speed' and 'velocity' commands are broken.

fixed, somewhere in between 2013-2016

May 10 2016, 2:44 AM · Arma 3
BIS_fnc_KK added a comment to T63829: lineIntersectsWith not detecting infantry.

You can use lineIntersectsSurfaces instead, which can detect units

May 10 2016, 1:00 AM · Arma 3