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

Can't apply shader to platecharset! (replace veh plate font) #959

Open
MrSol0 opened this issue May 24, 2019 · 1 comment
Open

Can't apply shader to platecharset! (replace veh plate font) #959

MrSol0 opened this issue May 24, 2019 · 1 comment
Labels
bug Something isn't working

Comments

@MrSol0
Copy link

MrSol0 commented May 24, 2019

Describe the bug

replacing vehicles plate font. MTA doesn't see platecharset texture (using shader_tex_names), so we can't replace it with better font (this font is really saved as .png and it is placed in vehicles.txd

To reproduce

1- Try replace the texture with shader won't work because it's not a world texture, but GTA SA converts the characters from platecharset to world texture "Plate" for each vehicle. or at least that's how i think it works.

Expected behaviour

expected to be able to change "platecharset" and change the fonts and the characters foe other languages and make some cool realistic car plates.

Screenshots

https://community.multitheftauto.com/images/gallery/vehicleflagplate/9498.png
( this was an attempt to replace the carplate but can only change the carplate texture.

Version
ALL

Additional context
From mantis 8370.

@MrSol0 MrSol0 added the bug Something isn't working label May 24, 2019
@Pirulax
Copy link
Contributor

Pirulax commented Dec 31, 2021

Hey!
Quite an old issue, but I've found the culprit: GTA locks the raster as soon as it's loaded (CCustomCarPlateMgr::Initialise).
This explains why replacing it doesn't affect the displayed charset.
Fixing it should be pretty easy (unlock old raster, relock new raster).
I'll fix it in a few days, unless I forget about it, in which case, please remind me.

Note:
Because GTA hardcoded the charset texture size you must use the same size as GTA does.

Edit:
I think you can't see it in shader_tex_names because it's not on any world object, but I think its loaded all the time (so replacing it should be possible, its just that it has no effect)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants