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

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

by Temperest » Sun Mar 11, 2012 19:42

Here's an 8-bit subtractor! At the moment it is subtracting 0b1010 from 0b100100 to yield 0b11010.

Image

And here is the WorldEdit save:

Link

For reference, here is my current "mesecon world":

Image

I'm planning to put up a server dedicated to playing with mesecon circuits. Is anyone interested in joining?
WorldEdit 1.0 released

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

User avatar
sfan5
Member
 
Posts: 3636
Joined: Wed Aug 24, 2011 09:44
GitHub: sfan5
IRC: sfan5

by sfan5 » Sun Mar 11, 2012 20:01

Temperest wrote:Here's an 8-bit subtractor! At the moment it is subtracting 0b1010 from 0b100100 to yield 0b11010.

Image

And here is the WorldEdit save:

Link

For reference, here is my current "mesecon world":

Image

I'm planning to put up a server dedicated to playing with mesecon circuits. Is anyone interested in joining?

/me is interested.
BTW.: Awesome Work!
The Images are broken for me :(
Mods: Mesecons | WorldEdit | Nuke
Minetest builds for Windows (32-bit & 64-bit)
 

lkjoel
Member
 
Posts: 778
Joined: Wed Feb 29, 2012 19:27

by lkjoel » Sun Mar 11, 2012 20:16

wow! I'd love to join your server!
My mods: The Nether | Doctor Who (WIP)

I have quit minetest ... again. I am heavily unimpressed by both the game and the community.
 

User avatar
Jordach
Member
 
Posts: 4412
Joined: Mon Oct 03, 2011 17:58
GitHub: Jordach
IRC: Jordach
In-game: Jordach

by Jordach » Sun Mar 11, 2012 20:18

yes i would join as well.

( ͡° ͜ʖ ͡°) ( ͡o ͜ʖ ͡o) [$ ( ͡° ͜ʖ ͡°) $] ( ͡$ ͜ʖ ͡$) ヽ༼ຈل͜ຈ༽ノ



My image and media server is back online and is functioning as normal.
 

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

by Temperest » Mon Mar 12, 2012 16:42

Here it is: http://c55.me/minetest/forum/viewtopic.php?id=1236

It will be online for most of the day today.
WorldEdit 1.0 released

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

Tubbz
 

by Tubbz » Wed Mar 14, 2012 15:11

yes, im having troubles with this mod and i was wondering if you could help me in some way, ive installed the mod, but it says i have problems loading the game from where i have downloaded it. im very new to using mods so i dont know where to extract it/where to place it all. please help :D
 

User avatar
bgsmithjr
Member
 
Posts: 436
Joined: Thu Mar 08, 2012 23:21

by bgsmithjr » Thu Mar 15, 2012 02:26

How do I use the wireless transmitter and receiver? The transmitter will power on and conducts but the receiver remains dead, even when touching the power source. They were both on dirt blocks, then I tried gold blocks. Still didn't work.
 

User avatar
IPushButton2653
Member
 
Posts: 666
Joined: Wed Nov 16, 2011 22:47

by IPushButton2653 » Thu Mar 15, 2012 02:32

I want to make textures for this. Some of these scare me just a little. No offense Jeija
 

User avatar
IPushButton2653
Member
 
Posts: 666
Joined: Wed Nov 16, 2011 22:47

by IPushButton2653 » Thu Mar 15, 2012 02:47

I retract from my statement. Too many .png images. Aborted
 

TubbzChain
 

by TubbzChain » Thu Mar 15, 2012 04:53

HELP ME PLEASE im new to modding, idk where to place the mod to get it to work please help me
 

User avatar
IPushButton2653
Member
 
Posts: 666
Joined: Wed Nov 16, 2011 22:47

by IPushButton2653 » Thu Mar 15, 2012 04:55

Place it in the minetest/data/mods folder. Hope I helped
 

wieszak
Member
 
Posts: 40
Joined: Mon Feb 20, 2012 17:00

by wieszak » Thu Mar 15, 2012 17:24

Very nice mod, good work. However i have one question: Why buttons/switches works as generators ? It makes solar panels and turbines completly unnecessary and pointless.
 

User avatar
Lunarhiro
Member
 
Posts: 121
Joined: Fri Feb 10, 2012 23:13

by Lunarhiro » Thu Mar 15, 2012 17:44

actually... I use turbines as redstone repeaters...
 

User avatar
Jordach
Member
 
Posts: 4412
Joined: Mon Oct 03, 2011 17:58
GitHub: Jordach
IRC: Jordach
In-game: Jordach

by Jordach » Thu Mar 15, 2012 18:15

Lunarhiro wrote:actually... I use turbines as redstone repeaters...

God thats clever.

( ͡° ͜ʖ ͡°) ( ͡o ͜ʖ ͡o) [$ ( ͡° ͜ʖ ͡°) $] ( ͡$ ͜ʖ ͡$) ヽ༼ຈل͜ຈ༽ノ



My image and media server is back online and is functioning as normal.
 

User avatar
xyz
Member
 
Posts: 449
Joined: Thu Nov 10, 2011 14:25

by xyz » Thu Mar 15, 2012 18:20

 

Gatharoth
Member
 
Posts: 196
Joined: Thu Dec 22, 2011 02:54

by Gatharoth » Fri Mar 16, 2012 08:38

Okay, I'm getting a weird error. mesecon:register_on_signal_on isn't working anymore for me.

I've been working on an addon to temperest's code. (see here) When all of a sudden I get this error.

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
01:31:14: ERROR[main]: [LUA] ...inetest\bin\..\data\mods\mesecons_temperest\init.lua:323: attempt to call method 'register_on_signal_on' (a nil value)


This happens even when I put the function inside it.

So like
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
mesecon:register_on_signal_on(function(pos, node)
    if node.name=="mesecons_temperest:duali" then
    minetest.chat_send_player("Gatharoth", "running check.")
        if check_dual(pos) then
            local lnode = minetest.env:get_node({x=pos.x-1, y=pos.y, z=pos.z}) --a node between this node and the one two nodes away
            if lnode.name=="air" then set_node_on({x=pos.x-2, y=pos.y, z=pos.z}) end
       
            local lnode = minetest.env:get_node({x=pos.x+1, y=pos.y, z=pos.z}) --a node between this node and the one two nodes away
            if lnode.name=="air" then set_node_on({x=pos.x+2, y=pos.y, z=pos.z}) end
       
            local lnode = minetest.env:get_node({x=pos.x, y=pos.y, z=pos.z-1}) --a node between this node and the one two nodes away
            if lnode.name=="air" then set_node_on({x=pos.x, y=pos.y, z=pos.z-2}) end
       
            local lnode = minetest.env:get_node({x=pos.x, y=pos.y, z=pos.z+1}) --a node between this node and the one two nodes away
            if lnode.name=="air" then set_node_on({x=pos.x, y=pos.y, z=pos.z+2}) end
        end
    end
end)


Still ends with the same error.
 

User avatar
sfan5
Member
 
Posts: 3636
Joined: Wed Aug 24, 2011 09:44
GitHub: sfan5
IRC: sfan5

by sfan5 » Fri Mar 16, 2012 13:44

Gatharoth wrote:Okay, I'm getting a weird error. mesecon:register_on_signal_on isn't working anymore for me.

I've been working on an addon to temperest's code. (see here) When all of a sudden I get this error.

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
01:31:14: ERROR[main]: [LUA] ...inetest\bin\..\data\mods\mesecons_temperest\init.lua:323: attempt to call method 'register_on_signal_on' (a nil value)


This happens even when I put the function inside it.

So like
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
mesecon:register_on_signal_on(function(pos, node)
    if node.name=="mesecons_temperest:duali" then
    minetest.chat_send_player("Gatharoth", "running check.")
        if check_dual(pos) then
            local lnode = minetest.env:get_node({x=pos.x-1, y=pos.y, z=pos.z}) --a node between this node and the one two nodes away
            if lnode.name=="air" then set_node_on({x=pos.x-2, y=pos.y, z=pos.z}) end
       
            local lnode = minetest.env:get_node({x=pos.x+1, y=pos.y, z=pos.z}) --a node between this node and the one two nodes away
            if lnode.name=="air" then set_node_on({x=pos.x+2, y=pos.y, z=pos.z}) end
       
            local lnode = minetest.env:get_node({x=pos.x, y=pos.y, z=pos.z-1}) --a node between this node and the one two nodes away
            if lnode.name=="air" then set_node_on({x=pos.x, y=pos.y, z=pos.z-2}) end
       
            local lnode = minetest.env:get_node({x=pos.x, y=pos.y, z=pos.z+1}) --a node between this node and the one two nodes away
            if lnode.name=="air" then set_node_on({x=pos.x, y=pos.y, z=pos.z+2}) end
        end
    end
end)


Still ends with the same error.

The Function just don't exist.
Something must be wrong with the Mesecons init.lua
Mods: Mesecons | WorldEdit | Nuke
Minetest builds for Windows (32-bit & 64-bit)
 

User avatar
Hackeridze
Member
 
Posts: 310
Joined: Thu Nov 03, 2011 13:35

by Hackeridze » Fri Mar 16, 2012 14:24

Last edited by Hackeridze on Fri Mar 16, 2012 14:25, edited 1 time in total.
My game: RTMG
GENTOO USER
 

Gatharoth
Member
 
Posts: 196
Joined: Thu Dec 22, 2011 02:54

by Gatharoth » Fri Mar 16, 2012 18:14

sfan5 wrote:The Function just don't exist.
Something must be wrong with the Mesecons init.lua


The problem is, it does exist; And it works. If I take out my code, and let it load, calling that function works. I mean, if you want proof, here it is in the movesontes.

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
mesecon:register_on_signal_on(function (pos, node)
    if node.name=="mesecons_movestones:movestone" then
        local direction=mesecon:get_movestone_direction({x=pos.x, y=pos.y, z=pos.z})
        local checknode={}
        local collpos={x=pos.x, y=pos.y, z=pos.z}
        repeat -- Check if it collides with a stopper
            collpos={x=collpos.x+direction.x, y=collpos.y+direction.y, z=collpos.z+direction.z}
            checknode=minetest.env:get_node(collpos)
            if mesecon:is_mvps_stopper(checknode.name) then
                return
            end
        until checknode.name=="air"
        or checknode.name=="ignore"
        or checknode.name=="default:water"
        or checknode.name=="default:water_flowing"
        minetest.env:remove_node(pos)
        nodeupdate(pos)
        minetest.env:add_entity(pos, "mesecons_movestones:movestone_entity")
    end
end)
 

User avatar
sfan5
Member
 
Posts: 3636
Joined: Wed Aug 24, 2011 09:44
GitHub: sfan5
IRC: sfan5

by sfan5 » Fri Mar 16, 2012 18:26

Weird!
Mods: Mesecons | WorldEdit | Nuke
Minetest builds for Windows (32-bit & 64-bit)
 

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

by Temperest » Fri Mar 16, 2012 18:36

Gatharoth wrote:
sfan5 wrote:The Function just don't exist.
Something must be wrong with the Mesecons init.lua


The problem is, it does exist; And it works. If I take out my code, and let it load, calling that function works. I mean, if you want proof, here it is in the movesontes.

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
mesecon:register_on_signal_on(function (pos, node)
    if node.name=="mesecons_movestones:movestone" then
        local direction=mesecon:get_movestone_direction({x=pos.x, y=pos.y, z=pos.z})
        local checknode={}
        local collpos={x=pos.x, y=pos.y, z=pos.z}
        repeat -- Check if it collides with a stopper
            collpos={x=collpos.x+direction.x, y=collpos.y+direction.y, z=collpos.z+direction.z}
            checknode=minetest.env:get_node(collpos)
            if mesecon:is_mvps_stopper(checknode.name) then
                return
            end
        until checknode.name=="air"
        or checknode.name=="ignore"
        or checknode.name=="default:water"
        or checknode.name=="default:water_flowing"
        minetest.env:remove_node(pos)
        nodeupdate(pos)
        minetest.env:add_entity(pos, "mesecons_movestones:movestone_entity")
    end
end)


I think it might be helpful if you posted the entire file somewhere, maybe the issue is with where it was put? I'm no Lua expert, but that code looks perfectly fine to me by itself.
WorldEdit 1.0 released

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

Gatharoth
Member
 
Posts: 196
Joined: Thu Dec 22, 2011 02:54

by Gatharoth » Fri Mar 16, 2012 18:37

sfan5 wrote:Weird!


Could it be that I'm calling it, after it's already called?

I'm adding to temperest's code; just something that will strickly be used for things like in his OGAM. And it's called there once already.

But then again, it was working fine until I tried to set the mesecon_on to a local and see if that would fix the problem I was having before this. Which was "if" functions were failing even though everything should have matched up correctly.

@Temperest

All of the code is at here

The only changes to it are names, and its put right under your code.



EDIT: Alright, for what every reason its all working now. Everything!! :D
Last edited by Gatharoth on Fri Mar 16, 2012 18:52, edited 1 time in total.
 

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

by Temperest » Fri Mar 16, 2012 19:40

Gatharoth wrote:EDIT: Alright, for what every reason its all working now. Everything!! :D


Must be the magical code gremlins again.
WorldEdit 1.0 released

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

Gatharoth
Member
 
Posts: 196
Joined: Thu Dec 22, 2011 02:54

by Gatharoth » Fri Mar 16, 2012 19:43

Temperest wrote:
Gatharoth wrote:EDIT: Alright, for what every reason its all working now. Everything!! :D


Must be the magical code gremlins again.


IKR!? Scary little bastards. lol
 

celeron55
Member
 
Posts: 430
Joined: Tue Apr 19, 2011 10:10

by celeron55 » Sat Mar 17, 2012 09:40

Missing license information; please fill in ASAP.
 

User avatar
Jeija
Member
 
Posts: 686
Joined: Fri Dec 23, 2011 21:46

by Jeija » Sun Mar 18, 2012 11:06

Filled in the license; as you might have noticed I'm currently away; if there is anything that has to be changed, could please sfan5 or Temperest commit it on GitHub?
I did not read the whole thread since then but I think there was some bug and there is another thread with an AND gate; if there is any code to commit please do it!
Redstone for minetest: Mesecons (mesecons.net)
 

User avatar
sfan5
Member
 
Posts: 3636
Joined: Wed Aug 24, 2011 09:44
GitHub: sfan5
IRC: sfan5

by sfan5 » Sun Mar 18, 2012 11:22

Jeija wrote:Filled in the license; as you might have noticed I'm currently away; if there is anything that has to be changed, could please sfan5 or Temperest commit it on GitHub?
I did not read the whole thread since then but I think there was some bug and there is another thread with an AND gate; if there is
any code to commit please do it!

Welcome back!
Mods: Mesecons | WorldEdit | Nuke
Minetest builds for Windows (32-bit & 64-bit)
 

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

by Temperest » Sun Mar 18, 2012 15:28

WorldEdit 1.0 released

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

User avatar
sfan5
Member
 
Posts: 3636
Joined: Wed Aug 24, 2011 09:44
GitHub: sfan5
IRC: sfan5

by sfan5 » Sun Mar 18, 2012 15:32

\o/
Mods: Mesecons | WorldEdit | Nuke
Minetest builds for Windows (32-bit & 64-bit)
 

User avatar
xyz
Member
 
Posts: 449
Joined: Thu Nov 10, 2011 14:25

by xyz » Sun Mar 18, 2012 16:45

Meselamps do not work, fix it please.
 

PreviousNext

Return to Mod Releases

Who is online

Users browsing this forum: No registered users and 10 guests

cron