Opticraft Community

Discussion forum => Legacy => Archives => Suggestions => Topic started by: TarynMai on July 31, 2012, 10:02:17 pm

Title: AFK Kicking
Post by: TarynMai on July 31, 2012, 10:02:17 pm
Ivy2112 posted a helpop that it was insanely laggy where he was, and when I teleported to him, I was running at 0 fps until I crashed (did this 3-4 times). We realized that someone had afk'd at a spawner for over 2 hours. I'm not even fully sure now many mobs were there, but it was at least 1000. I think we need an afk automatic kicker like we have on classic. It would be really helpful and reduce lag.
Title: Re: AFK Kicking
Post by: Chipaton on July 31, 2012, 10:07:10 pm
Ivy beat you to posting this! Also, I agree with this.
Title: Re: AFK Kicking
Post by: TarynMai on July 31, 2012, 10:08:18 pm
So I see. lol
Title: Re: AFK Kicking
Post by: optical on July 31, 2012, 10:24:52 pm
What we really need is something which prevents this from happening, as it makes the entire server lag.
Title: Re: AFK Kicking
Post by: TarynMai on July 31, 2012, 10:27:17 pm
What we really need is something which prevents this from happening, as it makes the entire server lag.
Maybe make it so that only a certain amount of mobs can spawn/be in one chunk?
Title: Re: AFK Kicking
Post by: arsenic_shark on July 31, 2012, 10:44:03 pm
Taken from the minecraft wiki  (http://www.minecraftwiki.net/wiki/Monster_Spawner#Detailed_spawning_algorithm)

(click to show/hide)

If it was made possible that Mobs can only spawn on less amount of ticks it may reduce the spawn rate, but Im not sure if that is possible. Even then if a player was afk then they still would spawn lots of Mobs.

If there was a cap on the total number of each type of Mob that could work but then if someone is afking at a blaze spawner and there are 200 there another play would complain about theirs not working.

You could also make it so each mob de-spawns after being alive for 5 minutes. This means someone afking at the spawner for 1 hour would only get 5 minutes of spawned Mobs. Apart from this suggestion I think the only other workable solution would be Alicia's.
Title: Re: AFK Kicking
Post by: D00MKNlGHT on July 31, 2012, 10:52:28 pm
Simplest solution, make the mobs below despawns faster, so the person will not afk long and hence lesser mobs also lesser lag =D

This is as the problem is the lag caused by alarge group of mobs and NOT because a guy isn't doing anything, so mob despawning should solve the problem.
Title: Re: AFK Kicking
Post by: DeeKay on July 31, 2012, 11:43:54 pm
As well as what everyone else has said, maybe disable item pickup for afk players? Might not take effect on most mob farms, but it could possibly reduce the amount of people afking on the server for auto drops.
Title: Re: AFK Kicking
Post by: tiggy26668 on July 31, 2012, 11:45:32 pm
As well as what everyone else has said, maybe disable item pickup for afk players? Might not take effect on most mob farms, but it could possibly reduce the amount of people afking on the server for auto drops.

the only problem with that would be then the items are sitting there lagging away until they despawn.
Title: Re: AFK Kicking
Post by: Chief149 on July 31, 2012, 11:48:46 pm
I've had a few times when Im afk in my cactus farm, and the inventory gets full, and then a ton of cactus is at my players feet not being picked up. However even after letting it sit like that for hours (meaning 3 inventories full of cacti would be at my feet in theory) I only ended up picking up 2 to 3 stacks of cacti after selling my inventory in market (I used my second account to prevent the chunks from unloading as well). It appears that once more than 2 or 3 stacks of an item are dropped then they despawn.
Title: Re: AFK Kicking
Post by: tiggy26668 on July 31, 2012, 11:51:04 pm
I've had a few times when Im afk in my cactus farm, and the inventory gets full, and then a ton of cactus is at my players feet not being picked up. However even after letting it sit like that for hours (meaning 3 inventories full of cacti would be at my feet in theory) I only ended up picking up 2 to 3 stacks of cacti after selling my inventory in market (I used my second account to prevent the chunks from unloading as well). It appears that once more than 2 or 3 stacks of an item are dropped then they despawn.

that sounds more like the natural despawning + the grouping the server does, course dunno if the despawn count starts at the first or last item grouped, regardless id assume the stacks would despawn based on x amount of time from one of those
Title: Re: AFK Kicking
Post by: cschurz on August 01, 2012, 12:32:21 am
Quote
You could also make it so each mob de-spawns after being alive for 5 minutes. This means someone afking at the spawner for 1 hour would only get 5 minutes of spawned Mobs.

that's honestly a pretty good idea.
Title: Re: AFK Kicking
Post by: optical on August 01, 2012, 12:40:51 am
Indeed, some good idea's here that we were unable to think of. Another solution I thought of may be to limit the number of mobs spawned per spawner at a time to 10 or so. Will take a look at implementing either solution tonight or tomorrow - depending on how busy I am.
Title: Re: AFK Kicking
Post by: D00MKNlGHT on August 01, 2012, 12:41:51 am
Quote
You could also make it so each mob de-spawns after being alive for 5 minutes. This means someone afking at the spawner for 1 hour would only get 5 minutes of spawned Mobs.

that's honestly a pretty good idea.
In my opinion the mobs should despawn after half an hour regardless of ur distance from it(spawner mobs)
Title: Re: AFK Kicking
Post by: xxsssx on August 02, 2012, 09:15:14 am
Some people have 3 or four spawners at same place. So 30 minutes will spawn a lot of mobs.

Mobs should despawn after 10 minutes or max 15 minutes.
Title: Re: AFK Kicking
Post by: bhoughton on August 02, 2012, 10:31:16 am
the only problem with that would be then the items are sitting there lagging away until they despawn.

Tiggy you afked at a iron golem spawned with over 200 villagers sitting on 1 block ;) now, that is a lot of lag.
 I'd be fine with any solution that removes lag from the server, not that there is any that I can notice.
