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

User avatar
DeepGaze
Member
 
Posts: 332
Joined: Fri May 10, 2013 00:49
GitHub: DeepGaze
IRC: DeepGaze
In-game: DeepGaze

by DeepGaze » Sun Jul 14, 2013 14:01

sfan5 wrote:
DeepGaze wrote:is there hope for a wireless mesecon?

https://dl.dropboxusercontent.com/u/30267315/Minetest/mesecons_wireless.zip
Crafting:
Image
Note: Only has 1 wireless channel

thankyou
there's no place like 127.0.0.1
The deep life Minetest text page
minetest cards
 

User avatar
THEGGABOOK77
Member
 
Posts: 140
Joined: Wed Jul 10, 2013 22:17

by THEGGABOOK77 » Fri Jul 19, 2013 14:45

Excellent Post!!
190.31.223.213 : 30000 Is my Modern House server (Creative) And Totally Free
Join Now!
My Stuff
MY MODS: City Elements-Funny Signs
 

BadWolf
Member
 
Posts: 42
Joined: Thu Jun 27, 2013 17:27

by BadWolf » Mon Jul 29, 2013 00:44

I've been messing around with the luacontroller, and my code likes to overheat the controller. I can't figure out why, because you're suppose to be able to do 20 calculations per second? Basic what this code does is: Every 5 seconds there is a chance that pistons will be turned off. It then initiates a randomized counter that keeps the piston off for a certain period of time. The Piston then is turned on and the process begins again. Here is the code.

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(5)
if (mem.var == nil) then
mem.var = 0
end
if (pin.d == true) then
if (port.a == true and math.random() < 0.02) then
port.a = false
mem.var = math.random(10, 25)
end
if (port.a == false) then
mem.var = mem.var - 1
port.c = not port.c
end
if (mem.var < 1) then
port.a = true
end
end


the set up: pin.d is connected to a power plant, (and a blinky plant so that it will restart when the server is restarted.) port.a is hook to a series of pistons. Port.c is connected to a light that blinks to let me know that the device is counting down (mostly as a diagnostic tool, but also because the controller is a distance away from the pistons)
 

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

by Temperest » Mon Jul 29, 2013 01:16

The issue is probably the blinky plant. When you log on, ABMs have a bug where they execute tons of times very rapidly. This is also the reason why you see flowers grow a lot when you first log on.

Luckily, luacontrollers in recent versions of Mesecons don't lose their code when they overheat. Instead, they just become burned out.

This is a minetest issue, and unfortunately not one that has a simple workaround.
WorldEdit 1.0 released

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

jhlucario3
New member
 
Posts: 4
Joined: Mon Jul 29, 2013 01:31

by jhlucario3 » Mon Jul 29, 2013 01:32

I cant get it to work my game keeps saying mod failed to load and run'
 

BadWolf
Member
 
Posts: 42
Joined: Thu Jun 27, 2013 17:27

by BadWolf » Mon Jul 29, 2013 02:07

Thanks, I removed the blinky plant, I actually modified the code so it doesn't depend on the presence of a plant at all.
 

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

by Temperest » Mon Jul 29, 2013 04:50

jhlucario3 wrote:I cant get it to work my game keeps saying mod failed to load and run'


We need the whole error. Otherwise, that means absolutely nothing.

If using Windows, consider MODSTER to help install the mod for you: https://forum.minetest.net/viewtopic.php?id=6497
Last edited by Temperest on Mon Jul 29, 2013 04:51, edited 1 time in total.
WorldEdit 1.0 released

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

jwag3705
New member
 
Posts: 1
Joined: Sun Jul 28, 2013 15:49

by jwag3705 » Mon Jul 29, 2013 20:40

Is there a way to make a dispenser?? maybe nice for adventure maps and the like.
 

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

by Temperest » Mon Jul 29, 2013 22:27

Try the Pipeworks mod - it has excellent Mesecons integration. Put a Pipeworks filter/injector beside a chest, and a mesecons signal will dispense an item. Use the MESE filter/injector to dispense a whole stack.
WorldEdit 1.0 released

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

Nore
Member
 
Posts: 468
Joined: Wed Nov 28, 2012 11:35
GitHub: Ekdohibs

by Nore » Tue Jul 30, 2013 15:53

About multi-channel wireless mesecons, look at this: https://github.com/Jeija/minetest-mod-mesecons/pull/110
 

wcwyes
Member
 
Posts: 145
Joined: Wed Jul 31, 2013 22:42

by wcwyes » Wed Jul 31, 2013 22:48

I'm trying to write a script where when pin a toggles on(does nothing when it goes off) it toggles pin d on/off, and when pin b toggles on it turns pin d on. and when pin c toggles on it turns pin d off. can anyone help?
 

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

