Mods / Player Corpse

Category: #Utility
Author: DArkHekRoMaNT
Side: Both
Created: Feb 17th 2021 at 10:56 AM
Last modified: Nov 2nd at 5:31 PM
Downloads: 28559
Follow Unfollow 183

The reimagined grave system.

After the death of the player, the player's corpse will spawn in its place (at the moment it is a regular humanoud skeleton). You can go to it and collect things (by holding RMB), by default only its owner or a player in a creative can collect a corpse. Not despawning.

In addition, a waypoint will be created at the place of death. By default, it will try to resolve conflicts with known mods, for example supports StreamDC.

Since the game is an unpredictable thing, this mod also adds the ability to restore items lost at the last death using the /returnthings command. By default, the last 10 deaths are stored for each player.

You can also configure some things in the config:

  • CanFired - the corpse will be destroyed if it burns for more than 15 seconds (default: false)
  • HasHealth - a corpse has 100 hp and can be broken by other players (default: false)
  • CreateCorpse - whether corpses will be created at all (default: true)
  • SaveInventoryTypes - what types of inventory will be saved
  • NeedPrivilegeForReturnThings - what privileges are needed to return things (default: gamemode)
  • MaxDeathContentSavedPerPlayer - the number of recent deaths that are saved per player (default: 10)
  • CreateWaypoint - whether to create a waypoint at all upon death (default: auto; automated turn it off if there is another well-known mod adding waypoints). And also various settings for waypoints.
  • FreeCorpseAfterTime - makes corpses available to everyone after N in-game hours (default: 240; 10 days)
  • CorpseCollectionTime - corpse collection time in seconds (default: 1)
  • CorpseCompassEnabled - enable craftable compass to search for corpses nearby (default: true)

Version For Game version Downloads Release date Changelog Download
v1.5.5 2741 Nov 2nd at 5:31 PM Show PlayerCorpse_v1.17.9_v1.5.5.zip
v1.5.4 162 Nov 2nd at 7:28 AM Show PlayerCorpse_v1.17.9_v1.5.4.zip
v1.5.3 494 Oct 30th at 2:23 PM Show PlayerCorpse_v1.17.9_v1.5.3.zip
v1.5.2 38 Oct 30th at 1:36 PM Show PlayerCorpse_v1.17.9_v1.5.2.zip
v1.5.1 672 Oct 24th at 1:35 AM Show PlayerCorpse_v1.17.9_v1.5.1.zip
v1.5.0 1492 Oct 4th at 9:14 AM Show PlayerCorpse_v1.17.3_v1.5.0.zip
v1.4.3 1863 Sep 12th at 8:28 PM Show PlayerCorpse_v1.17.3_v1.4.3.zip
v1.4.2 655 Sep 10th at 5:30 PM Show PlayerCorpse_v1.17.3_v1.4.2.zip
v1.4.1 1306 Aug 11th at 12:21 PM Show PlayerCorpse_v1.17.0-rc.5_v1.4.1.zip
v1.4.0 196 Aug 8th at 2:53 PM Show PlayerCorpse_v1.17.0-rc.4_v1.4.0.zip
v1.3.3 678 Jun 28th at 11:28 AM Show PlayerCorpse_v1.17.0-pre.1_v1.3.3.zip
v1.3.2 1990 Jun 23rd at 12:29 PM Show PlayerCorpse_v1.17.0-pre.1_v1.3.2.zip
v1.3.1 6640 Feb 18th at 1:13 AM Show PlayerCorpse_v1.16.3_v1.3.1.zip
v1.3.0 2541 Dec 14th 2021 at 3:47 PM Show PlayerCorpse_v1.16.0-pre.8_v1.3.0.zip
v1.2.0 472 Dec 14th 2021 at 3:47 PM Show PlayerCorpse_v1.15.10_v1.2.0.zip
v1.1.9 1045 Oct 22nd 2021 at 4:41 AM Show PlayerCorpse_v1.15.7_v1.1.9.zip
v1.1.8 280 Oct 20th 2021 at 9:37 AM Show PlayerCorpse_v1.15.7_v1.1.8.zip
v1.1.7 290 Oct 18th 2021 at 5:56 AM Show PlayerCorpse_v1.15.7_v1.1.7.zip
v1.1.6 228 Oct 17th 2021 at 3:40 PM Show PlayerCorpse_v1.15.7_v1.1.6.zip
v1.1.5 747 Sep 10th 2021 at 1:02 AM Show PlayerCorpse_v1.15.1_v1.1.5.zip
v1.1.4 801 Aug 14th 2021 at 11:21 PM Show PlayerCorpse_v1.15.1_v1.1.4.zip
v1.1.1 373 Jul 20th 2021 at 6:52 AM Show PlayerCorpse_v1.15.1_v1.1.1.zip
v1.1.0 373 Jul 17th 2021 at 9:20 AM Show PlayerCorpse_v1.15.0_v1.1.0.zip
v1.0.2 1533 Feb 28th 2021 at 7:27 PM Show PlayerCorpse_v1.14.7_v1.0.2.zip
v1.0.1 364 Feb 20th 2021 at 3:13 PM Show PlayerCorpse_v1.14.7_v1.0.1.zip
v1.0.0 304 Feb 17th 2021 at 10:57 AM Show PlayerCorpse_v1.14.0_v1.0.0.zip

