This is a read-only snapshot of the ComputerCraft forums,
taken in April 2020.
Disk Drive Upgrade for Turtles
Started by ElvishJerricco, 23 November 2014 - 08:09 PMPosted 23 November 2014 - 09:09 PM
Craft a turtle with a disk drive, and all the disks in its inventory become available to it. The disk peripheral methods operate on the disk in the selected inventory slot.
Posted 24 November 2014 - 08:40 PM
Bad idea imho.
Selected slot can be changed by any other program effectively ejecting disk from drive.
Better move disk to the internal slot of the drive upgrade.
Selected slot can be changed by any other program effectively ejecting disk from drive.
Better move disk to the internal slot of the drive upgrade.
Edited on 24 November 2014 - 07:41 PM
Posted 24 November 2014 - 08:42 PM
Perhaps instead of equipping a disk drive, you equip the disk itself.
Posted 24 November 2014 - 08:54 PM
This means no need for drive at all. -> bad idea
I think internal slot in the upgrade is better. Why not? Why not the Chest Upgrade if you want more storage or do some sorting? Why not the Furnace Upgrade to cook Charcoal on the go?
I think internal slot in the upgrade is better. Why not? Why not the Chest Upgrade if you want more storage or do some sorting? Why not the Furnace Upgrade to cook Charcoal on the go?
Posted 25 November 2014 - 12:34 AM
Each of those things requires a custom GUI - on top of the ones turtles already have. Do-able, sure, but it's more work.
Personally I kinda like the idea of a turtle being able to read disks in its inventory if it has a disk drive equipped. My main problem with the idea is, then what do you do with them? Turtle displays are too small for many scripts to be worth running, and turtles also can't interface with wired modems, limiting their peripheral usage dramatically. I'm fairly curious as to what you've got in mind.
Whereas if you want to make a bunch of disks available to a regular computer, that's already easy: link up a bunch of disk drives via wired modems. You can even have multiple computers access those drives at the same time.
Personally I kinda like the idea of a turtle being able to read disks in its inventory if it has a disk drive equipped. My main problem with the idea is, then what do you do with them? Turtle displays are too small for many scripts to be worth running, and turtles also can't interface with wired modems, limiting their peripheral usage dramatically. I'm fairly curious as to what you've got in mind.
Whereas if you want to make a bunch of disks available to a regular computer, that's already easy: link up a bunch of disk drives via wired modems. You can even have multiple computers access those drives at the same time.
Posted 25 November 2014 - 03:03 PM
You do not need custom GUI for slot in turtle upgrade.
Turtle access is enough.
No need for player access.
Turtle access is enough.
No need for player access.
Posted 26 November 2014 - 12:35 AM
In that case, I have no idea what you mean by "slot in turtle upgrade".
Posted 26 November 2014 - 12:42 AM
I'm assuming he means an internal slot that cannot be accessed by the player, the turtle could use turtle.transferTo( "disk" ) to move the disk to that slot. This is a really bad idea, because of the potential for malicious code to become impossible to remove.
Posted 26 November 2014 - 01:37 AM
I'm assuming he means an internal slot that cannot be accessed by the player, the turtle could use turtle.transferTo( "disk" ) to move the disk to that slot. This is a really bad idea, because of the potential for malicious code to become impossible to remove.
This was why my initial suggestion relied on disks in the inventory. They can be easily removed
Posted 02 December 2014 - 08:17 AM
Yes, exactly that.I'm assuming he means an internal slot that cannot be accessed by the player, the turtle could use turtle.transferTo( "disk" ) to move the disk to that slot. This is a really bad idea, because of the potential for malicious code to become impossible to remove.
Do you mean malicious code which hang the Turtle so command to transfer item from slot could not be executed? Break Turtle to drop all items to the world. Or recode your Turtle.
Posted 10 December 2014 - 03:29 PM
Destroying the turtle should never be neccesary. Recoding can be made impossible- a program titled "startup" will run whenever you try to turn the computer on or reboot it, preventing you from accessing the shell and the edit command, and the "Terminate" event can be intercepted with os.pullEventRaw().
Posted 10 December 2014 - 03:37 PM
Destroying the turtle should never be neccesary. Recoding can be made impossible- a program titled "startup" will run whenever you try to turn the computer on or reboot it, preventing you from accessing the shell and the edit command, and the "Terminate" event can be intercepted with os.pullEventRaw().
*adds blank startup to disk*
*places disk drive next to computer and places disk in it*
*holds control + R until computer reboots*
*has full access to everything*