SRL Archive - Misc. Links and Programs

FreeRice.com words database


Freddy1990

2009-05-13 19:55:00

Hi there,

Most of you know FreeRice.com, you click the right answer, people get free rice :)

Harry wrote a script for it which guesses the answers… (http://www.villavu.com/forum/showthread.php?t=26003)

Now if anyone would be interested in taking that further by writing a SCAR script/program to actually click the right answers… I recently revamped my bot for it, it now stores it's answers database online, so you can view them here (note the list is constantly growing): http://freddy1990.com/freerice.php?html=enabled

For easy parsing: http://freddy1990.com/freerice.php

Once that database is complete i might get it started on different topics as well, we'll see, have fun ;)

Frt

2009-05-13 20:15:02

Well, giving it a try but loading font doesn't work :(
function LoadFont(Bold: Boolean): Integer;
begin
Result := LoadCharsFromFont2('Verdana', 12, Bold, False, False, False); // Line 6
end;

[Runtime Error] : Exception: Access violation at address 00720BB7 in module 'scar.exe'. Read of address 00000000 in line 6 in script

Freddy1990

2009-05-13 20:23:38

From: Frt
Well, giving it a try but loading font doesn't work :(
function LoadFont(Bold: Boolean): Integer;
begin
Result := LoadCharsFromFont2('Verdana', 12, Bold, False, False, False); // Line 6
end;

[Runtime Error] : Exception: Access violation at address 00720BB7 in module 'scar.exe'. Read of address 00000000 in line 6 in script


Font loading doesn't work for Windows Vista

(Donated 700K rice since yesterday, lol)

Frt

2009-05-13 20:26:40

Aw.
Then how'll I read the words?

Hugolord

2009-05-13 20:27:09

Yeah I tried asking people for help on the font part in scar but no one answered so I gave up lol xD
( I was originally gonna make a script for the site freepoverty.com (I know the name sounds funny lulz) )

Freddy1990

2009-05-13 20:28:21

From: Frt
Aw.
Then how'll I read the words?


Hmm, I can dump the font chars if you want :)

Frt

2009-05-13 20:30:32

From: Freddy1990
Hmm, I can dump the font chars if you want :)


Sounds great :D

Freddy1990

2009-05-13 20:46:37

From: Frt
Sounds great :D


There you go, regular and bold fonts:
http://freddy1990.com/files/FreeRice.rar

You can use my database to get the correct answer, and well, if it doesn't contain the answer, just guess i suppose :) The databse is still growing, it's not reached 1/3th of the total amount of solutions yet :p But it keeps going :)

Frt

2009-05-13 21:19:34

function ReadWord: String;
var
F: Integer;
begin
F := LoadChars2('C:\Users\Frederik\Documents\FreeRice\Bold\');
Result := GetTextAtEx(198, 165, 10, F, False, False, 0, 2, 0, 100, False, tr_SmallLetters);
end;

Doesn't find the text. Tried picking exact color and changing coordinates around.
Does however find alot of &'s.

Freddy1990

2009-05-13 22:14:47

Try:
Result := GetTextAtEx(752, 187, 10, Font, False, False, 0, 2, 2302755, 100, False, tr_SmallLetters);

EDIT: With your coordinates of course

Frt

2009-05-13 22:29:10

function ReadWord: String;
var
F, i, x, y: Integer;
begin
F := LoadChars2('C:\Users\Frederik\Documents\FreeRice\Bold\');
x := 370;
y := 330;
while (y < 360) do
begin
Inc(x);
if (x > 400) then
begin
Inc(y);
x := 370;
end;
Writeln(IntToStr(x) + ', ' + IntToStr(y) + ' - ' + GetTextAtEx(x, y, 10, F, False, False, 0, 2, 2302755, 100, False, tr_SmallLetters));
end;
end;

Used this trying to find the correct coords.
didn't find anything.

nielsie95

2009-05-13 22:33:48

Just a small note: make sure you free the chars :)

Freddy1990

2009-05-13 22:37:17

Hmm, it works fine for me… Select the bold word, use the colorpicker to get the coordinate of the most top-left pixel of the selection, then try that as coordinates

EDIT: The database has pretty much reached it's full size, it's a few answers over 12000 now, finding new ones occurs almost never, my bot just ran trough 6500 questions without getting 1 wrong

Rich

2009-05-15 19:49:16

Freddy, fancy posting the bot?

Freddy1990

2009-05-15 19:58:35

From: R1ch
Freddy, fancy posting the bot?


Posting it would be too destructive to the project…

EvilChicken!

2009-05-15 20:12:25

Freddy, you do know that FreeRice by all probabilities is a scam site?

Freddy1990

2009-05-15 20:34:54

From: EvilChicken!
Freddy, you do know that FreeRice by all probabilities is a scam site?


WFP wouldn't lie… http://www.wfp.org/videos/free-rice-new

nielsie95

2009-05-16 18:52:36

From: Freddy1990
Posting it would be too destructive to the project…


If you mean it would be too destructive for FreeRice, you should google "FreeRice bot". There are a lot of (multithreaded) bots with very high accuracy. One more doesn't hurt?

Home

2009-05-17 04:09:58

Well just use Greasemonkey Script:
http://userscripts.org/scripts/show/30857

It will make fake answers = Loads of rice ;)