Title: Re: AFK Kicking
Post by: D00MKNlGHT on August 02, 2012, 11:19:21 am
It's a minority who have 4 spawners together ..

And tiggy u should demolish urs it causes a lot lag.
Title: Re: AFK Kicking
Post by: optical on August 02, 2012, 11:45:08 am
We will be making changes to rules & code regarding hording mobs up like that. Likely to implement code which disallows mobs spawning in areas like that, and despawns mobs which have been idle for a long time from spawners etc
Title: Re: AFK Kicking
Post by: TarynMai on August 02, 2012, 02:53:13 pm
We will be making changes to rules & code regarding hording mobs up like that. Likely to implement code which disallows mobs spawning in areas like that, and despawns mobs which have been idle for a long time from spawners etc
That works, thanks!
Title: Re: AFK Kicking
Post by: ViperZeroOne on August 02, 2012, 06:08:50 pm
Indeed, some good idea's here that we were unable to think of. Another solution I thought of may be to limit the number of mobs spawned per spawner at a time to 10 or so. Will take a look at implementing either solution tonight or tomorrow - depending on how busy I am.

Aren't mob spawners already set to do that? 

I actually really like the idea of having mobs despawn after 5 minutes.  You might run into situations where you come upon a mob at 4:50, start attacking it, and it despawns before you kill it.  But that'll be a rare event, and a VERY small price to pay to fix such a large problem.
Title: Re: AFK Kicking
Post by: optical on August 03, 2012, 06:54:27 am
Mob throttling is now in place.
Title: Re: AFK Kicking
Post by: bubblekiller on August 03, 2012, 08:19:06 am
What is it set at, my blaze spawner only spawns 3-4 now its really anoying can it be bumped up a little?
Title: Re: AFK Kicking
Post by: TarynMai on August 03, 2012, 08:20:59 am
No.
Title: Re: AFK Kicking
Post by: optical on August 03, 2012, 08:21:44 am
Its set at 4 mobs of the same type in 4 blocks (2x2) area. Also spawner mobs only stick around for 3 minutes before despawning
Title: Re: AFK Kicking
Post by: ivy2112 on August 03, 2012, 08:45:50 am
Is it changed if u stand 128 blox from a mob that is despawned or is that changed to 64 for example ?
Title: Re: AFK Kicking
Post by: ViperZeroOne on August 03, 2012, 04:07:27 pm
I totally agree with this change, good effort in lowering lag Opti