MyEssentials / MyTown2

Version 2 of MyTown - A Minecraft Server Protection Mod
The Unlicense
35 stars 22 forks source link

Lag killer ! experimental theory #8

Open HaoSs07 opened 10 years ago

HaoSs07 commented 10 years ago

Modpacks have a lot of things to do in them, but you will eventually get to the end. and stop playing. As a server admin, you will end up searching for long forgotten bases,when players stop entering the server for days/ weeks. to erase them,because a player did a idiotic hopper system that eats up server resources. ( if you don't want to wipe map. i usually don't! )

SO. World edit has a regen command , how about adding the same thing to mytown 2. When players don't enter, and the town get's deleted. add a option in config for mytown to also run a regen command on the chunks :) deleting everything and reseting the chunk using the world seed back to original state. Keeping the server tile entity free. This should help big time on a long run., 4-6 months on same map.

nanakisan commented 10 years ago

Its a clever idea but entirely unnecessary in my opinion. All FTB servers and frankly every custom MP server should have it. The it i am referring to is Opis. As a server admin you can use opis to locate chunk loaders. At the very most just destroy the chunk loader and leave. If a player leaves the server there is no need to destroy their base. Someone else may eventually come up and take it over. Even improve on it. Also chunk resetting as far as i know is a very...delicate process. Which can result in chunk corruption or worse.

HaoSs07 commented 10 years ago

that's why i asked " add a option in config " you can use opis, remove chunk loaders. all that " i'm an admin with time" things. or just turn the option on.

This option is thought to keep a world on as long as possible,clean . I'm a minecraft server admin for 3 years now, Getting people to work for stuff is my specialty. You may want to give people the opportunity to discover old bases,loot them, and things like that. I like a " do it yourself " server. :) Anyway, thank you for the input. Much appreciated.

jgoett154 commented 10 years ago

I can look into adding something like Towny's chunk regen when a town has been deleted/falls to ruins. Possibly even have a way to delay the regen to give players currently on the server the chance to find and take whatever the town had (raiding?). Might be good to get players to explore and actually work together (or fight :p) All would be configurable of course. But, as nanakisan said, sometimes mods (and minecraft in general) don't respond well when doing chunk regens :p

HaoSs07 commented 10 years ago

that would be awesome. I used worldedit to regen old towns in the past. i't worked with no problems. will just have to experiment i guess :) and find a way to regen that does not brake things.

jgoett154 commented 10 years ago

Ahh ok. I will have to look at how WorldEdit does the regens and see if I can somewhat recreate that in Forge. I think the real issues that might happen are to make sure it regens at the right time and not break mods expecting something to be there, as well as make sure the chunk gets regenerated correctly and not as the wrong biome or anything

nanakisan commented 10 years ago

If you would like Legobear. I believe the code for Calclavias Rejuvenation explosive is on his git. His regen explosive from ICBM did regeneration very well. I once spammed like 50 rockets in creative mode with the thing. It didn't lag horribly and did quite well.

Also i freaking approve of your raiding option idea!!!

HaoSs07 commented 10 years ago

youp. is a good option to have. Also some configurable broadcast messages should be nice to. Like, run every x hours " town blabla is open for raiding. region will be regenerating in x days "

You can probably delay the regen by not deleting the town , but setting the out perm to build when the town remains without players.This should also stop members claiming the town . and give a fighting chance for all :D.

Make the town remove checker check mysql ,add 2 new tables : countdown: where you add the date , expired : true / false ( if the remover already processed this town )

I have a donation plugin that works on this principle,using a checker, mysql. and date, letting me sell permissions based on time . And never failed :)

jgoett154 commented 10 years ago

Nanakisan: I looked through his github, but I didn't see it. HaoSs07: Configurable broadcast messages would be a good idea as well :)

nanakisan commented 10 years ago

SK89q bless his heart. He just ported worldedit to forge. That means if you need regen functionality his code is available here https://github.com/sk89q/worldedit

HaoSs07 commented 10 years ago

i think the regen part is not ported

CoryManson commented 10 years ago

I found this a while ago, It appears to be being maintained:

http://teamcity.sk89q.com/viewType.html?buildTypeId=bt17