ACE3 icon indicating copy to clipboard operation
ACE3 copied to clipboard

IR Strobe detaches after time interval

Open dedmen opened this issue 9 years ago • 18 comments

Arma 3 Version: 1.66 (stable) CBA Version: 3.1.2 (stable) ACE3 Version: 3.9.0 (stable)

Mods:

  • @CBA_A3
  • @ace

Description: The time seems to be around 10 minutes. Bux said it might be the lifeTime of the strobe. But it still continues blinking after it detaches. I sure sounds to me like the batteries of the strobe ran out and it should stop blinking. But it continues blinking for atleast 5 minutes.

After it detaches player getVariable ["ace_attach_attached",true] returns [[<NULL-object>,"B_IR_Grenade"]]

Steps to reproduce:

  • Attach vanilla Nato IR strobe
  • Go afk for 10-20 minutes
  • Move a few steps away and the IR strobe will be floating in the air behind you

Where did the issue occur?

  • Dedicated

dedmen avatar Feb 24 '17 23:02 dedmen

player getVariable ["ace_attach_attached",true]
returns [[<NULL-object>,"B_IR_Grenade"]]

After about 5 minutes.same thing happens even if you are not afk!

Phyma avatar Jun 01 '17 09:06 Phyma

Working on fix. Have made it disappear on self attach. But it will get removed after 5 minutes. Working on same bug for vehicles.

Should it get removed or just refreshed?

Phyma avatar Jun 01 '17 17:06 Phyma

#5233

Phyma avatar Jun 01 '17 22:06 Phyma

Hm, one would need to research how long an IR grenade's battery life is

bux avatar Jun 02 '17 04:06 bux

Just a quick look around Google and I can't find a ir grenade. But a small strobe like http://www.eod-gear.com/eod-ir-strobe-light/ Is one AA battery and with max setting it will blink for 4h and 30 minutes. But the grenade is bigger that this thing so say about 8h?

Phyma avatar Jun 02 '17 06:06 Phyma

Agreed. As it's probably unlikely that a mission lasts 8h IR grenades probably should just get refreshed. Opinions?

bux avatar Jun 02 '17 06:06 bux

What about just tweaking the timeToLive config?

PabstMirror avatar Jun 02 '17 06:06 PabstMirror

yeah if we say refresh i say we just change the config.

Phyma avatar Jun 02 '17 06:06 Phyma

I found this one that is closer to what is in game and has a battery life of up to 250hrs. https://tnvc.com/shop/guardian-dual-function-infrared-beacon/

Drofseh avatar Jun 02 '17 06:06 Drofseh

Tried to set the B_IRStrobe to this below:

class CfgAmmo {

    class IRStrobeBase;

    class B_IRStrobe: IRStrobeBase {
        timeToLive = 1e10;
    };
};

The grenade still disappears and the B_IR_grenade dosent have a timetoLive (never had) and This config changes the values so it works. But dosent fix the issue.

Will fix the PR so it will refresh instead of destroy.

Phyma avatar Jun 02 '17 14:06 Phyma

Will make it refresh instead!

Phyma avatar Jun 03 '17 12:06 Phyma

IR strobe has hardcoded time limit of 30 minutes in the engine. Which overrides whatever you set for timeToLive. To be exact not IR strobes in general but the "nvmarker" simulation

dedmen avatar Oct 26 '17 11:10 dedmen

If they have such along battery life, you should be able to detach them and reuse them later.

Xyaren avatar Jan 21 '18 22:01 Xyaren

Please mark as BI's fault, for the engine hardcoded lifetime. I'll see what I can do about that.

Or is the detaching/lifetime a seperate issue? it turns into nullObj so I'd say it was completely a engine thing? But 30 minutes hardcoded engine limit on the light will still be bad anyway, even if we fix the detach.

dedmen avatar Apr 02 '20 08:04 dedmen

fat_lurch has somehow gotten his to last 5 hours. MS_IFF_Strobe

fire-391 avatar Apr 02 '20 20:04 fire-391

Well yeah. All you need is to keep a tracker running attaching a new one whenever the old one is swallowed by the engine.

Or dedmen fixes it in the game code instead.

Close?

commy2 avatar Apr 02 '20 21:04 commy2

Close once I managed to fix it, then recheck whether we need to do anything else.

dedmen avatar Apr 03 '20 07:04 dedmen

Was a fix ever applied to the game engine or to ACE to stop this?

JasonO99 avatar Jan 27 '21 21:01 JasonO99