[Mod] Improved Mesecons logic gates [mesegates]

Post Reply
asie
Member
Posts: 12
Joined: Mon May 05, 2014 18:35
GitHub: asiekierka
IRC: asie
In-game: asie

[Mod] Improved Mesecons logic gates [mesegates]

by asie » Post

Mesegates is a mod that adds logic gates to Mesecons which are superior to the built-in ones in three major ways:
- they have better textures,
- the input sides are all toggleable and configurable with a left-click,
- they have an API to easily add gate types! (see mesegates_default)

Image

The code is licensed under the zlib license and is included in the repository. The textures are licensed under CC0 where applicable (some are based off other textures, in which case they retain their previous license).

Dependencies: default, mesecons.

Download Mesegates | GitHub
Spoiler
Mesegates: Logic gates! All of them have toggleable sides (via left-click) to let you place the gate exactly how you want it!
  • AND, OR, XOR, NOT, NAND, NOR, XOR
  • Toggle latch
  • Diode
  • RS, D, T and JK flip-flops (the RS flip-flop doubles as a latch)
Last edited by asie on Wed May 07, 2014 12:31, edited 4 times in total.

User avatar
minermoder27
Member
Posts: 138
Joined: Wed Nov 20, 2013 23:24
GitHub: ZNixian
In-game: minermoder27

Re: [Mod] Mesegates - logic gates for Mesecons [mesegates]

by minermoder27 » Post

Very nice!

As for crafting, what about this: a normal gate surrounded by mesecons

User avatar
Evergreen
Member
Posts: 2135
Joined: Sun Jan 06, 2013 01:22
GitHub: EvergreenTheTree
IRC: Evergreen
In-game: Evergreen
Location: Unlikely to come back to minetest or update my mods, see my contact info if you need anything.
Contact:

Re: [Mod] Mesegates - logic gates for Mesecons [mesegates]

by Evergreen » Post

stormchaser3000 wrote:um one thing there have been logic gates in mesecons for around a year.
You really aren't grasping the purpose of this mod are you? Did you even read the description?

asie
Member
Posts: 12
Joined: Mon May 05, 2014 18:35
GitHub: asiekierka
IRC: asie
In-game: asie

Re: [Mod] Mesegates - logic gates for Mesecons [mesegates]

by asie » Post

Evergreen wrote:
stormchaser3000 wrote:um one thing there have been logic gates in mesecons for around a year.
You really aren't grasping the purpose of this mod are you? Did you even read the description?
Don't be so mad. He just didn't notice.

The main reason Mesegates was made is to create logic gates which are better than the ones in Mesecons.

User avatar
Hybrid Dog
Member
Posts: 2860
Joined: Thu Nov 01, 2012 12:46
GitHub: HybridDog
Location: Europe, in the EU where the GDPR applies!

Re: [Mod] Mesecons lamps and logic gates [mesegates, meselam

by Hybrid Dog » Post

I think, if these changes don't create big lag and also work with the current stable version of minetest, Jeija may add it to the mesecons mod.

‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪

asie
Member
Posts: 12
Joined: Mon May 05, 2014 18:35
GitHub: asiekierka
IRC: asie
In-game: asie

Re: [Mod] Mesecons lamps and logic gates [mesegates, meselam

by asie » Post

Hybrid Dog wrote:I think, if these changes don't create big lag and also work with the current stable version of minetest, Jeija may add it to the mesecons mod.
He's free to put them in as long as he follows the license's terms. Also, they don't seem to add big lag at all, but they lack the "stop working on overheat" feature of mesecons_gates - I didn't really like it.

User avatar
minermoder27
Member
Posts: 138
Joined: Wed Nov 20, 2013 23:24
GitHub: ZNixian
In-game: minermoder27

Re: [Mod] Mesecons lamps and logic gates [mesegates, meselam

by minermoder27 » Post

asie wrote:
Hybrid Dog wrote:I think, if these changes don't create big lag and also work with the current stable version of minetest, Jeija may add it to the mesecons mod.
He's free to put them in as long as he follows the license's terms. Also, they don't seem to add big lag at all, but they lack the "stop working on overheat" feature of mesecons_gates - I didn't really like it.
The overheat turn-off is only really necessary in multiplayer, and probably not in singleplayer.
Why not add it back in, but have a config option to turn it on.

asie
Member
Posts: 12
Joined: Mon May 05, 2014 18:35
GitHub: asiekierka
IRC: asie
In-game: asie

Re: [Mod] Mesecons lamps and logic gates [mesegates, meselam

by asie » Post

@minermoder27: The next versions will bring further configurability.

Also, update!~ Added RS, T, D and JK flipflops, as well as a lot of useful API constructs. Next up: timers and repeaters, as well as some config options.

Edit: Image

User avatar
Inocudom
Member
Posts: 3136
Joined: Sat Sep 29, 2012 01:14
IRC: Inocudom
In-game: Inocudom

Re: [Mod] Mesecons lamps and logic gates [mesegates, meselam

by Inocudom » Post

Asie, you are breathing new life into an old mod that seemed like it was no longer being developed. I hope that servers will use your creations very soon.

gsmanners
Member
Posts: 159
Joined: Fri Jan 10, 2014 21:37

Re: [Mod] Mesecons lamps and logic gates [mesegates, meselam

by gsmanners » Post

Actually, what would be really super is if we could microblock in the mesecons. I would also love to be able to run wiring through a one-block thick wall.

User avatar
Hybrid Dog
Member
Posts: 2860
Joined: Thu Nov 01, 2012 12:46
GitHub: HybridDog
Location: Europe, in the EU where the GDPR applies!

Re: [Mod] Mesecons lamps and logic gates [mesegates, meselam

by Hybrid Dog » Post

Jeija commented 21 days ago at github

This bug imo requires to make a decision concerning the whole overheat protection idea. As it seems to me, overheat protection is not really required anymore when using the ActionQueue. However, mesecons still maintains some compatibility for not using the ActionQueue and instead executing all actions right away (not wait until the next serverstep). That support however is hardly tested as it is disabled by default and rarely used.
Another problem might be, that having some kind of overheat support on servers at least will prevent the load to get too much, so idk if dropping it completely is good. Any experiences from the server owners on it (as gates don't overheat now - has that become a problem yet?).

Solutions might be:
1. Drop the non-ActionQueue system and overheat protection completely
2. Drop the non-ActionQueue system, but rework and maintain overheat support
3. Maintain a status quo that also supports direct execution (no ActionQueue), but fix the issue in another way

Fixes for this bug in 1 and 2 might be moving the cooldown to the ActionQueue and also rework the system so that gates, microcontrollers and luacontrollers all use the same functions.

I would go for 2; However, if noone had issues with higher load on servers due to no overheat protection I'd choose 1.

What option would you prefer?





looks like currently the discussion about mesecons happens somewhere there
https://github.com/Jeija/minetest-mod-mesecons/issues

‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪

User avatar
Inocudom
Member
Posts: 3136
Joined: Sat Sep 29, 2012 01:14
IRC: Inocudom
In-game: Inocudom

Re: [Mod] Mesecons lamps and logic gates [mesegates, meselam

by Inocudom » Post

These two mods will likely need to be updated, as the mesecons api changed recently.

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests