Barotrauma

Barotrauma

Revive Bots - Endless Crew Respawns
103 Comments
radar defender 1 Jul @ 4:38am 
oh okay that explains then thanks, have a nice day :)
DieSchwarzeSpinne  [author] 1 Jul @ 1:27am 
@radar defender. Yes, I assume you just host the server yourself? Like one of you just presses host game and the others join? Then the one hosting has to select the Lua for Barotrauma Executable when starting the server. You can refer to the Lua for Barotrauma workshop page to see exactly how to host a server with lua.
radar defender 30 Jun @ 8:47pm 
well yes i installed lua for barotrauma and my friend too, or do you mean that a server should have it too?
DieSchwarzeSpinne  [author] 29 Jun @ 3:03pm 
@radar defender. Did you install Lua for Barotrauma correctly? You need to use clientside lua when playing singleplayer (Look at the workshop for Lua for Barotrauma to see how to install that). In case you play multiplayer you need to have this mod and lua for barotrauma installed in the host.

To check if everything works you can open the console and look for the logs the mod creates. If there are no messages, the mod is not installed correctly
radar defender 29 Jun @ 11:21am 
i installed it apllied and my asisstant still didn`t respawn please advice
瀚星之翎 27 Jun @ 6:13am 
thx:steamhappy:
DieSchwarzeSpinne  [author] 27 Jun @ 6:04am 
@瀚星之翎. This is indeed an issue that can happen when the bots drop the items they hold in their hands when they die. I plan to add this later, but unfortunately I do not have time to work on this mod right now.
Aragog 26 Jun @ 1:16pm 
Got 11 suits for the 8 bots I have, most died from getting crushed by pressure anyways as they put the suits off because "of course the endworm would only attack us once, I'm completely safe" (dies immediately) Thank you for this mod. A lot of idiot bots where saved :steamthumbsup:
瀚星之翎 26 Jun @ 8:55am 
Due to the death of robots in combat with enemies, valuable firearms held in hand may fall off, and handheld items are often lost during resurrection. Can you create a function that prevents handheld items from falling off during death?
Husk cultist 18 Jun @ 7:08am 
now i wont be mad when my bot dies to a fucking hammer head baby because it was busy repairing a useless wall
瀚星之翎 17 Jun @ 9:31pm 
thank you:steamhappy:
DieSchwarzeSpinne  [author] 17 Jun @ 10:23am 
@瀚星之翎. Thank you for reporting this issue. Unfortunately this does not seem like an easy fix and I would need some time to figure out how to lock the crew-list order. Because I'm currently very busy this will not be finished soon. But I put it on my list for things to add to the mod so when I have more time, I will try to add this.
瀚星之翎 17 Jun @ 7:15am 
Could I kindly ask you to develop a mod that enables play to freely adjust and lock the order of the bot crew list on the left? In single-player mode, whenever a bot dies and is resurrected, the order of the bot list becomes scrambled. Despite restoring it by dragging, the list reverts back to the scrambled order at the conclusion of each tour.
DieSchwarzeSpinne  [author] 16 May @ 2:09pm 
@尤里大人-ule. The mod only checks for the 'ManageSettings' permission. You need this permission to use the bot commands. If you have this permission and it still does not work, please send me the exact error message saying that you don't have permission so I can figure out if it is a problem with my mod of barotrauma itself.

As a quick workaround you can also change the settings by manually editing the 'config.lua' file under 'Revive Bots/Lua/config.lua' in the servers mod folder (Which usually is under %LocalAppData%\Daedalic Entertainment GmbH\Barotrauma\WorkshopMods\Installed\3253027507.
尤里大人-ule 14 May @ 9:47am 
I am the owner of a server, but when I type command from here it said I don't have the permission, thats weird........
aruui 20 Apr @ 4:26am 
The command can automatically completed, but the command cannot be found.
aruui 20 Apr @ 4:18am 
I used Lua but it still didn't work for me,I'm sure I installed it correctly, but the example commands above don't work either.
DieSchwarzeSpinne  [author] 19 Apr @ 3:51pm 
@[AGE]Rick_cake. The mod seems to work fine on my end. Are you sure that you have Lua for Barotrauma installed aswell? And if you play in singleplayer you need to activate Lua for Barotrauma for singleplayer. See the Lua for Barotrauma Workshop page on how to do that. If you host a server you have to make sure to select the Lua for Barotrauma executable.

If all that does not work, please open the F2 Console and send the logs that are generated, when a new round starts and the BOTs do not revive.
[AGE]Rick_cake 19 Apr @ 3:50am 
"Hey, I think there's a bug — AI crew members can't be revived anymore."

"It seems there's a bug with AI revival. They stay dead even when they should be able to come back."
Skitter 4 Mar @ 7:10pm 
is it possible to detect when a player dies or respawns? if so, can you use that to apply BB when necessary? i haven't found a mod for adding back reaper's tax either which is weird, the concept of being haunted by memories of your past lives is so wonderfully existential dread inducing and was fun to RP with.
i know bug burden lore-wise is meant to be the npc glitching out after being forcefully restarted by this mod rather than reincarnation-based trauma, but you could either reflavor the effect or add a variant of the debuff with different flavor text for player characters.
DieSchwarzeSpinne  [author] 1 Mar @ 1:22pm 
@Skitter. Unfortunately players use a different respawn system so giving players bug burden when respawning isn't that easy. Maybe other people already made a mod for adding back Reapers Tax?
The idea of pets respawning as well is an interesting idea. But as pets do not count as normal crewmates this is also not so easy. I'm currently a bit busy but when I have time I'll look into maybe adding respawnable pets aswell but I'm not sure that it is possible.
Skitter 1 Mar @ 1:06pm 
could you potentially allow us to toggle on bug burden on players now that reapers tax is gone? and maybe allow pet respawns?
Tendou Arisu 5 Jan @ 7:31pm 
@DieRauteEnte thank you so much! I think it's working now!
DieSchwarzeSpinne  [author] 5 Jan @ 5:37pm 
@Tendou Arisu. When you subscribe to "Lua for Barotrauma" you do not automatically install clientside lua and singleplayer won't work directly. To install clientside lua you can follow the guide on the Lua for Barotrauma workshop page or follow the instructions in this youtube video.

To check if clientside lua is working you can look in the upper left corner in the main menu: There should be a red text saying that lua is working.

To use lua in multiplayer you have to change the server executable when starting the server in the main menu(Just click on LuaForBarotrauma in the ServerExecutable dropdown when you press host server)

Please let me know if lua is working correctly(Press F3 to open the debug console. In there you should see some debug messages of lua) and incase lua works but the command still does not work, what exaclty you type in the console.
Tendou Arisu 5 Jan @ 5:15pm 
the command didn't work for me
Tendou Arisu 5 Jan @ 5:14pm 
Thank you for your reply! I am playing single player. I have clicked "subscribe to all". it seems to include LUA for barotrauma
DieSchwarzeSpinne  [author] 5 Jan @ 3:45pm 
@Tendou Arisu. The command only shows up in console when you have installed both this mod and CLIENTSIDE Lua(You have to enable clientside lua seperately when you install Lua for Barotrauma). But the command should work even if you do not have clientside lua active.

Does the command still work? Like when you use the example commands in the description, do they work?
Tendou Arisu 4 Jan @ 1:39pm 
Command "changeReviveBotsSetting" not found.
水月 31 Oct, 2024 @ 11:56am 
@DieRauteEnte,Thank you for your work.
DieSchwarzeSpinne  [author] 31 Oct, 2024 @ 11:31am 
@水月. Thank for for that log. It was indeed a bug caused by how the job levels were stored by Barotrauma. It only happened when you turned on 'enableSkillReduction'. This is also the reason it worked after reinstalling the mod. The newest update should fix this issue.
水月 31 Oct, 2024 @ 10:46am 
[ReviveBots] [Client] Reviving BOTs which died this round.
[ReviveBots] [Client] Reviving dead BOT named k1
[ReviveBots] [Client] loseGeneOnDeath is set to false.Skipping gene removal
[CL LUA ERROR] USERNAME C:/Users/USERNAME/AppData/Local/Daedalic Entertainment GmbH/Barotrauma/WorkshopMods/Installed/3253027507/Lua/Autorun/Revive Bots.lua:(175,16-105): cannot access field LevelRange of userdata <Barotrauma.SkillPrefab>
水月 31 Oct, 2024 @ 10:43am 
Oh, damn. This error has occurred again, and by this time I already had 12 people.
水月 31 Oct, 2024 @ 7:54am 
Oh, after I deleted the Installed folder and re-subscribed to all the mods, they seem to be working properly now.
水月 31 Oct, 2024 @ 3:19am 
[CL LUA ERROR] USERNAME C:/Users/USERNAME/AppData/Local/Daedalic Entertainment GmbH/Barotrauma/WorkshopMods/Installed/3253027507/Lua/Autorun/Revive Bots.lua:(175,16-105): cannot access field LevelRange of userdata <Barotrauma.SkillPrefab>
水月 31 Oct, 2024 @ 3:11am 
@DieRauteEnte. I conducted another test, launching Lua and Revive Bots. After starting a new game and immediately leaving the harbor, a crew member left the ship and died due to water pressure. Then I sailed back to the base, and the deceased crew member still had not been revived.
DieSchwarzeSpinne  [author] 30 Oct, 2024 @ 4:19pm 
@水月. I just tested it and it works fine in single and multiplayer. Does the mod show any messages in the console? Do you play single or multiplayer? If you play singleplayer you have to enable client side lua. This resets every time Lua for Barotrauma gets an update so you have to reinstall it every time you update Lua for Barotrauma. To see if it is enabeled you can look in the left upper corner in the main menu: There should be a red text saying that LuaCs is enabeled.
水月 30 Oct, 2024 @ 3:08pm 
I turned off all the mods, leaving only the ones related to Lua and this Revive Bots. After letting someone die from water pressure, I returned to the base and encountered an error; the deceased person did not get revived.
水月 30 Oct, 2024 @ 3:05pm 
After the Lua update on the 28th, the mod is not working properly.
BasementCreature 29 Oct, 2024 @ 8:41am 
im retarded, I didnt read the requirements where I need to install_cl_lua in console to get this to work.
BasementCreature 26 Oct, 2024 @ 9:57pm 
He got eaten by friggin "orange boys" after I secured his corpse during a transport quest, they were starving.
BasementCreature 26 Oct, 2024 @ 9:54pm 
Naw bruh my og captain(me) bot got eaten and isn't respawning 💀, where do I get hognose
allensca 24 Oct, 2024 @ 12:17am 
also the reason I thought it was broken was because I kept getting booted back to the server lobby, but it turns out it was actually Combat Overhaul Reloaded causing that
allensca 23 Oct, 2024 @ 11:21pm 
Disregard, its probably because its an old save file shortly before the new update causing the errors - though if you still want to know what the error is:
"[SV LUA ERROR] ... cannot convert a void to a clr type System.Boolean"
(works fine on a new save file)
DieSchwarzeSpinne  [author] 23 Oct, 2024 @ 9:19am 
@allensca. I just tested it on a server and it seems to be working fine. Singleplayer seems to be working aswell. What did not work when you tested it? What settings are enabled on your campaign? Did you see any console logs / errors?
allensca 22 Oct, 2024 @ 7:04pm 
this mod seems to be broken after recent update
DieSchwarzeSpinne  [author] 13 Oct, 2024 @ 11:02am 
@DanielVector99910103. That would mean the mod thought the bots all died and respawned them. You started the campaign with these bots and didn't but them at the outpost, right? When I tested it it did not happen. Does it happen to you in all campaigns or just this one?

Also turning off bugBurden only disables it from being applied. Bots that already have bugburden will not be cured by turning it off.
DieSchwarzeSpinne  [author] 13 Oct, 2024 @ 10:59am 
@Ben Dover. The only thing I could think of is that the option for respawning when turning into a husk is turned off.
DanielVector99910103 13 Oct, 2024 @ 9:02am 
We set the setting of bugburden to false but still presist.
DanielVector99910103 13 Oct, 2024 @ 9:02am 
We just departed the spawn outpost and every bots have bug burden.
Ben Dover 4 Oct, 2024 @ 10:40am 
FYI, I dunno if it's just me, but a bot(Auntie Doris to be specific, dunno if that matters) died turning into a husk. But it didn't spawned back in when the sub docks. Am I doing anyting wrong?