Bizzare (2014.01.01)
#1
Hi there. First, why 2014.01.01? That's about the revision I'm using ATM, so it should be compatible with that. Mostly should be compatible with newer versions as well, it's just not tested.

What it is and what it does:
Bizzare is a plugin to make your players freak out, your server cry and players' PCs bleed.
It is a "Game of Life" in Minecraft implementation using MCS. Note that it's very-very draft, it won't save its state between restarts (so blocks will stop being active), it's not optimized (at all, first place to hit would be block reading from cWorld, it should be done clever via reading whole chunks), but it's generally amusing.

How to install:
  1. Put .zip inside your "Plugins" folder;
  2. "Extract here";
  3. Go to your settings.ini OR use web control panel, and add "Bizzare";
  4. Place red wool;
  5. ...
  6. PROFIT!!!

You can set up game rules in "bizzare_settings.ini", such as minimum and maximum amount of neighbours for cell to live, to appear and how often updates will happen (if you set it to 1 it will most likely break, but 2 and higher should be fine).
It could be used to test your server's perfomance (just kidding, test settings would be incredibly hard to reproduce)

Now, about "active/inactive" blocks. Basically, Bizzare doesn't scan the world for his special blocks (which would be rather slow and painful, imagine stone being code block), and it keeps in memory a map, containing active blocks it will process. When you place a block, it will be added to the map.
Block processing is essentially going though all those blocks and their neighbours. When block processor encounters air - it checks if new block should be spawned here; when it encounters code block which is not on the processor's list - it adds it to list. This block won't be processed this turn, but it will be processed further on, "igniting" other inactive blocks if there are any.

Here's the result of some so-called "red wool desease" spread:
   
   

And here you can see neutralizing unit's field capsule, used for observations:
   


Attached Files
.zip   Bizzare.zip (Size: 2.26 KB / Downloads: 312)
Reply
Thanks given by:
#2
Sounds like funBig Grin
How about making a 2D-only version, and game rules which can specify exactly the number of neighbors to for a cell to spawn / survive / die.
I like the rules "0, 2, 4, 6, 8 die, 1, 3, 5, 7 spawn", they make really nice patterns.
Reply
Thanks given by:




Users browsing this thread: 1 Guest(s)