Jump to content




Scanner


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

#1 Jasonfran

  • Members
  • 148 posts
  • LocationEngland

Posted 22 September 2012 - 07:09 PM

Now that printers have been released in 1.4.2 I think there should be a scanner which can scan the text on a inserted piece of paper and save it as a string.

This would be useful as a ticketing system and would also encourage people to create advanced ticketing systems that cannot be forged using other people's printers. I think that would be a fun thing to do and could also act as money on a multiplayer server.


Functions there should be:

scanner.getText() - returns a string

scanner.eject() - ejects paper

scanner.isScanning() - returns true if there is paper already inside the machine, else false

scanner.lines() - returns the amount of lines on the piece of paper

Let me know what you think :P/>

#2 Jan

  • Members
  • 141 posts
  • Locationthe Netherlands

Posted 22 September 2012 - 08:22 PM

Oh no... this topic will be similair to that large discussion 'turtles should read signs'. But this time with paper...

#3 sjele

  • Members
  • 334 posts
  • LocationSomewhere on the planet called earth

Posted 22 September 2012 - 08:35 PM

Anyways since this dosent involve turtles it could work. Scanners are not blind like turtles :P/>

#4 OmegaVest

  • Members
  • 436 posts

Posted 28 September 2012 - 03:14 PM

I doubt this will become a discussion on that scale. But, yeah, I can see this being useful, as I myself thought this would be good to have while playing around with printers. Mostly after I found out you can print programs. I thought it would be interesting to have a program printed out, then sent (like with forestry mail), then scanned in. You can, of course, do this with disks much easier, but for what I was building at the time, a scanner would have been preferable.

Furthermore, I like the idea of, say, putting a row of characters that act as a pass code. Easy to hack, of course. But then, disks are not much better, and these could be disposable. Like an automated ticket booth.

#5 Cranium

    Ninja Scripter

  • Moderators
  • 4,031 posts
  • LocationLincoln, Nebraska

Posted 28 September 2012 - 05:28 PM

Also, tickets make more sense of being paper than a floppy disk...

#6 GopherAtl

  • Members
  • 888 posts

Posted 29 September 2012 - 02:47 AM

To me, scanners made a lot more sense for the pixel printers in CCPrinters, since they could scan maps. Only being able to scan in text that was printed in the first place seems of very limited value by comparison...

#7 Cranium

    Ninja Scripter

  • Moderators
  • 4,031 posts
  • LocationLincoln, Nebraska

Posted 01 October 2012 - 04:08 PM

But you could make barcodes like this:
| || |||  | || |  || |
| || |||  | || |  || |
And have it be read by the scanner.

#8 OmegaVest

  • Members
  • 436 posts

Posted 01 October 2012 - 05:21 PM

Actually, that's not a bad usage, Cranium. I can kinda see how that would go.

scanner = peripheral.wrap("right")
tPage = scanner.getText()
sCode = tPage[4]
iCode
for i = #sCode, 1, -1 do
   bintar = #sCode - i +1
   if string.sub(sCode, i, i) ~= " " then
      iCode = iCode + 2^bintar
   end
end

Then, do whatever. And with this, it can literally be any character that you want, not just a barcode, but a keycard, analog mock magstrip, QR code, etc.

#9 Cranium

    Ninja Scripter

  • Moderators
  • 4,031 posts
  • LocationLincoln, Nebraska

Posted 01 October 2012 - 07:04 PM

O.O
QR codes, you say?
hmm.......

#10 BigSHinyToys

  • Members
  • 1,001 posts

Posted 01 October 2012 - 10:23 PM

computer + rednet + printer + scanner = FAX machine

I like this idea +1

#11 Cranium

    Ninja Scripter

  • Moderators
  • 4,031 posts
  • LocationLincoln, Nebraska

Posted 01 October 2012 - 10:43 PM

:)/> :(/> :P/> ;)/> :D/> :D/> :D/> :D/> :)/> :)/>
I had not thought about that til just now!
We gotta convice dan200 and Cloudy to add this! It fits so well into ComputerCraft!

#12 Orwell

    Self-Destructive

  • Members
  • 1,091 posts

Posted 01 October 2012 - 11:09 PM

View PostJasonfran, on 22 September 2012 - 07:09 PM, said:

Now that printers have been released in 1.4.2 I think there should be a scanner which can scan the text on a inserted piece of paper and save it as a string.

This would be useful as a ticketing system and would also encourage people to create advanced ticketing systems that cannot be forged using other people's printers. I think that would be a fun thing to do and could also act as money on a multiplayer server.


Functions there should be:

scanner.getText() - returns a string

scanner.eject() - ejects paper

scanner.isScanning() - returns true if there is paper already inside the machine, else false

scanner.lines() - returns the amount of lines on the piece of paper

Let me know what you think :)/>

And what about the color of each character?

#13 Cranium

    Ninja Scripter

  • Moderators
  • 4,031 posts
  • LocationLincoln, Nebraska

Posted 01 October 2012 - 11:59 PM

We might have to have two scanners then, or something like we already have with turtle upgrades with a color peripheral? But I think that the scanners should be just black and white, rather than colored. It would make things so much easier to code for.

#14 BigSHinyToys

  • Members
  • 1,001 posts

Posted 02 October 2012 - 12:10 AM

something like this could work for color and char data
scan.loadpage()
local max_row_number,max_column_number = scan.getPageSize()
local page = {}
for row = 1,max_row_number do
page[row] = {}
for column = 1,max_column_number do
  page[row][column] = {}
  scan.selectPos(row,collom)
  page[row][column].char = scan.char()
  page[row][column].color = scan.color()
end
end


#15 JJRcop

  • Members
  • 131 posts

Posted 02 October 2012 - 01:24 AM

Yes, this is absolutely necessary, a must have!

#16 BrolofTheViking

  • Members
  • 55 posts

Posted 02 October 2012 - 07:29 PM

This... is interesting. Very interesting... I like this idea.

#17 wilcomega

  • Members
  • 466 posts
  • LocationHolland

Posted 03 October 2012 - 02:12 PM

i argree, we gotta bug dan and cloudy about this :(/>

#18 Aquilamo

  • Members
  • 24 posts
  • LocationShanghai

Posted 09 October 2012 - 10:32 AM

If there was a scanner, I might actually be able to build a massive database using paper. Saving data has always been an issue for me in computercraft...
Along with a camera turtle (like from CameraCraft mod) I could record anything, muahahahahahah!

#19 JJRcop

  • Members
  • 131 posts

Posted 09 October 2012 - 07:43 PM

I imagine database backups with paper and scanners.

#20 CastleMan2000

  • Members
  • 195 posts
  • LocationThe trashcan where all Undertale trash is

Posted 10 October 2012 - 12:25 AM

I like this idea. :P/> I think it could be VERY useful, like if you had an email system between, say, two cities. There would be local mail servers in both cities, and anything addressed to the other city would be printed out, sent over storage carts delivered daily, and scanned into the server at the other end.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users