Barotrauma

Barotrauma

Better Charging (WITHOUT DETERIORATION CHANGES)
59 Comments
Roadent 26 Jun @ 3:32pm 
Alright, I checked out the implementation of the mod.

You're right - there is no way to apply the effects to the Diving Suit Locker without overriding the Diving Suits themselves. :(

Anyways, I found some outdated code that I'd suggest updating:

-Update the <StatusEffect type="OnFailure">. The Barotrauma devs have added an "electricshock" Affliction, as well as a 50% probability of stun. This applies to Batteries, Charging Docks, and both Oxygen Tank Shelves (small one and legacy one).

-For both oxygentankshelf and oxygentankshelf2, the Barotrauma devs have added a ItemsUseInventoryPlacement="true" attribute to the <ItemContainer> element. This makes the layout of the tanks in the Oxygen Tank Shelf be drawn according to their position in the inventory. Now that it's disabled, the tanks are always drawn, at least on oxygentankshelf2, left-to-right, which looks less pretty.
heheboi  [author] 12 Jun @ 7:21am 
It is impossible to do with current system without lua or overriding suits and oxygen tanks, which I dont wanna do for compability reasons.
Roadent 12 Jun @ 6:05am 
What I meant by "pull electricity" is:

In vanilla, Oxygen Tank Shelves pull 30 kW of energy, and Diving Suit Lockers pull 10 kW of energy.

In this mod, Oxygen Tank Shelves pull 10 kW energy when idle, and then +100 kW of energy per each oxygen tank it's charging. So, 110 kW for 1 tank charging; 210 kW for 2 tanks; 310 kW for 3 tanks.

However, Diving Suit Lockers do not have that behavior. They always pull 10 kW, regardless of whether the Oxygen Tank within the Diving Suit is full or not. One would expect the Diving Suit Locker to also pull 110 kW if it's charging the Oxygen Tank within the Diving Suit.
heheboi  [author] 12 Jun @ 4:45am 
Nah, I dont
Ozen (Лиса) 11 Jun @ 11:25pm 
Author, maybe you know of a mod kinda reverting process. I mean to charge oxygen tanks at the station and then release oxygen to hull when powered. Like it's done in reality. Thank you in advance
heheboi  [author] 11 Jun @ 8:09am 
they already pull electricity in vanilla.
Roadent 11 Jun @ 6:11am 
Diving Suit lockers do not pull electricity and lower hull oxygen when you insert a diving suit with a not-full oxygen tank inside the same way that Oxygen Tank Shelves do.

Would it be possible to program in that functionality as well?
Draconis🐊 4 Jun @ 12:12am 
Honestly this should be Pull Requested because it would make upgrading the O2 generator actually a big deal.
heheboi  [author] 30 Apr @ 3:50am 
I dont understand why it shouldnt.
cursedsanti 29 Apr @ 6:29pm 
still works?
heheboi  [author] 14 Nov, 2024 @ 10:47am 
Re-Update mod
Nobaru 14 Nov, 2024 @ 10:45am 
Okay it's gone now. Thank you.
heheboi  [author] 14 Nov, 2024 @ 10:40am 
Will try to re-upload
heheboi  [author] 14 Nov, 2024 @ 10:39am 
Charging dock wasnt updated in last patch
Nobaru 14 Nov, 2024 @ 10:30am 
Looks like something broke with the last update, the status led on the charging dock is constantly flickering between red and green.
heheboi  [author] 12 Nov, 2024 @ 7:16am 
Im not gonna implement your fix, Im just gonna fix 3 oxygen tank fix for hig shelf and that's about it, I dont see any reason to lower oxygen drain.
heheboi  [author] 12 Nov, 2024 @ 7:13am 
What?
Nick Molliger 12 Nov, 2024 @ 6:46am 
Bro, i sent you whole fixed .xml. Please try it and update.
heheboi  [author] 11 Nov, 2024 @ 9:17am 
Released experimental fix, didnt test it properly but it seems to be working without issues - test it out lol
Nick Molliger 11 Nov, 2024 @ 7:56am 
Playbacking the issue:
1. Create new campaign with only this mod (no lua, no cs, no others)
2. Wear Oxygen Mask
3. Disconnect Oxygen Generator power input
4. Disconnect Oxygen Tank Shelf power input
5. Put your unfull oxygen tank from mask into the shelf
6. Go to status monitor and watch how oxygen level drains in the room with shelves

Sorry, I tried many methods to edit code of StatusEffects but i'm bad in modding this game
heheboi  [author] 10 Nov, 2024 @ 8:46pm 
They shouldnt consume oxygen when not powered, will look into that.
Nick Molliger 10 Nov, 2024 @ 3:04pm 
Oxygen tank shelves are consuming hull oxygen even when they're disabled, but have at least one tank not full inside. Is it possible to fix this?
Sasha Fox #SaveTF2 20 Oct, 2024 @ 11:17pm 
So wait, the original mod author was upset over content posted on a Discord, so they took it out on all of us who use the workshop? I feel content is just content, you ignore/block people you don't like, but ruining hundreds of innocent users progress who have zero clue over whats happening in Discords is a bit... I'm an animal lover and even I don't get triggered over what people post, if someones posting content I really don't want to see I block them or don't interact with that Discord. No need to make it hundreds of innocent peoples problem otherwise your worse then the people uploading the gifs as your doing something that hundreds can't even control in updating and spreading it to hundreds of users ruining saves.
NeckRopeMancer 20 Oct, 2024 @ 3:28pm 
Actually, panman does have authority to repost. The authority comes from your agreement in using Barotrauma's license to produce your content.

