Page 6 of 6 FirstFirst ... 456
Results 126 to 144 of 144

Thread: YoHoJo Video Tutorial #1, for ABSOLUTE BEGINNERS!

  1. #126
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

  2. #127
    Join Date
    Feb 2012
    Posts
    390
    Mentioned
    2 Post(s)
    Quoted
    14 Post(s)

    Default

    Quote Originally Posted by YoHoJo View Post
    Bump
    Double bump
    :P :P

  3. #128
    Join Date
    Sep 2012
    Location
    Minnesota
    Posts
    107
    Mentioned
    4 Post(s)
    Quoted
    36 Post(s)

    Default

    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.

  4. #129
    Join Date
    Nov 2007
    Posts
    187
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    Quote Originally Posted by garyman View Post
    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.
    You'r missing about half of the script, watch the video one more time..

  5. #130
    Join Date
    Sep 2012
    Location
    Minnesota
    Posts
    107
    Mentioned
    4 Post(s)
    Quoted
    36 Post(s)

    Default

    You'r missing about half of the script, watch the video one more time..
    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.

  6. #131
    Join Date
    Feb 2012
    Posts
    390
    Mentioned
    2 Post(s)
    Quoted
    14 Post(s)

    Default

    Quote Originally Posted by garyman View Post
    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.
    Please post the whole script

  7. #132
    Join Date
    Sep 2012
    Location
    Minnesota
    Posts
    107
    Mentioned
    4 Post(s)
    Quoted
    36 Post(s)

    Default

    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.

  8. #133
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    @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

  9. #134
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    Hello World

  10. #135
    Join Date
    Jan 2013
    Location
    A very long room in SW3D3N.
    Posts
    40
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    thanks, I'll try out scritping soon C:

  11. #136
    Join Date
    Jan 2013
    Posts
    146
    Mentioned
    0 Post(s)
    Quoted
    56 Post(s)

    Default

    Super helpful easy to understand. i hope you make many many more of these!

  12. #137
    Join Date
    Jan 2012
    Location
    In A Farm
    Posts
    3,301
    Mentioned
    30 Post(s)
    Quoted
    444 Post(s)

    Default

    Hey Yohojo, I really learned something from this tutorial and the time has come to start scripting and watching your next tutorials..

  13. #138
    Join Date
    Feb 2013
    Posts
    103
    Mentioned
    0 Post(s)
    Quoted
    32 Post(s)

    Default

    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!

    program 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.
    Thank you! Carrying on with the rest of the tut now

  14. #139
    Join Date
    Feb 2013
    Posts
    1
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    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.

  15. #140
    Join Date
    Sep 2010
    Posts
    5,762
    Mentioned
    136 Post(s)
    Quoted
    2739 Post(s)

    Default

    Quote Originally Posted by OneDay View Post
    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.
    Drag green arrow to the client your using and make sure

    Simba Code:
    (x, y, 172287, 564, 389, 806, 596, 20)

    Is looking for the color in the correct spot

  16. #141
    Join Date
    Mar 2013
    Posts
    5
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    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.

  17. #142
    Join Date
    Apr 2012
    Posts
    13
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I did the tutorial it was very informative.I saved alot of goldfish.
    Last edited by juliea; 11-21-2013 at 12:53 AM.

  18. #143
    Join Date
    Aug 2014
    Posts
    14
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    Nice tutorial dude trying to figure it all out! Thanks for helping a hand haha

  19. #144
    Join Date
    Jan 2015
    Posts
    22
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default

    My old pal yohojo, thanks for this guide, helped me get a few things straight!

Page 6 of 6 FirstFirst ... 456

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •