A fix for the missing rifle inventory icons in Raubt1r's Full Weapon Upgrades for Arsenal Overhaul 1.1 mod and its optional bolt-action rifle upgrade trees file.
This is a fix for Raubt1r's mod, Full Weapon Upgrades for Arsenal Overhaul 1.1 and the optional file that comes with it which adds bolt-action rifle upgrade trees. The issue is that certain rifles will have no inventory icons, this will hopefully fix that for you. You must install this after you install Raubt1r's mod and the optional file that comes with it. You can find them both here. Please be aware that I have only tested this out for version 1.4.22 of Call of Chernobyl, I have no idea if it works with other versions, feel free to test it yourself, just remember to back up your files.
Go to your CoC folder and inside of it, go to gamedata>textures>ui and look for the .dds file named ui_icon_equipment, if it looks the same as the one above, then this solution should work for you.
Remember to back up any files you edit when modding a game, just in case. To install this fix, download the file and unzip the archive. Once you do that, read the Read Me file for instructions.
Please be aware that if you attach the PU scope to the SVT-40, its icon will not change to reflect this. If anybody has a solution for this issue, please feel free to let me know, I would be happy to update the mod.
If you do not have the same ui_icon_equipment.dds file that I have, the one listed above, here is a guide to explain what I did to fix this so you can do it for yourself.
First you download the program GIMP, it's free.
Open the ui_icon_equipment.dds file in GIMP.
Right click in the program, select View, then click on Show Grid and Snap to Grid.
If the grid is not 50x50 pixels, which it won't be, right click, select Image, then Configure Grid... and, under Spacing, set it to 50x50 pixels.
Make sure to select the Rectangle Select Tool in the top left.
You need to find the X and Y values for the icon you want so you can put those values in the .ltx file you're editing.
Click on the top left square of the icon of the gun you are trying to fix and drag your cursor in a line to the left, selecting all squares along the way.
The first value where it says Size on the left of the program, where you select your tool, is how you find the X value.
Take that number and divide it by 50. After that, subtract 1 from the answer you got when you divided it.
Now make the number, the number you got after subtracting 1, the value for inv_grid_x in the gun's .ltx file.
To find the Y value, click on the same square of the icon and drag in a line all the way up, selecting all squares along the way again.
This time, the second value where it says Size, next to the first one, is what you use to find the Y value.
Once again, divide that number by 50 and then subtract 1 from the number you got.
Put this number as the value for inv_grid_y in the gun's .ltx file, like you did with the other value.
Assuming you did everything correctly, when you go in the game, that gun will now have its correct icon in your inventory.
You should not have to edit the inv_grid_width or inv_grid_height, they were already set correctly for me.
You will have to do this process for every gun that is missing an icon individually.
In case you don't know, ui_icon_equipment.dds is in gamedata>textures>ui in your CoC folder.
The weapon files are located in gamedata>configs>weapons inside your CoC folder.
Be aware that the .ltx file for the TRG also has the values for the L96A1, and the SV-98 in it, you need to scroll down to reach them and edit them. The file for the SVD also has the SVT-40 and Nimble's SVD, the Lynx. The L115A3, TRG-42 and SVU-A use the same icons as the L96A1, TRG-42 and SVU, respectively, so you only change those ones.
You can edit the files yourself instead of downloading the ones I edited and replacing yours, if you prefer. These are the values that I changed which fixed the issue for me. Once again, you most likely need to have the same ui_icon_equipment.dds file as the one that is shown above for this to work. It is found in your CoC folder in gamedata>textures>ui. The files you will be editing are found in gamedata>configs>weapons, also in your CoC folder.
MN91/30 [wpn_mn91]: inv_grid_x = 24 inv_grid_y = 13
SVD [wpn_svd]: inv_grid_x = 24 inv_grid_y = 17
SVT-40 [wpn_svt40] inv_grid_x = 24 inv_grid_y = 0
SVT-40 with PU Scope [wpn_svt40_pu] inv_grid_x = 24 inv_grid_y = 0
Lynx [wpn_svd_nimble] inv_grid_x = 24 inv_grid_y = 19
SVU [wpn_svu] inv_grid_x = 40 inv_grid_y = 8
TRG-22 [wpn_trg22] inv_grid_x = 24 inv_grid_y = 26
L96A1 [wpn_l96] inv_grid_x = 24 inv_grid_y = 28
SV-98 [wpn_sv98] inv_grid_x = 24 inv_grid_y = 30
VKS Vykhlop [wpn_vks] inv_grid_x = 24 inv_grid_y = 32
I thank Raubt1r for making this helpful mod in the first place, without him, I wouldn't have anything to fix.
SteveKillbane any chance for AO 3.1 (v5) update?