well i dont really need to steal anything, there are snippets of stuff i find interesting, but if you like you can look at mine and see how i got mine to be fully dynamic. with a max size monitor i can probaly fit about 6-7 tank data comfortably, which is why i wanted to go with a multi monitor support option to see if i cant get one computer to track more info without having to use another computer.
Dead Simple Railcraft Tank Monitoring
#21
Posted 02 November 2013 - 03:54 PM
well i dont really need to steal anything, there are snippets of stuff i find interesting, but if you like you can look at mine and see how i got mine to be fully dynamic. with a max size monitor i can probaly fit about 6-7 tank data comfortably, which is why i wanted to go with a multi monitor support option to see if i cant get one computer to track more info without having to use another computer.
#22
Posted 02 November 2013 - 04:05 PM
Lets make sure of what your client is connected to. At a lua prompt, try this:
valve = peripheral.wrap("back")
for k,v in pairs(valve) do print(k) end
You should seegetTanks
listMethods
If we don't see that "getTanks" there, then we've learned something.
#23
Posted 02 November 2013 - 04:09 PM
#24
Posted 02 November 2013 - 04:45 PM

Is it realy not a railcraft tank valve?

pretty sure it is one :/
#26
Posted 02 November 2013 - 05:05 PM
#27
Posted 02 November 2013 - 05:15 PM
It's always the small things.
Anyway thanks alot for the help Forgotten_Boy and wojbie!
I'l ask the server admin to install OpenPeripherals and see how that goes
Have a nice day ^^
#28
Posted 11 November 2013 - 10:14 AM
the lines
local tankSide = getDeviceSide("iron_tank_valve");
local tankSide2 = getDeviceSide("steel_tank_valve");
seem to no longer coraspond to the tile names
when I called peripheral.getType() it told me it was rcsteel tankvalve tile
trying now to edit that in to see if it will make it work....
... and it appears that peripheral.getTanks() is not fully supported yet in the new version of OP
Edited by Landstryder, 11 November 2013 - 10:31 AM.
#29
Posted 11 November 2013 - 02:11 PM
#31
Posted 21 November 2013 - 07:55 PM
#32
Posted 24 November 2013 - 09:58 PM
#33
Posted 25 November 2013 - 01:53 AM
Edited by basdxz, 25 November 2013 - 02:23 AM.
#34
Posted 25 November 2013 - 02:49 AM
#35
Posted 25 November 2013 - 02:51 AM
Forgotten_Boy, on 24 November 2013 - 09:58 PM, said:
#36
Posted 25 November 2013 - 03:05 AM
I was working on Terminal Glasses but my version of that didn't work yet; haven't tried with the latest stuff.
I added a liquid called "Liquid Force" (uppercase is important here, correct me if I'm wrong) and it should appear as yellow on the ComputerCraft monitor now. I can't test it, so hopefully it works for you!
Edited by Forgotten_Boy, 25 November 2013 - 03:14 AM.
#37
Posted 25 December 2013 - 11:04 AM
Any chance I can get a copy of the program that uses wired modems?
#38
Posted 02 January 2014 - 08:41 PM
pastebin get QgJbdSLX tankmon
#39
Posted 03 January 2014 - 12:31 PM
local function showLevel(count,max,filled,color,label, amt, threshold, signal)
local screenw, screenh = monitor.getSize()
max = max +1
if (not screenw) then
I noticed it wasn't always showing the last tank for some reason, so adding 1 to the max seems to fix the problem.
Also, not sure if these might help, but I modified the colours and lables a little. I'm currently monitoring 15 tanks displaying on the widest screen I could make (8 blocks long by 5 heigh)
local liquidColors = {{"water", colors.blue, "Water" },
{"tile.oilStill", colors.gray, "Oil"},
{"creosote", colors.brown, "Creosote"},
{"essence", colors.lime},
{"steam", colors.lightGray},
{"honey", colors.orange, "Honey"},
{"bioethanol", colors.orange, "Ethanol"},
{"lava", colors.orange, "Lava"},
{"item.fuel", colors.yellow, "Fuel"},
{"biomass", colors.lime, "Biomass"},
{"fortron", colors.lightBlue},
{"sludge", colors.black},
{"liquid DNA", colors.magenta},
{"juice", colors.green, "Frt Juice"},
{"seedoil", colors.yellow, "Seed Oil"},
{"liquid force", colors.yellow},
{"oil", colors.gray, "Oil"},
{"fuel", colors.yellow, "Fuel"},
{"uumatter", colors.purple, "UUMatter"},
{"vegetable", colors.magenta, "Veg"},
{"deuterium", colors.lightBlue, "Deuterium"},
{"xpjuice", colors.lime, "XP"}
}
Thanks for a great script. Makes monitoring my tanks so much easier and I no longer have to go running around between tanks looking to see how full they are.
#40
Posted 07 January 2014 - 01:54 AM
To kwstoudt, about wired modems: I've never tried it, but I'm not sure why it wouldn't work. The code detects a modem like this:
local modemSide = getDeviceSide("modem");
and I assume the wired modem is the same, but I don't know. If not just changing this line to be the correct peripheral name may be enough. No time for me to check at the moment, especially since the program is much simpler to use in wireless form!
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users











