ALiVEOS / ALiVE.OS

ALiVE Open Source GPL v2
http://alivemod.com/
Other
160 stars 80 forks source link

ORBAT Creator group editor uses localized strings for unit ranks #772

Open RusComBear opened 2 years ago

RusComBear commented 2 years ago

Prerequisites

Description

When running Arma 3 in any language other than english ORBAT Creator will use localized strings for unit ranks. This causes two issues:

Steps to Reproduce

  1. Run Arma 3 in any language other than english, with Alive and CBA loaded
  2. Create new scenario in the editor
  3. Place any playable unit and ORBAT Creator module
  4. Run scenario test
  5. Open any faction in ORBAT group editor. Currently assigned ranks won't be shown for all units (rank field is empty)
  6. Change rank for any unit and export modified group config. Generated config will use localized string for modified rank and won't work properly without manual fix

Expected behavior: Unit ranks from existing factions should be propely shown. Rank field should never be empty. Generated group config should work without manual tweaking. All changed ranks should be written in english.

Actual behavior: All unit ranks from existing factions aren't shown. Rank field is empty, unless it's modified by user. Generated group configs won't work without manual tweaking. All modified ranks will be written in a language that Arma 3 set to.