[mc 1.6.x] Openperipheral
#841
Posted 07 November 2013 - 08:56 PM
#842
Posted 07 November 2013 - 09:30 PM
Edited by Raptor1138, 07 November 2013 - 09:30 PM.
#843
Posted 08 November 2013 - 04:15 PM
#844
Posted 09 November 2013 - 06:06 AM
piggles, on 08 November 2013 - 04:15 PM, said:
Not too convenient, but it'll get the job done.
#845
Posted 09 November 2013 - 06:19 AM
hron84, on 07 November 2013 - 06:05 AM, said:
term.clear() term.setCursorPos(1,1) local tank = peripheral.wrap("right") --# make sure that "right" is the side or name of the tank local dirs = {"north", "south", "east", "west", "up", "down", "unknown"} for _,side in pairs(dirs) do print(side..": "..tostring(tank.getTankInfo(side))) end
Raptor1138, on 07 November 2013 - 09:30 PM, said:
piggles, on 08 November 2013 - 04:15 PM, said:
for _,name in pairs(peripheral.getNames()) do if peripheral.getType(name) == "glowstone_illuminator" then -- make your changes here end endmeaning that you can add or remove any more at will without having to edit or even restart your code
#846
Posted 09 November 2013 - 05:12 PM
I got a couple tanks hooked up with wired modems:
A couple examples:
tank = peripheral.wrap("rcsteeltankvalvetile_1") tankdetails = tank.getTankInfo("unknown") for k,v in pairs(tankdetails) do print(k.. "=" ..v) endThat will return:
1=net.minecraftforge.fluids.FluidTankInfo@30feacb8(The hex is random each time I run the code)
When I perform:
local side = "top"; local methods = peripheral.getMethods("rcsteeltankvalvetile_1"); print("Methods:") for i=1, #methods do print(i.." = "..methods[i]); end
It returns:
Methods: 1 = getTankInfo 2 = listMethods 3 = getAdvancedMethodsData
In addition, the code that was provided above:
term.clear() term.setCursorPos(1,1) local tank = peripheral.wrap("rcsteeltankvalvetile_1") local dirs = {"north", "south", "east", "west", "up", "down", "unknown"} for _,side in pairs(dirs) do print(side..": "..tostring(tank.getTankInfo(side))) end
Returns:
north: table: 7f235d7 south: table: 4dfcf8bc east: table: 3fda8eae up: table: 4eeedee71 down: table: 22dara52 unknown: table: 6e4ede88
So then I added:
print(side..":"..tostring(textutils.serialize(tank.getTankInfo(side))))
and it spits out:
north:{[1]="net.minecraftforget.fluids.FluidTankInfo@5b63ce7",} south:{[1]="net.minecraftforget.fluids.FluidTankInfo@60ff7c18",} east:{[1]="net.minecraftforget.fluids.FluidTankInfo@3d3072a8",} west:{[1]="net.minecraftforget.fluids.FluidTankInfo@c2b2fd7",} up:{[1]="net.minecraftforget.fluids.FluidTankInfo@13ebb52d",} down:{[1]="net.minecraftforget.fluids.FluidTankInfo@251dd0ad",} unknown;{[1]="net.minecraftforge.fluids.FluidTankInfo@4a035aa0",}
Any thoughts?
#848
Posted 10 November 2013 - 08:08 AM
im using: OpenPeripheral-0.2.1-forge9.11.0.883-snapshot-68
be nice to know what im doing wrong, was gona have the turtles automate the whole distilling process of items off the alembics and stick the warded jars back in the AE system.
also, is it smart enough to know the difference between a warded jar filled with ignis and a warded jar that is half filled while its in an AE system? then it can grab the non filled one and place it by the alembic with the same essentia.
thanks for the help!
#849
Posted 10 November 2013 - 08:57 AM
Gnomorian, on 10 November 2013 - 08:08 AM, said:
local tile = peripheral.wrap("some_tile") local methodData = tile.getAdvancedMethodsData() for k,v in pairs(methodData) do print(v) endNote: untested, the v value may actually be a table as well, so just add another loop for that...
Gnomorian, on 10 November 2013 - 08:08 AM, said:
im using: OpenPeripheral-0.2.1-forge9.11.0.883-snapshot-68
As such you should use
local tile = peripheral.wrap("some_tile") for k,v in pairs(tile) do print(k) endto see what methods you have available.
Now as for the problem at hand... As of the time of that build Thaumcraft was not updated for Minecraft 1.6.x and as such no integration could be added into OpenPeripheral to support it... A few weeks ago however I did add this support back in and support is in OpenPeripheral again for Thaumcraft 4. You will however need to download the latest build from our Jenkins server as it is not yet made it to a public release. You'll also find a bunch of other integration that we've re-added, as well as a bunch of other features such as multiple users and events to the bridge when a user registered to it join, here (look at pretty much everything from September to now and you'll see all the new features).
be nice to know what im doing wrong, was gona have the turtles automate the whole distilling process of items off the alembics and stick the warded jars back in the AE system.
Gnomorian, on 10 November 2013 - 08:08 AM, said:
#850
Posted 10 November 2013 - 09:38 AM
theoriginalbit, on 09 November 2013 - 09:50 PM, said:
tank = peripheral.wrap("rcsteeltankvalvetile_1") tankdetails = tank.getTankInfo("unknown") print(type(tankdetails[1]))output?
It returns:
string 1
Edited by JessiahC, 10 November 2013 - 09:44 AM.
#851
Posted 10 November 2013 - 10:33 AM
theoriginalbit, on 10 November 2013 - 08:57 AM, said:
Gnomorian, on 10 November 2013 - 08:08 AM, said:
local tile = peripheral.wrap("some_tile") local methodData = tile.getAdvancedMethodsData() for k,v in pairs(methodData) do print(v) endNote: untested, the v value may actually be a table as well, so just add another loop for that...
Gnomorian, on 10 November 2013 - 08:08 AM, said:
im using: OpenPeripheral-0.2.1-forge9.11.0.883-snapshot-68
As such you should use
local tile = peripheral.wrap("some_tile") for k,v in pairs(tile) do print(k) endto see what methods you have available.
Now as for the problem at hand... As of the time of that build Thaumcraft was not updated for Minecraft 1.6.x and as such no integration could be added into OpenPeripheral to support it... A few weeks ago however I did add this support back in and support is in OpenPeripheral again for Thaumcraft 4. You will however need to download the latest build from our Jenkins server as it is not yet made it to a public release. You'll also find a bunch of other integration that we've re-added, as well as a bunch of other features such as multiple users and events to the bridge when a user registered to it join, here (look at pretty much everything from September to now and you'll see all the new features).
be nice to know what im doing wrong, was gona have the turtles automate the whole distilling process of items off the alembics and stick the warded jars back in the AE system.
Gnomorian, on 10 November 2013 - 08:08 AM, said:
thanks for the quick and detailed responce
ill be sure to grab that new version, pester the guy who puts together the pack
#852
Posted 11 November 2013 - 03:49 AM
For instance, Rotarycraft's Friction Heater uses shaft power to heat, and speed up, a vanilla furnace. As it spins, its temperature increases, which increases the speed of the furnace. The problem is that if you stay at high temperatures too long, the furnace will eventually melt. You can view the temperature of the Friction Heater with the Angular Transducer (RC's multimeter-like tool).
If there was a way to wrap the Friction Heater as a peripheral, I could easily see making the computer monitor the temperature, detect if the temperature is too high, and output a redstone signal to disable a clutch (thus disabling the heater).
Anyways, OpenPeripheral is one of my favorite ComputerCraft mods, and really has become something I'll always have with ComputerCraft. Seeing it add some Rotarycraft support would be awesome, as it's a nice technology mod that's getting better with each update.
#853
Posted 11 November 2013 - 04:47 PM
#854
Posted 12 November 2013 - 12:32 PM
#855
Posted 12 November 2013 - 06:52 PM
LaughingLeader, on 11 November 2013 - 03:49 AM, said:
Thief^, on 12 November 2013 - 12:32 PM, said:
#856
Posted 15 November 2013 - 11:57 AM
theoriginalbit, on 12 November 2013 - 06:52 PM, said:
LaughingLeader, on 11 November 2013 - 03:49 AM, said:
Thief^, on 12 November 2013 - 12:32 PM, said:
I'm pretty sure I have the latest version, and it doesn't seem to be included (at least, it's not in NEI)
#857
Posted 15 November 2013 - 12:31 PM
This is for Iron Tanks, but I assume it should work for Steel Tanks too. The code is from a program I created. Just replace whatever you need to.
local irontank0 = peripheral.wrap("rcirontankvalvetile_0") -- MFR Bio Fuel local irontank1 = peripheral.wrap("rcirontankvalvetile_1") -- Honey local irontank2 = peripheral.wrap("rcirontankvalvetile_2") -- Ethanol local irontank3 = peripheral.wrap("rcirontankvalvetile_3") -- Oil local irontank4 = peripheral.wrap("rcirontankvalvetile_4") -- Fuel function getTank(tankPeriph) local tableInfo = tankPeriph.getTankInfo("unknown")[1] local fluidRaw, fluidName, fluidAmount, fluidCapacity, fluidID fluidRaw = tableInfo.rawName fluidName = tableInfo.name fluidAmount = tableInfo.amount fluidCapacity = tableInfo.capacity fluidID = tableInfo.id return fluidRaw, fluidName, fluidAmount, fluidCapacity, fluidID end function dispTanks() -- TANK 0 mon2.setCursorPos(rowPos, ironTank0Col) mon2.clearLine() local fluidRaw, fluidName, fluidAmount, fluidCapacity, fluidID = getTank(irontank0) mon2.write("Iron Tank 0 (" .. tostring(fluidName) .. ") : " .. tostring(fluidAmount)) -- TANK 1 mon2.setCursorPos(rowPos, ironTank1Col) mon2.clearLine() local fluidRaw, fluidName, fluidAmount, fluidCapacity, fluidID = getTank(irontank1) mon2.write("Iron Tank 1 (" .. tostring(fluidName) .. ") : " .. tostring(fluidAmount)) -- TANK 2 mon2.setCursorPos(rowPos, ironTank2Col) mon2.clearLine() local fluidRaw, fluidName, fluidAmount, fluidCapacity, fluidID = getTank(irontank2) mon2.write("Iron Tank 2 (" .. tostring(fluidName) .. ") : " .. tostring(fluidAmount)) -- TANK 3 mon2.setCursorPos(rowPos, ironTank3Col) mon2.clearLine() local fluidRaw, fluidName, fluidAmount, fluidCapacity, fluidID = getTank(irontank3) mon2.write("Iron Tank 3 (" .. tostring(fluidName) .. ") : " .. tostring(fluidAmount)) -- TANK 4 mon2.setCursorPos(rowPos, ironTank4Col) mon2.clearLine() local fluidRaw, fluidName, fluidAmount, fluidCapacity, fluidID = getTank(irontank4) mon2.write("Iron Tank 4 (" .. tostring(fluidName) .. ") : " .. tostring(fluidAmount)) end
#858
Posted 18 November 2013 - 10:20 AM
This version works on 1.6.4 I didn't test it on 1.6.2.
Since it's not stable release, it might contain bugs.
Of course all credits go to Mikee.
http://speedy.sh/NSg...-snapshot-0.jar
#859
Posted 18 November 2013 - 06:39 PM
Thief^, on 15 November 2013 - 11:57 AM, said:
Mordraug, on 18 November 2013 - 10:20 AM, said:
This version works on 1.6.4 I didn't test it on 1.6.2.
Since it's not stable release, it might contain bugs.
Of course all credits go to Mikee.
http://speedy.sh/NSg...-snapshot-0.jar
Edited by theoriginalbit, 18 November 2013 - 06:40 PM.
#860
Posted 19 November 2013 - 04:14 AM
Molinko, on 26 May 2013 - 01:44 PM, said:
Great job Mikee!!! The Terminal Glasses remind me of the Google Glass. (Also, the Software on this looks cool.)
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users