Barotrauma

Barotrauma

Pickup Notifier
38 kommentarer
jia  [ophavsmand] 13. okt. kl. 23:30 
@ThousandFields thank you for reporting this.

It doesn't seem like something I can fix at the moment: since the mod just listens for "item was moved/dropped from inventory A (which can be nil) into character inventory B (your inventory)," which happens for both 'item picked up from the floor' and 'item being unequipped from a hand slot to make space for a two-handed item,' there's no way to distinguish between the two.

After some testing, it seems the event for the large item is (almost) always created first, so I could try ignoring any following events in the same frame if the item is left+right hand slot only, but I can't work on this right now.
ThousandFields 13. okt. kl. 14:46 
it appears that in multiplayer, if you are holding an item in your inventory, and then pick up a large item (duffel bag, diving suit with E), it says you picked up both the large item and the item previously held in inventory
jia  [ophavsmand] 12. okt. kl. 0:27 
updated

instead of a blacklist, I rewrote how the mod tracks item transfers, but the behaviour should largely be the same (only this time without smg/hmg notification spam).

do let me know if something else has broken, thank you.
ThousandFields 11. okt. kl. 14:03 
can you make it so certain items such as hmg rounds don't create the popup and sound? when you shoot an hmg it gives the +hmg round popup 100 times
i think blacklisting hidden items should work?
Wholly Milk 9. okt. kl. 9:43 
Many thanks! :steamhappy:
jia  [ophavsmand] 9. okt. kl. 3:46 
Hello! The mod has been updated: Playing sounds is fully client-side now.

Like before, notifications don't show when you move an item from your inventory to a cabinet or vice-versa, but only when you give/receive an item to/from another player (and now when you pick up an item from the mess of items on the floor).
Wholly Milk 6. okt. kl. 9:57 
It’d sure save a lot of headache. I can’t tell you how many times I’ve been scrambling in search for an item, only to soon realize someone already handed it to me ha-ha.
jia  [ophavsmand] 6. okt. kl. 9:54 
Actually, you know what, maybe I will work on making it client-side this week.
jia  [ophavsmand] 6. okt. kl. 9:53 
Yeah, I should have made that more clear in the description. The way the sounds play is (lazily) done through spawning items that play the sound and then instantly despawn.
Making it fully client-side was always one of the things I wanted to improve, but I remember deciding back then that clients being able to hear if someone picked up an item was an "unfair advantage."
Wholly Milk 6. okt. kl. 9:39 
I was mistaken. It does indeed work when I am the host. I came in assuming this was a client mod that would work on any server I joined. My apologies.
jia  [ophavsmand] 1. okt. kl. 23:00 
@Wholly Milk
Seems to be working just fine; pick up notifications only show in multiplayer when giving or receiving an item from another character, and sound cues work in both single player + multiplayer.

Also, ensure you have properly (re)installed Lua for Barotrauma after every game update.
Wholly Milk 29. sep. kl. 12:37 
Mod seems to not work neither on single-player or multi-player.
jia  [ophavsmand] 16. juli kl. 22:49 
Very odd, I tried that multiple times, and couldn't get the same warnings or game crash. Are there any other steps you can think of that might cause it? Does it happen every time?
Kotovskiy 16. juli kl. 13:43 
By 'switching the sound source' I mean manually changing audio output between wireless headphones and speakers in-game via Settings > Audio > Output Device. The issue occurs specifically during this switch
jia  [ophavsmand] 13. juli kl. 21:47 
I can't replicate the warnings. What do you mean by 'switching the sound source?'
Kotovskiy 13. juli kl. 16:34 
Kotovskiy 13. juli kl. 16:32 
10000 warnings in the console and "Game State: Dead" - The mod kills the game when switching the sound source.
jia  [ophavsmand] 26. nov. 2024 kl. 21:45 
I was able to get feedback from two individuals who tested it for me; Player A sees "Screwdriver - " above their character upon giving the item, while player B sees "Screwdriver + " upon receiving the item, so it does appear to be working as intended.

