Reload vmt and vtf files on mod reload - #924
Conversation
Alystrasz
left a comment
There was a problem hiding this comment.
Code not overly complex, looks good to me.
Untested for now.
Alystrasz
left a comment
There was a problem hiding this comment.
@NachosChipeados could you provide a detailed way to test your PR?
Your instructions mention updating cqb_dot_front.vmt, but you seem to update another VMT file in your video (yes I know nothing about VMTs).
Providing the test mod would help testing 😃
|
@Alystrasz the reason i modified another file, is because that file is from another mod aand when i made the video i didn't really think too much about what file to change for the example. Then, when i was writing this i realized i probably shouldn't ask people to download some random mod just to replicate it lol The mods i used are Titanfall 1 Ammo Counters and Titanfall 1 Materials. The |
So I installed your PR plus both mods, started a mp match, modified the |
|
I don't think you're missing anything, just looks like |
|
Try manually reloading the mods in the main menu |
Probably because your stuff is never called when Honestly this might be better as a launcher pr...? |
|
Tbh if this got moved to launcher, maybe everything else about that function should as well |
|
The again, i specifically added that here because Don't remeber how specifically i got the crash to happen or how common it is, just remember seeing something about materialsystem.dll |
|
@Alystrasz Could you re-test, but use the in-game mods menu to change and reload your mods instead of |
|
Yeah, im seeing it too |
|
Fixed I guess 😃 |
- Mod versioning (R2Northstar/NorthstarMods#903) - Add crosshair target changed callback (R2Northstar/NorthstarMods#893) - Reload vmt and vtf files on mod reload (R2Northstar/NorthstarMods#924)
|
@NachosChipeados do you have any idea of what I did wrong in #924 (comment) ? |
|
I have no idea to be honest. Can you try manually doing |
|
OH WAIT, i forgot that mat_reloadmaterial is cheat protected. i may be stupid |
|
@Alystrasz Should be working now ^^' Also, sorry for not responding to the video earlier, i completely forgot about it. |
I still cannot reproduce results, I'm stuck with the ammo screen appearing as always 😕 |
|
The missing texture is likely due to a missing dependency (customizable reticles framework), but i have no idea why the actual texture reloading doesnt work for you |
|
I tried again installing all three mods on a fresh profile, but couldn't get anything to work again... Could you try installing your PR and the latest launcher dll, and confirm whether the issue is on my side 😁 |

Reloads
vmtandvtffiles on mod reload. The game currently doesn't automatically reload some of them if they're placed inside a mod folder2025-04-25.20-43-47.mp4
Testing:
englishclient_mp_common.vpkmaterials/models/weapons/attachments/cqb_dot_front.vmt, and place it inside of a modIf everything went right, the vanilla Hemloks reticle will now have the changes you applied to
cqb_dot_front, since thats the texture it uses