Lyqyd, on 02 February 2014 - 04:44 PM, said:
So this is gonna make me look like an idiot most likly but im on a ftb 1.5.2 server running unleashed, thats not owned by me.. so i cant technically update open peripheral can i? if this were my server id be running openccsensors on it lol
Anyway.. Using this program.. i was able to get the mfsu power to show.. and using another program with a computer directly on the valve of the tank with a monitor on top showed tank data.. so why wouldnt this.. i dont see the update as nesscesary just to get this program to show the tanks info since another program was able to do so.. right? btw thx for the approval and the response.. very new to the Computercraft thing and basically just trying to learn from stuff to delve into my own cc adventures at some point
EDIT - So with a lil bit of luck and a small piece of code that i found on this page here on post #22
http://www.computerc...ng/page__st__20
valve = peripheral.wrap("back")
for k,v in pairs(valve) do print(k) end
i had to take lyqyds advice and stopped the program from auto updating by removing lines 66-68 in the main program(not the api)
(Changed From)
-- Load API ---
if fs.exists("marik") then shell.run("rm marik") end
print("Updating API...")
shell.run("pastebin get Th8tne6p marik")
os.loadAPI("marik")
---------------
(Changed To)
-- Load API ---
os.loadAPI("marik")
---------------
I noticed that the code written in the program here used getTanksInfo on line 60 of the api labeled marik which (the reason im unsure of.. maybe marik used a newer/older version?)
to try and pull the into from the tank..
running the code snippet i shared in the lua live thing with the periperhal(tank) behind the advanced computer showed me i guess whats called methods right? correct me if im wrong plz, learning here.. which didnt return getTanksInfo but listed getTanks so i changed the program over to getTanks while also changing line 160 of the program as follows
(Noticing that when i placed the wired modem onto the valve and turning on the modem that is said sumthing dif i Changed From)
if string.find(machines[i], "rcirontankvalvetile")
(Changed To)
if string.find(machines[i], "iron_tank_valve")
And low and behold 4 days later ive got it working
that lil snippet of code will come is handy as i had no idea how to display each periphs methods(or w/e) which i can use on other periphs the same way to read the info
this has been driving me nuts trying to figure this out and it was super simple lol
Edit 2 - Now i need to figure out how to define ic2 machines.. when i place a wired modem on a compressor or macerator or other ic2 machines the modem says machine_block.. the only one i can manage to get to show on the monitor is the electric furnace because its labeled electric_furnace.. idk why the others wont show yet -.-
Edited by thesilenton3, 04 February 2014 - 06:16 PM.