I'm afraid I don't know how to help you further, sorry.
microwave 18. nov. 2024 kl. 19:04 
1. Yes, im using the launch option for lua and the red text does pop up in the menu.
2. It wasnt a singleplayer game, it was multiplayer with some bots.
3. I do not see any related lua errors. It just seems to not work.
jia  [ophavsmand] 18. nov. 2024 kl. 18:58 
@microwave three things to consider: (1) do you actually have client-side lua installed (i.e., ran the install_cl_lua command in a lua server you're hosting), (2) are you expecting the text popups to appear in a single-player game, and (3) are there any related lua errors in the console?

I'm not sure because I can't check, but I think I made that feature only work in multiplayer. The original idea for it came from someone asking for a way to see what items were given to them by other players, so I didn't see any reason to have it run in a single-player game as well.
Hope this helps.
jia  [ophavsmand] 11. nov. 2024 kl. 9:51 
Okay, I'll take a look at it when I can, which unfortunately won't be until december at the latest.
microwave 11. nov. 2024 kl. 9:45 
Yeah it just dosent seem to work for me. i have client-side lua, And when giving someone/a bot an item nothing appears.
jia  [ophavsmand] 11. nov. 2024 kl. 9:34 
Take note that the text popups only appear when you are giving or receiving a item from another player via drag and drop.
jia  [ophavsmand] 11. nov. 2024 kl. 9:33 
@microwave text popups are clientside, sound cues are serverside.

If you have clientside lua installed, you will get the popup text like in the workshop thumbnail. If the server has lua installed, all users will get the sound cues if someone is moving items.
microwave 5. nov. 2024 kl. 3:59 
So is this server-side only or does it work on all servers (client-side?) cant get it to work
Sir Lagsalot 10. sep. 2024 kl. 13:40 
Message received
Mod doesn't work :3
Ksarper 5. juli 2024 kl. 2:26 
Use steam interface to see them...
Tsukia 3. juli 2024 kl. 14:07 
Hello, Nice QOL mod!
Is there a way to see the other mods you made?
Aleksander Drako 3. juli 2024 kl. 12:01 
I was wondering at first with starting version of this mod is it only seen above our characters or does it work when looking at others. Because I say it might be somehow useful with bots grabbing stuff and moving them around.
jia  [ophavsmand] 3. juli 2024 kl. 3:57 
Regarding the duffel bag, metal crates are also affected. I've fixed that issue hopefully, two-handed items should be displayed as one now (provided it's given to/received from someone else).
Ksarper 3. juli 2024 kl. 3:53 
Oh, I see, then I will try this again, ty for the update!
Ksarper 3. juli 2024 kl. 3:53 
Also, some items have long names and you see above you a huge plate with the name, which looks awkwar. Oh, and the duffel bag, when you pick it up at the end it says (x2), apparently because it is in two hands, I'm sure this is not supposed to be like that.
jia  [ophavsmand] 3. juli 2024 kl. 3:50 
Hello, I quite literally just released an update that only makes the popup text appear when giving an item/receiving an item from another player. If you pick up an item from an inventory or put one down, it no longer displays; the argument being that this is a conscious action you're taking, unlike receiving an item (which is the only one that now plays a sound). Hope this is better.
Ksarper 3. juli 2024 kl. 3:48 
Nice idea, but it quickly gets annoying because it's based on reputation change notification system and it catches your eye everytime. It looks like you stole something from an outpost.
StickVerts 30. juni 2024 kl. 22:11 
needs to be in the base game
HexLatte 30. juni 2024 kl. 18:49 
This is certainly the mod of time :spiffo:
jia  [ophavsmand] 29. juni 2024 kl. 7:34 
debatable
horse 29. juni 2024 kl. 7:25 
jia cracked once again