Page 1 of 1

Mesecons simulator

PostPosted: Thu Dec 27, 2012 16:24
by Nore
Mesecons has now a simulator !

Here it is : https://github.com/Novatux/Mesecons_simulator

Commands : z and s to change the viewing level, r to change the plane.

The first button adds cells in the directions you want (if you find the grid too small)
The second only makes some stats about what materials you are using (if you want to build it without creative mode)
The third one allows you to toggle switches (and later to program microcontrollers)
The fourth is to rotate gates and insulated mesecons (anything that can be rotated).
The remaining buttons add or delete mesecons objects.
Use Ctrl-o and Ctrl-s to open/save a file.

Here is a screenshot (taken by Jeija) :
Image


It requires Python, with Tkinter and Pickle.

PostPosted: Thu Dec 27, 2012 16:48
by jojoa1997
I love it + 100
Can you have it simulate doors and pistons and also can you add a block that represents a normal one(ex. dirt, stone, mese)

PostPosted: Thu Dec 27, 2012 21:15
by kaeza
+32767 internetz to you!

PostPosted: Thu Dec 27, 2012 21:22
by PilzAdam
Nice!

PostPosted: Fri Dec 28, 2012 02:12
by Josh
What does it do, is it for planning out mesecon circuits?

PostPosted: Fri Dec 28, 2012 08:20
by Nore
For planning and simulating (too big mesecons circuits are problematic with minetest)

PostPosted: Sat Dec 29, 2012 02:25
by Josh
Nore wrote:For planning and simulating (too big mesecons circuits are problematic with minetest)

Intresting!

PostPosted: Sat Dec 29, 2012 18:01
by Nore
New version:

Save/load added (use Ctrl-o and Ctrl-s)
Support for Python 3
Pistons and a 'normal' block (currently stone)

Now requires pickle to work.

PostPosted: Sat Dec 29, 2012 19:42
by rarkenin
Can we also have a falling block? Some piston things need samd and gravel.

PostPosted: Sun Dec 30, 2012 11:20
by Nore
New version:

Added sand and delayers.
Fixed bug with save and load with up/down pistons.

PostPosted: Sun Dec 30, 2012 12:16
by Jeija
Awesome, great new features!

Time for an updated screennshot!
Image

You propably know these anyway, but let me report some bugs.
Image
top: push a lightstone into a wire and it turns on, pull it out again, and it stays the same
bottom left: A pusher can destroy another pusher
bottom right: A piston is activated by a switch at the side of the pusher. This is not possible in real mesecons. The piston stays extended even after you turn the switch off again.

PostPosted: Sun Dec 30, 2012 16:46
by Nore
These bugs should now be fixed...

I only removed a rule for the piston to fix the third bug, and the other are (hopefully) fixed too.
Feel free to report other bugs, I will be happy to fix them.

PostPosted: Mon Dec 31, 2012 21:00
by Temperest
I added a README to help make it easier for new users to get started: https://github.com/Novatux/Mesecons_simulator/pull/2

PostPosted: Mon Dec 31, 2012 21:02
by Temperest
Jeija wrote:bottom right: A piston is activated by a switch at the side of the pusher. This is not possible in real mesecons. The piston stays extended even after you turn the switch off again.


Isn't this a bug in Mesecons itself? I used the node timer thing for that originally but couldn't seem to get the problem to go away...

PostPosted: Tue Jan 01, 2013 08:50
by Jeija
In the branch that was merged yesterday this should be fixed by excluding the rule for the side of the pusher.