Closed vlad8011 closed 7 years ago
Can you translate 16:54:47 Error Typ To nie liczba, potrzebny Liczbowe
?
Type is not a number, requires number.
positionCameraToWorld [0, 0, 1]
could this be returning []
Maybe TrackIR?
but why would that say NaN ?
AGLToASL []
21:28:20 Error position: <AGLToASL []>
21:28:20 Error 0 elements provided, 3 expected
AGLToASL [0,0,log -1]
21:28:55 Error position: <AGLToASL [0,0,log -1]>
21:28:55 Error Type Not a Number, expected Number
Same with vectorDiff
So positionCameraToWorld
reports a NaN?
https://github.com/acemod/ACE3/blob/master/addons/nametags/functions/fnc_onDraw3d.sqf#L72
Is the bug specific to that tank? It might have some wrong config entry breaking positionCameraToWorld
I saw it on T-90A as commander, i'll make some test soon. As driver in abrams problem didnt appeared. Maybe its related to FFV, as commander on T-90 is ffv position.
OK, i checked almost all vehicles and it happen only on SPRUT on commander, T-90, and T-90A as commander. Latest RPT attach, now it says about laserpointer.
^ RPT extracted
So positionCameraToWorld reports a NaN?
Yes, it's really NaN:
a = positionCameraToWorld [0, 0, 0]; diag_log format ["%1 %2 %3", a, typeName a, typeName (a select 0)];
[-1.#IND,-1.#IND,-1.#IND] ARRAY NaN
@Dystopian That's a bug on BI side then. I'd like to work around it. How exactly did you reproduce this?
@commy2 place RHS T90, turn 3rd view, get in as commander, turn out
roger. I guess it's more of a problem of the T90 then. But we certainly should insert a error trap for weird stuff like this.
I suspect that gunBeg and gunEnd for the turret are at the exact same location.
private _turretCfg = [cameraOn, player call CBA_fnc_turretPath] call CBA_fnc_getTurret;
diag_log [
cameraOn selectionPosition getText (_turretCfg >> "gunBeg"),
cameraOn selectionPosition getText (_turretCfg >> "gunEnd")
];
I suspect that gunBeg and gunEnd for the turret are at the exact same location.
Or maybe they are not defined, and the engine defaults to (0,0,0) for both
So its on RHS or BI end? Its really weird, same things happen on Sprut (VDV tank), from RHS too. I dont play vanilla since few months, so i dont know if vanilla is affected
RHS. Probably missing memory points in the tank models MEMORY-LOD
Ach.... If i could report it to them.... They say all related to LOD problems is BI fault. There is problem with their TUSK Sep v.1 and its the LOD memory problem too, they say BI fault.
I would say it's a BI's error. Even if RHS mod has a bug, the documented command positionCameraToWorld MUST return a correct value not NaN.
I can't reproduce.
[typeOf cameraOn, player call CBA_fnc_turretPath, isTurnedOut player, positionCameraToWorld [0,0,0]]
["rhs_t90a_tv",[0,0],true,[4022.15,4014.37,2.94694]]
[typeOf cameraOn, player call CBA_fnc_turretPath, isTurnedOut player, positionCameraToWorld [0,0,0]]
["rhs_sprut_vdv",[0,0],true,[4035.78,4020.2,2.95446]]
@commy2 Did you enable -showScriptErrors and the 3rd view?
You can't just see it in Esc-console. You have to spawn background code and then turn out. White screen will appear on turning out animation end and disappear after Esc press. Use this code:
[] spawn {for "_y" from 0 to 500 step 1 do { sleep 0.01;diag_log format ["bbb %1",[typeOf cameraOn, player call CBA_fnc_turretPath, isTurnedOut player, positionCameraToWorld [0,0,0]]];};};
20:35:26 "bbb [""rhs_t90_tv"",[0,0],true,[3953.72,4148.5,3.29044]]" 20:35:26 Error in expression <ToWorld [0, 0, 0]; private _camPosASL = AGLtoASL _camPosAGL; private _vecy = (AG> 20:35:26 Error position: <AGLtoASL _camPosAGL; private _vecy = (AG> 20:35:26 Error Type Not a Number, expected Number 20:35:26 File z\ace\addons\nametags\functions\fnc_onDraw3d.sqf, line 57 20:35:26 "bbb [""rhs_t90_tv"",[0,0],true,[-1.#IND,-1.#IND,-1.#IND]]"
Tell me if you need a video.
Did you enable -showScriptErrors and the 3rd view?
Yes
You can't just see it in Esc-console. You have to spawn background code and then turn out.
Ahh. I didn't do that. But there was no white screen either.
Will retry with that loop.
Will retry with that loop.
hmm I don't think it helps. There's something different in our environments which prevents you from seeing the white screen and the error.
Yeah. I'm a moron and tested it on the branch where I exitWith in case it's bugged (#4463).
I got rid of the script error in #4463, but the white display thing is still there. Is that a RHS bug? I don't think we have any white displays.
Is that a RHS bug?
Yes. Sorry, I didn't check, I thought @vlad8011 had checked.
@commy2 Do you want me to create a task for positionCameraToWorld at BI's tracker?
I think it's probably caused by the same bug that creates the white screen. I'd like to find a proper repro before posting a ticket on the BI tracker.
I can try to find it.
Search for an additional display (allDisplays
) while the white screen is shown and try to figure out which one it might be by using ctrlClassName
on allControls
.
allDisplays apply {allControls _x apply {ctrlClassName _x}}
or something like that. Unfortunately pressing ESC to open the debug console closes it.
@commy2 I failed to find a problem in T90 and Sprut configs. T90 config is inherited from T72d which has no white screen. Sprut config is written from scratch. After many tests it seems to me the problem is in the model. I don't work with models so can't search there, sorry.
Also I tried somehow use your recommendation about allDisplays
and failed - I don't really understand it :)
I think I found where the issue might be. It's very likely a problem with the rhs_gui_optic_TKN4S_rangefinder
turretInfo optic display. This displays calls the RHS_fnc_sight_TKN4s
function.
onLoad = "['onLoad',_this,'RscUnitInfo','IGUI'] call (uinamespace getvariable 'BIS_fnc_initDisplay'); _this call RHS_fnc_sight_TKN4s";
RHS_fnc_sight_TKN4s
is used by both T90, but also by the rhs_t80a
. The white screen cannot be reproduced with the T80A though, but that is most likely because it has no rotatable commander turret (no gun).
Since the white screen also happens without CBA and ACE I'd say I'm done here.
It's very likely a problem with the rhs_gui_optic_TKN4S_rangefinder turretInfo optic display.
Still fail to locate config or script causing the bug, I tried to remove turretInfoType as well as RHS_fnc_sight_TKN4s. I've created ticket at RHS tracker, if they resolve it's easier to locate the bug. I'll inform you.
Pretty nice, thanks for reporting this ! One more beer on my list for you :+1:
RHS devs didn't report bug at BI tracker because they doubt BI fix it. Also they don't want to help me report it.
Pretty "normal" reaction. Lets just be happy you didnt received a ban (as me, and i cant report ANY bug to tohem beacuse they deleting report and blocking my account, and if someone report same issue as me, they delaying fix for next decade, and on the end they call ME childish) :) I finally throwed it out of me :D
Sad to hear. Please no drama here though. The script error on our side is fixed, so I'm locking this conversation.
Arma 3 Version:
1.64
(rc) CBA Version:v3.0.0.160713
(stable) ACE3 Version:3.7.0
(stable)Mods:
@CBA_A3
@ace
RHS Escalation
Description:
Steps to reproduce:
Where did the issue occur?
Placed Modules: