Jump to content




wired redent repeter for fireworlf?


  • You cannot reply to this topic
27 replies to this topic

#1 NoLongerUsed

  • Members
  • 80 posts

Posted 17 April 2013 - 07:17 AM

I'm looking for a way to repeat the wired modem signals because of the 256 block limit due to me building project clean feel.
the idea is for something that repeats a rednet wired signal but works with firewolf

something a bit like this:
Posted Image

#2 Sariaz

  • Members
  • 107 posts

Posted 17 April 2013 - 07:22 AM

First and this may sound stupid what is firewolf?

#3 NoLongerUsed

  • Members
  • 80 posts

Posted 17 April 2013 - 07:23 AM

firewolf is a webbrowser for computercraft:
http://www.computerc...__fromsearch__1

#4 Kingdaro

    The Doctor

  • Members
  • 1,636 posts
  • Location'MURICA

Posted 17 April 2013 - 07:51 AM

All you really have to do is listen for and resend the received signals.

local receiver = peripheral.wrap("left")
local sender = peripheral.wrap("right")
receiver.open(5)
while true do
  local _, side, channel, rep, msg = os.pullEvent("modem_message")
  if side == "right" then
    sender.transmit(channel, rep, msg)
  end
end


#5 Sariaz

  • Members
  • 107 posts

Posted 17 April 2013 - 07:51 AM

nvm king answered your question

Edited by Sariaz, 17 April 2013 - 07:56 AM.


#6 NoLongerUsed

  • Members
  • 80 posts

Posted 17 April 2013 - 08:04 AM

firewolf pagers
Kingdaro

code not working sorry

#7 Sammich Lord

    IRC Addict

  • Members
  • 1,212 posts
  • LocationThe Sammich Kingdom

Posted 17 April 2013 - 08:05 AM

Kingdaro's code sent it one way but not the other way.

#8 NoLongerUsed

  • Members
  • 80 posts

Posted 17 April 2013 - 08:09 AM

iv'e tested crossing two repeaters different ways then crossing the connection but that seams still not to work.

#9 Kingdaro

    The Doctor

  • Members
  • 1,636 posts
  • Location'MURICA

Posted 17 April 2013 - 08:37 AM

Is the input modem opened on the right channel?

#10 NoLongerUsed

  • Members
  • 80 posts

Posted 17 April 2013 - 08:40 AM

yes it was so it should of worked but firewolf is a bit strange how it uses rednet

#11 Sariaz

  • Members
  • 107 posts

Posted 17 April 2013 - 08:59 AM

From what I saw on the link you posted i think firewolf was using rednet.send to pass data not channels don't know if this could be a problem haunt worked with channels yet.

#12 Sariaz

  • Members
  • 107 posts

Posted 17 April 2013 - 10:09 AM

mtwiscool you might want to post something like this on the firewolf forum since the owner should really have a way to extend range anyways imo.

#13 NoLongerUsed

  • Members
  • 80 posts

Posted 17 April 2013 - 11:26 AM

I tried but got no reply

#14 Spongy141

  • Members
  • 526 posts
  • Location'Merica

Posted 17 April 2013 - 11:44 AM

Have it do something similar to this (I don't use the LAN cables, so please correct me.
if <What ever you do to receive LAN messages> right then
  <have it send in the opposite direction>
end
--Then the same thing, but for the other side...  It would be easier to use giant rednet towers pinging the message.


#15 NoLongerUsed

  • Members
  • 80 posts

Posted 18 April 2013 - 02:50 AM

no i have not
as i don't know how firewolf works

#16 Dlcruz129

    What's a Lua?

  • Members
  • 1,423 posts

Posted 18 April 2013 - 02:59 AM

View Postmtwiscool, on 18 April 2013 - 02:50 AM, said:

no i have not
as i don't know how firewolf works

Rednet is rednet, no matter which program.

#17 NoLongerUsed

  • Members
  • 80 posts

Posted 18 April 2013 - 03:27 AM

i just am trying to find out how to reate the signal as i got a big city and town and villagers on project clean feel
and need to put cable like 7,000 blocks

#18 Spongy141

  • Members
  • 526 posts
  • Location'Merica

Posted 18 April 2013 - 05:10 PM

^
Why use cables for the most part? Make a couple of Towers (That are exactly 1 block below the max build height) then have computers receiving messages at the bottom, then have it use a LAN cable to the top of the tower, then have the computer at the top of the tower ping the message out, so it will cover 255 (Or what ever it the max rednet range at max build height), that should be enough room, especially with a couple of towers.

#19 Dlcruz129

    What's a Lua?

  • Members
  • 1,423 posts

Posted 19 April 2013 - 03:06 AM

You can also extend the range of rednet in your config.

#20 BigSHinyToys

  • Members
  • 1,001 posts

Posted 19 April 2013 - 05:05 AM

This might work I don't know. If a program broadcasts this will open a port for the returned messages.
I have knocked this up right now and done limited testing so there may me problems.
http://pastebin.com/NddHhCQS

Just run that and two directional message sending on the broadcast frequency will be opened.

[EDIT]
This relies on the fact most network programs broadcast when they startup opening the frequency for the reply messages to be made on. Then opening the frequency for the server to client messages. directly trying to send from one to another will fail as they have no open channel. adding a rednet.broadcast to the top or programs will open the return frequency.
[/EDIT]





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users