SEServerExtender / EssentialsPlugin

Dedicated Essentials Plugin
GNU Lesser General Public License v3.0
18 stars 18 forks source link

Grid scan by entity age and/or distance to players #19

Open zrisher opened 9 years ago

zrisher commented 9 years ago

I'm currently seeing an issue with cargo ships stopping and becoming persistent, piling up in my entity list. I could easily scan for these with "ownedby:neutral npc", but I run the risk of removing ships a player is in the process of dissembling.

To counter that, I'd like to be able to ensure the grid isn't within X meters of a player or player-owned grid, and it's over a day old.

The first seems a little complex but do-able with your current code. The latter seems like it would require a tracking file like Essential-PlayerLogins.xml to keep track of entity age.

Could these be planned features?

dodexahedron commented 9 years ago

I've had some ideas that involve entity tracking over time, but there are multiple issues with it. The distance idea isn't necessarily hard, but the implementation of it will have to make a tradeoff between accuracy and performance impact.

-----Original Message----- From: "zrisher" notifications@github.com Sent: ‎4/‎15/‎2015 7:05 PM To: "SEServerExtender/EssentialsPlugin" EssentialsPlugin@noreply.github.com Subject: [EssentialsPlugin] Grid scan by entity age and/or distance to players(#19)

I'm currently seeing an issue with cargo ships stopping and becoming persistent, piling up in my entity list. I could easily scan for these with "ownedby:neutral npc", but I run the risk of removing ships a player is in the process of dissembling. To counter that, I'd like to be able to ensure the grid isn't within X meters of a player or player-owned grid, and it's over a day old. The first seems a little complex but do-able with your current code. The latter seems like it would require a tracking file like Essential-PlayerLogins.xml to keep track of entity age. Could these be planned features? — Reply to this email directly or view it on GitHub.

zrisher commented 9 years ago

I think the proximity tracking would be really useful. It's a great way to allow deleting tons of spawned but unspotted exploration ships without removing things people are in the process of breaking down.

As for age, I think the /admin delete inactive X takes care of that pretty well actually. But is inactive available as a filter for CleanupTriggerItem ScanCommands? It doesn't seem to work with /admin scan grids, only as admin scan inactive.

dodexahedron commented 9 years ago

There's already grid concealment, which takes care of anything that would cause game slowdowns. Do you use that?

zrisher commented 9 years ago

I did, but grid concealment seems to have some major problems of its own. It would randomly hide stations and not show them when people came around, but they're still sitting in my world file. After that I disabled until I get to the root cause of this issue https://github.com/SEServerExtender/SEServerExtender/issues/17.