Page MenuHomeFeedback Tracker

ArmA 3 Units Emblem not loading on Linux Dedicated Server
Closed, ResolvedPublic

Description

When a client is connecting to a dedicated server, the units .paa file in %appdata%\Arma 3\Units\<unitname>\<id>.paa are downloaded. It's also being downloaded to %appdata%\Arma 3\squads\<unitname>\<id>.paa.

Now on a Windows Dedicated Server this is working fine,
but on a Linux Dedicated Server it is not being downloaded into squads, only into Units

This is resulting in a huge error spam in the RPT (1300 lines in 3 seconds):

13:18:56 Warning Message: Cannot load texture c:\users\ackermann\appdata\local\arma 3\squads\afoo\x9qxe9onzq.paa.

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Operating System Version
1803 Build 17134.523
Category
Dedicated Server
Steps To Reproduce
  1. Create Arma 3 Unit with proper image
  2. Assign Unit to player profile
  3. Join Linux Dedicated Server
  4. OPTIONAL: Enter ZEUS

This prompts the error.

Additional Information

This bug only happens with the Arma 3 Units system, not with squad.xml

Event Timeline

dedmen added a subscriber: dedmen.Jan 21 2020, 1:15 PM

Ref
https://forums.bohemia.net/forums/topic/186322-arma-3-units-feedback-thread/?do=findComment&comment=3393339

Cannot load texture c:\users\ackermann\appdata\local\arma 3\squads\afoo\x9qxe9onzq.paa.

that looks like the path is looked up lowercase

Unit emblem name

Ld1xlv7AoB.png

(from avatar image on website, haven't checked ingame)
seems to be non-lowercase, that its probably the cause for the problems.

Confirmed on my linux server
Unit: https://units.arma3.com/unit/wolfcorps
If you "show image" on the avatar, you get https://units.arma3.com/groups/img/3666/WbGwmxkqXv.png
-> WbGwmxkqXv.png
on my server I have /home/wolf/.local/share/Arma 3/squads/Wolf Corps/WbGwmxkqXv.paa
log spam on windows client: Cannot load texture c:\users\dedmen\appdata\local\arma 3\squads\wolf corps\WbGwmxkqXv.paa.
I assume the linux server can't find the texture as it looks it up in lowercase, and thus doesn't transmit to client.

test to confirm that would be to make a squad.xml where the logo filename is not lowercase. which should then also break.
or to manually lowercase the filename on the server, such that arma will be able to find it.

dedmen added a comment.EditedJan 21 2020, 1:27 PM

Second confirmation.
When arma does a lookup on the squad path, it does a "tolower" on the path before looking it up, which will make the lookup fail on linux.

Fix is in dedmen->KK discord DM https://discordapp.com/channels/@me/651095233513127946/669155705072386088

alternative fix could be done on arma units backend, to only pass lowercase logo filename, but then the same issue would persist with squad.xml

dedmen claimed this task.May 18 2020, 11:20 AM
dedmen changed the task status from New to Feedback.May 18 2020, 3:34 PM

Fix ready, probably dev-branch or perf/prof next week.

dedmen merged a task: Restricted Maniphest Task.May 20 2020, 2:41 PM
dedmen added a subscriber: life_flame.

Fix in performance/profiling 146434 and next dev branch

Pi closed this task as Resolved.Jun 12 2021, 4:25 PM