The Mesecons Laboratory

User avatar
Dan Duncombe
Member
 
Posts: 904
Joined: Thu May 09, 2013 21:11

by Dan Duncombe » Sun Aug 18, 2013 11:19

Can anyone give me the luacontroller code to output a mesecon signal from ports A and B, switching on/off about 2 times per second? So a 1/2 a second clock
Some Mods: Castles Prefab Camouflage
My Games: Nostalgia Realtest Revamped
Servers: See above games.
 

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

by Temperest » Sun Aug 18, 2013 17:57

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
interrupt(0.5, "test")
if event.iid == "test" then
  port.a, port.b = not port.a, not port.b
end
WorldEdit 1.0 released

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

User avatar
Dan Duncombe
Member
 
Posts: 904
Joined: Thu May 09, 2013 21:11

by Dan Duncombe » Sun Aug 18, 2013 18:19

Temperest wrote:
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
interrupt(0.5, "test")
if event.iid == "test" then
  port.a, port.b = not port.a, not port.b
end

Thanks :)
Some Mods: Castles Prefab Camouflage
My Games: Nostalgia Realtest Revamped
Servers: See above games.
 

User avatar
markbe
Member
 
Posts: 23
Joined: Thu Jun 06, 2013 23:00

Re: The Mesecons Laboratory

by markbe » Sat Nov 01, 2014 00:54

Hi
I am trying to get the double piston to work as per the lab page but with only two outputs. I got it working with two switches and no controller but can't replicate the sequence of switching with LUA. Please can someone help me fix it?

Switch sequence (without controller) was as follows:
extend pistons = SW1 on, SW2 on
retract pistons = SW 2 off, then SW1 off then SW 2 on, then SW2 off

the LUA I have now is as follows (port.c is control):
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
if event.iid == "pull1" then
  port.a = false
  interrupt(0.2, "push2")
elseif event.iid == "push2" then
  port.b = true
  interrupt(0.2, "pull2")
elseif event.iid == "pull2" then
  port.b = false
else
if pin.c then --extend
    port.a = true
    port.b = true
  else --retract
    port.b = false
    interrupt(0.2, "pull1")
  end
end


The extend part of the sequence works but retract keeps repeating the "push2" and "pull2" indefinately
 

User avatar
davedevils
Member
 
Posts: 51
Joined: Thu Sep 25, 2014 01:13
GitHub: davedevils
IRC: davedevils
In-game: davedevils

Re: The Mesecons Laboratory

by davedevils » Sun Nov 02, 2014 14:58

i like it ! it's remember to me a old minecraft series :D

Labocraft :P http://www.youtube.com/playlist?list=PLDF06383A4B329B37
 

Jesseman1
Member
 
Posts: 49
Joined: Fri Dec 12, 2014 21:32
In-game: Jesseman1 or Plant_Operator

Re: The Mesecons Laboratory

by Jesseman1 » Mon Dec 29, 2014 00:49

Since I don't know where else to look, can someone please tell me how to make doors open with mesecon? I tried the redstone way but it didnt work.
 

User avatar
benrob0329
Member
 
Posts: 1192
Joined: Thu Aug 06, 2015 22:39
GitHub: Benrob0329
In-game: benrob03

Re: The Mesecons Laboratory

by benrob0329 » Sun Dec 06, 2015 00:24

***bump***

Can I submit my own designs?
 

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

Re: The Mesecons Laboratory

by Temperest » Sun Dec 06, 2015 02:01

Hi benrob0329,

I don't really have the time to update this much any more, but I'd be happy to accept submissions! Simply post it in this thread or email me with the details, and I'll add it to the site.
 

User avatar
benrob0329
Member
 
Posts: 1192
Joined: Thu Aug 06, 2015 22:39
GitHub: Benrob0329
In-game: benrob03

Re: The Mesecons Laboratory

by benrob0329 » Mon Dec 07, 2015 03:37

Would this be worth putting up on the website?

Image

Image

Image

It's a password protected door, and the door part could be used with or without a Luacontroller.
Attachments
screenshot_20151206_223703.png
screenshot_20151206_223703.png (80.96 KiB) Viewed 1575 times
 

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

Re: The Mesecons Laboratory

by Temperest » Mon Dec 07, 2015 04:53

That's a nice project! If you send me the write-up, I'll add it as a new post.
 

User avatar
the_raven_262
Member
 
Posts: 68
Joined: Mon Sep 22, 2014 09:30
GitHub: theraven262
IRC: the_raven_262 Raven262 Corvus262 corvus
In-game: the_raven_262 Raven262 Nevermore

Re: The Mesecons Laboratory

by the_raven_262 » Mon Mar 13, 2017 17:06

Is this Project dead?
If not, I would love to see more tutorials to try to build things. :)
(I am still learning on how to use mesecons at all oO)
My favourite quote is NOOT NOOT! (By comrade Pingu)
Which roughly translates to "The revolution will be swift and without mercy!"
 

Previous

Return to WIP Mods

Who is online

Users browsing this forum: No registered users and 53 guests

cron