Jump to content




Automatic Mining [With server and status display]

networking turtle wireless

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

#1 Robd

  • New Members
  • 32 posts

Posted 03 April 2012 - 03:41 AM

**Update** Program works as is... could probably use some cleaning up, I'm likely done with development, however.

Pictures:
Spoiler


General Information/Future Plans:
Spoiler

Installation:

Display & Mainframe:
Spoiler

Turtles:
Spoiler

All systems should have wireless modems on their back side

Turn on the mainframe and display before turning on any turtles (otherwise they will not connect right on startup)

When adding a new turtle to the network (turning it on) be sure to update your connections in the mainframe or you won't be able to give it commands.

Notes:

This is meant to be a simple, user friendly mining system. I realize that there are many other systems with more functions. This will be a work in progress, and as I've said, I'm fairly new to Lua coding.

I am open to suggestions and tweaks of any kind

Attached Files



#2 libraryaddict

  • New Members
  • 195 posts

Posted 04 April 2012 - 09:26 AM

You can use imgur.com to post pictures.

#3 Robd

  • New Members
  • 32 posts

Posted 04 April 2012 - 03:22 PM

Thank you very much :)/> *editted main post*

#4 Wolvan

  • New Members
  • 384 posts
  • LocationIn the TARDIS

Posted 05 April 2012 - 12:54 AM

Wow! If you want a remote manual control you can use my remote controlled turtle program. You can modify it if you need to. You don't have to give credit me only if you want

#5 Bandus

  • Members
  • 21 posts

Posted 07 April 2012 - 02:43 AM

I attempted to use this program and encountered some issues. I really would like to use this program though and I was hoping you'd be willing to assist.

Basically, I placed the proper programs from display/mainframe on disks in floppy drives attached to two computers and a monitor. I started up the display, and then the mainframe and it appeared to display everything properly. I then went to 3 turtles and started them, one after another, and checked connection on the mainframe. The display indicated the three turtles were "connected." This is when the trouble started.

I choose the option "Mining" however once I pressed enter on that the "select arrow" went to the right column of the menu but no options were present (i.e. the "select arrow" seemed to be pointing at blank space). I pressed enter again and received a message "You have selected 0 to mine with." I then was presented size choices of 25x25 or 50x50. Selecting one of those caused the turtles to do nothing, though I was able to cancel to go back.

Basically, it seems like despite the turtles reporting they are connected, the mining option isn't showing them as valid choices. Have I done something wrong perhaps?

Edit: I also noticed after playing with it a bit that when I hit "check connections" eventually the mainframe states: "Timed out... Last known connections: 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0." This happens despite the display indicating the turtle(s) are connected.

#6 Noodle

  • Members
  • 989 posts
  • LocationSometime.

Posted 07 April 2012 - 02:56 AM

Ima gonna steels your codes.

JK but can I reuse some of it?

#7 Robd

  • New Members
  • 32 posts

Posted 21 April 2012 - 03:23 AM

View PostBandus, on 07 April 2012 - 02:43 AM, said:

I attempted to use this program and encountered some issues. I really would like to use this program though and I was hoping you'd be willing to assist.

Basically, I placed the proper programs from display/mainframe on disks in floppy drives attached to two computers and a monitor. I started up the display, and then the mainframe and it appeared to display everything properly. I then went to 3 turtles and started them, one after another, and checked connection on the mainframe. The display indicated the three turtles were "connected." This is when the trouble started.

I choose the option "Mining" however once I pressed enter on that the "select arrow" went to the right column of the menu but no options were present (i.e. the "select arrow" seemed to be pointing at blank space). I pressed enter again and received a message "You have selected 0 to mine with." I then was presented size choices of 25x25 or 50x50. Selecting one of those caused the turtles to do nothing, though I was able to cancel to go back.

Basically, it seems like despite the turtles reporting they are connected, the mining option isn't showing them as valid choices. Have I done something wrong perhaps?

Edit: I also noticed after playing with it a bit that when I hit "check connections" eventually the mainframe states: "Timed out... Last known connections: 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0." This happens despite the display indicating the turtle(s) are connected.
That message in your edit means that the display cannot connect to the mainframe. Asuming the turtles are connecting to the display, the connection issue is on the part of the console. For troubleshooting I would say make sure the rednet is open on it (modems will have a red glow somewhat when they are open) and make sure that in the startup file ur modem is on the same side stated. All the bugs you're experiencing seem to fit the diagnosis of a connection problem, let me know how everything works out for you.

View PostNoodle, on 07 April 2012 - 02:56 AM, said:

Ima gonna steels your codes.

JK but can I reuse some of it?
Go for it, just give me a shiny name tag in your program, i wantz to be famous (that's "please give me some credit" for you non-Gibberish speaking folks)

#8 AndreyKl

  • New Members
  • 2 posts

Posted 22 April 2012 - 11:29 AM

Awesome.
I wonder if anyone created a re-translator program to extend wireless range.

#9 Robd

  • New Members
  • 32 posts

Posted 22 April 2012 - 03:25 PM

View PostAndreyKl, on 22 April 2012 - 11:29 AM, said:

Awesome.
I wonder if anyone created a re-translator program to extend wireless range.
You can change the range of modems in your configuration file (take a look at the new computercraft mod page on the forums)
And also, I have actually set up something like that before this happened that I have deleted, if you're a purist and would like that code I can try to make something up for you

#10 libraryaddict

  • New Members
  • 195 posts

Posted 23 April 2012 - 05:35 AM

Its libraryaddict and you don't actually need to post my name in there ^^

One suggestion is this, Finds the modem on the side of the computer. No more "You need modem on back of computer" ;D

function openRednet()
  for _,side in ipairs(rs.getSides()) do
	if peripheral.isPresent(side) and peripheral.getType(side) == "modem" then
	  rednet.open(side)
	  return side
	end
  end
  error("No modem attached")
end

Also to extend wireless range, You could have turtles re-broadcasting the messages it hears.
As well as storage the messages in a table for about 3 seconds to compare to new messages, then it deletes the messages.
Else you could have them screaming the same message back and forwards!

#11 Robd

  • New Members
  • 32 posts

Posted 23 April 2012 - 08:18 PM

View Postlibraryaddict, on 23 April 2012 - 05:35 AM, said:

Its libraryaddict and you don't actually need to post my name in there ^^

One suggestion is this, Finds the modem on the side of the computer. No more "You need modem on back of computer" ;D

function openRednet()
  for _,side in ipairs(rs.getSides()) do
	if peripheral.isPresent(side) and peripheral.getType(side) == "modem" then
	  rednet.open(side)
	  return side
	end
  end
  error("No modem attached")
end

Also to extend wireless range, You could have turtles re-broadcasting the messages it hears.
As well as storage the messages in a table for about 3 seconds to compare to new messages, then it deletes the messages.
Else you could have them screaming the same message back and forwards!

View Postlibraryaddict, on 23 April 2012 - 05:35 AM, said:

Its libraryaddict and you don't actually need to post my name in there ^^

One suggestion is this, Finds the modem on the side of the computer. No more "You need modem on back of computer" ;D

function openRednet()
  for _,side in ipairs(rs.getSides()) do
	if peripheral.isPresent(side) and peripheral.getType(side) == "modem" then
	  rednet.open(side)
	  return side
	end
  end
  error("No modem attached")
end

Also to extend wireless range, You could have turtles re-broadcasting the messages it hears.
As well as storage the messages in a table for about 3 seconds to compare to new messages, then it deletes the messages.
Else you could have them screaming the same message back and forwards!
I've seen codes like that before, honestly never felt like including, but if it's necesarry i supposed i can start

And also, for the wireless ranges, I used a system of relay messages where the relay systems would broadcast the intended ID as part of the message, the receiver would then have to parse the message.

#12 samip

  • New Members
  • 2 posts

Posted 26 April 2012 - 04:23 PM

I got java error when trying to open display so what version of ComputerCraft?

#13 gaiaalpha

  • New Members
  • 5 posts

Posted 30 April 2012 - 01:37 AM

how do you make the larger screens?

#14 Robd

  • New Members
  • 32 posts

Posted 19 May 2012 - 06:30 PM

View Postgaiaalpha, on 30 April 2012 - 01:37 AM, said:

how do you make the larger screens?


sss
sgs
sss

s = stone
g = glass pane

#15 GhostRecon

  • New Members
  • 2 posts

Posted 25 May 2012 - 08:48 PM

View PostRobd, on 21 April 2012 - 03:23 AM, said:

View PostBandus, on 07 April 2012 - 02:43 AM, said:

I attempted to use this program and encountered some issues. I really would like to use this program though and I was hoping you'd be willing to assist.

Basically, I placed the proper programs from display/mainframe on disks in floppy drives attached to two computers and a monitor. I started up the display, and then the mainframe and it appeared to display everything properly. I then went to 3 turtles and started them, one after another, and checked connection on the mainframe. The display indicated the three turtles were "connected." This is when the trouble started.

I choose the option "Mining" however once I pressed enter on that the "select arrow" went to the right column of the menu but no options were present (i.e. the "select arrow" seemed to be pointing at blank space). I pressed enter again and received a message "You have selected 0 to mine with." I then was presented size choices of 25x25 or 50x50. Selecting one of those caused the turtles to do nothing, though I was able to cancel to go back.

Basically, it seems like despite the turtles reporting they are connected, the mining option isn't showing them as valid choices. Have I done something wrong perhaps?

Edit: I also noticed after playing with it a bit that when I hit "check connections" eventually the mainframe states: "Timed out... Last known connections: 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0." This happens despite the display indicating the turtle(s) are connected.
That message in your edit means that the display cannot connect to the mainframe. Asuming the turtles are connecting to the display, the connection issue is on the part of the console. For troubleshooting I would say make sure the rednet is open on it (modems will have a red glow somewhat when they are open) and make sure that in the startup file ur modem is on the same side stated. All the bugs you're experiencing seem to fit the diagnosis of a connection problem, let me know how everything works out for you.


I'm having this same issue - despite the modems being on back, the Turtle less than 10 blocks away, and the modems with red borders indicating that they're on, I still get the "Timed out... Last known connections:..." error. The Display program and the monitors display that they've connected fine; however, the mainframe can't pick up any of the connections. Can anyone help me? Could it be a block ID problem?

#16 NeonJ

  • Members
  • 9 posts

Posted 31 May 2012 - 06:06 PM

View PostGhostRecon, on 25 May 2012 - 08:48 PM, said:

View PostRobd, on 21 April 2012 - 03:23 AM, said:

View PostBandus, on 07 April 2012 - 02:43 AM, said:

I attempted to use this program and encountered some issues. I really would like to use this program though and I was hoping you'd be willing to assist.

Basically, I placed the proper programs from display/mainframe on disks in floppy drives attached to two computers and a monitor. I started up the display, and then the mainframe and it appeared to display everything properly. I then went to 3 turtles and started them, one after another, and checked connection on the mainframe. The display indicated the three turtles were "connected." This is when the trouble started.

I choose the option "Mining" however once I pressed enter on that the "select arrow" went to the right column of the menu but no options were present (i.e. the "select arrow" seemed to be pointing at blank space). I pressed enter again and received a message "You have selected 0 to mine with." I then was presented size choices of 25x25 or 50x50. Selecting one of those caused the turtles to do nothing, though I was able to cancel to go back.

Basically, it seems like despite the turtles reporting they are connected, the mining option isn't showing them as valid choices. Have I done something wrong perhaps?

Edit: I also noticed after playing with it a bit that when I hit "check connections" eventually the mainframe states: "Timed out... Last known connections: 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0." This happens despite the display indicating the turtle(s) are connected.
That message in your edit means that the display cannot connect to the mainframe. Asuming the turtles are connecting to the display, the connection issue is on the part of the console. For troubleshooting I would say make sure the rednet is open on it (modems will have a red glow somewhat when they are open) and make sure that in the startup file ur modem is on the same side stated. All the bugs you're experiencing seem to fit the diagnosis of a connection problem, let me know how everything works out for you.


I'm having this same issue - despite the modems being on back, the Turtle less than 10 blocks away, and the modems with red borders indicating that they're on, I still get the "Timed out... Last known connections:..." error. The Display program and the monitors display that they've connected fine; however, the mainframe can't pick up any of the connections. Can anyone help me? Could it be a block ID problem?

I get this too. I'm using Tekkit 3 if that helps. I've done the right modem sides and everything, and the modems turn on.

I am confuse!

#17 Robd

  • New Members
  • 32 posts

Posted 01 June 2012 - 08:53 PM

For your issues, there is a variable in the display's script calld "display" change that to the computer ID of the monitor.

#18 eperdeme

  • New Members
  • 2 posts

Posted 03 June 2012 - 08:50 AM

Hello,

The problems seem to be a copy and paste issue in the script.

In the 'fleet' file for the display the top line says 'nframe = 1' this is supposed to say mainframe = X where X is the mainframe number.

it has a similar variable in the file 'startup' on the mainframe, "Display = 1" which needs to be the ID of the display system.

#19 Werzieq

  • New Members
  • 1 posts

Posted 01 September 2012 - 02:00 PM

Does this still work?

#20 MrFrostmaul

  • Members
  • 15 posts

Posted 15 September 2012 - 12:24 PM

How do you install it, the instructions are not clear for me?





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users