Jump to content




== WiRe == (Redstone Master Control for your base)

lua wireless utility

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

#21 micmou

  • Members
  • 54 posts

Posted 15 June 2014 - 07:23 PM

Maybe you could add a check for cc10 and wire to check if the redstone is active or not? I would like to use both but if I activate it in cc10 then it wont show in wire.

#22 Dog

  • Members
  • 1,179 posts
  • LocationEarth orbit

Posted 15 June 2014 - 07:47 PM

Getting cc10 and WiRe to talk to each other would be a monumental task - they provide similar functions, but operate very differently.

I am looking into adding pocket computer support for WiRe, but I can't promise it'll happen. It isn't just a matter of adding some code to support pocket computers. A lot of the code of WiRe server (or WiRe client, depending on which way I go) will have to be re-written to accommodate having multiple 'control centers' (in addition to a number of other changes that would have to be made). It also negates the 'single, master control center' philosophy that WiRe was designed around. I, too, like the idea of the convenience, so I'm looking in to it and trying some things out; but I'll only be adding it if I can integrate it in a way that makes me happy and matches the overall design concept of WiRe.

EDIT: After some testing, I've discovered that cc10 and WiRe work together very well, but with limited functionality.

Simply install cc10 Host (named 'cc10host') and WiRe Client (named 'WiReClient') on the same machine and create the following file named 'startup'
shell.run("cc10host WiReClient")

Configure both cc10 and WiRe to use the same side for redstone output and it should 'just work'. cc10 and WiRe will both report status correctly...but, cc10 is not aware of WiRe's 'lock' ability and essentially bypasses it. If you'd like a small layer of protection, configure cc10 to use a password - note that passwords and communications are not encrypted.

When you reboot the machine, this will launch cc10host in daemon mode, which will then automatically launch WiReClient.

Edited by Dog, 18 June 2014 - 06:59 AM.


#23 oden the fish

  • Members
  • 24 posts
  • Locationmars

Posted 16 June 2014 - 11:53 AM

why did you have to make this now i have to change all my redstone stuff to computer craft and use this because its so awsome :). great program and i look forward to using it

EDIT: i found a glitch where if you have the main monitor right next to the computer and a wired modem (eg a bi-directional piston door) it won't display on the 2 monitor yet it still works its just a display glitch (client side)

Edited by oden the fish, 16 June 2014 - 12:18 PM.


#24 Dog

  • Members
  • 1,179 posts
  • LocationEarth orbit

Posted 16 June 2014 - 04:45 PM

Thanks for the compliment, oden the fish :)

I'm not sure I understand what you're describing. Would you please describe the setup in more detail or post a screenshot?

#25 oden the fish

  • Members
  • 24 posts
  • Locationmars

Posted 17 June 2014 - 01:17 AM

for some reason it started working after i restarted my game
im making a piston door that can be opened from both sides

#26 Dog

  • Members
  • 1,179 posts
  • LocationEarth orbit

Posted 17 June 2014 - 01:29 AM

I'm not sure what the issue was, but I'm glad it's working for you now, oden the fish. If you have any other problems, please let me know.

#27 oden the fish

  • Members
  • 24 posts
  • Locationmars

Posted 17 June 2014 - 07:49 AM

i have found a problem https://www.dropbox....17_02.22.20.png im not sure how to post this any other way
and here's a screen shot of my mob room using your program https://www.dropbox....02.42.46.png?m=
https://www.dropbox....17_02.43.00.png i have a 2 sided door opener and it closes 10 seconds after being opened but i cant operate it from my master control and also can you make it where its possible to have signal relays a computer with a wireless modem on top and a second one on the side to relay the signal (eg a far away base and some signal relays so you can control you secondary base from your main base)

#28 Dog

  • Members
  • 1,179 posts
  • LocationEarth orbit

Posted 17 June 2014 - 08:13 AM

Hey oden the fish,

Sorry you are getting that error. I think I tracked down the problem and have updated WiRe server with the fix. Please download the latest version and let me know if the problem is fixed for you.

As for a wireless repeater - that feature is already built into ComputerCraft 1.6. Just plop down a computer with two modems (wired, wireless, or mixed) and create a program named 'startup' with the following code
shell.run("repeat")

I know wireless range changes depending on weather, but I don't know what the default ranges are off hand. Depending on how far away your base and house are from each other you may need to use more than one repeater. If I remember correctly, wired networks can go 256 segments before you need a repeater.

Edited by Dog, 17 June 2014 - 08:42 AM.


#29 oden the fish

  • Members
  • 24 posts
  • Locationmars

Posted 17 June 2014 - 08:44 AM

ok ill try it and im going to have to try the wireless repeaters i didnt know that they where build in

#30 oden the fish

  • Members
  • 24 posts
  • Locationmars

Posted 17 June 2014 - 11:00 AM

so far its working really nice program

#31 Dog

  • Members
  • 1,179 posts
  • LocationEarth orbit

Posted 17 June 2014 - 05:53 PM

Thanks for the kind words, oden the fish. Apologies for the bug; I'm glad it's working well for you now :)

#32 Dragnnight

  • Members
  • 4 posts

Posted 10 July 2014 - 12:04 AM

i have got an error when running the server part and the client acts like the server is running but i get this error startup:383: vm error: java.lang.negativearrayexception

that error is on the server


Edit:fixed putting the monitor on top of the computer and adding more monitors seems to have fixed the error great program thank you

Edited by Dragnnight, 10 July 2014 - 12:35 AM.


#33 Dog

  • Members
  • 1,179 posts
  • LocationEarth orbit

Posted 10 July 2014 - 12:39 AM

Hey Dragnnight,

Sorry for the problems. Is this happening 'every so often' or constantly to where the server just won't run?

I can't see anything obvious in the code that would allow this to happen, so I need to get some more information from you...

1. Server and client software setup options (name, description, color, type, etc.)

2. Server and client hardware setup

Basically I need to know which options you chose during setup, and how your hardware is configured, so I can duplicate your setup. Then I should (hopefully) be able to recreate the crash and track down the source of it.

Edited by Dog, 10 July 2014 - 12:40 AM.


#34 Dragnnight

  • Members
  • 4 posts

Posted 10 July 2014 - 02:24 AM

i have fixed the issue sense seems i was not putting enough monitors down i had 2 horizontal like on the left side of the computer apprently wasnt enough room i put 2 more on top of the 2 i had already placed down and rebooted the computer and it worked guess i just durped up lol but my setup was name: Door Control, Description: Door Controler, Color: Cyan, Type, Door, no gps fix, wireless modem

client redstone line about 6 blocks to the door right side computer

Love the program though thanks a lot

Don't see too many active authors
on these types of forums

#35 Dog

  • Members
  • 1,179 posts
  • LocationEarth orbit

Posted 10 July 2014 - 07:26 AM

Thank you, glad you got it sorted and love the program - always nice to hear :)

Do I understand correctly that the program crashed because the monitor wasn't wide enough to display all the attached clients? I'd like to track down whatever problem you ran into.

You'll find there are quite a few active authors here...and a good number of programs available. Overall, there's a decent amount of activity every day, and people are creating new stuff on a pretty regular basis. Welcome!

#36 Dragnnight

  • Members
  • 4 posts

Posted 10 July 2014 - 06:39 PM

actually i believe because it wasn't tall enough because the unlock an lock buttons are on the bottom and then the individual door, hatch and so on buttons go to the top right corner then go on from there once i connected 4 monitors in a square fashion it worked fine because there was room for the lock and unlock buttons on the bottom and then room for the individual buttons on top

#37 Dog

  • Members
  • 1,179 posts
  • LocationEarth orbit

Posted 10 July 2014 - 07:17 PM

It's designed to work with only a single monitor height - you shouldn't have to make the monitor taller than 1. If it's not displaying properly on a single height monitor, would you post a screenshot of what's displaying on the monitor? I've not had that problem in testing, but if there is a problem there I'd like to fix it.

After reviewing the code again last night I figured out why you got the error on line 383 and fixed the problem - it was caused by the 'title' line being longer than the monitor was wide (which I apparently never tested when I tested single-width monitor setups). I also cleaned up some stuff in WiRe Client as well. Download 1.0.20 (client and server) and let me know if you have any further problems.

Edited by Dog, 11 July 2014 - 12:37 AM.


#38 Dragnnight

  • Members
  • 4 posts

Posted 10 July 2014 - 07:42 PM

the server update seems to have fixed that error i was having last night and is confirmed i can know use 2 monitors in a horizontal fashion and it works and i can also use 1 monitor as well witch i also could not do last night fixing the tittle on line 383 sees to have fixed it

Nice work

#39 oden the fish

  • Members
  • 24 posts
  • Locationmars

Posted 10 July 2014 - 10:51 PM

today after a crash i logged on and my door wouldn't respond its like the redstone signal wont turn off im using rednet if that has any thing to do with it heres some screen shots https://www.dropbox....w%20folder%20(5) im sure its ether the crash or something i did

#40 Dog

  • Members
  • 1,179 posts
  • LocationEarth orbit

Posted 11 July 2014 - 12:43 AM

@Dragnnight - woohoo! Glad we got that sorted. My apologies for missing that and putting you through dealing with those crashes.

@oden the fish - hey there! Sorry you're having problems :( Let's get 'em fixed!

What does the Client's terminal screen say? Does it show the OPEN/CLOSE-ON/OFF state properly? That will help me determine if the program is having an issue or it's a glitch with CC1.63 and redstone. Also, I can't view the screenshot - dropbox is asking me to log in (and I don't have my account info handy).

Edited by Dog, 11 July 2014 - 12:43 AM.






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users