Jump to content




Scanner


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

#1 HPWebcamAble

  • Members
  • 933 posts
  • LocationWeb Development

Posted 14 March 2015 - 12:48 AM

This HAS been suggested before, but all three times that I found, the topics ended with "This is a good idea!"


And nothing has happened since.

So here is my version of the SCANNER

Crafted a bit like the printer, it has several slots to put paper (or paper that has been crafted together)
Obviously it's a peripheral

If its wrapped as 'scanner'
scanner.newPage() --#> draws a new page into the scanner's 'current slot'

scanner.getPageTitle() --#> returns the name of the current page

scanner.getPageSize() --#> returns the size of the current page

scanner.getTotalPages() --#> returns the number of pages in the booklet (or 1 if its just a single page)

scanner.readAll() --#> Same as with the FS api, it returns the whole page's contense

scanner.readLine() --#> Same as with the FS api, returns a line at a time

scanner.nextPage() --#> goes to the next page of the booklet, returning true if it succeeds, false if you are on the last page already. readLine could do it automatically

scanner.endPage() --#> sends the current page/pages into the output slot

Or even more fun

Use 'scanner.scanPage()' to start scanning, then use os.pullEvent() to listen for scan events, which could be a single letter, word, line, ect...
The bar in the scanner could slowly move across to show its progress


I don't really know how to work color into this. Prehaps there could be a regular scanner and an advanced scanner, like computers/turtles/pda's
The advanced ones might return some kind of data that represents the color, but I'm not sure exactly what that would be

Anywho, I think it would be a really nice addition, since there isn't a way to read printed pages, or regular MC books. (The scanner could work on books too)

Edited by HPWebcamAble, 14 March 2015 - 12:50 AM.


#2 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 14 March 2015 - 03:54 AM

It has happened. There have been several Haddon mods that have added a scanner.

#3 HPWebcamAble

  • Members
  • 933 posts
  • LocationWeb Development

Posted 14 March 2015 - 05:02 AM

View Posttheoriginalbit, on 14 March 2015 - 03:54 AM, said:

It has happened. There have been several Haddon mods that have added a scanner.

I mean in vanilla CC

#4 MisterSanderson

  • Members
  • 11 posts

Posted 16 April 2015 - 02:38 AM

View PostHPWebcamAble, on 14 March 2015 - 12:48 AM, said:

I don't really know how to work color into this. Prehaps there could be a regular scanner and an advanced scanner, like computers/turtles/pda's
The advanced ones might return some kind of data that represents the color, but I'm not sure exactly what that would be

It's a good idea having a B/W scanner and a RGB advanced scanner.

#5 CrazedProgrammer

  • Members
  • 495 posts
  • LocationWageningen, The Netherlands

Posted 16 April 2015 - 10:49 AM

What a good idea! It would be a good way to make keycards.

#6 HPWebcamAble

  • Members
  • 933 posts
  • LocationWeb Development

Posted 16 April 2015 - 10:42 PM

View PostCrazedProgrammer, on 16 April 2015 - 10:49 AM, said:

It would be a good way to make keycards.
]

Just one of the many possiblities

I really think that this needs to be added in some form


On that note, anyone know if turtles can get the data from a page?

Edited by HPWebcamAble, 16 April 2015 - 10:42 PM.


#7 Anavrins

  • Members
  • 775 posts

Posted 17 April 2015 - 11:18 AM

View PostHPWebcamAble, on 16 April 2015 - 10:42 PM, said:

View PostCrazedProgrammer, on 16 April 2015 - 10:49 AM, said:

It would be a good way to make keycards.
]

Just one of the many possiblities

I really think that this needs to be added in some form


On that note, anyone know if turtles can get the data from a page?
I am sure the text on a page is stored in it's NBT tags.
turtle.inspect, .getItemDetails does not return NBT tags.

Edited by Anavrins, 17 April 2015 - 11:18 AM.


#8 ardera

  • Members
  • 503 posts
  • LocationGermany

Posted 17 April 2015 - 12:25 PM

View PostCrazedProgrammer, on 16 April 2015 - 10:49 AM, said:

What a good idea! It would be a good way to make keycards.
You could use floppy's for this too

#9 Dragon53535

  • Members
  • 973 posts
  • LocationIn the Matrix

Posted 17 April 2015 - 04:55 PM

View Postardera, on 17 April 2015 - 12:25 PM, said:

View PostCrazedProgrammer, on 16 April 2015 - 10:49 AM, said:

What a good idea! It would be a good way to make keycards.
You could use floppy's for this too
Not without leaving the computer vulnerable. If you were able to use books or pages as keycards, then you don't have to worry about startup disks.

#10 flaghacker

  • Members
  • 655 posts

Posted 17 April 2015 - 05:43 PM

View PostDragon53535, on 17 April 2015 - 04:55 PM, said:

View Postardera, on 17 April 2015 - 12:25 PM, said:

View PostCrazedProgrammer, on 16 April 2015 - 10:49 AM, said:

What a good idea! It would be a good way to make keycards.
You could use floppy's for this too
Not without leaving the computer vulnerable. If you were able to use books or pages as keycards, then you don't have to worry about startup disks.


You'll always have to keep at least one side of the computer visible so the user can interact with it, and anyone can put a disk drive there himself.

#11 KingofGamesYami

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

Posted 17 April 2015 - 06:03 PM

View Postflaghacker, on 17 April 2015 - 05:43 PM, said:

-snip-
You'll always have to keep at least one side of the computer visible so the user can interact with it, and anyone can put a disk drive there himself.

*ahem* monitors?

#12 flaghacker

  • Members
  • 655 posts

Posted 17 April 2015 - 06:15 PM

View PostKingofGamesYami, on 17 April 2015 - 06:03 PM, said:

View Postflaghacker, on 17 April 2015 - 05:43 PM, said:

-snip-
You'll always have to keep at least one side of the computer visible so the user can interact with it, and anyone can put a disk drive there himself.

*ahem* monitors?

*ahem* user-friendlyness :P? indeed, you could use a monitor.

#13 RolanDecoy

  • New Members
  • 1 posts

Posted 29 May 2015 - 12:11 AM

I would love to see this as well, but for different reasons; Would be great to scan items other than books / pages and get at the very least an item ID from them for a sorting / filter / counter system.

#14 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 29 May 2015 - 12:19 AM

Use turtle.inspect or turtle.getItemDetail for that.

#15 RadiationAlert

  • Members
  • 17 posts

Posted 04 June 2015 - 08:42 PM

I would love for this to be in default CC. Perhaps the crafting recipe would be identical to the printer's but the ink is replaced by an eye of ender?





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users