Jump to content




[1.51+] Using Network Cables (for dummies)


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

#41 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 04 April 2013 - 04:44 AM

View PostAptik, on 04 April 2013 - 03:35 AM, said:

What about a situation without modems?
What will be detected by right computer (your screenshot but without modems) on left side? Computer or monitor?
The modems are required to detect peripherals... if there is no modem nothing will be detected... unless the peripheral is directly beside the computer...

#42 slango20

  • Members
  • 43 posts

Posted 05 April 2013 - 01:32 PM

View PostDlcruz129, on 31 March 2013 - 11:17 AM, said:

View Postslango20, on 31 March 2013 - 10:28 AM, said:

meh, when will they be released for the mindcrack pack? and why do the FTB packs take so long to update?

The process of mod updating:
Minecraft updates
A few days later, Forge is ready for a release.
A while later, you're ready to update your mod.
Multiply that by all the mods in FTB.
Then you need to update config and whatnot.
Then FTB updates.

Factor in human procrastination and laziness, and it makes perfect sense.
I meant for mod updates and network cables were released before the 1.5 update I belive

#43 Aptik

  • Members
  • 32 posts
  • LocationUkraine

Posted 11 April 2013 - 01:06 AM

Is there a chance to connect several devices to one side?
For example like this:
Attached Image: 5165569ff92ea13e8b00001b.jpeg
And use any of them:
  • printer
  • monitor
  • floppy
  • or even anather computer too


#44 Kingdaro

    The Doctor

  • Members
  • 1,636 posts
  • Location'MURICA

Posted 11 April 2013 - 01:08 AM

Yes.

Though the floppy can't be wrapped, it's mounted to your filesystem like any regular disk drive.

#45 PixelToast

  • Signature Abuser
  • 2,265 posts
  • Location3232235883

Posted 11 April 2013 - 06:30 AM

to find it you have to wrap the disk drive and see what getMountPath returns

#46 Noiro

  • Members
  • 65 posts

Posted 12 April 2013 - 06:56 AM

Quick question, I am trying to find a way to get my turtles to communicate with my server, but the turtles will have all their upgrade slots used so no wireless rednet. Is it possible to have a turtle land on top of a modem connected to a wireless computer and have the turtle talk with the computer and the computer will act as the mediator between turtle and server?

#47 Kingdaro

    The Doctor

  • Members
  • 1,636 posts
  • Location'MURICA

Posted 12 April 2013 - 07:08 AM

Turtles can't communicate with computers over networks without a wireless modem. I'm not sure if it's possible, but connecting a wired modem to a turtle wouldn't have much use if the turtle actually needs to go places.

A round-about way would be to have a turtle go to a disk drive to write a message to a disk, then pick up the disk, put it in another computers' disk drive and the computer would detect it via the disk event and read the message, acting on it and sending it to the other computers.

Even better, just have a disk drive (or a couple) wired to a bunch of computers, and when you want the turtle to send a message via disk, it can just hover over it and write it from there, then just remove and replace the disk and the connected computers would detect the change automatically.

#48 Noiro

  • Members
  • 65 posts

Posted 12 April 2013 - 08:33 AM

View PostKingdaro, on 12 April 2013 - 07:08 AM, said:

Turtles can't communicate with computers over networks without a wireless modem. I'm not sure if it's possible, but connecting a wired modem to a turtle wouldn't have much use if the turtle actually needs to go places.

A round-about way would be to have a turtle go to a disk drive to write a message to a disk, then pick up the disk, put it in another computers' disk drive and the computer would detect it via the disk event and read the message, acting on it and sending it to the other computers.

Even better, just have a disk drive (or a couple) wired to a bunch of computers, and when you want the turtle to send a message via disk, it can just hover over it and write it from there, then just remove and replace the disk and the connected computers would detect the change automatically.

I was looking to have the turtle come 'home'. That's the only time he'd be sending signals is when he landed in his room. I would just need him to be able to know when he should dispatch and the coordinates he needs to fly off to to excavate, and then return home. :D

#49 superaxander

  • Members
  • 609 posts
  • LocationHolland

Posted 14 April 2013 - 08:30 PM

This helped me a lot. Thanks!

#50 Popeye

  • Members
  • 46 posts

Posted 15 April 2013 - 12:22 AM

Thank you for this Tutorial!

Very Handy!

#51 wilcomega

  • Members
  • 466 posts
  • LocationHolland

Posted 15 April 2013 - 06:39 AM

very nice tutorial

#52 Chainmanner

  • Members
  • 11 posts

Posted 23 April 2013 - 02:04 PM

So wait, does this mean it does not really need to involve the remote API that much? Awesome.

#53 NullSchritt

  • Members
  • 43 posts

Posted 02 May 2013 - 10:22 PM

This contains a lot of helpful info, I was really wondering how to use peripherals in this way, just curious though, if you have mutlpule of 1 type of peripheral, would it be possible to enumerate them all into an array?

#54 Kingdaro

    The Doctor

  • Members
  • 1,636 posts
  • Location'MURICA

Posted 02 May 2013 - 10:39 PM

View PostNullSchritt, on 02 May 2013 - 10:22 PM, said:

This contains a lot of helpful info, I was really wondering how to use peripherals in this way, just curious though, if you have mutlpule of 1 type of peripheral, would it be possible to enumerate them all into an array?
Yes. You can get the names of all connected peripherals by using the .getNamesRemote() function on modems, then wrap/use them all accordingly.

local modem = peripheral.wrap('back') -- or whatever side the modem is on that you have your peripherals connected
local names = modem.getNamesRemote()

for i=1, #names do
  local periph = peripheral.wrap(names[i])
  -- do stuff with the peripheral
end

There's also peripheral.getNames(), but this gets any and all possible usable peripherals, including the modems your monitors are connected to, so to me, it's safer and more controlled when using a modem to get peripheral names.

#55 hasunwoo

  • Members
  • 16 posts

Posted 29 May 2013 - 07:45 AM

is there any alternative command of os.pullevent() for reciving modem message???

#56 ElvishJerricco

  • Members
  • 803 posts

Posted 29 May 2013 - 11:00 AM

View Posthasunwoo, on 29 May 2013 - 07:45 AM, said:

is there any alternative command of os.pullevent() for reciving modem message???

No. Why would you want to do that? If you don't like filtering out all the non-modem_message events, you can use os.pullEvent("modem_message") to tell pullEvent to only give you modem_messages

#57 Alice

  • Members
  • 429 posts
  • LocationBehind you.

Posted 05 June 2013 - 02:33 AM

You. Are. Epic. Thank you so much for this. If I ever create a program that detects any peripherals, which I probably will, I will include your names in the program package's credits. :3

#58 hasunwoo

  • Members
  • 16 posts

Posted 21 June 2013 - 06:34 PM

reason is i wanna make chatting system but coroutine is hard to use and os.pullevent also freeze computer while computer occur event

#59 XxmehlhausenxX

  • New Members
  • 1 posts

Posted 21 June 2013 - 11:51 PM

love the tutorial :D

#60 Larandar

  • Members
  • 6 posts

Posted 27 June 2013 - 12:27 AM

Good tutorial.

BTW can we use the modem.transmit( freq, chan, message ) but with wireless modem ?
Because rednet change and frequency and channel are gone...

Thanks





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users