OpenMods / OpenPeripheral-Addons

An addon for OpenPeripheral, adding physical blocks and items to the game
MIT License
11 stars 10 forks source link

Wired Network connection Dont work #86

Closed Dominikzocker141 closed 7 years ago

Dominikzocker141 commented 8 years ago

Hello, When i connect all of the blocks / peripherals in the mod with networki cables and modems i dont recive a responce, but when i connect the peripherals directly conected to a computer it works without errors. 2016-03-30_03 45 52 2016-03-30_03 46 12 2016-03-30_03 46 17 The methods the i used:

local p = peripheral.wrap("openperipheral_sensor_0")
local players = {}

p = peripheral.wrap("openperipheral_sensor_0")
p.getplayers

p = peripheral.find("openperipheral_sensor")
p.getplayers

ps. test it with all peripheral it didnt work autocomplete and all peripheral

omglolbah commented 8 years ago

You're using the wrong name for the function. getPlayers() is the correct name. Capital P. There is an openp directory with a documentation program in it. "openp/docs <side/peripheral-name>" to list the functions. You can do stuff like: openp/docs openperipheral_sensor_1 openp/docs openperipheral_sensor_1 getPlayers

Should list the docs for you.