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

Ace Unit Attributes Medic, Doctor, Engineer, ect resetting to default or swapping settings with other units #4902

Closed
Snak3Doc opened this issue Feb 15, 2017 · 2 comments · Fixed by #4905
Labels
Milestone

Comments

@Snak3Doc
Copy link

**Arma 3 Version: 1.66.139586
**CBA Version: 3.1.2.161105
**ACE3 Version: 3.8.3

Mods:

Description:

  • I set the ace attribute options for medics and engineers in a playable squad, after doing this i save the mission and go to double check the units and all the ACE options have ether reset to default, swapped engineers and medics around, or made the unit both a medic and an engineer. The main problem this causes is the medics dont have the the ability to give IV's.

Steps to reproduce:

  • place down any 4 units (tried with medics and engineers as well as other units) through the attribute ace options set 2 as medics and 2 as engineers, now when going back through the units to check their settings, all the medic and engineer settings will have swapped, reset or doubled up.

Where did the issue occur?

  • Editor, Dedicated windows server

Placed Modules:

  • None
@AACO
Copy link
Contributor

AACO commented Feb 15, 2017

I've seen this issue before with some of the custom 3DEN components I've put together before. Looking at the medical/engineering code it seems to be an issue with using missionNamespace when storing 3DEN values.

How to reproduce:

  1. Place 5 units down in 3den.
  2. Edit a single unit's attributes to be a medic/engineer.
  3. Open one or two other unit's attribute, don't change anything, but save the attributes.
  4. Save the mission
  5. Look at the SQM, the units that you just opened, but didn't edit will now be marked as a medic/engineer

I can put together a PR later with how I fixed it (stored the variable on the control level, instead the missionNamespace level)

@Snak3Doc
Copy link
Author

ahh awesome thanks i found a temporary way around it using "this setVariable ["Ace_medical_medicClass", 1];" in the medics init

PabstMirror pushed a commit that referenced this issue Feb 18, 2017
* Update medical/repair 3den away from missionNamespace

* Simplify save
@PabstMirror PabstMirror added this to the 3.9.1 milestone Feb 18, 2017
thojkooi pushed a commit that referenced this issue Mar 13, 2017
* Update medical/repair 3den away from missionNamespace

* Simplify save
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants