Jump to content


yarma92's Content

There have been 11 items by yarma92 (Search limited from 10-February 22)


By content type

See this member's

Sort by                Order  

#102018 Turtle Swarm Quarry v0.3 and master/module APIs

Posted by yarma92 on 26 March 2013 - 07:32 AM in Turtle Programs

problem was Kuu it was not starting at -49 912, it was starting at -33, 928 and mining across left to right towards -49, 912. I wanted it to start from -49, 912 and mine 16*16 from there. Sorted in the end by shifting the cords by 16 to -49, 918 so it would start at -49 912 and mine 16x16 from there to the right of that point.



#101924 Turtle Swarm Quarry v0.3 and master/module APIs

Posted by yarma92 on 26 March 2013 - 03:35 AM in Turtle Programs

Yes the co-ordinates the master is saying they are mining at are the correct ones the turtles are actually mining at and gps.locate is giving the correct location as well :S



#101918 Turtle Swarm Quarry v0.3 and master/module APIs

Posted by yarma92 on 26 March 2013 - 03:26 AM in Turtle Programs

They are mining out the wrong chunk haha!

This is what you said they are doing.
						 x 3 2 1 <- {-37, 63, 924}
						 x x x x
						 x x x x
	   {-49, 63, 912} -> x x x x
However -37, 63, 924 is a different chunk :S It is the chunk to the east of the one I want them to mine.



#101908 Turtle Swarm Quarry v0.3 and master/module APIs

Posted by yarma92 on 26 March 2013 - 03:16 AM in Turtle Programs

Yup, tyhats deifinately what they were doing... And the turtle was facing south. Gonna build a second gps platform and see if it helps.



#101901 Turtle Swarm Quarry v0.3 and master/module APIs

Posted by yarma92 on 26 March 2013 - 03:02 AM in Turtle Programs

Kuu, I have found a small problem, the turtles are not mining where instructed.
mastermine -49 63 912 16 16
Module 1 is mining at {-37, 63, 924}
Module 2 is mining at {-37, 63, 920}
Module 3 is mining at {-37, 63, 916}



#97968 Turtle Swarm Quarry v0.3 and master/module APIs

Posted by yarma92 on 17 March 2013 - 12:55 AM in Turtle Programs

Another way is to have an auto typer do it but they can go a bit haywire from my experience.



#97695 Enchant-o-matic

Posted by yarma92 on 16 March 2013 - 07:56 AM in Turtle Programs

Hi guys, this is my first published piece of code, it requires misc. peripherals to work though.
Posted Image

Its a simple set up really, the turtle dumps enchanted books into the chest at the (or on the right if you want it to) and pulls books 1 at a time from the chest above and produces level 30 enchantments.

Here is the code, and the pastebin http://pastebin.com/P7qXS1sS
Spoiler

Please comment with feedback and suggestions/improvements.

Edit: New version is up.
Change Log
Spoiler

Yarma



#97689 Turtle Swarm Quarry v0.3 and master/module APIs

Posted by yarma92 on 16 March 2013 - 07:40 AM in Turtle Programs

No need to rush. And it may not be the same way elo did it, but damn it does the same job haha :D



#97682 Turtle Swarm Quarry v0.3 and master/module APIs

Posted by yarma92 on 16 March 2013 - 07:07 AM in Turtle Programs

Kuu, I think I just turned you into my own personal idol. Thankyou for figuring out how Eloraam did this :D Its a fantastic peice of code. I will let you know if any bugs crop up.

Yarma.



#60795 MLG Mining: Circular Branch Mining

Posted by yarma92 on 17 December 2012 - 12:21 PM in Turtle Programs

View PostUlthean, on 17 December 2012 - 06:16 AM, said:

View Postyarma92, on 17 December 2012 - 02:57 AM, said:

When using the following line to start digTunnels:
digTunnel -l 32 -torchs -torchS up

It returns the error saying invalid direction. This is happening regardless of the direction

You are correct, I accidentaly put isDir(dir) even though dir wasn't correctly declared/initiated.
Thanks for pointing it out, I will update the code immediatly

I guess I wasn't exactly my sharpest at 6 o'clock in the morning :)

Its seems to be running through all 3 updated programs with the torches etc. Also i dont know many who are at their best then.



#60607 MLG Mining: Circular Branch Mining

Posted by yarma92 on 17 December 2012 - 02:57 AM in Turtle Programs

When using the following line to start digTunnels:
digTunnel -l 32 -torchs -torchS up

It returns the error saying invalid direction. This is happening regardless of the direction

edit: from some testing I have it seems the direction you specify after -torcheS is not being parsed through correctly

Edit 2: Found a fix my using a loca var to hold the direction and then passing the local var to the direction check.
elseif args[readParams+1] == "-torchS" then
	if not (readParams + 1 < #args) then
	  printManual()
	  return
	end
	local x=args[readParams+2] --This line is the declaration/assignament--
	if not isDir(x) then --originally if not isDir(dir) then--
	  printDirs()
	  return
	end
	torchSuckDir=args[readParams+2]
	readParams=readParams+2