SWGEmu SWGEMU-477

(unstable) Adjusted corpse despawn times and logic to be more inline with SOE Publish 14.1

Closed on 04 Jan

  •  
  •  
  •  
  •  
  • Author
  • Moderator
  • Reviewers
    • Reviewer completed

SWGEMU-477 46

Summarize the review outcomes (optional)
 
#permalink

Details

Warning: no files are visible, they have all been filtered.
Participant Role Time Spent Comments Latest Comment
Author 1h 59m 24 Uploaded patch file containing the IDL changes and still ...
Moderator 1m    
Reviewer - 0% complete      
Reviewer - 100% complete 46m 10 Try that next time. I don't know if it makes any differen...
Reviewer - 0% complete      
Reviewer - 65% complete 36m 9 that is what I'm saying. I am pretty sure we had it this ...
oru
Reviewer - 0% complete      
Reviewer - 0% complete      
Reviewer - 55% complete 9m 3 Yes it was rebooted and it seems to have resolved some of...
Total   3h 30m 46  
#permalink

Objectives

Modify creature despawn logic to be more like the SOE publish 14.1 despawn logic.
Despawn corpses immediately if nothing to loot or harvest.
Consider group members in range (< 128m) when making despawn decisions.
Increase despawn time for creature corpses back to 5 minutes when looting or harvesting can be performed.

#permalink

Summary

Patch committed to unstable branch.

#permalink

Issues Raised From Comments

Key Summary State Assignee
#permalink

General Comments

11 Dec 12

Nathan Klick says:

After many different opinions from the forum thread below I believe the general consensus to be that the current despawn time of 45 seconds is way too short. Many players including myself also feel that the SOE servers had a despawn time of 5 minutes and when a corpse was looted and/or harvested it despawned immediately. I understand the concern (in terms of load and resource consumption) for having all corpses unconditionally hang around for 5 minutes. However this patch is intended to offer a best of both blend that more closely mirrors the SOE live servers behavior at the time of publish 14.1. In this patch I increase the despawn time back to 5 minutes but have also added logic to despawn corpses immediately if they have been looted and harvested. There are also conditions in place to handle users who cannot harvest and creatures with no loot. The code takes other group members in range (<= 128m) into account when determining whether the corpse should immediately despawn or not. I have tested this thoroughly in my dev environment setup based on the Debian VMWare image.

Forum Thread: http://www.swgemu.com/forums/showthread.php?t=68219&p=525717#post525717

Thanks,

Nathan

17 Dec 12

Loshult says:

Please go through the patch and remove all extra new lines that you added. We have at most one empty line between statements.

18 Dec 12

Nathan Klick says:

Updated & attached new patch to remove the extraneous whitespace as requested. Please let me know if there is anything else I need to change.

Thanks,

Nathan

/src/.../creature/CreatureManagerImplementation.cpp Changed  
Open in IDE #permalink
/src/server/.../player/PlayerManager.idl Changed  
Open in IDE #permalink
/src/.../player/PlayerManagerImplementation.cpp Changed  
Open in IDE #permalink
/src/.../creature/CreatureImplementation.cpp Changed  
Open in IDE #permalink
/src/.../creature/CreatureManagerImplementation.cpp Changed   7
Open in IDE #permalink
/src/server/.../player/PlayerManager.idl Changed  
Open in IDE #permalink
/src/.../player/PlayerManagerImplementation.cpp Changed   15
Open in IDE #permalink
/src/.../creature/CreatureImplementation.cpp Changed  
Open in IDE #permalink
/src/.../creature/CreatureManagerImplementation.cpp Changed   2
Open in IDE #permalink
/src/server/.../player/PlayerManager.cpp Changed  
Open in IDE #permalink
/src/server/.../player/PlayerManager.h Changed  
Open in IDE #permalink
/src/server/.../player/PlayerManager.idl Changed   4
Open in IDE #permalink
/src/.../player/PlayerManagerImplementation.cpp Changed   7
Open in IDE #permalink
/src/.../creature/CreatureImplementation.cpp Changed  
Open in IDE #permalink
/src/.../creature/CreatureManagerImplementation.cpp Changed   4
Open in IDE #permalink
/src/server/.../player/PlayerManager.cpp Changed  
Open in IDE #permalink
/src/server/.../player/PlayerManager.h Changed  
Open in IDE #permalink
/src/server/.../player/PlayerManager.idl Changed   2
Open in IDE #permalink
/src/.../player/PlayerManagerImplementation.cpp Changed   2
Open in IDE #permalink
/src/.../creature/CreatureImplementation.cpp Changed  
Open in IDE #permalink

Review updated: Reload | Ignore | Collapse

You cannot reload the review while writing a comment.

Create Issue

X
Assign To Me

Log time against