Barotrauma

Barotrauma

Barotrauma Workshop
You can build your own submarines and monsters with in-game editors and share your creations with other players. Imagine and experiment.
ØG 9 25 Aug, 2024 @ 1:55pm
Backpack texture location?
I can't find it and i've looked in every folder, could be that i missed it though..

Any help?
< >
Showing 1-7 of 7 comments
sokolov 11 25 Aug, 2024 @ 3:26pm 
Content/Items/Tools/tools.png
ØG 9 25 Aug, 2024 @ 3:39pm 
Thanks so much. Additional question: Is it possible to replace single textures without replacing all of them which reside inside the same .png file?
sokolov 11 26 Aug, 2024 @ 4:46am 
I'm not really sure what you mean.
Are you trying to make a workshop mod or trying to replace the texture directly in your game files?
ØG 9 26 Aug, 2024 @ 6:21am 
For context:

I disliked having such a bulky backpack on my character so i wanted to pretty much edit the backpack to be half the width. I managed to do that, i changed the backpack sprite within the .png file and i changed some of its properties inside the code, namely the 'sourcerect' and the 'Body width' properties.

The problem is, because the 'tools.png' file includes different sprites, like the welding tool, the plasma cutter, etc, it appears to override any other mod that might change any sprite present within the same '.png' file.

So my question is:
Is it possible to use a single '.png' file containing only the backpack sprite and somehow apply that to the game using code, to avoid overriding any other sprite?

Thanks
sokolov 11 26 Aug, 2024 @ 6:41am 
Ah okay, that explains things, thank you.
You could probably make a copy of tools.png and rename it to tools2.png, put your edits there then replace InventoryIcon and Sprite within the xml to tools2.png.
The game can basically search for and load up any file path defined in the xml for as long as it is inside Content.

If there is a mod that modifies how the backpack behaves, it'll probably be reverted to it's original texture so it might be better to make it a localmod for yourself then put it up the load order.
ØG 9 26 Aug, 2024 @ 7:15am 
Yes, i managed to create and apply a single .png file with the backpack sprite only. The game only loads the intended sprite. Thanks for the help.
ØG 9 26 Aug, 2024 @ 7:54am 
In any case, here's the published mod: Smaller Backpacks
< >
Showing 1-7 of 7 comments
Per page: 1530 50