sorry to be here again but i couldn't find an answer elsewere.
im looking for a way to check if the modem conected to the pc is wireless or wired. with the peripheral.getType() you can only see modem
is there a way to check this or must this be filled in manualy?
- ComputerCraft | Programmable Computers for Minecraft
- → resdac's Content
resdac's Content
There have been 6 items by resdac (Search limited from 30-March 23)
#229549 modem_message returns table instead of message
Posted by resdac on 09 August 2015 - 10:56 PM in Ask a Pro
the problem goes as folows. have this on pc 1
on the 4th value this: table: 2690b665
the value inside the table switches with every message
why is the second pc not giving me a rednet_message instead of the modem_message
and why is the message transformed into a table?
rednet.open("top") rednet.broadcast("hello")and this on pc 2
local oldpull=os.pullEvent os.pullEvent = os.pullEventRaw print("receiver") wifi = peripheral.wrap("right") wifi.open(65535) while true do local event, value1, value2, value3, value4, value5 = os.pullEvent() print(event) print(value1) print(value2) print(value3) print(value4) print(value5) endif i start both up the second pc gives me instead of the plain hello
on the 4th value this: table: 2690b665
the value inside the table switches with every message
why is the second pc not giving me a rednet_message instead of the modem_message
and why is the message transformed into a table?
#229184 rednet.broadcast() functionality for peripheral.wrap()
Posted by resdac on 06 August 2015 - 07:50 PM in Ask a Pro
i have my peripheral wrap set up with a wirless modem and i am stuck on the general broadcast function
my code for so far is this:
how can i get a way to reach the whole spectrum without using rednet.
my code for so far is this:
wifi = peripheral.wrap("left") lan = peripheral.wrap("top") wifi.open(2220) lan.open(1110) while true do local event, value1, value2, value3, value4, value5 = os.pullEvent() if event == "modem_message" then if string.sub(value4,0,5) == "wifi#" or string.sub(value4,0,4) == "lan#" then rednetArr = split(value4,"#") if #rednetArr == 1 then lan.transmit( value3, 1110,"error ocured while sending1") elseif #rednetArr == 2 then if rednetArr[1] == "wifi" then wifi.broadcast(rednetArr[2]) else lan.transmit( value3, 1110,"error ocured while sending2") end elseif #rednetArr == 3 then if rednetArr[1] == "wifi" then wifi.transmit(tonumber(rednetArr[2]), 2220,rednetArr[3]) else lan.transmit(tonumber(rednetArr[2]), 1110,rednetArr[3]) end elseif #rednetArr == 4 then -- specific pc and protocol end end end endwith most of the other code gone to get it clear, the problem is on line 14 where wifi.broadcast() is called.
how can i get a way to reach the whole spectrum without using rednet.
#228688 ResdacCore[OS]
Posted by resdac on 02 August 2015 - 10:52 AM in Operating Systems
im planning on making a video and photos when v2 is done, and thats almost. currently working on the WAN settings to cooperate with the wifi module
#228634 ResdacCore[OS]
Posted by resdac on 01 August 2015 - 11:31 PM in Operating Systems
Version 2.0
older versions not compatible.
i dont know how to make a ingame upgrade so here are the pastebin links
for core:
pastebin get RbFRNs5b startupfor pc:
pastebin get 0TMuZhWj startup
users that already have installed resdac core folow these steps
open the core pc
goto core
type
rm startup pastebin get LcmFDrqF update update
open pcgo to openCore
type
rm startup pastebin get 4dG5BgvC update update
future versions are going to have better upgrade systems.some data may get lost but most kept safe.
and a still inproving mail client.
Version 1.7 is done
updates are:
-Rednet can be used inside the os
-you can send trough the core as over lan
next goals
-sending over WAN and LAN
-project red compatebility
-fixing some bugs you report
for the Core
pastebin get h1S3MzSD startupfor the pc's
pastebin get VQWtDPCc startupcan also be found on github here -> https://github.com/m...esterhof/Resdac
pictures
First version of Resdac. and its core. the purpose of this OS is that its a network system with a router, the Core, and the pc's with resdac os.
simply place a pc and stick a wired modem and a wireless modem to it. then connect the pc's with modem and run on the core
pastebin get ew1REzfm startupand on the pc
pastebin get 9R8HbP8n startupit'll ask you to setup and then runs from memory. newer versions will soon develop. please report bugs and sugest features
- ComputerCraft | Programmable Computers for Minecraft
- → resdac's Content