This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
CuperCupu's profile picture

[LIB] cLib (Cuper's Library)

Started by CuperCupu, 03 August 2012 - 04:04 PM
CuperCupu #1
Posted 03 August 2012 - 06:04 PM
Hello, This is a library for some useful function.

version 1.2

There are some documentation in it. Please note that the documentation is not really clear.

Please post any question related to the library here.

Features:
Spoiler-Key listener!
-Create text with alignment(or coordinate)
-Creating vertical/horizontal border with specified symbol
-Make a cinematic Screen Clearing!
-Wait function, same as sleep() (but for some reason sleep has somekind of time limit)
-Creating a menu! An example inside!(Please note this is not complete yet, still some bug but is useable)
-Get the longest string in an array
-Read a file,return string, lines(arrays)
-Save string or lines(arrays) to a file!
-Add a new line(string) or lines(arrays) to a file!
-Capitalize a string

Installation:
Spoiler-Download file, link below.(Rightclick, save file as)
-Open modsComputerCraftluaromapis
-Copy & Paste the "cLib" into "apis"

Planned feature:
Spoiler-Scrolling menu and Vertical menu

Changelog:
Spoilerv1.2:
Spoiler-Added getVersion() function for developer to make a compatibility for their program
-Added scrolling menu
-Added ajustable menu height, front and back symbol of selector
-Added capitalize function
v1.1:
Spoiler-Fixed key listener
-Added a round function

Programs that use this library:
Spoiler(Post a link to your programs thread and what version do you use!)
-cSnake(1.2)
-Fileshare(1.0)

Download

Spoiler
Feel free to post any feedback!
Feel free to open the file and read documentation and learn or use!
Feel free to give reputation point if this library help you
KingMachine #2
Posted 04 August 2012 - 04:54 AM
If you add big numbers I'll love you forever.
CuperCupu #3
Posted 04 August 2012 - 10:14 AM
If you add big numbers I'll love you forever.

What do you mean by "big numbers"?
KingMachine #4
Posted 04 August 2012 - 06:36 PM
What do you mean by "big numbers"?
It's a type of library that allows larger numbers than the memory can store. (used for encryption because of the massive prime numbers required to do the algorithms without worrying about getting cracked)
CuperCupu #5
Posted 04 August 2012 - 06:46 PM
What do you mean by "big numbers"?
It's a type of library that allows larger numbers than the memory can store. (used for encryption because of the massive prime numbers required to do the algorithms without worrying about getting cracked)

so you mean that you can use the library to store a bigger value where you can also do sum in it?
KingMachine #6
Posted 04 August 2012 - 06:52 PM
yeah, basically. But other arithmetic as well.
CuperCupu #7
Posted 04 August 2012 - 08:03 PM
yeah, basically. But other arithmetic as well.

Wow, that would be hard at all… but I will do my best.(I'm not a pro in programming)
MetalZero285 #8
Posted 04 August 2012 - 11:18 PM
How do I get this to work
CuperCupu #9
Posted 05 August 2012 - 04:05 AM
How do I get this to work

What do you mean? Intallation? or how to use it?