Barotrauma

Barotrauma

View Stats:
Item quality
How does the game know an item is a certain quality? You can find the rare items (Europan handshake, deadeye carbine, etc) that shows "Normal quality" on the tooltip, and other weapons you can't fabricate being good quality or higher, but there's no tags or anything on the items themselves that indicate they're higher quality.

I've looked everywhere for this information, but the wiki is outdated to oblivion; any possible insight would be appreciated.
< >
Showing 1-3 of 3 comments
Cosmic Nov 6, 2021 @ 8:50pm 
In-game if it is a type of item that can have different qualities, it'll have Normal, Good, Excellent, or Masterwork Quality underneath its name when you hover over it plus a frame around the icon showing its quality level.

If you mean where the quality is denoted in the game data like in subeditors or save files, its the new Quality property on those items. I think its a bit bugged though as items with no quality lack the qualitylevel attribute in their Quality characteristic. Items with a higher quality appear with "qualitylevel=1" to "qualitylevel=3" in their item data in save files but those with the default quality just don't have that attribute listed.

I believe this is also causing items placed in the sub editor to not have a modifiable quality as they are spawned with the default quality and thus lack the qualitylevel attribute preventing that attribute from being modified in the editor.
Last edited by Cosmic; Nov 6, 2021 @ 8:52pm
Maiq the Capper Nov 6, 2021 @ 9:08pm 
Yeah I see items in the subeditor have a quality tab at the bottom but it's just "pickable" and some other option, just was wondering how the game recognizes it in code, etc.
Cosmic Nov 6, 2021 @ 9:37pm 
If you want to use upgraded quality items in the sub editor, there is a workaround for the moment.

Spawn an item in the editor then save it as an Assembly.
Then navigate to the game's files (probably at 'C:\Program Files (x86)\Steam\SteamApps\common\Barotrauma\ItemAssemblies') and open your item assembly in a text editor.
Where it says "<Quality" add " qualitylevel="1"" immediately after (for good quality. Replace 1 with 2 or 3 for Excellent and Masterwork quality respectively)
Restart Barotrauma so it'll reload the assembly.
Now when you spawn that item in the editor, it'll have the desired quality

Still can't edit the item's quality in the sub editor itself even when the qualitylevel is defined but you can at least place higher quality equipment. *shrug*
Last edited by Cosmic; Nov 6, 2021 @ 9:57pm
< >
Showing 1-3 of 3 comments
Per page: 1530 50

Date Posted: Nov 6, 2021 @ 8:37pm
Posts: 3