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

Googol - More Than Just a Search Engine

Started by Imgoodisher, 01 March 2013 - 09:18 AM
Imgoodisher #1
Posted 01 March 2013 - 10:18 AM


Version 1.1


Features:
  • Search Engine that searches:
    • CC Forums
    • CC Wiki
    • Firewolf Sites
    • Googol Accounts
    • Thunderbird Accounts
  • Uploading/Downloading/Searching Games
  • Accounts
  • Monetary System (Money!!!)
  • Googol API
Screenshots:
Spoiler
Search Engine Home Screen


Search Screen


Googol Game


Login Screen


Searching Games


Options

API Documentation:
SpoilerStill a WIP, I'll add descriptions later
Drawing


googol.twrite(str)


color = googol.toColor(tag)


tag = googol.toTextTag(tag)
tag = googol.toBackgroundTag(tag)

Buttons


googol.buttons


id = googol.newButton(xmin, ymin, xmax, ymax, text, onClick, id)


googol.drawButtons()


results = googol.buttonClick(x, y, key)


googol.runButtons()

Googol Accounts


googol.accounts.loggedin
googol.accounts.username
googol.accounts.password


vaild = googol.accounts.login(username, password)


googol.accounts.logout()


googol.accounts.register(username, password)


username, password = googol.accounts.loginscreen()


username, password = googol.accounts.registerscreen()


results = googol.accounts.search(search_term)

Configuration


googol.loadConfig(path, defaults)


googol.saveConfig(path, data)

Googol Cash


googol.cash.balance(username)


ok, from_balance, to_balance = googol.cash.transfer(from_username, from_password, to_username, amount)

Misc. Functions


googol.searchMenu(results, onClick, bgtag, text1, text2, page1, page2, extra)


googol.modRead( wid, starttext, _sReplaceChar, _tHistory )

Note: To access options (and exit googol) click on the Googol logo in the header

About Security: Passwords are hashed (SHA-256) before being sent to the php server, then hashed again (SHA-512) with salt before being stored in the sql database.

Download:

pastebin get EmssRF7b googol

Note: You may use this in your programs as long as you give me credit

P.S. Whoever finds the value of the secret variable gets a cookie!
CastleMan2000 #2
Posted 01 March 2013 - 10:21 AM
Wow. This sounds amazing!
Left4Cake #3
Posted 01 March 2013 - 10:43 AM
You should add uploading and downloading programs too. Not that is much different the games but I would be nice to be able to upload everything.
Imgoodisher #4
Posted 01 March 2013 - 11:32 AM
You should add uploading and downloading programs too. Not that is much different the games but I would be nice to be able to upload everything.

That's a good idea. I'll probably do that at some point
nateracecar5 #5
Posted 01 March 2013 - 11:53 AM
It would be pretty easy. It won't take long unless you plan to do mouse input
Imgoodisher #6
Posted 01 March 2013 - 11:55 AM
It would be pretty easy. It won't take long unless you plan to do mouse input
Actually, with my api it would be rather simple to do it with mouse input. In fact, I could probably use most of the googol game code
theoriginalbit #7
Posted 01 March 2013 - 03:00 PM
Yay this is released! I played with it on the ShadowKat server. its so awesome! :D/>
oeed #8
Posted 01 March 2013 - 03:42 PM
I'm getting an error, 47: attempt to index ? (a nil value)
Zaggy1024 #9
Posted 01 March 2013 - 05:10 PM
I'm getting an error, 47: attempt to index ? (a nil value)

Same here. Btw, the error is on the pastebin file, and happens after it downloads some (maybe all of the) files.
AnDwHaT5 #10
Posted 01 March 2013 - 05:27 PM
… sounds very cool… i want to say something smart but i just cant gol out there and say it…

see what i did there?

Btw this looks awesome i will look at it latter!
GravityScore #11
Posted 01 March 2013 - 06:09 PM
I'm getting an error, 47: attempt to index ? (a nil value)

Same here. Btw, the error is on the pastebin file, and happens after it downloads some (maybe all of the) files.

Me too :(/>

It happens while downloading logo.nfp
remiX #12
Posted 01 March 2013 - 06:20 PM
When updating LibCompress.lua it errors out with io:71: not enough space to write to file.

I have 65.8gbs free…
theoriginalbit #13
Posted 01 March 2013 - 06:35 PM
When updating LibCompress.lua it errors out with io:71: not enough space to write to file.

I have 65.8gbs free…
Do you have the computers set to unlimited though? otherwise the default Computer storage space is 2MB.
Imgoodisher #14
Posted 02 March 2013 - 12:58 AM
I'm getting an error, 47: attempt to index ? (a nil value)

Same here. Btw, the error is on the pastebin file, and happens after it downloads some (maybe all of the) files.

Me too :(/>

It happens while downloading logo.nfp

Ah, I was using an old version where I made a stupid error. It checks to see if '/.googol' exists to make '/.googol/media'. Fixing it now
Mendax #15
Posted 02 March 2013 - 01:08 AM
Nice! Good to see it finished! I'm just working on some stuff of my own at the moment. :)/>
Left4Cake #16
Posted 02 March 2013 - 04:05 AM
Any change you could also make this search the Minecraft wiki as well?
remiX #17
Posted 02 March 2013 - 06:32 AM
Wow, this is awesome work :P/> Finds everything and anything!
svdragster #18
Posted 02 March 2013 - 07:56 AM
Cool! How's that game thingy working?
Imgoodisher #19
Posted 02 March 2013 - 09:43 AM
Any change you could also make this search the Minecraft wiki as well?
That's not a bad idea.. I might do that soon, but I have a lot of stuff planned for this

Cool! How's that game thingy working?
Well when you upload a file, it is first compressed (which is what LibCompress.lua is for) then sent to a php script. That php script compresses it again and puts it in a sql database.
When you download a file, a php script takes the file from the sql database, decompresses it, then gives it to the program. then the program decompresses it again and saves it in the games dir

Also, I'm thinking of adding/replaceing googol game with Googol Code. It will be just like googol game, except for all programs, not just games. My question is should I keep googol game or replace it?
CastleMan2000 #20
Posted 02 March 2013 - 10:36 AM
IMO, you should replace it.
AnthonyD98™ #21
Posted 02 March 2013 - 10:48 AM
Wow! This is cool!
ETHANATOR360 #22
Posted 02 March 2013 - 02:30 PM
this is pretty sweet cant wait to see if it gets bigger
EDIT: does this auto install the API?
Imgoodisher #23
Posted 02 March 2013 - 02:41 PM
this is pretty sweet cant wait to see if it gets bigger
EDIT: does this auto install the API?
It will get bigger. I have a lot of ideas for it
Yes, the programs need the API to run though you can use it for your programs too
CastleMan2000 #24
Posted 03 March 2013 - 07:56 AM
Alright, just used it, and it's great. If there's two things I want, it's scrolling threads on the CC forums, and working spoilers. Awesome though!
ETHANATOR360 #25
Posted 03 March 2013 - 07:59 AM
I might have to make bling (bing) to give you some competition :P/>
TheOddByte #26
Posted 04 March 2013 - 03:32 AM
Absolutely amazing.
Found a bug though.
It's when I've created an account and then I try to upload something,
It says: ERROR: Invalid Username/Password
Should'nt it do that directly when I try to login
Since I thought the login was successful since it did'nt error at first.
D3matt #27
Posted 04 March 2013 - 05:56 AM
Oh god, it's here!
Imgoodisher #28
Posted 04 March 2013 - 09:06 AM
Absolutely amazing.
Found a bug though.
It's when I've created an account and then I try to upload something,
It says: ERROR: Invalid Username/Password
Should'nt it do that directly when I try to login
Since I thought the login was successful since it did'nt error at first.

Should be fixed now. Forgot to hash the password the first time

EDIT:
New update!

Added:
- Googol Cash

Basically a simple money system. use

googol.cash.balance(username)
to get a users balance or

ok, from_balance, to_balance = googol.cash.transfer(
	 from_username,
	 from_password,
	 to_username,
	 amount)
to send money to someone else. from and to are googol accounts.

… or just use the app for it
SuicidalSTDz #29
Posted 06 March 2013 - 01:55 PM
About time to see something other than a door lock or a "noob" OS. I'll be closely following this thread ;)/>
TheOddByte #30
Posted 07 March 2013 - 04:13 AM
@Imgoodisher
What's money good for in this?
Had 100$ :3
TheOddByte #31
Posted 07 March 2013 - 04:45 AM
Have detected two more bugs..
1.

This is when I click 'Downloaded' and I haven't dowloaded
Anything from Games


2.

This is when I press 'PAY' and don't fill
out the forms
TheOddByte #32
Posted 07 March 2013 - 04:50 AM
Both of 'em give an error and then return to search..
Btw I meant to write 'Done'
Imgoodisher #33
Posted 07 March 2013 - 11:13 AM
@Imgoodisher
What's money good for in this?
Had 100$ :3

The money is made to be used as currency on servers. I may add paid games on googol game. Not sure if that is a good idea though.

Have detected two more bugs..
1.

This is when I click 'Downloaded' and I haven't dowloaded
Anything from Games


2.

This is when I press 'PAY' and don't fill
out the forms

Should be fixed now
TheOddByte #34
Posted 08 March 2013 - 09:42 AM
And one question.
I've uploaded my Game Boxer Tournament, And I uploaded it as Boxer..
Get no results when searching..
Imgoodisher #35
Posted 08 March 2013 - 09:55 AM
And one question.
I've uploaded my Game Boxer Tournament, And I uploaded it as Boxer..
Get no results when searching..

It's not in the sql database… I tried uploading a game again and it worked fine. What appeared on the screen after you clicked done? It should say 'Game Created'
TheOddByte #36
Posted 08 March 2013 - 10:40 AM
Well it says 'Game Created' and it still does'nt work..
I'm uploading this from my account Hellkid98.. Are anyone else having this problem?
SuicidalSTDz #37
Posted 08 March 2013 - 10:41 AM
Well it says 'Game Created' and it still does'nt work..
I'm uploading this from my account Hellkid98.. Are anyone else having this problem?
Working fine for me! (Such a nice program)
TheOddByte #38
Posted 08 March 2013 - 10:45 AM
How does the cash increase?
Since suddenly I have 101$..

EDIT: Noticed that CastleMan2000 sent me 1$
And the bug when pressing 'Downloaded' isn't fixed.
Spoiler
Imgoodisher #39
Posted 08 March 2013 - 12:15 PM
How does the cash increase?
Since suddenly I have 101$..

EDIT: Noticed that CastleMan2000 sent me 1$
And the bug when pressing 'Downloaded' isn't fixed.
Spoiler

Huh… I can't seem to get this error when I'm testing. I added another check anyways just to make sure.

On another note, I replaced Googol Game with Googol Code. It's just a cosmetic change; everything should work the same.
Heracles421 #40
Posted 08 March 2013 - 02:13 PM
Hmm, can I join this with CCiri to make a powerful search engine? You'll get credit
Imgoodisher #41
Posted 08 March 2013 - 02:43 PM
Hmm, can I join this with CCiri to make a powerful search engine? You'll get credit

Go ahead!
Northfleet #42
Posted 14 March 2013 - 06:55 AM
So how does the money system work?
Imgoodisher #43
Posted 14 March 2013 - 09:22 AM
So how does the money system work?

The money is stored on a sql database. The money is transferred from one person to another with a php script. It pretty much subtracts the amount from the person the money is coming from and adds the amount to the person the money is going to.
Left4Cake #44
Posted 19 March 2013 - 08:40 AM
Where dose the money come from, and how would someone earn it.
Imgoodisher #45
Posted 19 March 2013 - 11:20 AM
Where dose the money come from, and how would someone earn it.

You start out with $100 and you have to get money from other people. It may not be the best system, but I don't have any better ideas.
SuicidalSTDz #46
Posted 19 March 2013 - 11:36 AM
Where dose the money come from, and how would someone earn it.

You start out with $100 and you have to get money from other people. It may not be the best system, but I don't have any better ideas.
Maybe get a dollar every time you make a download in Googol? Obviously make it so they can't just spam it..
spyman68 #47
Posted 20 March 2013 - 06:11 AM
Can I use this in my little Web Hub? It's called Interwebs Web Hub
Imgoodisher #48
Posted 20 March 2013 - 08:38 AM
Can I use this in my little Web Hub? It's called Interwebs Web Hub

Sure, just make sure to give me credit
Geforce Fan #49
Posted 10 April 2013 - 12:51 PM
This is awesome.
kintick #50
Posted 10 April 2013 - 10:48 PM
looks very nice, however i cannot get the downloader working, all it says is:

googol:47: attempt to index ? (a nil value)

EDIT: seems to work when I use the pastebin (in minecraft) link however i'd like to have a local copy in my programs folder…

nice work though!
GeniusName3 #51
Posted 12 April 2013 - 04:17 PM
I like this,it's really cool
jesusthekiller #52
Posted 14 April 2013 - 09:31 AM
Hey, nice project :)/>

You might want to integrate it with pacman (It's a package manager for CC, I'm currently working on it, 2/3 of CC client to be done), so it can search pacman for packages? Pacman's API function for all packages available via http api here: "http://mindblow.no-i...pi/get_list.php". It writes one package name in each line.

Pacman itself: mindblow.no-ip.org/pacman

If you are interested in doing this, PM me :)/>
jakejakey #53
Posted 08 November 2015 - 12:37 AM
Aww, sad that it doesn't work. I do know what the problem is. I'm sad that I discovered this after it broke.

The problem is that 000webhost had security issues, it's hosted there. so it thinks that the 000webhost html code is new updates so
it downloads it, then it errors when it trys to reboot itself, because CC obviously doesn't run HTML like a program.

Nevertheless. this sounds awesome
Edited on 07 November 2015 - 11:37 PM