r/ComputerCraft • u/jdf2 • Jan 07 '21
Script enabling usage of peripherals over wireless modems
https://github.com/jdf221/CC-WirelessPeripheral
Not sure if this is useful for anyone. Wanted to have my reactor control monitor in the base but didn't want to run a long networking cable cause ew.
So just made a copy of the peripheral API and reimplemented it so that it simply sent commands to other computers that were connected via wired modems to the reactors then sent back their replies. Should support everything from the real peripheral api unless I missed something. Even supports wrapping the peripherals.
9
Upvotes
View all comments
Show parent comment
1
u/jdf2 Apr 07 '23
I think what's happening is
me.exportItemToPeripheralis using the native peripheral API and not the WPP one. So it doesn't understand the WPP peripheral IDs. (Internally WPP just strips off thewpp@mineColony://45/part since that's just used to identify the target computer. The last part is the original native peripheral ID)If that chest is directly connected to the same computer that
wpp@mineColony://45/meBridge_0is on then you can just useminecraft:chest_29as the 2nd parameter in yourme.exportItemToPeripheralcall.