Jump to content




[1.21] Advert's Utilities (For Coders) + Matrix Screensaver


8 replies to this topic

#1 Advert

    Custom Title

  • Moderators
  • 459 posts
  • LocationLondon

Posted 11 February 2012 - 06:50 AM

I'll post various utility functions I come up with here; if you spot any errors/problems, have any suggestions, or need some help, post away!

lsave
Licence: MIT/x11 (no need to have the entire licence text; the two comments detailing this are sufficient; please add "modified" before "lsave" if you do modify it, though.)
What it is: Data saving utility; saves data as lua text to a file. (You can easily read and edit from the file, but it's up to you to check that the re-loaded data is acceptable)
Code (NOT api)
On pastebin (may be more up to date; forum topic = effort + breaks indentation)
Spoiler

How to use:
Spoiler
matrix screensaver

Pastebin: http://pastebin.com/ZXeRgLHt (not commented, will upon request)
-- Too lazy to detail instructions as of now.
-- Except that you can press spacebar to return nicely.

0.8:
now has some hidden messages (which you can read in the source), and updates less uniformly.
Spoiler

0.7:
Spoiler

Edited by Advert, 12 February 2012 - 12:31 AM.


#2 Espen

    Curious Explorer

  • Members
  • 708 posts

Posted 11 February 2012 - 10:59 AM

Very nice contribution, you really made an effort for ease of use.
+1 for that, keep up the good work! :D/>

#3 Advert

    Custom Title

  • Moderators
  • 459 posts
  • LocationLondon

Posted 11 February 2012 - 01:35 PM

View PostEspen, on 11 February 2012 - 10:59 AM, said:

Very nice contribution, you really made an effort for ease of use.
+1 for that, keep up the good work! :D/>

Thank you, I'll add table support, and maybe a easier how-to after I finish my current project ^_^/>


Edit: Added a matrix-style screensaver.

Edited by Advert, 11 February 2012 - 05:17 PM.


#4 Advert

    Custom Title

  • Moderators
  • 459 posts
  • LocationLondon

Posted 11 February 2012 - 09:45 PM

Updated matrix-style'd screensaved; now has some hidden messages (which you can read in the source), and updates less uniformly.

#5 Rodizipa

  • New Members
  • 11 posts

Posted 14 February 2012 - 12:18 PM

:(/> CASPER

#6 Advert

    Custom Title

  • Moderators
  • 459 posts
  • LocationLondon

Posted 14 February 2012 - 01:15 PM

View PostRodizipa, on 14 February 2012 - 12:18 PM, said:

;)/> CASPER
I see you found one of the messages :(/>

Other than that, I'm redesigning lsave later on, once I'm not busy.

#7 Rodizipa

  • New Members
  • 11 posts

Posted 14 February 2012 - 01:25 PM

an Advert, how i install the matrix ss ?

#8 Advert

    Custom Title

  • Moderators
  • 459 posts
  • LocationLondon

Posted 14 February 2012 - 01:53 PM

Grab it from pastebin, copy the code (there's a texbox with it under, you can click in and CTRL-A to select it all, then CTRL-C to copy it)
Find ".minecraft", where you can either put it on a computer, or on every computer:
For a single computer: (in .minecraft) "savesYOUR_WORLDcomputerYOUR COMPUTER ID"
For any computer: (in .minecraft) "modsComputerCraftluaromprograms"
In your selected directory (out of the two above),

make a new file and paste into it. save it as matrix-ss (no extension)

You can also save it to a disk, if you desire, just follow "For Any Computer", and instead of YOUR COMPUTER ID, use "diskYOUR DISK ID"

#9 Sithus

  • New Members
  • 3 posts

Posted 07 July 2012 - 08:07 AM

So how would I go about displaying the matrix screensaver onto a monitor screen?





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users