53 Comments (oldest first | newest first)

💬 BoolyStudy, Nov 23rd at 1:43 PM

How are automatically created waypoints deleted when we die?

💬 DArkHekRoMaNT, Nov 7th at 12:46 PM

What does it show in the console with this version? bringitonwimps
PlayerCorpse_v1.17.9_v1.5.5-dev.1.zip

💬 bringitonwimps, Nov 2nd at 11:58 PM

DArkHekRoMaNT

First try same thing happened

no corpse for specially crafted, and i crashed upon killing her for test of update.  Second time that has happened.

 

23:51:17 [Server Event] SpeciallyCrafted 172.124.44.60:58088 joins.
23:51:21 [Server Notification] A Client attempts connecting via TCP, assigning client id 11
23:51:21 [Server Notification] Client uid POWaoA2WNwAtrfZV06TVdHir attempting identification. Name: bringitonwimps
23:51:21 [Server Debug] Client uid POWaoA2WNwAtrfZV06TVdHir, mp token PBo87bHwVP8FUEfVfpCbNdxbIewpwHCB75viCRmOmB8=: Verifying with auth server
23:51:21 [Server Debug] Response from auth server: {"playername":"bringitonwimps","entitlements":null,"valid":1}
23:51:21 [Server Notification] Sending server identification with remap False. Server control privilege is True
23:51:21 [Server Notification] Placing player at 512128.21875 110 256327.15625
23:51:22 [Server Event] Client disconnected.
23:51:29 [Server Notification] A Client attempts connecting via TCP, assigning client id 12
23:51:29 [Server Notification] Client uid POWaoA2WNwAtrfZV06TVdHir attempting identification. Name: bringitonwimps
23:51:29 [Server Debug] Client uid POWaoA2WNwAtrfZV06TVdHir, mp token PBo87bHwVP8FUEfVfpCbNdxbIewpwHCB75viCRmOmB8=: Verifying with auth server
23:51:30 [Server Debug] Response from auth server: {"playername":"bringitonwimps","entitlements":null,"valid":1}
23:51:30 [Server Notification] Sending server identification with remap False. Server control privilege is True
23:51:30 [Server Notification] Placing player at 512128.21875 110 256327.15625
23:51:46 [Server Event] bringitonwimps 172.124.44.60:63778 joins.
23:53:48 [Server Warning] Exception at client 12. Disconnecting client.
23:53:48 [Server Event] Player bringitonwimps got removed. Reason: Threw an exception at the server
23:53:48 [Server Error] System.UnauthorizedAccessException: Access to the path '/xefad5U8M+boUkV2baiwqlR' is denied. ---> System.IO.IOException: Permission denied
--- End of inner exception stack trace ---
at System.IO.FileSystem.CreateDirectory (System.String fullPath) [0x001f1] in <12b418a7818c4ca0893feeaaf67f1e7f>:0
at System.IO.Directory.CreateDirectory (System.String path) [0x00033] in <12b418a7818c4ca0893feeaaf67f1e7f>:0
at Vintagestory.Common.APIBase.GetOrCreateDataPath (System.String foldername) [0x00014] in <f8e7e0ea709348ba8693d95fd255ff41>:0
at PlayerCorpse.Systems.DeathContentManager.SaveDeathContent (Vintagestory.API.Common.InventoryGeneric inventory, Vintagestory.API.Common.IPlayer player) [0x00038] in <d9bf9f0521f743fa8154beb49251900c>:0
at PlayerCorpse.Systems.DeathContentManager.OnPlayerDeath (Vintagestory.API.Server.IServerPlayer byPlayer, Vintagestory.API.Common.DamageSource damageSource) [0x000cb] in <d9bf9f0521f743fa8154beb49251900c>:0
at PlayerCorpse.Systems.DeathContentManager.OnEntityDeath (Vintagestory.API.Common.Entities.Entity entity, Vintagestory.API.Common.DamageSource damageSource) [0x00011] in <d9bf9f0521f743fa8154beb49251900c>:0
at (wrapper delegate-invoke) <Module>.invoke_void_Entity_DamageSource(Vintagestory.API.Common.Entities.Entity,Vintagestory.API.Common.DamageSource)
at Vintagestory.Server.ServerEventAPI.TriggerEntityDeath (Vintagestory.API.Common.Entities.Entity entity, Vintagestory.API.Common.DamageSource damageSourceForDeath) [0x0000a] in <f8e7e0ea709348ba8693d95fd255ff41>:0
at Vintagestory.API.Common.Entities.Entity.Die (Vintagestory.API.Common.EnumDespawnReason reason, Vintagestory.API.Common.DamageSource damageSourceForDeath) [0x00021] in <c45f8f9ae2e44e27810185f8d4839e5f>:0
at Vintagestory.API.Common.EntityAgent.Die (Vintagestory.API.Common.EnumDespawnReason reason, Vintagestory.API.Common.DamageSource damageSourceForDeath) [0x00086] in <c45f8f9ae2e44e27810185f8d4839e5f>:0
at Vintagestory.API.Common.EntityPlayer.Die (Vintagestory.API.Common.EnumDespawnReason reason, Vintagestory.API.Common.DamageSource damageSourceForDeath) [0x00000] in <c45f8f9ae2e44e27810185f8d4839e5f>:0
at Vintagestory.GameContent.EntityBehaviorHealth.OnEntityReceiveDamage (Vintagestory.API.Common.DamageSource damageSource, System.Single& damage) [0x0012e] in <3f5e746b61cb45608a2d6835722267bd>:0
at Vintagestory.API.Common.Entities.Entity.ReceiveDamage (Vintagestory.API.Common.DamageSource damageSource, System.Single damage) [0x00047] in <c45f8f9ae2e44e27810185f8d4839e5f>:0
at Vintagestory.API.Common.EntityAgent.ReceiveDamage (Vintagestory.API.Common.DamageSource damageSource, System.Single damage) [0x00000] in <c45f8f9ae2e44e27810185f8d4839e5f>:0
at Vintagestory.API.Common.EntityAgent.OnInteract (Vintagestory.API.Common.EntityAgent byEntity, Vintagestory.API.Common.ItemSlot slot, Vintagestory.API.MathTools.Vec3d hitPosition, Vintagestory.API.Common.EnumInteractMode mode) [0x0032f] in <c45f8f9ae2e44e27810185f8d4839e5f>:0
at Vintagestory.Server.ServerSystemEntitySimulation.HandleEntityInteraction (Packet_Client packet, Vintagestory.Server.ConnectedClient client) [0x00275] in <f8e7e0ea709348ba8693d95fd255ff41>:0
at Vintagestory.Server.ServerMain.HandleClientPacket (Vintagestory.Server.ConnectedClient client, System.Byte[] data) [0x0005a] in <f8e7e0ea709348ba8693d95fd255ff41>:0
at Vintagestory.Server.ServerMain.ProcessNetMessage (Vintagestory.Common.NetIncomingMessage msg, Vintagestory.Common.NetServer mainSocket) [0x00151] in <f8e7e0ea709348ba8693d95fd255ff41>:0
23:53:48 [Server Notification] Handling Command /waypoint addati bee =512150 =120 =256252 True crimson Death: 2022-11-02 23:53:48
23:53:56 [Server Notification] A Client attempts connecting via TCP, assigning client id 13
23:53:56 [Server Notification] Client uid POWaoA2WNwAtrfZV06TVdHir attempting identification. Name: bringitonwimps
23:53:56 [Server Debug] Client uid POWaoA2WNwAtrfZV06TVdHir, mp token PBo87bHwVP8FUEfVfpCbNdxbIewpwHCB75viCRmOmB8=: Verifying with auth server
23:53:56 [Server Debug] Response from auth server: {"playername":"bringitonwimps","entitlements":null,"valid":1}
23:53:56 [Server Notification] Sending server identification with remap False. Server control privilege is True
23:53:56 [Server Notification] Placing player at 512150.78125 120 256250.46875
23:54:07 [Server Event] bringitonwimps 172.124.44.60:63816 joins.