~Home

grimey

2009-05-17 13:16:59

From: Freddy1990
Try:
Result := GetTextAtEx(752, 187, 10, Font, False, False, 0, 2, 2302755, 100, False, tr_SmallLetters);

EDIT: With your coordinates of course


doesnt the 'Font' param have to be an integer?

Result := GetTextAtEx(752, 187, 10, Font, False, False, 0, 2, 2302755, 100, False, tr_SmallLetters);

are there like font codes?

Freddy1990

2009-05-17 13:27:21

Font is an integer variable

Mystic

2009-05-17 13:49:15

Now using scar to give people free rice! Awesome there should be more sites like that out there. Great idea freddy!

nielsie95

2009-05-17 15:51:12

From: Home
Well just use Greasemonkey Script:
http://userscripts.org/scripts/show/30857

It will make fake answers = Loads of rice ;)


~Home


That's a pretty smart solution he used :p

Home

2009-05-18 00:47:23

From: nielsie95
That's a pretty smart solution he used :p


Woah, a smart word from Niels (: ( I'm proud (: ) Well ye, it's dam fast and ye it works :D


~Home

Freddy1990

2009-05-18 01:32:39

Meh, I still think my huge database is cool :p

Harry

2009-05-18 01:42:09

From: Home
Well just use Greasemonkey Script:
http://userscripts.org/scripts/show/30857

It will make fake answers = Loads of rice ;)


~Home

Compiled it into an easy .xpi to just load into Firefox, no Greasemonkey needed :)
http://www.mediafire.com/download.php?k52tkjrgyyz

Home

2009-05-18 02:58:26

From: Harry
Compiled it into an easy .xpi to just load into Firefox, no Greasemonkey needed :)
http://www.mediafire.com/download.php?k52tkjrgyyz


Thanks man (:


~Home


EDIT: And this is even faster :D

Harry

2009-05-18 04:25:26

From: Home
Thanks man (:


~Home


EDIT: And this is even faster :D

Enjoy :D

Also, lol, overflow errors for the win.

Home

2009-05-18 12:48:05

Well i hope that now people will get something to eat (:
There you go my result ( Bon Appetit ! )





Your friend,
~Home :)

Dart

2009-05-19 01:10:04

I made a wrote a bot for this in VB.Net :P Shared it with another site and overall we got around 1.5m grains. Still getting more :P If someone were to find out the questions/answers then i could update it quite easily and release a version here.

Laur€ns

2009-05-19 18:09:44

How do you turn that thing on?

nielsie95

2009-05-19 19:57:57

Looks like the database is pretty accurate:


[-=-=-=-=-=-=- [URL="http://www.villavu.com/forum/showthread.php?p=571010#post571010"]Niels95's Rice Donator[/URL] -=-=-=-=-=-=-]
You have been donating for 1 hours, 16 minutes and 39 seconds
You have answered 10510 questions
You have donated 105100 grains of rice
Accuracy: 100%

:)

Shuttleu

2009-06-02 01:16:28

yes indeed the database is accurate :)
http://villavu.com/forum/showpost.php?p=573732&postcount=49

~shut