Wired Network connection Dont work
Closed this issue · 1 comments
Dominikzocker141 commented
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.
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
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.