[Mod] Mesecons (= redstone) [GitHub] [minetest-mod-mesecons]

User avatar
RabbiBob
Member
Posts: 335
Joined: Sat Jan 28, 2012 22:40
Location: /teleport 54,47,28
Contact:

by RabbiBob » Post

Jeija wrote:Sorry, RabbiBob for not telling you. The problem is just that there are many mods using mesecons and I also don't know all of them, that's why I didn't post in all the topics.
But true, I could have told the ones I know and I will do that in case a second update is required (there are no plans however).
That wasn't directed to you, I actually was agreeing with your post as quoted. If I have a dependency on your mod (which I do), it's not your job to hunt me down. Life keeps me fairly busy, but I get emails from my mod thread if anyone has a comment and I check those out, so the mention was for people that use any mod that breaks - it helps the mod author if they report back to the mod thread itself, that's all.

Took me a bit to figure out what had changed, but I think I have it now :)
Last edited by RabbiBob on Mon Jan 28, 2013 10:56, edited 1 time in total.

User avatar
monty_oso
Member
Posts: 44
Joined: Wed Jun 20, 2012 05:44

by monty_oso » Post

Last edited by monty_oso on Sat Feb 09, 2013 18:08, edited 1 time in total.
My English sucks very hard (TM).
I'm very interesting in mesecons stuff.

Nore
Developer
Posts: 501
Joined: Wed Nov 28, 2012 11:35
GitHub: Ekdohibs

by Nore » Post

Suggestion: use a queue instead of a stack to process signals, so that signal that have more gates in their way are more delayed than others. Without that, it is very difficult to build shift registers or things like that.

User avatar
Jeija
Member
Posts: 686
Joined: Fri Dec 23, 2011 21:46
Location: Nürtingen, Germany

by Jeija » Post

Using a queue conflicts with pistons, I made that model theoretically and also doesn't work practically.

So, why not only use a queue for gates / the microcontroller?
There is no proper way to describe e.g. a microcontroller's behaviour with implemented queue (something complicated with multiple ports receiving a signal and therefore multiple queue entries was the issue if I remember correctly).
If you succeed exactly describing a microcontroller's behaviour when using a queue, there must also be a way to code that...
Redstone for minetest: Mesecons (mesecons.net)

Nore
Developer
Posts: 501
Joined: Wed Nov 28, 2012 11:35
GitHub: Ekdohibs

by Nore » Post

The idea is that you update all changes for a single node at once (that is, the microcontroller would only get one signal).

Nore
Developer
Posts: 501
Joined: Wed Nov 28, 2012 11:35
GitHub: Ekdohibs

by Nore » Post

If you don't do it, I have another useful idea: a synchronizer circuit. It would fire at every server step, save state and after all synchonizers have saved state, it would update its state.

Temperest
Member
Posts: 651
Joined: Tue Nov 15, 2011 23:13
GitHub: Uberi

by Temperest » Post

Nore: you can make synchronizers using multiple edge-triggered D-FFs connected to the same clock.

Here is a basic circuit diagram:

Image
WorldEdit 1.0 released

The Mesecons Laboratory - the art of Mesecons circuitry
Latest article: Mesecons Basics.

socramazibi
Member
Posts: 81
Joined: Mon Jan 28, 2013 12:29
Location: España

by socramazibi » Post

Bug piston sticks , I can not create it .

Image

thanks
Last edited by socramazibi on Fri Feb 08, 2013 23:41, edited 1 time in total.
Forgive my English, but it is the translator of google.My Spanish.
My mod:
Pictures wool 1.0 3x5 , Charcoal+Textures , Map

Temperest
Member
Posts: 651
Joined: Tue Nov 15, 2011 23:13
GitHub: Uberi

by Temperest » Post

Thanks for reporting that!

I fixed it in commit 536c77330b7628cfdf17223cffa8d78b516f239d. If you download the mod again, you will have the fix.
WorldEdit 1.0 released

The Mesecons Laboratory - the art of Mesecons circuitry
Latest article: Mesecons Basics.

Nore
Developer
Posts: 501
Joined: Wed Nov 28, 2012 11:35
GitHub: Ekdohibs

by Nore » Post

Yes, but how do you create edge-triggered D flip-flops without synchronizers?

Nore
Developer
Posts: 501
Joined: Wed Nov 28, 2012 11:35
GitHub: Ekdohibs

by Nore » Post

What you could do instead of a queue is instant delayer (with minetest.after(0,...)), so that it is updated right after everything else has finished.

Temperest
Member
Posts: 651
Joined: Tue Nov 15, 2011 23:13
GitHub: Uberi

by Temperest » Post

