Mesecon lua microcontroller print location

Mesecon lua microcontroller print location - Close Up View of a Map

I am trying to use the mesecon luacontroller for minetest: http://mesecons.net/luacontroller/ the sample code I'm running is:

port = {a = true, b = true, c = false, d = true}

print("Hello world")

the a b and d ports are all set to true and c is false so I know the code is being executed, however I can't figure out where the console prints to the console used to start minetest, so I tried starting minetest from terminal and it still doesn't print there. I also talked to server admin and it doesn't print to server logs nor the f10 chat window.

In minetest where does the luamicrocontroller print to?



Best Answer

Taken from the linked website:

print() is a great function. It can mostly output anything you want through the console (the black window that likely started with minetest or the terminal you launched minetest from)

In other words, if your code is running, it should be printing to the console. If the server admin is checking there and they say they can't see anything, then your code is not running - recheck your conditions.




Pictures about "Mesecon lua microcontroller print location"

Mesecon lua microcontroller print location - Residential cottage house with courtyard
Mesecon lua microcontroller print location - Exterior of modern cottage house with columns and balcony surrounded by green grass and trees
Mesecon lua microcontroller print location - Exterior of contemporary residential cottage house with green lawn in yard under cloudy sky





Mesecons 3D Printer




Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

Images: Sonny Sixteen, Max Vakhtbovych, Max Vakhtbovych, Max Vakhtbovych