by Temperest » Wed Jul 31, 2013 23:03

Please read the luacontroller tutorial to learn how to use them.

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.type == "on" then
  if event.pin == "A" then
    port.d = not pin.d
  elseif event.pin == "B" then
    port.d = true
  elseif event.pin == "C" then
    port.d = false
  end
end
WorldEdit 1.0 released

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

wcwyes
Member
 
Posts: 145
Joined: Wed Jul 31, 2013 22:42

by wcwyes » Wed Jul 31, 2013 23:26

doesn't seem to be working does lua require a certain number of spaces on each line because I just did 1 and 2 for the lines that looked indented
but it does look along the lines of what i want
I'm playing on a server could that have anything to do with it?
 

wcwyes
Member
 
Posts: 145
Joined: Wed Jul 31, 2013 22:42

by wcwyes » Thu Aug 01, 2013 04:27

I'm trying to make a multi switch castle puzzle here's the code I'm using(thanks Temperest)
Image
and here's the layout of each single switch where the left and right switches would be coming from other switches , (I wouldn't want to leave you in the dark)
Image
any help trying to figure out why it might not be working is welcome
Image
only the middle switch will stay in it's location the other two switches represent signal coming from other switches in the castle all of the switches will be set up in this fashion.
Image
 

wcwyes
Member
 
Posts: 145
Joined: Wed Jul 31, 2013 22:42

by wcwyes » Thu Aug 01, 2013 13:41

Seems to be working today thanks guys for your help, I'll post pics when the castle's done
 

wcwyes
Member
 
Posts: 145
Joined: Wed Jul 31, 2013 22:42

by wcwyes » Thu Aug 01, 2013 14:18

Apparently my friend Badwolf changed the code to
if event.type == "on" then
if pin.d then
port.b = not pin.b
if pin.a then
port.b = true
end
if pin.c then
port.b = false
end
end
 

User avatar
Evergreen
Member
 
Posts: 2131
Joined: Sun Jan 06, 2013 01:22
GitHub: 4Evergreen4
IRC: EvergreenTree
In-game: Evergreen

by Evergreen » Thu Aug 01, 2013 20:39

wcwyes wrote:Apparently my friend Badwolf changed the code to
if event.type == "on" then
if pin.d then
port.b = not pin.b
if pin.a then
port.b = true
end
if pin.c then
port.b = false
end
end
Use the "code" tags for posting code instead of just using plain text. ;-)
"Help! I searched for a mod but I couldn't find it!"
http://krock-works.16mb.com/MTstuff/modSearch.php
 

wcwyes
Member
 
Posts: 145
Joined: Wed Jul 31, 2013 22:42

by wcwyes » Fri Aug 02, 2013 06:07

didn't see the code tag... sorry
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.type == "on" then
if pin.d then
port.b = not pin.b
if pin.a then
port.b = true
end
if pin.c then
port.b = false
end
end
 

ndjdjksisksk
Member
 
Posts: 130
Joined: Mon May 06, 2013 04:11

by ndjdjksisksk » Sat Aug 10, 2013 06:42

can i have a list of the very old versions because i want to play around with this a little and see if i can understand the lua code and i might be able to add a few features
nvm about me leaving minetest but i probably will for a while because i have nothing to do in this comunity becaise i can't make a server. my username is going to change i will make a new acount called stormchaser3000
 

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

by sfan5 » Sat Aug 10, 2013 09:00

Heres a DL link for the first version that was on github(2 years ago):
https://github.com/Jeija/minetest-mod-mesecons/archive/67c953579bd02916dfa46f91a2541d4bdc64230f.zip
Mods: Mesecons | WorldEdit | Nuke
Minetest builds for Windows (32-bit & 64-bit)
 

ndjdjksisksk
Member
 
Posts: 130
Joined: Mon May 06, 2013 04:11

by ndjdjksisksk » Sat Aug 10, 2013 19:29

sfan5 wrote:Heres a DL link for the first version that was on github(2 years ago):
https://github.com/Jeija/minetest-mod-mesecons/archive/67c953579bd02916dfa46f91a2541d4bdc64230f.zip


thanks
Last edited by ndjdjksisksk on Sat Aug 10, 2013 19:30, edited 1 time in total.
nvm about me leaving minetest but i probably will for a while because i have nothing to do in this comunity becaise i can't make a server. my username is going to change i will make a new acount called stormchaser3000
 

ndjdjksisksk
Member
 
Posts: 130
Joined: Mon May 06, 2013 04:11

by ndjdjksisksk » Sat Aug 17, 2013 04:11

