Jump to content




OpenPeripheral won't move items to inventories connected with a wired modem

peripheral api networking

5 replies to this topic

#1 figgycity50

  • Members
  • 100 posts

Posted 21 December 2015 - 11:26 AM

I'm trying to move items from slots in a player's inventory with a PIM and move it into an ME interface (both connected with Wired Modems)
This is my code:

local pim = peripheral.find("pim")
local interface = peripheral.find("tileinterface")
if pim and pim.getInventorySize() > 0 then
  --pim.condenseItems()
	    if interface then
		    for i=10, 35 do
			    pim.pushItem("tileinterface_0", i)
		    end
	    end

By the way, pim.condenseItems is commented out on purpose (so I can check it is taking all inventory slots I want it to).

I get this error when i use the code:

startup:7:Failed to convert arg 'direction', cause: ''tileinterface_0' is not valid enum value, must be [DOWN, UP, NORTH, SOUTH, WEST, EAST, UNKNOWN] or 1..7'


#2 Hydrotronics

  • Members
  • 131 posts
  • LocationThe hall of 1000 monkeys and only 1 typewriter

Posted 21 December 2015 - 11:41 AM

I don't think you can transfer items through wireless modems. Not sure though, haven't used openPeripherals in a while

#3 figgycity50

  • Members
  • 100 posts

Posted 21 December 2015 - 11:44 AM

View PostHydrotronics, on 21 December 2015 - 11:41 AM, said:

I don't think you can transfer items through wireless modems. Not sure though, haven't used openPeripherals in a while
I am using wired modems

#4 Hydrotronics

  • Members
  • 131 posts
  • LocationThe hall of 1000 monkeys and only 1 typewriter

Posted 21 December 2015 - 11:46 AM

i meant wired XD

but yeah i dont think u can do it through wireless either XD

Edited by Hydrotronics, 21 December 2015 - 11:46 AM.


#5 Dragon53535

  • Members
  • 971 posts
  • LocationIn the Matrix

Posted 21 December 2015 - 11:54 AM

Yeah, you can't transfer items through modems, you can transfer them through the physical things, which is why you're getting the error you're getting.

It's looking for a direction to push the item in, and it will only take those directions, or unknown. Nothing more, nothing less.

#6 Wojbie

  • Members
  • 631 posts
  • LocationKinda lost

Posted 21 December 2015 - 12:05 PM

There is a way to move items via wired modems but its added by CCtweaks to Openperiphreal so without it its not possible.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users