Space Engineers

Space Engineers

Death Penalty (Resurrection Sickness) with Multiplayer
32 Comments
CynicDragon 4 Oct, 2024 @ 11:57pm 
Please make this compatible with eat/sleep, sending motivation your way
Spiros 28 Aug, 2024 @ 8:33pm 
shoot, I thought this may be good to use with "Eat. Drink. Sleep. Repeat!" to prevent players from backspacing all the time
Borgie  [author] 13 Jun, 2023 @ 7:22am 
Thanks for sharing the stack trace.
That trace looks like it might be coming from the "Eat. Drink. Sleep. Repeat!" mod. (DrinkWater is not part of vanilla)

It's always possible that there's a compatibility issue between the two mods, unfortunately I've really not had time to work on this mod in quite some time.
Into 12 Jun, 2023 @ 4:06am 
Exception occurred: System.NullReferenceException: Object reference not set to an instance of an object.
at DrinkWater.MyStatPlayerFood.Update()
at Sandbox.Game.GUI.MyHudStatManager.Update()
at Sandbox.Game.Gui.MyHud.UpdateBeforeSimulation()
at Sandbox.Game.World.MySession.UpdateComponents()
at Sandbox.Game.World.MySession.Update(MyTimeSpan updateTime)
at Sandbox.MySandboxGame.Update()
at Sandbox.Engine.Platform.Game.UpdateInternal()
at Sandbox.Engine.Platform.Game.RunSingleFrame()
at Sandbox.Engine.Platform.FixedLoop.<>c__DisplayClass11_0.<Run>b__0()
at Sandbox.Engine.Platform.GenericLoop.Run(VoidAction tickCallback)
at Sandbox.Engine.Platform.Game.RunLoop()
at Sandbox.MySandboxGame.Run(Boolean customRenderLoop, Action disposeSplashScreen)
at SpaceEngineers.MyProgram.Main(String[] args)
at avaness.SpaceEngineersLauncher.Program.StartSpaceEngineers(String[] args)
at avaness.SpaceEngineersLauncher.Program.Main(String[] args)
Into 9 Jun, 2023 @ 8:31am 
It seems it is linked to server instabilities I am experiencing. Every time someone respawns, for whatever reason, the server crashes.
Fredrik Metcalf 19 Jan, 2023 @ 1:03am 
I like this. Seems death is completely pointless in vanilla.
Borgie  [author] 11 Sep, 2022 @ 11:29am 
Yes, medkits and heal-rate seem to be off currently. I'll have to look into this further when I have some time.
I've not encountered any crashes though, at least in single-player.
K.Hunter 1 Sep, 2022 @ 8:57am 
A somewhat important problem I have with the mod is that if you attempt to use a medkit item while the health penalty is in effect, you will get a game crash. Is that something that can get fixed, so that you can still use them but will end up not getting more health than what you're capped to, and of course without having any crashes? :)
Borgie  [author] 8 Jun, 2022 @ 4:28pm 
I don't know that it's out of the scope, but I'm not sure of how I'd implement that. I'm assuming the player would be stuck in the state of "dead" until the cooldown ends. I guess you could just insta-kill any player who respawns too soon.
Fimbultul 2 Jun, 2022 @ 4:56am 
Is it possible to add an respawn cooldown, or is that out of scope of this mod?
TheWorld 7 May, 2021 @ 11:12am 
@Borgie
Thanks for reply. No, it happened to only one player so far. He was the only one logging in and the server was empty at the moment he logged.
Borgie  [author] 5 May, 2021 @ 1:01pm 
@TheWorld
It looks like this is a synchronization issue. Did this happen more than once? Were a number of people logging on at the time?
I'll upload an update soon, but this kind of thing is not easy to verify if fixed.
TheWorld 3 May, 2021 @ 11:31pm 
@borgie
Hi there. Got this error when one of players tried to connect. Could you please check?
https://pastebin.com/pY5ABdXs
Borgie  [author] 7 Apr, 2021 @ 1:09pm 
This needs to be verified, but it will probably be under
%AppData%\SpaceEngineersDedicated\Storage\1086167149.sbm_DeathPentalty
namenloss 29 Mar, 2021 @ 8:37pm 
Excellent mod!

Can you help with advice where should be sickness.cfg on dedicated servers located as its not inside Saved world folder?
Borgie  [author] 26 Jan, 2021 @ 1:24pm 
@Pjosip, Thanks for letting me know.
Somewhere along the way SpaceEngineers changed how they use the heal rate value.
Updated version should now be using the proper TickAmount and Interval.
Pjosip 23 Jan, 2021 @ 2:43pm 
Immediately after dying and respawning (and this getting the penalty), if I lose health it automaticaly just restores my health value to the penalty value after 1 second.

Example.

I respawn and my health is maxed at 21 due to penalty.

I receive damage that drops me below 21 health.

1 second after, my health is restored to 21 health.
Habers 28 May, 2019 @ 11:27am 
Awesome thanks!
Borgie  [author] 29 Apr, 2019 @ 3:42pm 
Thanks for the suggestions.
Darian suggested something similar with a reduced oxygen capacity.
If I can ever figure out how to cap these then I'll add it in as an option.

I'm not sure what you mean by "create a delay in the recovery at the medical station". Are you suggesting a timeout before you actually respawn? I'm curious if that's possible.
ХАРОН 22 Apr, 2019 @ 6:22am 
Hi, this is a good idea. However, the mod is incomplete. A penalty does not reduce the maximum supply of H2 H2O and energy.
And it would not be bad if you could help create a delay in the recovery at the medical station
Borgie  [author] 2 Feb, 2019 @ 6:44pm 
Thanks Meecham
Lemmiwinks 30 Jan, 2019 @ 2:53am 
Excellent mod idea!
Borgie  [author] 25 Jul, 2018 @ 2:30pm 
Thanks for the comment. Glad I could help. :steamhappy:
Aarni501 25 Jul, 2018 @ 6:59am 
Thank you! This mod definitely just made it to my favorites.
Borgie  [author] 24 Jul, 2018 @ 3:27pm 
Mod updated. Respawn oxygen, hydrogen and energy can now be defined. I'm not adding any caps for those at this time as it's far too complex (not sure if it's possible). Values should not affect initial spawn.
Borgie  [author] 20 Jul, 2018 @ 7:47pm 
I've not had much time to test this with 1.187 yet, unfortunately. What I can say is that it does not immediately crash in single player.
Limited starting oxygen is a good idea. If I can figure out how to do it I'd like to add it to the mod. I'll look into the oxygen cap as well when I've got some time, both being configurable, of course.
Darian Stephens 20 Jul, 2018 @ 3:11pm 
Maybe even reduce the oxygen capacity, to make it more of a penalty?
Aarni501 20 Jul, 2018 @ 4:48am 
Hi, I have two questions: Does this work with the latest version and would it be possible to have oxygen start at 20% after respawn (maybe a different mod), so I wouldn't get "free oxygen" after death? Thanks
Borgie  [author] 18 Mar, 2018 @ 2:01pm 
Util informed otherwise, i'll assume that multiplayer is working now. Feel free to complain if you have problems.
Borgie  [author] 22 Aug, 2017 @ 6:30am 
You could be right. I have done zero testing with multiplayer.
Darian Stephens 21 Aug, 2017 @ 10:32pm 
Okay, this mod doesn't seem to work at all in anything but offline mode; it crashes instantly, plus there's this error where it says 'Object reference not set to instance of an object', which I now believe was caused by this mod.
Darian Stephens 23 Jul, 2017 @ 4:29am 
This sounds awesome. Once it's multiplayer ready and tested, I'll be adding it to all my worlds, and trying to convince my server operators to add it to theirs.