Jump to content




DiskLabeler, no anvil required.


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

#1 Ugion

  • New Members
  • 2 posts

Posted 16 July 2014 - 07:44 AM

I was playing with a friend and messing around with computercraft, we were using anvils to label our disks, and having not used lua in a long time, i decided to start with something simple after some debugging and googling i had it working, and later changed it over to arguments instead of read().

Usage:

disklabeler (orientation) (label)

(remove the parenthesis)

Installation:

pastebin get 7E4hu7YP disklabeler

Edited by Ugion, 17 July 2014 - 08:05 AM.


#2 Saldor010

  • Members
  • 467 posts
  • LocationThe United States

Posted 16 July 2014 - 07:43 PM

can't you do the same thing (and save you 2 seconds) by using the "label" program?

#3 wilcomega

  • Members
  • 466 posts
  • LocationHolland

Posted 16 July 2014 - 08:52 PM

View PostJiloacom, on 16 July 2014 - 07:43 PM, said:

can't you do the same thing (and save you 2 seconds) by using the "label" program?
true

#4 Ugion

  • New Members
  • 2 posts

Posted 17 July 2014 - 08:07 AM

View PostJiloacom, on 16 July 2014 - 07:43 PM, said:

can't you do the same thing (and save you 2 seconds) by using the "label" program?
This was meant to be a program to get me back in the groove after a lot of time away from lua. It doesn't make work more simple or anything like that.

#5 Saldor010

  • Members
  • 467 posts
  • LocationThe United States

Posted 17 July 2014 - 03:13 PM

View PostUgion, on 17 July 2014 - 08:07 AM, said:

View PostJiloacom, on 16 July 2014 - 07:43 PM, said:

can't you do the same thing (and save you 2 seconds) by using the "label" program?
This was meant to be a program to get me back in the groove after a lot of time away from lua. It doesn't make work more simple or anything like that.

Well, if it was mostly just for practice. ;)

#6 Geforce Fan

  • Members
  • 846 posts
  • LocationMissouri, United States, America, Earth, Solar System, Milky Way, Universe 42B, Life Street, Multiverse, 4th Dimension

Posted 04 August 2014 - 03:02 AM

View PostUgion, on 17 July 2014 - 08:07 AM, said:

View PostJiloacom, on 16 July 2014 - 07:43 PM, said:

can't you do the same thing (and save you 2 seconds) by using the "label" program?
This was meant to be a program to get me back in the groove after a lot of time away from lua. It doesn't make work more simple or anything like that.
you don't have to release every program, you know.

#7 secret6timb1

  • Members
  • 78 posts

Posted 08 August 2014 - 11:51 PM

label set disk disknamehere <--- something like that

don't even need lua.

Edited by secret6timb1, 08 August 2014 - 11:52 PM.


#8 TheOddByte

    Lazy Coder

  • Members
  • 1,607 posts
  • LocationSweden

Posted 13 August 2014 - 09:47 PM

I must just say this, your indentation is horrible O.O
Read this

And here's a suggestion, you should add so that it checks if the one who uses it has entered all arguments needed

#9 RickiHN

  • Members
  • 15 posts

Posted 16 August 2014 - 04:43 PM

View Postsecret6timb1, on 08 August 2014 - 11:51 PM, said:

label set disk disknamehere <--- something like that

don't even need lua.

That would actually just name the computer "disk disknamehere".
You would have to run the disk.setLabel() to label disks to the best of my knowledge. For that reason I actually wrote a similar program when I had to label a lot of disks to make it all easier:

http://pastebin.com/XCsgdpJk

It will automatically detect any adjacent disk drives, so just run it as "programname disklabel".

#10 Win7yes

  • Members
  • 110 posts

Posted 16 August 2014 - 05:41 PM

label set disk "This Is The Name"
Let me explain it slowly:
label(Program wich is ran) set(Argument used to set the label) disk(If this is the name of a disk drive, it will use the disk drive and label the floppy in it) Asdfg(Name. If it has spaces it can be enclosed in quotes ("Name asdasda"))

#11 RickiHN

  • Members
  • 15 posts

Posted 16 August 2014 - 05:54 PM

View PostWin7yes, on 16 August 2014 - 05:41 PM, said:

label set disk "This Is The Name"
Let me explain it slowly:
label(Program wich is ran) set(Argument used to set the label) disk(If this is the name of a disk drive, it will use the disk drive and label the floppy in it) Asdfg(Name. If it has spaces it can be enclosed in quotes ("Name asdasda"))

Ahh right the "disk" is not not an argument for the label program, but in fact the direction/network address of the Disk Drive.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users