Page MenuHomeFeedback Tracker

plateFont doesn't refresh correctly when changing terrain
Closed, ResolvedPublic


When using a custom plateFont setting for a terrain, the game will keep showing it in other terrains.

Set "LucidaConsoleB" as plateFont for Altis. Then place a car. The font works.
Now load Tanoa and palce a car. The font will be the same as before.
HOWEVER, on some car classes the correct font (RobotoCondensed) will randomly show. So it's not that the plateFont doesn't refresh at all, it just seems to happen whenever it wants to.

Also there seems to be another bug related to number plates:
With plateFormat = "#####|$|##";the last digit will always be a 0. If we change the format to `plateFormat = "####|$|##"; it works correctly (in total 9 signs instead of 10).


Operating System
Windows 10 x64
Steps To Reproduce

Repro config:

class CfgPatches
	class map_plate_repo
		units[] = {};
		weapons[] = {};
		requiredVersion = 1;
		requiredAddons[] = {"A3_Data_F","A3_Map_Data"};
class CfgWorlds
	class DefaultWorld
	class CAWorld: DefaultWorld
      plateFont = "RobotoCondensed";
   class Altis: CAWorld
      plateFont = "LucidaConsoleB";

Event Timeline

Lexx2k created this task.Jul 9 2021, 10:51 AM
Lexx2k updated the task description. (Show Details)
Lexx2k updated the task description. (Show Details)Jul 9 2021, 11:22 AM

Each vehicle can have override class PlateInfos

class PlateInfos

Are you sure the "random" font appearance for vehicles is random and not taken from PlateInfos of individual vehicle?

BIS_fnc_KK changed the task status from New to Need More Info.Aug 10 2021, 12:43 PM
Lexx2k added a comment.EditedAug 10 2021, 7:27 PM

Yes. Here are the vanilla Fuel Truck, Zamak (Transport), and Offroad - I have not touched their configs. Top is my terrain, bottom is Altis. I have loaded up my terrain in 3den, placed the 3 vehicles, took a screenshot. Then I switched to Altis, placed the same vehicles again (no copy&paste), and that was the result. The number plate format is correct, but it won't change the font back to default.

This is just default font for Arma, I don't see any difference

Lexx2k added a comment.EditedAug 10 2021, 10:10 PM

???? You need to recheck the default font again.

This is a changed font. And my repo-example from further above also uses two different (vanilla) fonts -- I can reliably reproduce it with no other mod enabled.

BIS_fnc_KK added a comment.EditedAug 10 2021, 10:24 PM

Firstly I don't see number 9 at the top row to compare to this number 9. Secondly it looks exactly like vanilla default font. Thirdly, changing font in CfgWords/<world>/plateFont works for me without problems

BIS_fnc_KK added a comment.EditedAug 10 2021, 10:27 PM

^^^^ This is what different font looks like

Yes... I just used my own/custom font as an example for the screenshots, because I already deleted my repro pbo file and didn't want to make a new one... I assumed the arabic letters would be a dead giveaway that this is not the vanilla font.

I don't know what else to say about this. For me this bug is obvious.

You obviously are doing something wrong. As far as I can see the game loads given font from config. Did you add font file?

If the issue would be with my custom font file, then the error wouldn't have happened with my repro config that I posted above. Just to clarify again: I made a new mod with exactly that config from further above, and only booted up the game with that single mod file.

Another thing, just in case -- I am running on the dev-branch.

Your repro config loads "LucidaConsoleB", this is vanilla font

I feel like there is a language barrier at work here. Sorry, I have no idea how to explain it in a different way.

Of course my repro loads a vanilla font.. uploading a different font file for reproduction makes no sense if I can reproduce the bug with a vanilla font.

Thanks for the video, finally I was able to reproduce

BIS_fnc_KK changed the task status from Need More Info to Confirmed Internally.Aug 10 2021, 11:52 PM
BIS_fnc_KK removed BIS_fnc_KK as the assignee of this task.Aug 11 2021, 1:41 PM
BIS_fnc_KK changed the task status from Confirmed Internally to Feedback.
BIS_fnc_KK added a subscriber: BIS_fnc_KK.

I just checked the latest dev-branch and it seems to be working now. Thanks.

BIS_fnc_KK closed this task as Resolved.Aug 26 2021, 10:43 PM