💬 DArkHekRoMaNT, Nov 2nd at 7:30 AM

Should be fixed in v1.5.4 bringitonwimps Axaxel

💬 Axaxel, Oct 31st at 2:20 PM

We have exactly the same problem as @brightonwimps

The creation of corpses works for everyone but me. Server is running in an Docker-Environment on Linux.

 

When dying i get the following Error-Message in the server.log:

31.10.2022 14:54:10 [Fatal] System.UnauthorizedAccessException: Access to the path '/xIZslwstELrpBftXcJpxdkn' is denied. ---> System.IO.IOException: Permission denied
--- End of inner exception stack trace ---
at System.IO.FileSystem.CreateDirectory (System.String fullPath) [0x00191] in <de882a77e7c14f8ba5d298093dde82b2>:0
at System.IO.Directory.CreateDirectory (System.String path) [0x0002c] in <de882a77e7c14f8ba5d298093dde82b2>:0
at Vintagestory.Common.APIBase.GetOrCreateDataPath (System.String foldername) [0x00014] in <f8e7e0ea709348ba8693d95fd255ff41>:0
at PlayerCorpse.Systems.DeathContentManager.SaveDeathContent (Vintagestory.API.Common.InventoryGeneric inventory, Vintagestory.API.Common.IPlayer player) [0x00033] in <ee4d75f043b7410ab9d48b7626411d5b>:0
at PlayerCorpse.Systems.DeathContentManager.OnPlayerDeath (Vintagestory.API.Server.IServerPlayer byPlayer, Vintagestory.API.Common.DamageSource damageSource) [0x000cb] in <ee4d75f043b7410ab9d48b7626411d5b>:0
at PlayerCorpse.Systems.DeathContentManager.OnEntityDeath (Vintagestory.API.Common.Entities.Entity entity, Vintagestory.API.Common.DamageSource damageSource) [0x00011] in <ee4d75f043b7410ab9d48b7626411d5b>:0
at (wrapper delegate-invoke) <Module>.invoke_void_Entity_DamageSource(Vintagestory.API.Common.Entities.Entity,Vintagestory.API.Common.DamageSource)
at Vintagestory.Server.ServerEventAPI.TriggerEntityDeath (Vintagestory.API.Common.Entities.Entity entity, Vintagestory.API.Common.DamageSource damageSourceForDeath) [0x0000a] in <f8e7e0ea709348ba8693d95fd255ff41>:0
at Vintagestory.API.Common.Entities.Entity.Die (Vintagestory.API.Common.EnumDespawnReason reason, Vintagestory.API.Common.DamageSource damageSourceForDeath) [0x00021] in <c45f8f9ae2e44e27810185f8d4839e5f>:0
at Vintagestory.API.Common.EntityAgent.Die (Vintagestory.API.Common.EnumDespawnReason reason, Vintagestory.API.Common.DamageSource damageSourceForDeath) [0x00086] in <c45f8f9ae2e44e27810185f8d4839e5f>:0
at Vintagestory.API.Common.EntityPlayer.Die (Vintagestory.API.Common.EnumDespawnReason reason, Vintagestory.API.Common.DamageSource damageSourceForDeath) [0x00000] in <c45f8f9ae2e44e27810185f8d4839e5f>:0
at Vintagestory.GameContent.EntityBehaviorHealth.OnEntityReceiveDamage (Vintagestory.API.Common.DamageSource damageSource, System.Single& damage) [0x0012e] in <3f5e746b61cb45608a2d6835722267bd>:0
at Vintagestory.API.Common.Entities.Entity.ReceiveDamage (Vintagestory.API.Common.DamageSource damageSource, System.Single damage) [0x00047] in <c45f8f9ae2e44e27810185f8d4839e5f>:0
at Vintagestory.API.Common.EntityAgent.ReceiveDamage (Vintagestory.API.Common.DamageSource damageSource, System.Single damage) [0x00000] in <c45f8f9ae2e44e27810185f8d4839e5f>:0
at Vintagestory.GameContent.AiTaskMeleeAttack.ContinueExecute (System.Single dt) [0x0013d] in <3f5e746b61cb45608a2d6835722267bd>:0
at Vintagestory.GameContent.AiTaskManager.OnGameTick (System.Single dt) [0x000e4] in <3f5e746b61cb45608a2d6835722267bd>:0
at Vintagestory.GameContent.EntityBehaviorTaskAI.OnGameTick (System.Single deltaTime) [0x00076] in <3f5e746b61cb45608a2d6835722267bd>:0
at Vintagestory.API.Common.Entities.Entity.OnGameTick (System.Single dt) [0x00100] in <c45f8f9ae2e44e27810185f8d4839e5f>:0
at Vintagestory.API.Common.EntityAgent.OnGameTick (System.Single dt) [0x007a0] in <c45f8f9ae2e44e27810185f8d4839e5f>:0
at Vintagestory.Server.ServerSystemEntitySimulation.TickEntities (System.Single dt) [0x00035] in <f8e7e0ea709348ba8693d95fd255ff41>:0
at Vintagestory.Server.ServerSystemEntitySimulation.OnServerTick (System.Single dt) [0x00167] in <f8e7e0ea709348ba8693d95fd255ff41>:0
at Vintagestory.Server.ServerMain.Process () [0x001ba] in <f8e7e0ea709348ba8693d95fd255ff41>:0