ndjdjksisksk wrote:
sfan5 wrote:Heres a DL link for the first version that was on github(2 years ago):
https://github.com/Jeija/minetest-mod-mesecons/archive/67c953579bd02916dfa46f91a2541d4bdc64230f.zip


thanks


can i have a slightly newer one that i can actualy break the nodes on (sorry)
nvm about me leaving minetest but i probably will for a while because i have nothing to do in this comunity becaise i can't make a server. my username is going to change i will make a new acount called stormchaser3000
 

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

by sfan5 » Sat Aug 17, 2013 07:07

Try an older Minetest version
Mods: Mesecons | WorldEdit | Nuke
Minetest builds for Windows (32-bit & 64-bit)
 

User avatar
PenguinDad
Member
 
Posts: 122
Joined: Wed Apr 10, 2013 16:46
GitHub: PenguinDad
IRC: PenguinDad GhostDoge
In-game: PenguinDad

by PenguinDad » Sun Aug 18, 2013 13:56

I found a bug in the Microcontroller.
Here is the content of the debug.txt
Last edited by PenguinDad on Sun Aug 18, 2013 13:58, edited 1 time in total.
<Cyndra> Programming properly in C++ feels like putting together a jigsaw puzzle
<Cyndra> where the peices don't fit and the picture doesn't matter.
 

User avatar
VanessaE
Member
 
Posts: 3894
Joined: Sun Apr 01, 2012 12:38
GitHub: VanessaE
IRC: VanessaE
In-game: VanessaEzekowitz

by VanessaE » Wed Aug 28, 2013 00:10

I get the exact same error on my servers as PenguinDad gets, when I try to use a complex bit of code in a µC, but it only starts after the first event happens that should trigger the µC. When I first enter the code, it accepts it.

Here's the code I tried:

if(A) after(2, "off(A)on(B)"); if(B) after(2, "off(B)on(C)"); if(C) after(2, "off(C)on(A)");

It isn't enough to cause a crash of the server or client, it just breaks the µC - the formspec no longer shows the code when you right click, so you have dig the µC up and re-place it.

My copy of mesecons is up-to-date.
You might like some of my stuff:
Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (16-512px)
Tips (BTC): 13LdcdUFcNCFAm7HfvAXh5GHTjCnnQj6KE
 

User avatar
khonkhortisan
Member
 
Posts: 30
Joined: Fri Jun 29, 2012 17:30

by khonkhortisan » Thu Aug 29, 2013 21:15

 

dungeonmaster
New member
 
Posts: 9
Joined: Sun Jun 30, 2013 17:17

by dungeonmaster » Fri Aug 30, 2013 00:29

make for 0.3.1!
 

User avatar
VanessaE
Member
 
Posts: 3894
Joined: Sun Apr 01, 2012 12:38
GitHub: VanessaE
IRC: VanessaE
In-game: VanessaEzekowitz

by VanessaE » Fri Aug 30, 2013 06:07

0.3.1 cannot run any mods (it does not have a modding system at all), and is considered obsolete. Get the latest code from the master branch of the Minetest repository on github (this is post-0.4.7), or wait for 0.4.8-stable to come out (soon).
You might like some of my stuff:
Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (16-512px)
Tips (BTC): 13LdcdUFcNCFAm7HfvAXh5GHTjCnnQj6KE
 

User avatar
DeepGaze
Member
 
Posts: 332
Joined: Fri May 10, 2013 00:49
GitHub: DeepGaze
IRC: DeepGaze
In-game: DeepGaze

by DeepGaze » Wed Sep 11, 2013 18:15

can you make:
1)a block that looks like stone/dirt/glass but carries current
2)it compatible with the circular saw
3)water convey current but doesn't shock you
4)tesla coil that can harm you if in a 3 block radius
there's no place like 127.0.0.1
The deep life Minetest text page
minetest cards
 

User avatar
VanessaE
Member
 
Posts: 3894
Joined: Sun Apr 01, 2012 12:38
GitHub: VanessaE
IRC: VanessaE
In-game: VanessaEzekowitz

by VanessaE » Wed Sep 11, 2013 22:12

I don't know about the others, maybe they could be put into some kind of Mesecons addon, but for number 4, Mesecons signals are TTL logic, nowhere near what could drive a Tesla coil. A properly-built Tesla coil (according to the inventor I mean) is not supposed to be dangerous (in the original design, you can allegedly be hit repeatedly in the chest with the discharges and they would do nothing).
You might like some of my stuff:
Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (16-512px)
Tips (BTC): 13LdcdUFcNCFAm7HfvAXh5GHTjCnnQj6KE
 

PreviousNext

Return to Mod Releases

Who is online

Users browsing this forum: Bing [Bot] and 21 guests

cron