Your content has no standalone functionality and is entirely reliant on the Barotrauma application in order to operate, as well as making extensive use of the Barotrauma API.

Pursuant the above, you would not have any standing to lay claim to copyright of the above content as doing so would be a breach of the Barotrauma IP and you could face litigation by Daedalic Entertainment for breach of licensing terms.

So, go ahead and do it, you won't. Talk big game but tiny ass man.
POSTACI 20 Oct, 2024 @ 9:16am 
ah nvm you are the guy who got mad at cat gifs
POSTACI 20 Oct, 2024 @ 9:14am 
@Black_moons Dude I don't even know you but just from reading this mod page I can say that you are a sore loser
ALE199 20 Oct, 2024 @ 12:30am 
Why is Barotrauma the game with so much drama, like I thought of all the games Barotrauma wouldn't get it on the account it's not a pvp sweat fest
starqueen 19 Oct, 2024 @ 7:43pm 
what drama happened with moon?
Matsumoto Rise 19 Oct, 2024 @ 7:14pm 
It looks like the lighting you modified uses a projection lamp. Please don't do this, it will affect game performance.
Matsumoto Rise 19 Oct, 2024 @ 5:09pm 
I love immersive mods, full score!
horse 18 Oct, 2024 @ 6:18am 
It isn't really a crime. Just a "minor" inconvinience.
Cirind Chaosdiver 18 Oct, 2024 @ 4:46am 
I love the fact that original mod author is threatening DMCA in comments after adding god damn malware to his mod lmao.

Threatening DMCA after literally commiting crime. Big fucking brain moment.
RTO700 18 Oct, 2024 @ 3:20am 
IR's batteries will randomly zap, start fires or electrocute nearby water when flooded. Also there is a opening look for it.
heheboi  [author] 18 Oct, 2024 @ 2:18am 
Why it is needed?
RTO700 18 Oct, 2024 @ 1:32am 
Will there be a patche for immersive reipair?
Dezztroy 17 Oct, 2024 @ 6:30pm 
Original modder should be banned from the workshop for uploading malware.
epple 17 Oct, 2024 @ 5:16am 
zamn, never knew why all Moons addons got privated/deleted. Welp. Thanks for keeping a fun addon alive :rep2:

Do you think it's possible to mirror the proximity depth charge addon too?
Nobaru 17 Oct, 2024 @ 4:58am 
Thanks for clarifying that the damage is permanent. I used a backup, so fortunately, I didn’t lose much progress, although I still have backups of the damaged subs.
heheboi  [author] 17 Oct, 2024 @ 3:53am 
@Nobaru disabling mod wouldnt fix the damage, it is permament unless you using instructions below


lua choosensubmarine = nil for submarine in SubmarineInfo.SavedSubmarines do if string.lower(submarine.Name) == string.lower(Game.GameSession.SubmarineInfo.Name) then print(submarine.Name , ' original file added as pending submarine') choosensubmarine = submarine break end end Game.GameSession.SubmarineInfo.Name = Game.GameSession.SubmarineInfo.Name .. '_corrupted' Game.GameSession.SwitchSubmarine(choosensubmarine, true)


this is a singlular console command.
start round, run it then level transition (dock or undock). It essentially buys you a stock version of your sub and adds it to pending with transfer items enabled. unattach anything nailed to walls before round change otherwise it wouldnt transfer
Destroyer1104 17 Oct, 2024 @ 2:48am 
Based mod
Nobaru 17 Oct, 2024 @ 2:19am 
To clarify, there are users claiming that simply disabling the original mod fixed the issue of the junction boxes getting fried. However, I had to apply a backup or restart from a point before I bought the submarine to resolve the issue. This was just the most convenient way for me to fix it, not saying there are other solutions or I may have done something wrong to completely get rid of the status effect. Just docking and restarting the mission didn’t work at least, even with the mod disabled.
Slime Incarnate 17 Oct, 2024 @ 12:51am 
what is this undertow drama you mentioned, im trying to figure out why the hell they would just sabotage their own mod
Eebly sheembly 16 Oct, 2024 @ 11:55pm 
the edited cats were too much for black moons :pensive:
horse 16 Oct, 2024 @ 11:14pm 
peak drama
heheboi  [author] 16 Oct, 2024 @ 11:10pm 
Moons, I know how DMCA works, so go on, file it and we will settle it through steam.
snark 16 Oct, 2024 @ 10:37pm 
that's not really how that works
Black_moons 16 Oct, 2024 @ 10:07pm 
If you don't remove this mod, then you will get a DMCA takedown against your steam account content. Its not up for discussion or bargaining. You don't have any legal justification to steal my code and images and upload them.
Super Bumfukk 16 Oct, 2024 @ 8:47pm 
Don't know about details of that drama, but doing this to the mod so many people downloaded tells a lot about that person. Funny that his reputation deteriorated faster than affected pumps and junction boxes alltogether.
heheboi  [author] 16 Oct, 2024 @ 4:10pm 
@Black_Moons, while I would remove this mod on condition of you removing such change from original, seems like original doesnt exist anymore, so eh.