💬 HorizonAdmin, Oct 30th at 8:23 PM

Thanks so much for the quick response. I love this mod so much.  You are much appreciated ❤️

💬 bringitonwimps, Oct 30th at 8:01 PM

So we have this issue where  ONE and only one player does not create a corpse when dieing. it works for everyone else.  we have tried all the way to entirely revo uninstallling VS on her pc and even using a vpn.  just to elimnate everything we can think of.  me and her are at same location so we thought maybe ip had something weird to do with it.  anyways, no matter what we do and after updates and everything this player still does not create corpses on death.  instead EVERYTHIng she is carrying vanishes.   So now we are at must be something related to server side.  Is there a specific file that we can maybe reset or delete or something to maybe fix this issue?  We are at a loss cause we cant use the mod becausew it breaks it for that player.

💬 DArkHekRoMaNT, Oct 30th at 1:39 PM

v1.5.2 also fixes any conflicts with CarryCapacity v0.6.5

💬 DArkHekRoMaNT, Oct 30th at 1:39 PM

Fixed in 1.5.2 Iphour HorizonAdmin

💬 HorizonAdmin, Oct 28th at 5:17 PM

Restarted the server and checked just now, no errors regarding Player Corpse and nothing on the console upon player death either.

💬 DArkHekRoMaNT, Oct 28th at 12:39 PM

Iphour check your server-main.txt for errors

💬 OmegaHaxors, Oct 26th at 1:26 PM

Some extra information which may be helpful is that Mortal Damage applies 1 poison-type damage sourcing from Void when you bleed out.
If I had to wager a guess I would say somewhere in your code you assumed that a player dying from the Void shouldn't produce a corpse.

💬 HorizonAdmin, Oct 25th at 6:36 AM

Having Mortal Damage installed will make Player Corpse not work. If you die from bleeding, a corpse won't be created.

💬 Heebeejeebees, Oct 12th at 9:08 AM

Took a read in the forum, copygirl has vacated working on Vintage Story mods last month. Sorry you have to figure this out yourself, but oomf and I are using latest versoins of both mods when we saw this issue come up.

Best of luck figuring it out.

💬 Heebeejeebees, Oct 12th at 5:45 AM

It's CarryCapacity. Collaborate with copygirl about this so you two can bang out a solution.

Already explained in the CarryCapacity ModDB page, but tl;dr oomf and I tested this, with just defaults, latest of both carrycap and this, this mod fails to function.

Confirmed with oomf the issue with a new world, just those two mods have issues with each other.

