Unless I am missing something. Is there some sort of api or integration of these two mods already that I'm not finding in help or by searching here?
Thanks!
--[[
wireless bundel cable
]]--
local freQ = 200
local sSide = "back"
rednet.open("top")
local function expand(iInput)
local tOutput = {}
local check = 32768
for i = 1,16 do
if iInput >= check then
tOutput[i] = 1
iInput = iInput - check
else
tOutput[i] = 0
end
check = check/2
end
return tOutput
end
local function compact(tInput)
local iOutput = 0
local check = 1
for i = 16,1,-1 do
if tInput[i] == 1 then
iOutput = iOutput + check
end
check = check*2
end
return iOutput
end
local function readMessage(sInput)
local tSet = textutils.unserialize(sInput)
return tSet
end
while true do
local sEvent,isendID,sMessage,iDistance = os.pullEvent()
if sEvent == "rednet_message" then
print("RedNet massage")
print(sMessage)
local test,output = pcall(readMessage,sMessage)
if test then
print("parsed Test")
if output[1] == freQ then
print("freq match")
table.remove(output,1)
rs.setBundledOutput(sSide,compact(output))
end
end
elseif sEvent == "redstone" then
print("redstone Change")
local tRecive = expand(rs.getBundledInput(sSide))
local tOutput = expand(rs.getBundledOutput(sSide))
write("Inp>")
for i = 1,16 do
write(tRecive[i])
end
print()
write("Out>")
for i = 1,16 do
write(tOutput[i])
end
print()
local tDifrence = {}
tDifrence[1] = freQ
for i = 1,16 do
if tRecive[i] == 1 and tOutput[i] == 0 then
tDifrence[i+1] = 1
write("1")
else
tDifrence[i+1] = 0
write("0")
end
end
print("")
rednet.broadcast(textutils.serialize(tDifrence))
end
end
What? I was being responsible and asking before clogging the suggestions forum. Nobody said anything existed, so I moved it over there. Sorry for following the rules…
I understand how to use rednet wireless. But unless it is built into CC's source code somewhere to specifically work with that wireless mod, no program you can ever write will do what I'm asking. The frequencies on that mod are data values of blocks, and cannot be changed by any redstone signal, no matter how fancy. Only by player GUI buttons. There are many advantages to having the compatibility, such as the fact that the wireless mod is vastly simpler to use, and thus more players will use it for their constructions, and having CC hook into it would allow fun hacking potential, etc. And other things.This is a wireless bundle cable program UNTESTED and I offer No support for this
ow well never mind me then I was just pointing out that you could replace all the wireless send / receivers with computers and use wifi to control Everything with out that mod. But ofc the simplest solution is to make CC magically able to interface will all GUI's in existence lol XD. CC is fully capable of emulating every function of that mod in its current state. It can do more that that mod could ever do.Including wireless bundles.I understand how to use rednet wireless. But unless it is built into CC's source code somewhere to specifically work with that wireless mod, no program you can ever write will do what I'm asking. The frequencies on that mod are data values of blocks, and cannot be changed by any redstone signal, no matter how fancy. Only by player GUI buttons. There are many advantages to having the compatibility, such as the fact that the wireless mod is vastly simpler to use, and thus more players will use it for their constructions, and having CC hook into it would allow fun hacking potential, etc. And other things.This is a wireless bundle cable program UNTESTED and I offer No support for this
Spamming a thread is not a way to get something added.
Sheez, I would expect people to be a little nicer here about the fact that I am following your forum's posted rules and asking before I suggest (see suggestions forums instructions). So I searched. I found nothing. So I asked (this thread). I was told by a "pro" (who your forum instructions say I can trust for solid information) that it is not currently possible. So then I suggested it in the separate, appropriate suggestions forum. How is that spam, or the wrong section?Oh also wrong section of the forums to put this in.
Is the ComputerCraft main source code open for forking? If so, I will, gladly. Show me the way, that would be fun.I know many people who know Java and could write this very easily. Why don't you just spend a week or two learning simple parts of Java then write it yourself?
I am not even sure what to say to this… like 99% of all matter in the minecraft world are blocks, which have an ID value, and a data value. How could one of the two numbers that define the fabric of our game universe not matter for any program? By that logic, we should be able to place disk drives in the middle of solid rock, because it's just a difference of one little ID value (0 for air, 1 for stone), after all. Too trivial of a matter for any plugin to address, surely…Having a program to change a fucking block data value is useless.
What? I was being responsible and asking before clogging the suggestions forum. Nobody said anything existed, so I moved it over there. Sorry for following the rules…I understand how to use rednet wireless. But unless it is built into CC's source code somewhere to specifically work with that wireless mod, no program you can ever write will do what I'm asking. The frequencies on that mod are data values of blocks, and cannot be changed by any redstone signal, no matter how fancy. Only by player GUI buttons. There are many advantages to having the compatibility, such as the fact that the wireless mod is vastly simpler to use, and thus more players will use it for their constructions, and having CC hook into it would allow fun hacking potential, etc. And other things.This is a wireless bundle cable program UNTESTED and I offer No support for this