This plugin enables you to select individual chunks or entire areas and stop them from unloading. You can add, remove and check chunks, and also get information on how this may impact on your server.

You use this, obviously, to keep chunks unloaded. This is useful for long redstone constructions, so the connection continues. Crops wont grow - see side note below.

Side-note:Crops wont grow in loaded chunks, this is one thing I noticed with my testing. However, redstone charges DO carry over very long distances (it will be greater than the view-distance specified in the server.properties) but you need to make sure those chunks load first. This plugin stops chunks unloading, if you are in doubt use the logging mode and get the confirmation, I cancel the event of unloading quite accurately so if things aren't working it could be Bukkit, in-game mechanics or something else interfering - if not then its me XD

Features:

Allow/Stop chunks from unloading

Check if a chunk can unload

Stats on how it may impact your server

Supports in-game adding or config based areas

Supports Permissions 3.x and SuperPerms (otherwise defaults to op)

Optionally load chunks into memory from the start

Future features:

Suggestions?

Configuration file:

Code (Text):

Debug - tells you in console each time a chunk is prevented from unloading, or any errors encountered. Also tells you the percentage of loading rectangles on startup

Rectangles - Used to stop areas unloading

Use - If rectangles in config are being used to stop chunks unloading

Quantity - Number of rectangles in use

LoadFromStart - Loads defined rectangles from the start, if they are active

Format of rectangles:

rectangle0:

world: world - world of the chunks

points: -50,-50,50,50 - coords in the form of (x1,z1 x2,xz)

Commands:
(Note: will need ForeverALoad.usage in permissions or must have op status)

Spoiler(Move your mouse to the spoiler area to reveal the content)Show SpoilerHide Spoiler

/chunk - Tells you how many chunks you will have (at a maximum) remaining from unloading, and give stats about it

/chunk add - Adds the chunk you're on to the Do-Not-Unload list

/chunk remove - Removes the chunk from the list

/chunk check - Checks whether the chunk can unload

/chunk addRect - After you have defined two blocks with a bone(ID: 352) by left and right clicking this will add the rectangle of chunks to your config file for you. You must have Use rectangles set as true in the config.

Instalation:

Spoiler(Move your mouse to the spoiler area to reveal the content)Show SpoilerHide Spoiler

Place ForeverALoad.jar into your plugins directory and start the server to generate the config.yml

Go to the folder plugins/ForeverALoad and edit the config.yml to your needs (see above for an explanation) The config generates weird, be aware of putting the co-ord information in the right places!

Restart the server for the new configuration to take effect!

Go add chunks and enjoy!

Changelog:

Spoiler(Move your mouse to the spoiler area to reveal the content)Show SpoilerHide Spoiler

Version 1.1

Updated config handling - BREAKS YOUR CONFIG - so you will need to regeneate and edit, sorry. You can probably copy, paste,edit for your rectangles though.

Added /chunk addRect to add rectangles ingame, using a bone as the selection tool.

Updated config NOTE: no longer uses ' around numbers so change '50' to just 50

Added support for SuperPerms

Updated to 1240 at last

Version 0.4

Fixed an issue where /permissions would list chunk data, my bad

Added an option to load chunks straight into memory from the start. WARNING: this may take a while depending on the amount of chunks, it will load, and if the chunk does not exist it will be generated, but this might end up without flowers etc. So just use this for areas that already exist, or use a pre-rendering plugin/program first.

Updated the calculation of ram being used, to match experimental data opposed to theoretical

Version 0.3

/chunk check now includes rectangles

/chunk [add/remove/check] will also tell you the coordinates of that chunk

Sorry for the noobish question, does this fix work on regular SMP installations with no Bukkit stuff on them as well ?
This little fix is the shiznut (meaning it is REALLY REALLY EPIC) by the way if i could get it to work with industrial / buildcraft, we were trying so many workarounds yet and nothing worked.

Which is incompatible with IC and Buildcraft on the same server... shame. I cant believe noone made a mod yet (i cant find it at least) for the regular SMP, it is so obvious that this is preventing big machines from working.

