Hello everyone! I hope you all are doing well. So I've been working on a UAE license plate pack, which includes Dubai plates. With the Dubai plates, there are two parts to them: an identifier letter and the number. - The identifier letter is any letter from the alphabet from A-Z, which helps identify a vehicle better. Cars with the same number can exist provided that they have a different identifier letter. - The number is only numeric, with anywhere from 1 to 5 numbers. The less the numbers, or the more repetitive, the more expensive the plate is As seen here, the identifier letter is "A" while the number is "6363". At the moment, I am facing one difficulty, which is the last step for finishing this mod and releasing it. I have implemented everything that I possibly can, from normal and specular mapping to custom fonts to the pack itself containing many plates (22 in total). The final step is making the identifier letter (the A) generatable, which isn't easy, since it is in a different spot than the number field. As of right now, the identifier letter is a part of the texture. This is to make the plate look realistic, obviously. However, implementing it such that it's generatable through the in-game generator would allow for much more customization and would practically present many possible combinations that players can enjoy. I tried looking everywhere, including the BeamNG development site, for a guide on doing it, but I wasn't able to. I've heard from staff members, however, that it requires rather sophisticated re-making of the HTML code responsible for the generator. Since I have no experience, I'd need help and support re-coding it and making it work. Obviously, whoever can help with this would be credited in the final release of the mod. TL;DR I'm having trouble making the "A" in the plate generatable through the game, and would like help to get it to a state of being generatable in-game. Also, please bear in mind when submitting an answer that I'd like it in "simpler" terms that would be understandable by someone whose first ever mod is this. Thank you in advance.
Hi, It does require custom code to support this. this look very similar to my mod. I can help you with the code. Did you change the letters in the platfont_#.png to use UAE font? If you did, you can send me the files in private message
Hello thomatoes, Many thanks for your valued reply. Unfortunately, I still haven't fully implemented the letters. I did attempt to do so one month ago, but when coming back to my PC after one week, it just decided to break out of nowhere and stop working properly. Hence, I have to redo it. This is how it looked after literally just having the PC off and doing nothing for one week: (Normal maps appear but the letters didn't, even though all the files were correctly placed, named and coded). I'm facing an issue with the font implementation, however, which I thought I'd also discuss with you. All of the letters can be easily implemented and share the same "narrow" aspect except for 3 letters: M, O, and W. They are somehow slightly wider than the rest of the letters, and I can't "squeeze" them in there, because they looked weird when I tried that. Here's how they looked when they were squeezed, before they broke one week later: I know that there's for sure a way to adjust the width value for individual letters, probably in the platefont.json file, but I'm not sure how. Could you help me with that? Once I figure that out, I'll re-do the letters in the plate font and gladly send you the file. Thank you so much in advance.
you are right, you need to modify platefont.json, i suggest you copy the original one from the game and put your modified version in the same folder as the textures. id is the decimal ascii value of the letter all letters are aligned in a grid, you can't use that space, you will need to add a new row at the end or add them after the Z