Bump
I have been wanting to watch this for ages and finally got the time thanks to xmas break. It went really well, except i cannot figure out where I went wrong here.
Procedure savegoldfish;
var
x, y:Integer;
begin
if FindColorsSpiralTolerance(x, y, 1137660 , 20, 37, 271, 242, 20) or
FindColorsSpiralTolerance(x, y, 554495 , 20, 37, 271, 242, 20) or
FindColorsSpiralTolerance(x, y, 936444 , 20, 37, 271, 242, 20) or
FindColorsSpiralTolerance(x, y, 1471228 , 20, 37, 271, 242, 20) then
begin
MoveMouse(x, y);
HoldMouse(x, y, 1);
MoveMouse(365, 56);
ReleaseMouse(365, 56, 1);
end
end
[Error] C:\Simba\Scripts\savefish.simba(20:38): Variable Expected at line 19
Compiling failed.
I have looked back through your script multiple times and cannot find my issue. I might be overlooking something.
Thanks!
Sorry Idk how to put it in the tags that put it in correct format for the forums.
haha i have to whole script down but when I tried to compile this is the procedure where the error happened. if FindColorsSpiralTolerance was the line with the error.You'r missing about half of the script, watch the video one more time..
program Savethegoldfish;
Procedure StartGame;
begin
MoveMouse(203, 354);
ClickMouse(203, 354, 1);
Wait(500);
MoveMouse(393, 337);
ClickMouse(393, 337, 1);
Wait(500);
MoveMouse(341, 160);
ClickMouse(341, 160, 1);
end;
Procedure savegoldfish;
var
x, y:Integer;
begin
if FindColorsSpiralTolerance(x, y, 1137660, 20, 37, 271, 242, 20) or
FindColorsSpiralTolerance(x, y, 554495, 20, 37, 271, 242, 20) or
FindColorsSpiralTolerance(x, y, 936444, 20, 37, 271, 242, 20) or
FindColorsSpiralTolerance(x, y, 1471228, 20, 37, 271, 242, 20) then
begin
MoveMouse(x, y);
HoldMouse(x, y, 1);
MoveMouse(365, 56);
ReleaseMouse(365, 56, 1);
end
end
begin
StartGame;
repeat
savegoldfish;
until (false);
end.
@GaryMan, next time please post your code in Simba tags.
Past the code, hilight it all, and then (on the forums) click the button that looks like a lion.
The problem is, you have FindColorsSpiralTolerance it needs to be FindColorSpiralTolerance
thanks, I'll try out scritping soon C:
Super helpful easy to understand. i hope you make many many more of these!
Hey Yohojo, I really learned something from this tutorial and the time has come to start scripting and watching your next tutorials..
YoHoJo
Fantastic tutorial so far, really enjoying this!
Had an issue with the slap the monkey one, I think the mouse was moving too quickly.
I was looking through this thread and spotted "Wait" - so I added that and it works fine now!
Thank you! Carrying on with the rest of the tut nowprogram spanklemonkey;
{$DEFINE SMART}
{$i srl/srl.simba}
var
x, y:Integer;
Begin
MoveMouse (542, 204);
HoldMouse (542, 204, 1);
Wait (500);
MoveMouse (20, 203);
ReleaseMouse (x, y, 1);
End.
program SaveTheGoldfish;
Procedure StartGame;
begin
Movemouse(785, 714);
Clickmouse(785, 714, 1);
MoveMouse(942, 692);
Wait(500);
Clickmouse(942, 692, 1);
Movemouse(898, 519);
Wait(500);
Clickmouse(898, 519, 1);
end;
procedure SaveGoldfish;
var
x, y: Integer;
begin
if FindColorSpiralTolerance(x, y, 88319, 564, 389, 806, 596, 20) or I get a range check error here
FindColorSpiralTolerance(x, y, 172287, 564, 389, 806, 596, 20) or
FindColorSpiralTolerance(x, y, 1471228, 564, 389, 806, 596, 20) or
FindColorSpiralTolerance(x, y, 98559, 564, 389, 806, 596, 20) or
FindColorSpiralTolerance(x, y, 690943, 564, 389, 806, 596, 20) or
FindColorSpiralTolerance(x, y, 804093, 564, 389, 806, 596, 20) or
FindColorSpiralTolerance(x, y, 1070589, 564, 389, 806, 596, 20) or
FindColorSpiralTolerance(x, y, 366590, 564, 389, 806, 596, 20) or
FindColorSpiralTolerance(x, y, 172287, 564, 389, 806, 596, 20) then
begin
MoveMouse(x, y);
Holdmouse(x, y, 1);
Movemouse(902, 432);
ReleaseMouse(902, 432, 1);
end;
end;
begin
StartGame;
SaveGoldfish;
end.
Well i followed the first game to the T. Your code was the same as mine(Cept the locations of course)
And i run it and all it does is move the mouse to the left of the monkey.
In the second game it would scan the shit out of each goldfish and only put it in the bowl on the third or first time it hit the pan. I moved the color codes around so darker or lighter were first and it did the same thing. I changed the tolerance from 20 and it still didn't work like in your video.
I have no idea whats wrong.
I did the tutorial it was very informative.I saved alot of goldfish.
Last edited by juliea; 11-21-2013 at 12:53 AM.
Nice tutorial dude trying to figure it all out! Thanks for helping a hand haha
My old pal yohojo, thanks for this guide, helped me get a few things straight!
There are currently 1 users browsing this thread. (0 members and 1 guests)