💬 Heebeejeebees, Oct 12th at 5:03 AM

I can provide some better input than just it do no work:

12.10.2022 00:57:47 [Notification] Handling Command /kill
12.10.2022 00:57:47 [Error] Mod exception: OnPlayerDeath
12.10.2022 00:57:47 [Error] Exception: System.MissingFieldException: Field not found: 'Vintagestory.API.Common.Entities.EntityServerProperties.Attributes'.
at CarryCapacity.Common.DeathHandler.OnPlayerDeath(IPlayer player, DamageSource source)
at Vintagestory.API.Common.PlayerDeathDelegate.Invoke(IServerPlayer byPlayer, DamageSource damageSource)
at Vintagestory.Server.ServerEventManager.TriggerPlayerDeath(IServerPlayer player, DamageSource source) in C:\Users\tyron\Documents\vintagestory\game\VintagestoryLib\Server\ServerEventManager.cs:line 750

💬 Heebeejeebees, Oct 12th at 4:50 AM

I can report the mod is working — it makes me want to commit suicide and release the corpse inside of myself any time I die because no waypoint and no skeleton is generated.

But no seriously, mod is broken af in multiplayer rn. Single player works just fine.

💬 Edrein, Oct 5th at 12:41 AM

Yup, I'm also having the same issue. I get no corpse and I get no map marker made. I even deleted my configs and relaunched just in case.

💬 gregest, Oct 4th at 11:31 PM

Using the latest version, 1.5.0 on VS 1.17.6, the corpse doesn't seem to appear, I checked the config and CreateCorpse is set to true, these are the mods I use 

 

💬 DArkHekRoMaNT, Oct 4th at 9:19 AM

I changed the mod back to a dll instead of the source code. It may also fix weird ItemPlayerCorpse and compilation issues.
Also, the mod now uses not a custom behavior added to the player, but an event. So corpse spawning should be more reliable and not easily broken by another mod.

Please report again if they stay. It's hard for me to check this, because I can't repeat these problems

💬 PrussianV, Sep 17th at 3:12 PM

This is the error I get after inputting the command to get my items back "since my corpse wasn't there, nor items"

17.9.2022 10:07:51 [Error] Player PrussianV/RbB8qKzD/TnObw3IsFZ3RUqM caused an exception through a command.
17.9.2022 10:07:51 [Error] Command: /returnthings
17.9.2022 10:07:51 [Error] Arguments: PrussianV 1
17.9.2022 10:07:51 [Error] Exception: System.NullReferenceException: Object reference not set to an instance of an object
at PlayerCorpse.Commands+<ReturnThingsCommand>c__AnonStorey0.<>m__1 (Vintagestory.API.Common.IPlayer p) [0x00006] in <c6505c26d9484283bb5c6664d0c6cabe>:0
at System.Linq.Enumerable.TryGetFirst[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] predicate, System.Boolean& found) [0x0003f] in <5b415632df1f4365ae2242b1a257bb5b>:0
at System.Linq.Enumerable.FirstOrDefault[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] predicate) [0x00000] in <5b415632df1f4365ae2242b1a257bb5b>:0
at PlayerCorpse.Commands.ReturnThingsCommand (Vintagestory.API.Server.IServerPlayer player, System.Int32 groupId, Vintagestory.API.Common.CmdArgs args) [0x001b9] in <c6505c26d9484283bb5c6664d0c6cabe>:0
at Vintagestory.API.Common.ServerChatCommand.CallHandler (Vintagestory.API.Common.IPlayer player, System.Int32 groupId, Vintagestory.API.Common.CmdArgs args) [0x00000] in <3cdbf5280d60457f85295e780f5884f1>:0
at Vintagestory.Common.EventManager.TriggerChatCommand (Vintagestory.API.Common.IPlayer player, System.Int32 channelId, System.String command, Vintagestory.API.Common.CmdArgs args) [0x00045] in <6215ae1029cd4696b4c4b2c34106b061>:0
at Vintagestory.Server.CoreServerEventManager.TriggerChatCommand (Vintagestory.API.Common.IPlayer player, System.Int32 channelId, System.String command, Vintagestory.API.Common.CmdArgs args) [0x00015] in <6215ae1029cd4696b4c4b2c34106b061>:0
at Vintagestory.Server.ServerMain.HandleCommand (Vintagestory.API.Server.IServerPlayer player, System.Int32 groupid, System.String command, System.String argument) [0x00026] in <6215ae1029cd4696b4c4b2c34106b061>:0
17.9.2022 10:07:51 [Error] at PlayerCorpse.Commands+<ReturnThingsCommand>c__AnonStorey0.<>m__1 (Vintagestory.API.Common.IPlayer p) [0x00006] in <c6505c26d9484283bb5c6664d0c6cabe>:0
at System.Linq.Enumerable.TryGetFirst[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] predicate, System.Boolean& found) [0x0003f] in <5b415632df1f4365ae2242b1a257bb5b>:0
at System.Linq.Enumerable.FirstOrDefault[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] predicate) [0x00000] in <5b415632df1f4365ae2242b1a257bb5b>:0
at PlayerCorpse.Commands.ReturnThingsCommand (Vintagestory.API.Server.IServerPlayer player, System.Int32 groupId, Vintagestory.API.Common.CmdArgs args) [0x001b9] in <c6505c26d9484283bb5c6664d0c6cabe>:0
at Vintagestory.API.Common.ServerChatCommand.CallHandler (Vintagestory.API.Common.IPlayer player, System.Int32 groupId, Vintagestory.API.Common.CmdArgs args) [0x00000] in <3cdbf5280d60457f85295e780f5884f1>:0
at Vintagestory.Common.EventManager.TriggerChatCommand (Vintagestory.API.Common.IPlayer player, System.Int32 channelId, System.String command, Vintagestory.API.Common.CmdArgs args) [0x00045] in <6215ae1029cd4696b4c4b2c34106b061>:0
at Vintagestory.Server.CoreServerEventManager.TriggerChatCommand (Vintagestory.API.Common.IPlayer player, System.Int32 channelId, System.String command, Vintagestory.API.Common.CmdArgs args) [0x00015] in <6215ae1029cd4696b4c4b2c34106b061>:0
at Vintagestory.Server.ServerMain.HandleCommand (Vintagestory.API.Server.IServerPlayer player, System.Int32 groupid, System.String command, System.String argument) [0x00026] in <6215ae1029cd4696b4c4b2c34106b061>:0
17.9.2022 10:08:10 [Event] Player PrussianV left.

💬 CreativeRealms, Sep 13th at 5:36 PM

Using v1.4.3. The corpse does not appear when the mod is used on a server (all items drop on the ground) but works fine when used in SP with the same mods. This is the mod list if it helps (PlayerCorpse has been updated since the screenshot):

image

💬 Doornydew, Sep 12th at 7:25 PM

im part of Thomas's server,  but for me, i KEPT the error,  even after fully reinstalling game,  im playing on ARCH linux (Steamdeck)

anything that i can still try at this point?

💬 BlueFuryDragon, Sep 12th at 3:49 AM

I died, but no corsps and all stuff gone. So, I tried installing an older version and I still can't get the mod to work. I don't know what to do.

💬 CosmonautYuri, Sep 12th at 12:57 AM

1.4.2 reintroduced the vanishing corpses

💬 Thomas_Jefferson, Sep 11th at 9:03 PM

Player says they'd already deleted all the modsbyserver and let the server attempt reinstallation, to no avail. As for the server, the corpse mod has been deleted from the server files so the player can play again.

💬 DArkHekRoMaNT, Sep 11th at 4:33 PM

Clear ModsByServer folder. If an old version of PlayerCorpses (without compass) and a new version are installed at the same time, the game behaves strangely. Even if the old version was disabled Thomas_Jefferson

💬 Thomas_Jefferson, Sep 11th at 2:02 PM

A bug has occured on a 1.17.3 server with other mods upon join attempt, using the latest version of your mod. Some (including myself) got in fine, others got this crash report:

System.Exception: Don't know how to instantiate item of class 'ItemCorpseCompass' did you forget to register a mapping?
at Vintagestory.Common.ClassRegistry.CreateItem(String itemClass) in VintagestoryLib\Common\ClassRegistry.cs:line 273
at Vintagestory.Common.ItemTypeNet.ReadItemTypePacket(Packet_ItemType packet, IWorldAccessor world, ClassRegistry registry) in VintagestoryLib\Common\Network\ItemTypeNet.cs:line 19
at Vintagestory.Client.NoObf.GeneralPacketHandler.PopulateItems(List`1 items, Int32 listSize) in VintagestoryLib\Client\Systems\GeneralPacketHandler.cs:line 561
at Vintagestory.Client.NoObf.GeneralPacketHandler.LoadItemTypes() in VintagestoryLib\Client\Systems\GeneralPacketHandler.cs:line 471
at Vintagestory.Client.NoObf.GeneralPacketHandler.HandleServerAssets_Step1() in VintagestoryLib\Client\Systems\GeneralPacketHandler.cs:line 414
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
at System.Threading.ThreadPoolWorkQueue.Dispatch()

We'd greatly appreciate your help in fixing this issue, whether it's on our side or yours.

💬 Shaidyn, Aug 24th at 6:08 PM

I'm running a local 1.17 rc 5 server with player corpse v1.4.1. I died for the first time, but when I went back I had no corpse. I disconnected and reconnected, still no corpse. I picked up a stick, died again, and tried /returnthings name name 0, and it says there's nothing in index zero.

💬 DArkHekRoMaNT, Aug 11th at 12:22 PM

Disappearing corpses issue fixed in 1.4.1 😅

💬 DArkHekRoMaNT, Aug 8th at 2:56 PM

Disappearing corpses issue should be fixed in 1.4.0 (at least it works correctly for me now)

💬 Ginko72, Aug 7th at 5:42 AM

WORKAROUND

  1. Return to your corpse
  2. Fight off any remaining bad guys
  3. If your corpse vanishes, enter the following command:

/returnthings [YourPlayer] [YourPlayer] 0

FYI: I'm still using 1.3.3 with 1.17-rc4; 1.3.2 did not even generate a corpse for me.

💬 Assassin_chad_23, Aug 2nd at 3:28 PM

i put in a bug report on github like rquested in the discription  on the 29th.  I am guessing the mod creator is away right now. But hopefully it will get taken care of soon. 

💬 Pvtbones, Aug 2nd at 1:37 AM

Also having this issue with corpses disappearing. both on MP and solo play, on 1.17.0 pre-.5 and RC.2

💬 Assassin_chad_23, Jul 29th at 12:19 PM

Same bug as the last 2.   playing version 1.17.0-rc.2 

Get to the corpse and right click it starts the wheel then stops.  Server log states corpse destroyed. 

💬 Nebux, Jul 21st at 9:04 PM

Same bug as Zarugast in 1.17 pre 5

 

💬 Zarugast, Jul 19th at 2:12 PM

After not holding right click ( just clicked)  my corpse disappeard and when I tried using /returnthings to myusername it said "player not found", am I doing something wrong?

💬 DArkHekRoMaNT, Jun 23rd at 12:30 PM

v1.3.2 is also compatible with VS 1.17.0-pre.1

💬 YourCreator, Jun 1st at 5:00 PM

pls add timer config to corpse. Clean corpse after chosen time

 

 

💬 WickedSchnitzel, May 17th at 8:02 PM

Suggestion: Add an option to let the corpse emit particles so that people can find them more easily in high grass, at night etc.

💬 bringitonwimps, May 16th at 5:06 AM

a suggestion for something ive wanted for a while, could you make a config option to put the corpse randomly within a chosen block distance... so like say 500 blocks.  this way when you respawn the idea is someone, a previous person died, cause your a new dif person in the world and you or campanions may come across the loot of a previously unfortunate soul.   ive wanted it for a more hardcore "punishment" for death but something that wont remove the items from the game, just make em a lucky find on some random future day.  idk if anyone else would like this idea.  but i think it would be like a little treasure hunt mechanic as well.  youd have an idea of the vacinity based on setting but not know EXACTLY where the stuff was.

💬 Cendar, Apr 10th at 1:07 AM

Hi!

I updated my french translation for Player Corpse 1.3.1

Link to the fr.json file:
mega.nz/file/05BxSJhL#ME907w1A12BDLmZ0-uKtmqBEFsTejqsdo3CmN2ZmgVc

💬 ArchieBoop, Apr 4th at 8:55 PM

Could we perhaps have an option to decrease the time it takes to retrieve items from a corpse? The time it takes to do so is probably a little too much when your corpse is down inside a cave and you're being swarmed by locusts or drifters.

 

Also, something I noticed is that the backpacks will not always be added to your character in the same order. It would be nice to do so if possible but it's nothing serious.

💬 DArkHekRoMaNT, Mar 31st at 11:34 PM

Try deleting the folder %appdata%/VintagestoryData/ModsByServer spaceslug

💬 spaceslug, Feb 28th at 7:22 PM

DArkHekRoMaNT

He now gets this exception.

Game Version: v1.16.4 (Stable)
Loaded Mods: game@1.16.4, playercorpse@1.3.1, prospectorinfo@3.1.0, stepup@1.2.0, creative@1.16.4, survival@1.16.4
28/02/2022 20.18.31: Critical error occurred
System.Exception: Don't know how to instantiate item of class 'ItemCorpseCompass' did you forget to register a mapping?
at Vintagestory.Common.ClassRegistry.CreateItem(String itemClass)
at Vintagestory.Common.ItemTypeNet.ReadItemTypePacket(_V5KVIg6AZCt8Xw4s8zyEyfYSGfh packet, IWorldAccessor world, ClassRegistry registry)
at Vintagestory.Client.NoObf.GeneralPacketHandler.HandleServerAssetsStep1()
at Vintagestory.Client.NoObf.ClientMain.ExecuteMainThreadTasks(Single deltaTime)
at _eaiE9OWXDVmX2r6n7JaWPscBEkO._LvzIyYpsQCoC78JubjSO0HCjtTg(Single )
at _lAuHsYOBOAjBMdATFXwLUtH7N00._JvY4M2412YZu1OS3Ull8wgZBu1j(Single )
at _lAuHsYOBOAjBMdATFXwLUtH7N00._KmBeEx15nyyLrVqNDW6geSArpNr(Single )
at Vintagestory.Client.NoObf.ClientPlatformWindows.window_RenderFrame(Object sender, FrameEventArgs e)
at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
at OpenTK.GameWindow.RaiseRenderFrame(Double elapsed, Double& timestamp) in C:\Users\Nexrem\Desktop\transfer\opentk\src\OpenTK\GameWindow.cs:line 479
at OpenTK.GameWindow.DispatchRenderFrame() in C:\Users\Nexrem\Desktop\transfer\opentk\src\OpenTK\GameWindow.cs:line 454
at OpenTK.GameWindow.Run(Double updates_per_second, Double frames_per_second) in C:\Users\Nexrem\Desktop\transfer\opentk\src\OpenTK\GameWindow.cs:line 375
at _TRhArnJABwZoV9Vt7Ld2l65Xzgg._mhlr8s7wtMvxaJGpVy2Ag90jUBK(_3HJA5NvAIx31LXjscc3HGjXaR6q , String[] )
at _q0zAVOrWbMX04rMA9G3HIFVuGjA._mhlr8s7wtMvxaJGpVy2Ag90jUBK(ThreadStart )

 

💬 DArkHekRoMaNT, Feb 18th at 1:16 AM

Should be fixed in v1.3.1 spaceslug

💬 spaceslug, Feb 5th at 7:34 PM

I have a friend that gets exceptions when connecting to my server after dying and later loging back on.

Game Version: v1.16.3 (Stable)
Loaded Mods: game@1.16.3, playercorpse@1.3.0, prospectorinfo@3.1.0, stepup@1.2.0, creative@1.16.3, survival@1.16.3
05/02/2022 14.31.59: Critical error occurred
System.MissingMethodException: Method not found: '!!0 Vintagestory.API.Common.IModLoader.GetModSystem()'.
at PlayerCorpse.EntityPlayerCorpse.Initialize(EntityProperties properties, ICoreAPI api, Int64 InChunkIndex3d)
at Vintagestory.Client.NoObf.ClientSystemEntities.entityFromPacket(_PfIpUpnyNzoeAvZNfeMyhnhKDaA entitypacket, ClientMain game)
at Vintagestory.Client.NoObf.ClientSystemEntities.createOrUpdateEntityFromPacket(_PfIpUpnyNzoeAvZNfeMyhnhKDaA entitypacket, ClientMain game, Boolean addToLoadQueue)
at Vintagestory.Client.NoObf.ClientSystemEntities.HandleEntityLoadedPacket(_Dp1aKZ8iZypdvDG8MmoQfv915eG serverpacket)
at Vintagestory.Client.NoObf.ClientMain.ExecuteMainThreadTasks(Single deltaTime)
at _TcPKe0ld0EAbHR8YsMG1OLy9q8O._G7ImpIHUCfpaZwTmd8In2KuoHYA(Single )
at _SbWHHe8Ad6lBV8IRbvWFqut7ren._mSnyaJUIQhBb8A1j3UUn7uh5BBO(Single )
at _SbWHHe8Ad6lBV8IRbvWFqut7ren._b365Cpnna1p8GSaDyyO3EH2VfOD(Single )
at Vintagestory.Client.NoObf.ClientPlatformWindows.window_RenderFrame(Object sender, FrameEventArgs e)
at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
at OpenTK.GameWindow.RaiseRenderFrame(Double elapsed, Double& timestamp) in C:\Users\Nexrem\Desktop\transfer\opentk\src\OpenTK\GameWindow.cs:line 479
at OpenTK.GameWindow.DispatchRenderFrame() in C:\Users\Nexrem\Desktop\transfer\opentk\src\OpenTK\GameWindow.cs:line 454
at OpenTK.GameWindow.Run(Double updates_per_second, Double frames_per_second) in C:\Users\Nexrem\Desktop\transfer\opentk\src\OpenTK\GameWindow.cs:line 375
at _muFH2BhSjNKo8GSc2o33Nm6Ckup._SwLkq72vc0vcc3OnHXTAS19pm9p(_tVmXPdKJ3JBDWFc8tBtvgftcfhl , String[] )
at _XL1Xa21FKJVFetNmIumId5p6UDU._SwLkq72vc0vcc3OnHXTAS19pm9p(ThreadStart )
-------------------------------

Are there perhaps a way to purge all player corpse data?
The items my friend had are not importaint, I just want him to be able to join my server again.

 

💬 Cendar, Jan 19th at 4:36 AM

Hi! I made a french translation for your mod, feel free to add it if you want. 😊

fr.json - PlayerCorpse 1.3.0

💬 Robson, Oct 18th 2021 at 5:16 PM

Suggestion: This mod would be very cool if it had the ability to cost.

for example if you die with a temportal gear on you, it removes the temporal gear but creates the grave.

If you dont have a temporal gear, the mod wont activate and you drop your items like normal.

 

Great mod though, keep it up

💬 DArkHekRoMaNT, Aug 12th 2021 at 2:38 AM

1.1.2 may cause crash, 1.1.1 or 1.1.4+ is recommended

💬 Xorberax, Aug 7th 2021 at 12:53 AM

I had an issue where nobody on my server could recover their corpse. They would hold the RMB on the corpse and nothing would happen. Upon restarting the server, I'd crash with the following stack trace -- I had to unload the mod, start the server, stop the server, load the mod, start the server, recover my items with the return things command, unload the mod in order to recover my stuff:

Running on 64 bit Windows with 64 GB RAM Version: v1.15.3 (Stable)2021-08-05 8:23:20 PM: Critical error occurred System.NullReferenceException: Object reference not set to an instance of an object. at Vintagestory.Server.ServerMain.EntityPosFromSpawnPos(PlayerSpawnPos playerSpawn) at PlayerCorpse.EntityPlayerCorpse.OnEntityLoaded() at Vintagestory.Server.ServerMain.LoadEntity(Entity entity, Int64 fromChunkIndex3d) at Vintagestory.Server.ServerSystemSupplyChunks.<>c__DisplayClass15_0.b__0() at Vintagestory.Server.ServerMain.ProcessMainThreadTasks() at Vintagestory.Server.ServerMain.ProcessMain() at Vintagestory.Server.ServerMain.Stop(String reason) at _Km7YT9SY1sKIj5UBhEpQfHc3XzB._HhrVFdJkFhMrwQkFcwlyS1F1C6h() at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart()

💬 DArkHekRoMaNT, Aug 1st 2021 at 12:32 PM

@Vallen, are you using VSMovementMod? Please update it if you are using it. I immediately testing my mod in multiplayer, it should work.

💬 Vallen, Jul 24th 2021 at 12:27 AM

Just tried version 1.1.1 on a server with the default values and the player did not generate a corpse but dropped their stuff like usual. :(

(edit comment delete)