The bug is built into vanilla minecraft, which will affect everything, sadly this plugin only works on craftbukkit, but the same concept could be applied to other things if the API exists, you just need somebody to make it.

Which is incompatible with IC and Buildcraft on the same server... shame. I cant believe noone made a mod yet (i cant find it at least) for the regular SMP, it is so obvious that this is preventing big machines from working.

Read that thread carefully because you will need to install special, ported versions of BuildCraft or IC.

Piedo_bear! I use your mod with BuildCraft and it works great!

However, a way to define rectangles in game would be great.
Calculations are simple, yeah, but you can automate them through onPlayerInteract() in special circumstances, perhaps after issuing some command.

Aye, this would be a great addon - if you didn't have to add each and every chunk manually. If I want to select a chunk area with it, it doesn't want to do it right.

For example. I use MineCartMania, but it will glitch occasionaly because it unloads the chunk the minecart is in, stopping the cart. If the minecart chunks were never unloaded, it would never be an issue. But programing the area seems ...difficult. Nothing I did seemed to make any sense (selection-wise).

Aye, this would be a great addon - if you didn't have to add each and every chunk manually. If I want to select a chunk area with it, it doesn't want to do it right.

Click to expand...

You can now select an area by left/right clicking with a bone (ID:352) then using /chunk addRect. This adds the area to your config file automatically and sets it into use, providing the Use flag for rectangles is set to true

I added some chunk in the list to keep them loaded, but mushrooms won't spread on the "loaded" chunks

Click to expand...

For some reason loaded chunks don't grow crops. However redstone charge still passes through these chunks, proof that they are in fact loaded. I have no idea why it needs players though, that stumped me.

I have a 1gb world does it take 1gb to have the wole loaded or mush more?
Does it work with nolagg or ptweaks?

Click to expand...

A 1gb world would use 1gb of RAM to be fully loaded, maybe a bit more for mobs.
I haven't tested with either of those plugins but I am sure that they'd cause issues since they both mess with chunk loading. However I'm not sure what the effect would be, it would be too lengthy to try test all the scenarios, so they only way to tell would be through general usage but backup first just in case.

I may be missing something simple, but I don't get the installation of the plugin. The default config is rejected as unparsable... so I don't understand what I change to make the YAML parsable and still have the right configuration

I may be missing something simple, but I don't get the installation of the plugin. The default config is rejected as unparsable... so I don't understand what I change to make the YAML parsable and still have the right configuration

Click to expand...

What is your CB version, and your plugin version?
You'll need CB1317 and version 1.0. If you had a version prior to 1.0 you will need to re-generate a brand new config file (Delete the entire directory if you want a fresh install - otherwise just the config file) The default generated file is:

Code (Text):

Debug: 'false'

Rectangles:

Use: 'false'

Quantity: '1'

rectangle0:

world: world

points: -50,-50,50,50

Also, make sure there are no tabs used, spaces only. If the problem persists post me the errors so I can try see whats going wrong.

Can you tell me a little more about the conditions which sets this error off? Its most likely related to permissions, so what permissions system are you using, did it happen when somebody had or didn't have the permissions for the plugin? Also, for good measure, whats the CB build?

Can you tell me a little more about the conditions which sets this error off? Its most likely related to permissions, so what permissions system are you using, did it happen when somebody had or didn't have the permissions for the plugin? Also, for good measure, whats the CB build?

Click to expand...

I'm using Pex that works with 99% of all plugins as it seems. I was using 1337 though I don't think anything in that should have broken since. The plugin does not seem to work at all also when I tried to edit the config and add the coords that way.

I haven't been able to replicate the error. I think something might be interfering, perhaps I should make the tool configurable. The stack traces firstly implied it was something to do with permissions, then the second one happened when you tried to use fists to define corners, since the item was null.

Try downloading 1.01 and see if its better, it's built against 1337, fixes a null pointer, and explicitly supports PermissionsEx. If it still persists, send me the stack trace and I'll see if I can figure it.