Edge triggered D FFs can be made using a microcontroller/luacontroller. Alternatively, by using a faster internal clock on an MS FF plus XORing the two internal values (if you don't want to use microcontrollers).
WorldEdit 1.0 released

The Mesecons Laboratory - the art of Mesecons circuitry
Latest article: Mesecons Basics.

Nore
Developer
Posts: 501
Joined: Wed Nov 28, 2012 11:35
GitHub: Ekdohibs

by Nore » Post

Could you explain the second more precisely please? I can't figure it out.

Temperest
Member
Posts: 651
Joined: Tue Nov 15, 2011 23:13
GitHub: Uberi

by Temperest » Post

Sure thing, here is a logic diagram of an edge triggered D-FF:

Image

Each of the D-FFs in the diagram are level triggered, but the MS-FF feeds into the enable pin of the D-FF only upon an edge. Therefore the net result is that the circuit acts like an edge triggered D-FF.

Let me also mention that it triggers in both rising AND falling edges.

INTOSC should be about twice or more the frequency of the synchronizer clock to be effective.

This circuit could probably be made smaller, I just made it up as I went along.

In any case I strongly recommend the luacontroller for this. Recent git versions get their output states queued, in fact.
Last edited by Temperest on Mon Feb 11, 2013 02:16, edited 1 time in total.
WorldEdit 1.0 released

The Mesecons Laboratory - the art of Mesecons circuitry
Latest article: Mesecons Basics.

User avatar
Jeija
Member
Posts: 686
Joined: Fri Dec 23, 2011 21:46
Location: Nürtingen, Germany

by Jeija » Post

Anyway keep in mind that the queue is experimental - needs a lot of testing, and I cannot promise it will stay. I hope I can release at least some documentation about the luac today.
Redstone for minetest: Mesecons (mesecons.net)

User avatar
Jeija
Member
Posts: 686
Joined: Fri Dec 23, 2011 21:46
Location: Nürtingen, Germany

by Jeija » Post

I just wanted to inform you that mesecons.net/luacontroller is now online.
There you can find lots of information about the luacontroller and programming it. We still need some testing, but the luacontroller will hopefully get merged quite soon.

I am looking for screenshots or little videos for promotion of mesecons, just in case someone has something they want to share.
Last edited by Jeija on Tue Feb 12, 2013 12:59, edited 1 time in total.
Redstone for minetest: Mesecons (mesecons.net)

BenAmaranth
Member
Posts: 60
Joined: Thu Oct 04, 2012 15:14

by BenAmaranth » Post

Interesting dual piston bug, I was trying to push up a steel door on two up pistons and when I turned the pistons off, the door stayed in place and became completely undiggable, leaving the bottom half of a door that doesnt even open. Im guessing it has to do with the node ownership properties of a steel door. (I was reading about the dual piston sand bug earlier in the thread)

Also, now how do I get rid of this damn half door?

EDIT:

I tried putting another door under it and it pushed the piston down instead of pushing both up. o.o

I dont know what this means, but I find it fascinating.
Last edited by BenAmaranth on Wed Feb 13, 2013 19:08, edited 1 time in total.
Air (you hacker you!)

rarkenin
Member
Posts: 668
Joined: Tue Nov 20, 2012 20:48

by rarkenin » Post

Is the bug where two stacked pistons powered from the same circuit will crash Minetest, and won't allow the server to safel restart, still a bug?
Admin pro tempore on 0gb.us:30000. Ask me if you have a problem, or just want help.
This is a signature virus. Add me to your signature so that I can multiply.
Now working on my own clone, Mosstest.
I guess I'm back for some time.

Temperest
Member
Posts: 651
Joined: Tue Nov 15, 2011 23:13
GitHub: Uberi

by Temperest » Post

It's been fixed for a while now. If you come across any other piston bugs, though, do let us know.
WorldEdit 1.0 released

The Mesecons Laboratory - the art of Mesecons circuitry
Latest article: Mesecons Basics.

Jordach
Member
Posts: 4534
Joined: Mon Oct 03, 2011 17:58
GitHub: Jordach
IRC: Jordach
In-game: Jordach
Location: Blender Scene

by Jordach » Post

Hehe, I've been working on a 3x 7 segment display two byte adder.

http://imgur.com/a/9Sl4O Concurrently its WIP so dont expect much.
Last edited by Jordach on Fri Feb 15, 2013 19:36, edited 1 time in total.

User avatar
jojoa1997
Member
Posts: 2890
Joined: Thu Dec 13, 2012 05:11
Location: Earth

by jojoa1997 » Post

could you please make the recipe for pressure plates so it doesnt interfere with other mods.
XXX
XXX
CCX
Coding;
1X coding
3X debugging
12X tweaking to be just right

User avatar
Jeija
Member
Posts: 686
Joined: Fri Dec 23, 2011 21:46
Location: Nürtingen, Germany

by Jeija » Post

What mod do the pressure plate recipes conflict with?
Your suggestion somewhat looks like the current recipes...
Redstone for minetest: Mesecons (mesecons.net)

User avatar
jojoa1997
Member
Posts: 2890
Joined: Thu Dec 13, 2012 05:11
Location: Earth

by jojoa1997 » Post

It conflicts with stairs plus. I am saying make that recipe override the one spot of stairplus's recipe
Coding;
1X coding
3X debugging
12X tweaking to be just right

User avatar
Jeija
Member
Posts: 686
Joined: Fri Dec 23, 2011 21:46
Location: Nürtingen, Germany

by Jeija » Post

Well, it's the same recipe like in minecraft, so I'm not going to change it.
When comparing forum topic length (44 pages mesecons vs 3 pages stairsplus) you also need to notice that likely more people use mesecons than stairsplus.
Why wouldn't stairsplus change its recipe?
Redstone for minetest: Mesecons (mesecons.net)

User avatar
meldrian
Member
Posts: 46
Joined: Sat Jan 12, 2013 14:02
GitHub: meldrian
IRC: meldrian
In-game: meldrian
Location: Germany
Contact:

by meldrian » Post

I just want to say, great mod. I'll build some indoor light-system in my cave so i can switch the light on and off. mesecons enhances minetest a lot and i just want to say: Thank you :)

Post Reply

Who is online

Users browsing this forum: No registered users and 77 guests