Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Match case for magazines in fillRightPanel (ACE Arsenal) #6044

Merged
merged 3 commits into from
Jan 15, 2018

Conversation

alganthe
Copy link
Contributor

@alganthe alganthe commented Jan 11, 2018

When merged this pull request will:

  • Match case for magazines in fillRightPanel.

For some reason you're able to have different case between the entry in the weapon magazines array and its actual configName, meaning that some mags won't show up in the currentMag and currentMag2 tabs even tho they should.

Apparently you can have different case between the entry in the weapon magazines array and its actual configname...
@bux bux added this to the 3.12.1 milestone Jan 12, 2018
@bux bux added the kind/bug-fix Release Notes: **FIXED:** label Jan 12, 2018
@dedmen
Copy link
Contributor

dedmen commented Jan 15, 2018

What about my proposed fix of actually using the proper case instead of toLowering all magazines each time the right panel is refreshed?

Replace https://github.com/alganthe/ACE3ganthe/blob/23bb184744909afdcec7cf5b2efe09a28a4a8453/addons/arsenal/functions/fnc_fillRightPanel.sqf#L89
by
((_compatibleMagazines select _index) select _subIndex) pushBackUnique (configName (configFile >> "CfgMagazines" >> _x))

CloseOnMissionEnd is bugged in 3DEN and force close the display after it's opened
@alganthe
Copy link
Contributor Author

alganthe commented Jan 15, 2018

Replace my lazy ass fix with ded's (works as intended, tested with IFA3 mags that had that issue), I also removed closeOnMissionEnd after noticing some weird behaviors in 3DEN.

@jonpas jonpas merged commit b760680 into acemod:master Jan 15, 2018
@alganthe alganthe deleted the fixMagCase branch October 1, 2018 16:40
BaerMitUmlaut pushed a commit that referenced this pull request Aug 5, 2019
* Match case for magazines in fillRightPanel

Apparently you can have different case between the entry in the weapon magazines array and its actual configname...

* Add possible fix for the mission end bug

* Add ded's proposed fix, remove closeOnMissionEnd

CloseOnMissionEnd is bugged in 3DEN and force close the display after it's opened
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug-fix Release Notes: **FIXED:**
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants