Jump to content




Replicator

turtle

24 replies to this topic

#1 vici

  • New Members
  • 2 posts

Posted 01 November 2015 - 09:43 PM

Might mess up your world, use with caution. It just takes one ;)


https://youtu.be/4vkifAtaino

Install with pastebin run 3fnFhwvd it or copy the files from the Github repository.

#2 elopus001

  • Members
  • 15 posts

Posted 02 November 2015 - 03:45 AM

This is ridiculously cool. The idea is great. Suggestion: use this to create a farm script where instead of replicating the turtle simply farms the items.

#3 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 7,099 posts
  • LocationTasmania (AU)

Posted 02 November 2015 - 06:24 AM

Indeed, bravo! :D

Though I do find myself thinking it'd be cool to have the turtles further terraform the land underneath them - creating a smooth, all-stone surface (perhaps adding in artefacts to get something like a Death Star look).

I'm also curious about the matter of sand. In the case of your video you've started over a desert, but can sand be found in all regions?

#4 vici

  • New Members
  • 2 posts

Posted 02 November 2015 - 09:04 AM

Thanks!

It looks for sand in a 100 block radius, so yeah some biomes won't work. Beach/forest/desert works good but as long there is sand and the water does not freeze they should replicate.

Terraforming would be cool, they kinda already do it but in a very blighted way :)


#5 elopus001

  • Members
  • 15 posts

Posted 02 November 2015 - 01:39 PM

View PostBomb Bloke, on 02 November 2015 - 06:24 AM, said:

Though I do find myself thinking it'd be cool to have the turtles further terraform the land underneath them - creating a smooth, all-stone surface (perhaps adding in artefacts to get something like a Death Star look).

That would be awesome! Maybe create a giant hole in the ground at the first one's location as well.

#6 Creator

    Mad Dash Victor

  • Members
  • 2,168 posts
  • LocationYou will never find me, muhahahahahaha

Posted 02 November 2015 - 05:05 PM

Skynet is on its way!

#7 wood

  • Members
  • 6 posts
  • LocationQuebec

Posted 13 January 2016 - 07:31 PM

How are you making more turtles ? I don't see the turtle going mining, where are you getting the redstone and diamond ?

#8 H4X0RZ

  • Members
  • 1,315 posts
  • LocationGermany

Posted 13 January 2016 - 10:06 PM

View Postwood, on 13 January 2016 - 07:31 PM, said:

How are you making more turtles ? I don't see the turtle going mining, where are you getting the redstone and diamond ?
The video is a timelaps. You can't see each turtle doing stuff. Just look at the ground and you'll see cobblestone appear. That's where the turtle went mining.

#9 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 7,099 posts
  • LocationTasmania (AU)

Posted 14 January 2016 - 12:23 AM

The mining spoils aren't entirely obvious, as each turtle doesn't waste time digging up everything between it and the redstone / diamond layers.

#10 sEi

  • Members
  • 41 posts

Posted 01 February 2016 - 12:54 AM

Pretty nifty turtle.

I have studied the turtle now for long. He have made a new turtle and filled its inventory ready to go. But the new turtle is not launching somehow. He is just idling next to the diskdrive.

I am running: CC 1.75 & MC 1.7.1

Have not dared yet even to look at the code, but will do so at some point and see how you have nitted it together. Very impressive so far even if the new turtle not is launching and replicate further!

Thanks for sharing.

/sEi

#11 Meit

  • Members
  • 22 posts
  • LocationPK

Posted 03 March 2017 - 05:38 PM

dope, If you do it once on a server, it will create thousands which will create hundreds of thousands which will create millions which will create billions which will create trillions which will create explosion in the host server :D
jk, but too much can cause the whole server to overload and lag badly, good job man

EDIT: There is a problem at replicator:206, after it went collecting sand (for the first time when it went after cutting trees 2nd time) and got the sand and came up again, it went between the 2 chests (in the middle block between them two) and then stopped there and error 206:storage inconsistency

Edited by Meit, 03 March 2017 - 08:02 PM.


#12 buzzawak

  • Members
  • 64 posts

Posted 30 June 2017 - 11:18 AM

I haven't had any luck getting this working either. I had a quick chat with Johan Nordberg the author but unfortunately he does not have the time available to help.

Edited by buzzawak, 30 June 2017 - 11:20 AM.


#13 Lupus590

  • Members
  • 2,029 posts
  • LocationUK

Posted 30 June 2017 - 11:48 AM

What happens when you try to get it to work? Do any errors pop up?

#14 buzzawak

  • Members
  • 64 posts

Posted 30 June 2017 - 12:21 PM

View PostLupus590, on 30 June 2017 - 11:48 AM, said:

What happens when you try to get it to work? Do any errors pop up?

These are the two errors, I know zero about classes to figure what is happenng.

Posted Image

Edited by buzzawak, 30 June 2017 - 12:25 PM.


#15 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 7,099 posts
  • LocationTasmania (AU)

Posted 30 June 2017 - 12:44 PM

Which version of ComputerCraft are we talking about?

#16 buzzawak

  • Members
  • 64 posts

Posted 30 June 2017 - 12:55 PM

View PostBomb Bloke, on 30 June 2017 - 12:44 PM, said:

Which version of ComputerCraft are we talking about?

1.80pr0

#17 Lupus590

  • Members
  • 2,029 posts
  • LocationUK

Posted 30 June 2017 - 02:10 PM

What do the errors look like when you run it through this? http://www.computerc...ces-for-errors/

#18 buzzawak

  • Members
  • 64 posts

Posted 01 July 2017 - 01:02 AM

View PostLupus590, on 30 June 2017 - 02:10 PM, said:

What do the errors look like when you run it through this? http://www.computerc...ces-for-errors/
Posted Image



The level of coding in the replicator program is way above my pay grade. I think I need to play with simpler stuff for a while and build up to here.

Edited by buzzawak, 01 July 2017 - 01:12 AM.


#19 KingofGamesYami

  • Members
  • 3,002 posts
  • LocationUnited States of America

Posted 01 July 2017 - 01:24 AM

My guess is that class isn't being loaded. I don't know why. What happens if you run 'lib/class'? Does it error? If not, will replicator work after running it?

#20 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 7,099 posts
  • LocationTasmania (AU)

Posted 01 July 2017 - 05:34 AM

Here's the problem: Dan has changed shell.run() to start new scripts in a new environment every time, instead of just using the shell's own environment table as it does in older builds. This means that if a script dumps a bunch of stuff into its global environment then it'll all be cleared when that script ends. More specifically, it means that vici's version of "require" is now broken.

Fortunately the same change to ComputerCraft also brought with it a version of "require" which will work here, so the fix is a simple tweak to line 16 in the "replicator" file:

if redstone and not require then

Edited by Bomb Bloke, 01 July 2017 - 05:44 AM.






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users