acemod / ACE3

Open-source realism mod for Arma 3
https://ace3.acemod.org
Other
1.02k stars 739 forks source link

ACE prevents reload of added MK6 mortar magazines #8866

Open FelixGold opened 2 years ago

FelixGold commented 2 years ago

Mods (complete and add to the following information):

Description: When adding additional magazines via Init to the MK6 mortar, the mortar will no longer reload those additional magazines from an ammo source

Steps to reproduce: (Could not follow flow chart, as ACE3 wiki is down)

  1. Open Editor
  2. Place NATO MK6 Mortar
  3. Place NATO HEMTT Ammo nearby
  4. Open MK6 Mortar Attributes
  5. Paste "this addMagazines ["8Rnd_82mm_Mo_LG",1];" into init section without quotes
  6. Launch mission as MK6 gunner
  7. Switch to Laser Guided and fire off all 8 shells
  8. Switch to HE and fire off all 8 shells
  9. Only HE reloads, Laser Guided will not reload.

Expected behavior: The Laser Guided Ammo should reload automatically just like the HE ammo does. I have confirmed in Vanilla ARMA 3 that it will reload properly.

Where did the issue occur? Editor Single Player, Multiplayer

Screenshots: If applicable, add screenshots to help explain your problem. The Setup image image In mission image All 8 shells outbound of Laser guided, ammo option disappears from selection menu image 8 additional rounds of High Explosive fired, and is automatically reloaded from the HEMTT once the 8th shell is fired image

Drofseh commented 2 years ago

https://github.com/acemod/ACE3/blob/master/docs/wiki/framework/rearm-framework.md#21-allow-rearming-of-scripted-loadouts

FelixGold commented 2 years ago

I used that code and the problem persists, I tried it with addMagazine, and addMagazines. When the magazine for LG is empty from firing it will not rearm. image

Drofseh commented 2 years ago
this addMagazines ["8Rnd_82mm_Mo_LG",1]; 
this setVariable ["ace_rearm_scriptedLoadout", true, true]; 

This works just fine for me. 99e29b36a8948f8d23e04ea46e5df382

FelixGold commented 2 years ago

Taking ammo is different. That is only useful if you have manual reloading turned on in the ACE Artillery module. That works fine if turned on. the Rearm function is where the bug is.

Drofseh commented 2 years ago

@FelixGold can you upload an RPT where you have the problem, and also your rearm setting, and maybe a video showing what you're doing?

I honestly have no idea what your issue is now. Taking ammo, as shown in my screenshot, is for rearming the mortar. I get a new magazine of ammo (8 rounds) in the mortar after taking it and rearming.

Are you running a version of Ace with Ace Rearm deleted? With Ace Rearm ammo shouldn't automatically resupply, you having to manually take it like in my screenshot.

FelixGold commented 2 years ago

Sure here is the RPT Arma3_x64_2022-04-10_02-09-54.txt

A picture of my Rearm settings image A picture of the Artillery settings image

And a video of the process https://www.youtube.com/watch?v=sCNznqVeZ30

The version of ACE I am running shouldn't have Rearm deleted, it is from the steam workshop, and I didn't see anything else to download to add Rearm.

Drofseh commented 2 years ago

I think you need to adjust the CSW settings and turn off ammo handling there.

The end of your video shows that no ammo can be loaded, you only have options to unload ammo. I think this is because CSW expects only one round to be loaded in the mortar at a time.

@TheCandianVendingMachine could you take a look at this?

FelixGold commented 2 years ago

Ammo handling is turned off, and unloading the ammo just leaves a large pile on the floor, that the HEMTT just auto reloads, like it did after the HE was all fired off.

Edit: I found ammo handling in the crew served weapons section, turning that off DOES allow reloading Laser Guided munitions with interaction menu, though the HE shells still automatically reload back to 8 once all are expended.