Computercraft Tutorial - Tank Liquids Monitoring System v2 (FTB 1.6.4)

Channel:
Subscribers:
16,700
Published on ● Video Link: https://www.youtube.com/watch?v=G24i4Lbtau0



Minecraft
Game:
Minecraft (2011)
Category:
Tutorial
Duration: 18:03
6,420 views
57


OpenPeripherals is required for this to function (addon to ComputerCraft).

Update: Something goes wrong if you place a Valve one block behind and below the Valve that you read data from. You'll get "No liquid in tank" even though there is. See this video for information:
http://youtu.be/Kwh5-VAOu7w

There is a new variant of this program for 1.7.10:
http://youtu.be/4xm5z9sGPQ8

This is an updated version of my old Liquid Monitor system, it shows status more clearly and is much easier to implement than the old one! The system will monitor a tank behind it, and constantly send the liquid type and amount to a main computer as well as show status next to the tank.

Thanks to 'Ryan Milner' who updated my 1.5.2 code to work with 1.6.4, but I updated it even further as said in the video.

Link to the version for 1.5.2 (FTB Unleashed v1.1.4)
http://youtu.be/X-owrYlGCXI

Here you can study the codes before downloading:
tank (latest): http://pastebin.com/hERU21m0
tank (v1): http://pastebin.com/m1f3dgP8
main: http://pastebin.com/wYPwGgpm

Updates:
20140908 - New version of tank program, updated the formatting so percentage is on the left side instead.

Detailed Instructions:
Begin with the tank computer, place it so the valve is behind it. Monitors on top and lamp on the right side. Wireless modem on the bottom side. If you want to use other sides you need to change the code! It is of course possible to only run it locally (no modem), but you need to disable the sending parts then. If you only want the computer and modem it is also possible, just disable the monitor print functions in the code.

pastebin get hERU21m0 tank

Edit startup and type:
sleep(2)
shell.run("tank")

Next step is to change channel to send on. This also corresponds to the row on the main computer monitor. If you want to, you can change the warning level as well.

The tank computer is finished now, so place your main computer within range, it can be altered in the same way as the tank computers. But standard issue is Wireless Modem on the back and advanced monitors on top.

pastebin get wYPwGgpm main

Edit startup and type:
shell.run("main")

No sleep in the main computer, it should be up and running before the slaves. Edit the main program and "unlock" all channels you want to use. Again, they correspond to the row number on the screen. If you want to use other channels (higher than 12), you can of course do that, but you need to modify the code further down where I set the cursor on specific rows based on the channel.

Now everything works! Note that slaves only send values if they have updated. And default sleep time is always 10 seconds except for when value is changing and is between 0 and warning level.

It is really that easy! :)

---

If you like what you see, please make me aware of it in form of a like or a comment. If not, then tell me what you think I should improve. And of course, subscribe if you want to see more.


I can be found on both Twitter and Facebook as well, for video announcements and updates. They are also the preferred ways to send a non-video related question or comment. I might do things on Twitch as well, place a sub and prepare for it!
http://twitter.com/therealtkh
https://www.facebook.com/therealtkh
http://www.twitch.tv/therealtkh/
http://plus.google.com/+therealtkh


Game details:
http://minecraft.net
FTB 1.6.4 Monster v1.1.2
http://feed-the-beast.com
The program require OpenPeripherals to function (addon to ComputerCraft).


Music:
"Peace of Mind"
by Kevin MacLeod (incompetech.com)







Tags:
the
beast
Tutorial
program
tkh
Computer
coding
Hearing
Learn
how
minecraft
software
FTB
First
programs
feed
Craft
guide
Tip
how-to
to
Function
tips
tricks
help



Other Statistics

Minecraft Statistics For TKH

There are 9,657,296 views in 450 videos for Minecraft. His channel published over 4 days worth of content for the game, or 57.62% of the total watchable video for Minecraft on TKH's YouTube channel.