SRL Archive - RS3 Outdated / Broken Scripts

Smidqe's AK Cooker


Smidqe

2012-11-25 08:02:00

Current version: 1.61
Current status: NOT WORKING! - REASON: DOESNT WORK WITH RS3


It's been awhile since I last posted anything on these forums, haven't really had any time due the school. Altough I've been lurking checking these forums every once in a while, so that I know what is going on.

This script is a complete rewrite of my first script released here, which now is buried somewhere in the first script subforum. I am aware that randoms have been shut off for a while now, yet I haven't removed findNormalRandoms from my script, it doesn't hurt to have them? Does it?

So, without anymore interruptions, the script itself.

Description:
[INDENT]Cooks fishes at Al-Kharid, currently supports only F2P fishes.[/INDENT]

Features:
  • Uses TPA for walking, DDTM as backup method
  • Accurate range finding
  • Supports all the fishes! (Thanks to iamorange12)

Instructions:
  1. Have player either in bank or in range, doesn't matter, but you can also start (lodestone symbol should not be visible!) anywhere.
  2. Set your XP counter to all or to cooking, otherwise XP calculating won't work
  3. Make sure that SRL is fully updated
  4. Fill out necessary information
  5. Use these constants or numbers (are also in the script) in integers[PLAYER_ITEM]:
  6.     
    ITEM_FISH_SHRIMP = 0;
    ITEM_FISH_CRAYFISH = 1;
    ITEM_FISH_ANCHOVIES = 2;
    ITEM_FISH_SARDINE = 3;
    ITEM_FISH_HERRING = 4;
    ITEM_FISH_TROUT = 5;
    ITEM_FISH_SALMON = 6;
    ITEM_FISH_PIKE = 7;
    ITEM_FISH_TUNA = 8;
    ITEM_FISH_LOBSTER = 9;
    ITEM_FISH_SWORDFISH = 10;
    ITEM_FISH_MACKEREL = 11;
    ITEM_FISH_COD = 12;
    ITEM_FISH_MANTA_RAY = 13;
    ITEM_FISH_ROCKTAIL = 14;
    ITEM_FISH_SEA_TURTLE = 15;
    ITEM_FISH_CAVEFISH = 16;
    ITEM_FISH_SHARK = 17;
    ITEM_FISH_MONKFISH = 18;
    ITEM_FISH_BASS = 19;
  7. Setup necessary player information.
  8. const
    takeBreaks = true;
    saveDebug = true;
    paintSmart = true;

    procedure DeclarePlayers();
    begin
    HowManyPlayers := 1; //Change to amount of players wanted
    NumberOfPlayers(HowManyPlayers);
    CurrentPlayer := 0; //0 is the first player as it goes like this 0, 1, 2..

    with Players[0] do
    begin
    Name := ''; // Username
    Pass := ''; // Password
    Nick := ''; // Nickname, 3-4 letters (Used for progress reports)
    Active := True; // Using this player?
    Member := false;
    Pin := ''; // Leave blank if you dont have a bank pin

    (*~ Number of the xp counter you wish to use (1, 2 or 3) ~*)
    Integers[PLAYER_XP_BAR] := 1;

    (*~ Fish to cook, look above this procedure to find out what to put here ~*)
    Integers[PLAYER_ITEM] := ITEM_FISH_SALMON; // Food to cook

    (*~ Timing and such ~*)
    Integers[PLAYER_TOTAL_TIME] := 500; // Total time (in minutes), put 0 if you want to go forever
    Integers[PLAYER_BREAK_AFTER] := 120; // Breaking or switching after x minutes
    Integers[PLAYER_BREAK_TIME] := 20; // Time to break, +- random 3 minutes
    end;
    end;
  9. Push play, and wait for SMART load
  10. Follow couple first loops to see if there is any issues

Reports:
[INDENT]Version 1.53 testing, RS update stopped it… (Also longest one!)[/INDENT]
 ________________________________ 
/________________________________\
| AK Cooker by Smidqe |
|________________________________|
|________________________________|
| - Version: 1.53 |
| - Total runtime: 06:57:54 |
|________________________________|
|________________________________|
| Player: 0 |
| - Nickname : *** |
| - Time played : 06:14:40 |
| - Fish : Lobster |
| - Cooked : 5335 |
| - Experience : 640200 |
| - EXP/H : -79371 |
| - Breaks : 3 |
|________________________________|
\________________________________/

 ________________________________ 
/________________________________\
| AK Cooker by Smidqe |
|________________________________|
|________________________________|
| - Version: 1.43 |
| - Total runtime: 01:49:11 |
|________________________________|
|________________________________|
| Player: 0 |
| - Nickname : idq |
| - Time played : 01:49:10 |
| - Fish : Trout |
| - Experience : 95830 |
| - EXP/H : 52661 |
| - Breaks : 1 |
|________________________________|
\________________________________/
[]:  ________________________________ 
[]: /________________________________\
[]: | AK Cooker by Smidqe |
[]: |________________________________|
[]: |________________________________|
[]: | - Version: 0.01 |
[]: | - Total runtime: 01:31:05 |
[]: |________________________________|
[]: |________________________________|
[]: | Player: 0 |
[]: | - Nickname : idq |
[]: | - Time played : 01:31:04 |
[]: | - Fish : Lobster |
[]: | - Experience : 178080 |
[]: | - EXP/H : 117307 |
[]: | - Breaks : 0 |
[]: |________________________________|
[]: \________________________________/

How to report bugs:
  • Describe the bug, is it walking related or object finding related, giving information regarding the issue is important.
  • Include the debug log!
  • If the debug log is long, then include from the second to last progress report to last line.
  • If the bug is related to walking include a picture that script has taken. REMEMBER to cover your account name!


Bugs:
[INDENT]There shouldn't be anything[/INDENT]
  • findRangeMM doesn't always work (can't really help this, moving players and symbols cause this to fail).
  • waitConversion cut's short for some reason and never finishes!


Credits:
| ~ Credits:                                                         |
| ~ WT-Fakawi: DDTM anchoring tutorial, and functions used here, |
| look DDTMRelocate, grabColor and initDDTM |
| ~ MSI and its writers: For the filewriting function, |
| look writeDebug and setupScript |
| ~ Community: For such an atmosphere where you really |
| want to learn |

Version history:
  • 1.0: Initial release
  • 1.1: Added clickNorth to player setup, I apparently forgot it :p
  • 1.2: findOptionMulti added, cleaned initBank and findRange, hopefully fixed out of range error caused because main color wasn't found, fixed bug if the item wasn't selected due to lag or something. Also couple minor failsafes to mainloop.
  • 1.3: Now you can start anywhere, also added relocatePlayer and lostWalk incase a character gets somewhere where it should not be. Couple minor modifications to mainloop.
  • 1.4: Fixed broken DTM for lobster, fixed DDTM creating too early, somewhat rewrote the locateObject, added a better finding of bank booth. This version will probably be the last version, unless there are something major broken.
  • 1.41: Fixed checkUptext, a noticiable increase in speed during banking. Also made finding the range depend solely on chooseOption, uptext was quite unreliable.
  • 1.42: Couple failsafes to mainloop (walking), fixed a bug if player had a 'Range' in their name script would use it, fixed if bankers weren't visible the script would log out.
  • 1.43: Fixed for walking too far, fixed trout dtm, fixed lostwalk. Fixed breaking if using one player setup. Better debugging for the lost walk and also minor adjustments here and there.
  • 1.44: Removed box manipulation from findRangeMM as it was possible that it would mess up the walking.
  • 1.5: Major rework on the findRangeMM. Couple failsafes on mainloop, also couple minor modifications throughout the whole script. Also a fix for looping through the the DDTM creating (my bad). Commented all findNormalRandoms. Made reason to a TStringArray because it would not stay on one character if using multiplayer.
  • 1.51: Hopefully fixed finding DDTM in wrong place. Minor modifications to DDTMRelocate and couple additions to debugging (especially to lostWalk)
  • 1.52: Reduced the width in findBankersMM, hopefully it fixed a walking problem. Script also takes a screenshot if it encountered an error.
  • 1.53: Fixed walking. Finally removed all findNormalRandoms from the script. Added a failsafe for walking, since the flag could mess up the findBankersMM. Fixed breaking, there's a small mishap! Also added SRL_SixHourFix (I didn't use it before since I don't bot over 6 hours). Changed the exp/h calculation slightly, as it resulted in negative exp amount…
  • 1.531: Fixed taking breaks if takeBreaks was false
  • 1.532: Fixed waitConversion resulting false if no DTMs were not found.
  • 1.6: Major rewrite on many functions yet kept the functionality. Increased tolerance for object colors, and added different sorting method for bank booth. Mainloop also rewritten. Changed integers[PLAYER_ITEM] to integer. Also, added member fishes, thanks to iamorange12 by making the DTMs.
  • 1.61: Added EXP amounts to member fishes, change while findDTM() to while findColor(), hopefully that fixes everything!

Downloads:
  • 1.0: 12
  • 1.1: 43
  • 1.2: 13
  • 1.3: 40
  • 1.4: 3
  • 1.41: 3
  • 1.42: 29
  • 1.43: 5
  • 1.44: 3
  • 1.5: 36
  • 1.51: 4
  • 1.52: 13
  • 1.53: 24
  • 1.531: 7
  • 1.532: 30

jtigertiger

2012-12-15 02:45:50

Dang.. this is a great script, wondered why no one has commented at all! Great Job :)
Have been using for a few hours, doesn't seems to have a problem yet, I'll tell ya if there's any :)
GREAT JOB! :)

print

2012-12-15 14:43:56

great script bro=)

The Killer

2012-12-15 14:47:34

From: print
great script bro=)


yeah was just quickly scrolling through the code. Nice job! now to convert it to a aio ak (tanner, cooker, smelter, crafting in furnace) ;)
surprised this isn't very popular yet tbh :/

grad

2012-12-17 18:02:20

Hey, this script overall is pretty good, but I've run into an error. I've tried it on and off for a few days and it's always logs out around 10-30 mins of cooking. I tried it again just so I could give you some feedback and a screenie, here's the results.


Smidqe

2012-12-18 00:48:50

From: grad
Hey, this script overall is pretty good, but I've run into an error. I've tried it on and off for a few days and it's always logs out around 10-30 mins of cooking. I tried it again just so I could give you some feedback and a screenie, here's the results.


Could you attach the debug log the script created? I'll check it once I get home.

grad

2012-12-18 02:46:53

The log is pretty long, don't know if you wanted to see the whole thing but this is the last entry before it shut off.

Debug Log

Smidqe

2012-12-18 03:10:27

Thanks. I'll look into it later today.

E: Updated to 1.2, changes on first post.

keff

2013-01-02 20:48:31

Done 87-97 so far, it is a little buggy and I can find my character out west of bank, south of it and sometimes in by the furnace. Most of the time though it runs good so I wont bother posting a log. 99 is not far now!

Elip007

2013-01-24 17:45:13

I can't really get the script up and running. Errors every time I try to start it.

When I choose lobster
Exception in Script: The given DTM Index[3] doesn't exist
The following bitmaps were not freed: [5]

Smidqe

2013-01-25 04:11:56

From: Elip007
I can't really get the script up and running. Errors every time I try to start it.

When I choose lobster
Exception in Script: The given DTM Index[3] doesn't exist
The following bitmaps were not freed: [5]


Could you post the debug log? What you have there is what the script gives when it ends.

E: I realized that I have a mistake there, I'll upload version 1.4 once i get home from school.

Elip007

2013-01-25 19:36:55

From: Smidqe
Could you post the debug log? What you have there is what the script gives when it ends.

E: I realized that I have a mistake there, I'll upload version 1.4 once i get home from school.


So do you still want the debug or do you know what is wrong?
I just started to code and been looking over a few Cooking scripts to make one for myself. Would like to find one that works flawlessly so I can learn from it.

Smidqe

2013-01-26 02:47:03

From: Elip007
So do you still want the debug or do you know what is wrong?
I just started to code and been looking over a few Cooking scripts to make one for myself. Would like to find one that works flawlessly so I can learn from it.


Yeah, I'd still like it. I just happened to notice a small problem that made using DDTM not work if the player was in some other place.

The Killer

2013-01-29 15:42:14

Using this script, lobster dtms need redoing cause like every 10mins it can't find it and logs out. Very nice script though :)

Smidqe

2013-01-30 13:11:18

From: The Killer
Using this script, lobster dtms need redoing cause like every 10mins it can't find it and logs out. Very nice script though :)


Thanks.

Those DTMs are quite old, to be honest I didn't expect them to last this long. A small in tolerance will fix this and hopefully will last for quite a long time :p

E: 1.4 uploaded, fix for lobster DTM not being found, fixed creating DDTM too early, somewhat rewrote locateObject.

Justin

2013-02-03 02:34:16

@Smidqe

Ran your script for 10 minutes cooking Lobsters, works very well, some suggestions would be to speed up the choose option for banking, other then that, it's a very stable script

Script working with cooking Lobsters as of 3/02/2013

Output:


Compiled successfully in 453 ms.
____ _ __
/ \ [_] ||
| ||
\____ __ __ __ ____|| _____ ____
\ / \/ \ / | / || / \ /_ O \
| | || | \ | | O || | O | | \__/
\____/ | || | |_| \____/\ \___ | \____/
| |
================================= | |_ =======
| /
\_/
[setupScript]: Loading SMART, please wait.
SRL Compiled in 0 msec
Paired with SMART[5600]
Log created: February 3rd, 2013, 06:22:52 PM
[setupScript]: Initiating script setup
Current player:
[findArea]: Player is in bank.
[grabColor]: Length(rock): 145
[grabColor]: Length(cactus): 594
[grabColor]: Length(cactus): 594
[grabColor]: Length(rock): 145
[initDDTM]: areaDDTM is finished
[countDTMs]: No searched items in inventory!
[locateObject]: Length(TPA): 250
[locateObject]: Current uptext: Bank Bank booth / 3 more options
[locateObject]: Uptext not found
[locateObject]: Object found at [264, 148, True]
[findOptionMulti]: 2 strings found in this option
[findOptionMulti]: Correct option bounds are : (194, 171, 304, 180)
[initBank]: Click happened at: (264, 148)
[initBank]: Bank opening: True
[itemWithdraw]: Initiating withdrawing
[itemWithdraw]: item found, checking their amount
[itemWithdraw]: 986 items found
[setupMain]: Walking initiated!
[setupMain]: Destination: 1
[findRangeMM]: Failure! Unable to find range!
[walkTo]: Walking to range failed: No outlines or no box found!
[DDTMRelocate]: DDTM found! Point: (621, 32)
[DDTMRelocate]: Relocating to: 1 succesfull
[findArea]: Incorrect angle, checking distance
[findArea]: Player is in range.
[findArea]: Incorrect angle, checking distance
[findArea]: Player is in range.
________________________________
/________________________________\
| AK Cooker by Smidqe |
|________________________________|
|________________________________|
| - Version: 1.4 |
| - Total runtime: 00:00:21 |
|________________________________|
|________________________________|
| Player: 0 |
| - Nickname : |
| - Time played : 00:00:21 |
| - Fish : Lobster |
| - Experience : 0 |
| - EXP/H : 0 |
| - Breaks : 0 |
|________________________________|
\________________________________/
[setupChecks]: Checks done
[countDTMs]: Amount of items: 28
[useRaw]: Item successfully clicked
[locateObject]: Failed to find color: [4283087, 10069424]
[locateObject]: Length(TPA): 9
[locateObject]: Current uptext: Use Raw lobster -^ v
[locateObject]: Uptext not found
[locateObject]: Length(TPA): 33
[locateObject]: Current uptext: Use R -^ Range / 1 more options
[locateObject]: Uptext not found
[locateObject]: Object found at [259, 150, True]
[findOptionMulti]: 1 strings found in this option
[findOptionMulti]: Correct option bounds are : (170, 173, 341, 186)
[findRange]: Cookingbox found at mainscreen!
[countDTMs]: Amount of items: 27
[waitConversion]: Entering conversion loop!
[countDTMs]: Amount of items: 27
[countDTMs]: Amount of items: 26
[countDTMs]: Amount of items: 25
[countDTMs]: Amount of items: 24
[countDTMs]: Amount of items: 22
[countDTMs]: Amount of items: 21
[countDTMs]: Amount of items: 19
[countDTMs]: Amount of items: 18
[countDTMs]: Amount of items: 16
[countDTMs]: Amount of items: 15
[countDTMs]: Amount of items: 13
[countDTMs]: Amount of items: 11
[countDTMs]: Amount of items: 10
[countDTMs]: Amount of items: 9
[countDTMs]: Amount of items: 7
[countDTMs]: Amount of items: 4
[countDTMs]: Amount of items: 3
[countDTMs]: Amount of items: 1
[waitConversion]: Conversion successfull
[setupMain]: Walking initiated!
[setupMain]: Destination: 0
[findArea]: Player is in bank.
[findArea]: Player is in bank.
________________________________
/________________________________\
| AK Cooker by Smidqe |
|________________________________|
|________________________________|
| - Version: 1.4 |
| - Total runtime: 00:01:50 |
|________________________________|
|________________________________|
| Player: 0 |
| - Nickname : |
| - Time played : 00:01:50 |
| - Fish : Lobster |
| - Experience : 3360 |
| - EXP/H : 109963 |
| - Breaks : 0 |
|________________________________|
\________________________________/
[setupChecks]: Checks done
[countDTMs]: No searched items in inventory!
[locateObject]: Length(TPA): 288
[locateObject]: Current uptext: Bank Bank booth / 3 more options
[locateObject]: Uptext not found
[locateObject]: Object found at [273, 145, True]
[findOptionMulti]: 2 strings found in this option
[findOptionMulti]: Correct option bounds are : (203, 168, 313, 177)
[initBank]: Click happened at: (273, 145)
[initBank]: Bank opening: True
[setupMain]: All items deposited!
[itemWithdraw]: Initiating withdrawing
[itemWithdraw]: item found, checking their amount
[itemWithdraw]: 958 items found
[setupMain]: Walking initiated!
[setupMain]: Destination: 1
Warning! You passed a wrong ys to a finder function: -8. That is below 0, thus out of bounds. Setting the value to 0 for now.
[findRangeMM]: Failure! Unable to find range!
[walkTo]: Walking to range failed: No outlines or no box found!
[DDTMRelocate]: DDTM found! Point: (621, 33)
[DDTMRelocate]: Relocating to: 1 succesfull
[findArea]: Player is in range.
[findArea]: Player is in range.
________________________________
/________________________________\
| AK Cooker by Smidqe |
|________________________________|
|________________________________|
| - Version: 1.4 |
| - Total runtime: 00:02:13 |
|________________________________|
|________________________________|
| Player: 0 |
| - Nickname : |
| - Time played : 00:02:12 |
| - Fish : Lobster |
| - Experience : 3360 |
| - EXP/H : 90947 |
| - Breaks : 0 |
|________________________________|
\________________________________/
[setupChecks]: Checks done
[countDTMs]: Amount of items: 28
[useRaw]: Item successfully clicked
[locateObject]: Length(TPA): 46
[locateObject]: Current uptext: Use Raw f -^ Range / 1 more options
[locateObject]: Uptext not found
[locateObject]: Object found at [255, 150, True]
[findOptionMulti]: 1 strings found in this option
[findOptionMulti]: Correct option bounds are : (166, 173, 335, 186)
[findRange]: Cookingbox found at mainscreen!
[countDTMs]: Amount of items: 27
[waitConversion]: Entering conversion loop!
[countDTMs]: Amount of items: 27
[countDTMs]: Amount of items: 26
[countDTMs]: Amount of items: 25
[countDTMs]: Amount of items: 23
[countDTMs]: Amount of items: 22
[countDTMs]: Amount of items: 21
[countDTMs]: Amount of items: 21
[countDTMs]: Amount of items: 18
[countDTMs]: Amount of items: 17
[countDTMs]: Amount of items: 15
[countDTMs]: Amount of items: 14
[countDTMs]: Amount of items: 13
[countDTMs]: Amount of items: 11
[countDTMs]: Amount of items: 10
[countDTMs]: Amount of items: 7
[countDTMs]: Amount of items: 6
[countDTMs]: Amount of items: 6
[countDTMs]: Amount of items: 3
[countDTMs]: Amount of items: 2
[countDTMs]: Amount of items: 1
[waitConversion]: Conversion successfull
[setupMain]: Walking initiated!
[setupMain]: Destination: 0
[findArea]: Player is in bank.
[findArea]: Player is in bank.
________________________________
/________________________________\
| AK Cooker by Smidqe |
|________________________________|
|________________________________|
| - Version: 1.4 |
| - Total runtime: 00:03:37 |
|________________________________|
|________________________________|
| Player: 0 |
| - Nickname : |
| - Time played : 00:03:37 |
| - Fish : Lobster |
| - Experience : 6720 |
| - EXP/H : 111483 |
| - Breaks : 0 |
|________________________________|
\________________________________/
[setupChecks]: Checks done
[countDTMs]: No searched items in inventory!
[locateObject]: Length(TPA): 292
[locateObject]: Current uptext: Bank Bank booth / 3 more options
[locateObject]: Uptext not found
[locateObject]: Object found at [275, 117, True]
[findOptionMulti]: 2 strings found in this option
[findOptionMulti]: Correct option bounds are : (205, 140, 313, 149)
[initBank]: Click happened at: (275, 117)
[initBank]: Bank opening: True
[setupMain]: All items deposited!
[itemWithdraw]: Initiating withdrawing
[itemWithdraw]: item found, checking their amount
[itemWithdraw]: 930 items found
[setupMain]: Walking initiated!
[setupMain]: Destination: 1
Warning! You passed a wrong ys to a finder function: -6. That is below 0, thus out of bounds. Setting the value to 0 for now.
[findRangeMM]: Success! Point: (631, 9)
[findArea]: Incorrect angle, checking distance
[findArea]: Player is in range.
[findArea]: Incorrect angle, checking distance
[findArea]: Player is in range.
________________________________
/________________________________\
| AK Cooker by Smidqe |
|________________________________|
|________________________________|
| - Version: 1.4 |
| - Total runtime: 00:03:59 |
|________________________________|
|________________________________|
| Player: 0 |
| - Nickname : |
| - Time played : 00:03:58 |
| - Fish : Lobster |
| - Experience : 6720 |
| - EXP/H : 101221 |
| - Breaks : 0 |
|________________________________|
\________________________________/
[setupChecks]: Checks done
[countDTMs]: Amount of items: 28
[useRaw]: Item successfully clicked
[locateObject]: Length(TPA): 48
[locateObject]: Current uptext: Use Raw -^ Range / 1 more options
[locateObject]: Uptext not found
[locateObject]: Object found at [236, 226, True]
[findOptionMulti]: 1 strings found in this option
[findOptionMulti]: Correct option bounds are : (147, 249, 321, 262)
[findRange]: Cookingbox found at mainscreen!
[countDTMs]: Amount of items: 27
[waitConversion]: Entering conversion loop!
[countDTMs]: Amount of items: 27
[countDTMs]: Amount of items: 26
[countDTMs]: Amount of items: 25
[countDTMs]: Amount of items: 23
[countDTMs]: Amount of items: 22
[countDTMs]: Amount of items: 21
[countDTMs]: Amount of items: 19
[countDTMs]: Amount of items: 18
[countDTMs]: Amount of items: 17
[countDTMs]: Amount of items: 16
[countDTMs]: Amount of items: 14
[countDTMs]: Amount of items: 13
[countDTMs]: Amount of items: 12
[countDTMs]: Amount of items: 10
[countDTMs]: Amount of items: 9
[countDTMs]: Amount of items: 7
[countDTMs]: Amount of items: 5
[countDTMs]: Amount of items: 2
[countDTMs]: Amount of items: 1
[waitConversion]: Conversion successfull
[setupMain]: Walking initiated!
[setupMain]: Destination: 0
[findArea]: Player is in bank.
[findArea]: Player is in bank.
________________________________
/________________________________\
| AK Cooker by Smidqe |
|________________________________|
|________________________________|
| - Version: 1.4 |
| - Total runtime: 00:05:29 |
|________________________________|
|________________________________|
| Player: 0 |
| - Nickname : |
| - Time played : 00:05:29 |
| - Fish : Lobster |
| - Experience : 10080 |
| - EXP/H : 110297 |
| - Breaks : 0 |
|________________________________|
\________________________________/
[setupChecks]: Checks done
[countDTMs]: No searched items in inventory!
[locateObject]: Length(TPA): 331
[locateObject]: Current uptext: Bank Bank booth / 3 more options
[locateObject]: Uptext not found
[locateObject]: Object found at [276, 144, True]
[findOptionMulti]: 2 strings found in this option
[findOptionMulti]: Correct option bounds are : (206, 167, 313, 176)
[initBank]: Click happened at: (276, 144)
[initBank]: Bank opening: True
[setupMain]: All items deposited!
[itemWithdraw]: Initiating withdrawing
[itemWithdraw]: item found, checking their amount
[itemWithdraw]: 902 items found
[setupMain]: Walking initiated!
[setupMain]: Destination: 1
[findRangeMM]: Failure! Unable to find range!
[walkTo]: Walking to range failed: No outlines or no box found!
[DDTMRelocate]: DDTM found! Point: (626, 36)
[DDTMRelocate]: Relocating to: 1 succesfull
[findArea]: Player is in range.
[findArea]: Player is in range.
________________________________
/________________________________\
| AK Cooker by Smidqe |
|________________________________|
|________________________________|
| - Version: 1.4 |
| - Total runtime: 00:05:51 |
|________________________________|
|________________________________|
| Player: 0 |
| - Nickname : |
| - Time played : 00:05:50 |
| - Fish : Lobster |
| - Experience : 10080 |
| - EXP/H : 103384 |
| - Breaks : 0 |
|________________________________|
\________________________________/
[setupChecks]: Checks done
[countDTMs]: Amount of items: 28
[useRaw]: Item successfully clicked
[locateObject]: Length(TPA): 47
[locateObject]: Current uptext: Use Raw lobster -^ Range / 1 more options
[locateObject]: Uptext not found
[locateObject]: Object found at [253, 151, True]
[findOptionMulti]: 1 strings found in this option
[findOptionMulti]: Correct option bounds are : (164, 174, 330, 187)
[findRange]: Cookingbox found at mainscreen!
[countDTMs]: Amount of items: 27
[waitConversion]: Entering conversion loop!
[countDTMs]: Amount of items: 27
[countDTMs]: Amount of items: 26
[countDTMs]: Amount of items: 25
[countDTMs]: Amount of items: 24
[countDTMs]: Amount of items: 22
[countDTMs]: Amount of items: 21
[countDTMs]: Amount of items: 19
[countDTMs]: Amount of items: 18
[countDTMs]: Amount of items: 17
[countDTMs]: Amount of items: 16
[countDTMs]: Amount of items: 14
[countDTMs]: Amount of items: 13
[countDTMs]: Amount of items: 12
[countDTMs]: Amount of items: 10
[countDTMs]: Amount of items: 9
[countDTMs]: Amount of items: 8
[countDTMs]: Amount of items: 6
[countDTMs]: Amount of items: 5
[countDTMs]: Amount of items: 3
[countDTMs]: Amount of items: 2
[countDTMs]: Amount of items: 1
[waitConversion]: Conversion successfull
[setupMain]: Walking initiated!
[setupMain]: Destination: 0
[findArea]: Player is in bank.
[findArea]: Player is in bank.
________________________________
/________________________________\
| AK Cooker by Smidqe |
|________________________________|
|________________________________|
| - Version: 1.4 |
| - Total runtime: 00:07:17 |
|________________________________|
|________________________________|
| Player: 0 |
| - Nickname : |
| - Time played : 00:07:16 |
| - Fish : Lobster |
| - Experience : 13440 |
| - EXP/H : 110718 |
| - Breaks : 0 |
|________________________________|
\________________________________/
[setupChecks]: Checks done
[countDTMs]: No searched items in inventory!
[locateObject]: Length(TPA): 272
[locateObject]: Current uptext: Bank Bank booth / 3 more options
[locateObject]: Uptext not found
[locateObject]: Object found at [269, 144, True]
[findOptionMulti]: 2 strings found in this option
[findOptionMulti]: Correct option bounds are : (199, 167, 304, 176)
[initBank]: Click happened at: (269, 144)
[initBank]: Bank opening: True
[setupMain]: All items deposited!
[itemWithdraw]: Initiating withdrawing
[itemWithdraw]: item found, checking their amount
[itemWithdraw]: 874 items found
[setupMain]: Walking initiated!
[setupMain]: Destination: 1
[findRangeMM]: Failure! Unable to find range!
[walkTo]: Walking to range failed: No outlines or no box found!
[DDTMRelocate]: DDTM found! Point: (622, 37)
[DDTMRelocate]: Relocating to: 1 succesfull
[findArea]: Player is in range.
[findArea]: Player is in range.
________________________________
/________________________________\
| AK Cooker by Smidqe |
|________________________________|
|________________________________|
| - Version: 1.4 |
| - Total runtime: 00:07:38 |
|________________________________|
|________________________________|
| Player: 0 |
| - Nickname : |
| - Time played : 00:07:38 |
| - Fish : Lobster |
| - Experience : 13440 |
| - EXP/H : 105641 |
| - Breaks : 0 |
|________________________________|
\________________________________/
[setupChecks]: Checks done
[countDTMs]: Amount of items: 28
[useRaw]: Item successfully clicked
[locateObject]: Length(TPA): 39
[locateObject]: Current uptext: Use Raw lobster -^ Range / 1 more options
[locateObject]: Uptext not found
[locateObject]: Object found at [253, 149, True]
[findOptionMulti]: 1 strings found in this option
[findOptionMulti]: Correct option bounds are : (164, 172, 338, 185)
[findRange]: Cookingbox found at mainscreen!
[countDTMs]: Amount of items: 27
[waitConversion]: Entering conversion loop!
[countDTMs]: Amount of items: 27
[countDTMs]: Amount of items: 26
[countDTMs]: Amount of items: 25
[countDTMs]: Amount of items: 23
[countDTMs]: Amount of items: 22
[countDTMs]: Amount of items: 20
[countDTMs]: Amount of items: 19
[countDTMs]: Amount of items: 18
[countDTMs]: Amount of items: 18
[countDTMs]: Amount of items: 18
[countDTMs]: Amount of items: 11
[countDTMs]: Amount of items: 9
[countDTMs]: Amount of items: 8
[countDTMs]: Amount of items: 7
[countDTMs]: Amount of items: 5
[countDTMs]: Amount of items: 4
[countDTMs]: Amount of items: 3
[countDTMs]: Amount of items: 2
[waitConversion]: Conversion successfull
[setupMain]: Walking initiated!
[setupMain]: Destination: 0
[findArea]: Player is in bank.
[findArea]: Player is in bank.
________________________________
/________________________________\
| AK Cooker by Smidqe |
|________________________________|
|________________________________|
| - Version: 1.4 |
| - Total runtime: 00:09:04 |
|________________________________|
|________________________________|
| Player: 0 |
| - Nickname : |
| - Time played : 00:09:03 |
| - Fish : Lobster |
| - Experience : 16800 |
| - EXP/H : 111176 |
| - Breaks : 0 |
|________________________________|
\________________________________/
[setupChecks]: Checks done
[countDTMs]: No searched items in inventory!
[locateObject]: Length(TPA): 315
[locateObject]: Current uptext: ^nk Bank-booth / 3 more option^
[locateObject]: Uptext not found
[locateObject]: Object found at [274, 143, True]
[findOptionMulti]: 2 strings found in this option
[findOptionMulti]: Correct option bounds are : (204, 166, 312, 175)
[initBank]: Click happened at: (274, 143)
[initBank]: Bank opening: True
[setupMain]: All items deposited!
[itemWithdraw]: Initiating withdrawing
[itemWithdraw]: item found, checking their amount
[itemWithdraw]: 846 items found
[setupMain]: Walking initiated!
[setupMain]: Destination: 1
[findRangeMM]: Failure! Unable to find range!
[walkTo]: Walking to range failed: No outlines or no box found!
[DDTMRelocate]: DDTM found! Point: (627, 36)
[DDTMRelocate]: Relocating to: 1 succesfull
[findArea]: Player is in range.
[findArea]: Player is in range.
________________________________
/________________________________\
| AK Cooker by Smidqe |
|________________________________|
|________________________________|
| - Version: 1.4 |
| - Total runtime: 00:09:25 |
|________________________________|
|________________________________|
| Player: 0 |
| - Nickname : |
| - Time played : 00:09:25 |
| - Fish : Lobster |
| - Experience : 16800 |
| - EXP/H : 107044 |
| - Breaks : 0 |
|________________________________|
\________________________________/
[setupChecks]: Checks done
[countDTMs]: Amount of items: 28
[useRaw]: Item successfully clicked
[locateObject]: Length(TPA): 2
[locateObject]: Current uptext: Use Raw -^ Range / 1 more options
[locateObject]: Uptext not found
[locateObject]: Object found at [249, 157, True]
[findOptionMulti]: 1 strings found in this option
[findOptionMulti]: Correct option bounds are : (160, 180, 332, 193)
[findRange]: Cookingbox found at mainscreen!
[countDTMs]: Amount of items: 27
[waitConversion]: Entering conversion loop!
[countDTMs]: Amount of items: 27
[countDTMs]: Amount of items: 26
[countDTMs]: Amount of items: 25
[countDTMs]: Amount of items: 23
[countDTMs]: Amount of items: 22
[countDTMs]: Amount of items: 21
[countDTMs]: Amount of items: 19
[countDTMs]: Amount of items: 18
[countDTMs]: Amount of items: 17
[countDTMs]: Amount of items: 15
[countDTMs]: Amount of items: 14
[countDTMs]: Amount of items: 13
[countDTMs]: Amount of items: 10
[countDTMs]: Amount of items: 8
[countDTMs]: Amount of items: 7
[countDTMs]: Amount of items: 5
[countDTMs]: Amount of items: 4
[countDTMs]: Amount of items: 3
[countDTMs]: Amount of items: 1
[waitConversion]: Conversion successfull
[setupMain]: Walking initiated!
[setupMain]: Destination: 0
[findArea]: Player is in bank.
[findArea]: Player is in bank.
________________________________
/________________________________\
| AK Cooker by Smidqe |
|________________________________|
|________________________________|
| - Version: 1.4 |
| - Total runtime: 00:10:49 |
|________________________________|
|________________________________|
| Player: 0 |
| - Nickname : |
| - Time played : 00:10:48 |
| - Fish : Lobster |
| - Experience : 20160 |
| - EXP/H : 111827 |
| - Breaks : 0 |
|________________________________|
\________________________________/
[setupChecks]: Checks done
[countDTMs]: No searched items in inventory!
[locateObject]: Length(TPA): 287
[locateObject]: Current uptext: Bank Bank booth / 3 more options
[locateObject]: Uptext not found
[locateObject]: Object found at [269, 141, True]
[findOptionMulti]: 2 strings found in this option
[findOptionMulti]: Correct option bounds are : (199, 164, 306, 173)
[initBank]: Click happened at: (269, 141)
________________________________
/________________________________\
| AK Cooker by Smidqe |
|________________________________|
|________________________________|
| - Version: 1.4 |
| - Total runtime: 00:10:53 |
|________________________________|
|________________________________|
| Player: 0 |
| - Nickname : |
| - Time played : 00:10:52 |
| - Fish : Lobster |
| - Experience : 20160 |
| - EXP/H : 111142 |
| - Breaks : 0 |
|________________________________|
\________________________________/
Successfully executed.
File[D:\Downloads\Smidqe's AK-Cooker 03-02-13 at 06-22-52 PM.txt] has not been freed in the script, freeing it now.

Smidqe

2013-02-03 03:29:02

From: Justin
@Smidqe

Ran your script for 10 minutes cooking Lobsters, works very well, some suggestions would be to speed up the choose option for banking, other then that, it's a very stable script

Script working with cooking Lobsters as of 3/02/2013

Output:
//snip


Thanks, unfortunately the chooseOption is as fast as it can be, of course it'll be slower if there a lots of people around.

E:
It seems that checkUptext isn't working, that would speed up things quite a bit. I'll finish the 1.41 today.

EE:
Found out that if MMCX - p.x = 0 then the area finding is screwed (apparently arcTan2 doesn't like 0 as x). Testing the fix right now.

EEE:
findBankersMM could sometimes result as (0, 0) due to too small width. Probably that was why the findArea would not always work. I'll upload the fix as soon as I finish the testing.

E4: Couple bugs appeared, version 1.42 should be released tomorrow, but don't count on it.

E5: Update is on the way, currently testing it.

E6: Sheesh, so many edits. Here is a progress report I got from testing.
[]:  ________________________________ 
[]: /________________________________\
[]: | AK Cooker by Smidqe |
[]: |________________________________|
[]: |________________________________|
[]: | - Version: 1.42 |
[]: | - Total runtime: 00:46:16 |
[]: |________________________________|
[]: |________________________________|
[]: | Player: 0 |
[]: | - Nickname : smid |
[]: | - Time played : 00:46:19 |
[]: | - Fish : Trout |
[]: | - Experience : 50610 |
[]: | - EXP/H : 65632 |
[]: | - Breaks : 0 |
[]: | - Reason : out of items |
[]: |________________________________|
[]: \________________________________/

waderose

2013-02-15 00:08:13

They should just call you scripter guys genius' and call it a day. This is an awesome script man. Definitely saves me a lot of time

waderose

2013-02-15 00:50:50

| - Version: 1.42 |
| - Total runtime: 00:44:30 |
|________________________________|
|________________________________|
| Player: 0 |
| - Nickname : |
| - Time played : 00:43:52 |
| - Fish : Tuna |
| - Experience : 60000 |
| - EXP/H : 80898 |
| - Breaks : 0 |
| - Reason : out of items |
|________________________________|
\________________________________/

Ian

2013-02-22 20:07:48

Hey @Smidqe, I tried this for a bit. It worked well for 5 loads, but then once when it was walking it clicked a few pixels past the cooking building. It teleported, ran to the left, then repeated teleporting and running left until I stopped it. I suggest adding a failsafe to logout & terminate if it messes up too much, it looks as if it would have continued messing up the walking for hours until I had stopped it.

Here's the debug, but ignore the xp/fish counting because I forgot to enable the counter:
  ____              _       __                    
/ \ [_] ||
| ||
\____ __ __ __ ____|| _____ ____
\ / \/ \ / | / || / \ /_ O \
| | || | \ | | O || | O | | \__/
\____/ | || | |_| \____/\ \___ | \____/
| |
================================= | |_ =======
| /
\_/
[setupScript]: Loading SMART, please wait.
SRL Compiled in 0 msec
Paired with SMART[3112]
Log created: February 22nd, 2013, 08:47:46 PM
[setupScript]: Initiating script setup
Current player: ********
[findBankersMM]: Point: (627, 77)
[findArea]: dX = 0, checking y coordinate.
[findArea]: Player is in bank.
[grabColor]: Length(rock): 141
[grabColor]: Length(cactus): 561
[grabColor]: Length(cactus): 561
[grabColor]: Length(rock): 141
[initDDTM]: areaDDTM is finished
[countDTMs]: No searched items in inventory!
[locateObject]: Length(TPA): 3
[locateObject]: Current uptext: Inventory
[locateObject]: Uptext not found
[locateObject]: Length(TPA): 4
[locateObject]: Current uptext: Bank Bank booth / 3 more options
[locateObject]: Object found at [304, 153, False]
[initBank]: Click happened at: (304, 153)
[initBank]: Bank opening: True
[itemWithdraw]: Initiating withdrawing
[itemWithdraw]: item found, checking their amount
[itemWithdraw]: 4010 items found
________________________________
/________________________________\
| AK Cooker by Smidqe |
|________________________________|
|________________________________|
| - Version: 1.42 |
| - Total runtime: 00:00:17 |
|________________________________|
|________________________________|
| Player: 0 |
| - Nickname : |
| - Time played : 00:00:17 |
| - Fish : Salmon |
| - Experience : 0 |
| - EXP/H : 0 |
| - Breaks : 0 |
|________________________________|
\________________________________/
[setupChecks]: Checks done
[countDTMs]: No searched items in inventory!
________________________________
/________________________________\
| AK Cooker by Smidqe |
|________________________________|
|________________________________|
| - Version: 1.42 |
| - Total runtime: 00:00:18 |
|________________________________|
|________________________________|
| Player: 0 |
| - Nickname : |
| - Time played : 00:00:17 |
| - Fish : Salmon |
| - Experience : 0 |
| - EXP/H : 0 |
| - Breaks : 0 |
|________________________________|
\________________________________/
[setupChecks]: Checks done
[countDTMs]: No searched items in inventory!
________________________________
/________________________________\
| AK Cooker by Smidqe |
|________________________________|
|________________________________|
| - Version: 1.42 |
| - Total runtime: 00:00:18 |
|________________________________|
|________________________________|
| Player: 0 |
| - Nickname : |
| - Time played : 00:00:17 |
| - Fish : Salmon |
| - Experience : 0 |
| - EXP/H : 0 |
| - Breaks : 0 |
|________________________________|
\________________________________/
[setupChecks]: Checks done
[countDTMs]: No searched items in inventory!
________________________________
/________________________________\
| AK Cooker by Smidqe |
|________________________________|
|________________________________|
| - Version: 1.42 |
| - Total runtime: 00:00:18 |
|________________________________|
|________________________________|
| Player: 0 |
| - Nickname : |
| - Time played : 00:00:17 |
| - Fish : Salmon |
| - Experience : 0 |
| - EXP/H : 0 |
| - Breaks : 0 |
|________________________________|
\________________________________/
[setupChecks]: Checks done
[countDTMs]: No searched items in inventory!
________________________________
/________________________________\
| AK Cooker by Smidqe |
|________________________________|
|________________________________|
| - Version: 1.42 |
| - Total runtime: 00:00:18 |
|________________________________|
|________________________________|
| Player: 0 |
| - Nickname : |
| - Time played : 00:00:17 |
| - Fish : Salmon |
| - Experience : 0 |
| - EXP/H : 0 |
| - Breaks : 0 |
|________________________________|
\________________________________/
[setupChecks]: Checks done
[countDTMs]: No searched items in inventory!
________________________________
/________________________________\
| AK Cooker by Smidqe |
|________________________________|
|________________________________|
| - Version: 1.42 |
| - Total runtime: 00:00:18 |
|________________________________|
|________________________________|
| Player: 0 |
| - Nickname : |
| - Time played : 00:00:17 |
| - Fish : Salmon |
| - Experience : 0 |
| - EXP/H : 0 |
| - Breaks : 0 |
|________________________________|
\________________________________/
[setupChecks]: Checks done
[countDTMs]: No searched items in inventory!
________________________________
/________________________________\
| AK Cooker by Smidqe |
|________________________________|
|________________________________|
| - Version: 1.42 |
| - Total runtime: 00:00:18 |
|________________________________|
|________________________________|
| Player: 0 |
| - Nickname : |
| - Time played : 00:00:17 |
| - Fish : Salmon |
| - Experience : 0 |
| - EXP/H : 0 |
| - Breaks : 0 |
________________________________
/________________________________\
| AK Cooker by Smidqe |
|________________________________|
|________________________________|
| - Version: 1.42 |
| - Total runtime: 00:00:18 |
|________________________________|
|________________________________|
| Player: 0 |
| - Nickname : |
| - Time played : 00:00:17 |
| - Fish : Salmon |
| - Experience : 0 |
| - EXP/H : 0 |
| - Breaks : 0 |
|________________________________|
\________________________________/
Successfully executed.
Compiled successfully in 359 ms.
____ _ __
/ \ [_] ||
| ||
\____ __ __ __ ____|| _____ ____
\ / \/ \ / | / || / \ /_ O \
| | || | \ | | O || | O | | \__/
\____/ | || | |_| \____/\ \___ | \____/
| |
================================= | |_ =======
| /
\_/
[setupScript]: Loading SMART, please wait.
SRL Compiled in 0 msec
Paired with SMART[3112]
Log created: February 22nd, 2013, 08:48:11 PM
[setupScript]: Initiating script setup
Current player:
[findBankersMM]: Point: (626, 77)
[findArea]: Player is in bank.
[grabColor]: Length(rock): 145
[grabColor]: Length(cactus): 522
[grabColor]: Length(cactus): 522
[grabColor]: Length(rock): 145
[initDDTM]: areaDDTM is finished
[countDTMs]: No searched items in inventory!
[locateObject]: Length(TPA): 4
[locateObject]: Current uptext: Bank Bank booth / 3 more options
[locateObject]: Object found at [272, 136, False]
[initBank]: Click happened at: (272, 136)
[initBank]: Bank opening: True
[itemWithdraw]: Initiating withdrawing
[itemWithdraw]: item found, checking their amount
[itemWithdraw]: 4010 items found
[setupMain]: Walking initiated!
[setupMain]: Destination: 1
[findRangeMM]: Success! Point: (624, 21)
[findBankersMM]: Point: (625, 139)
[findArea]: Player is in range.
[findBankersMM]: Point: (625, 139)
[findArea]: Player is in range.
[findBankersMM]: Point: (625, 139)
[findArea]: Player is in range.
________________________________
/________________________________\
| AK Cooker by Smidqe |
|________________________________|
|________________________________|
| - Version: 1.42 |
| - Total runtime: 00:00:25 |
|________________________________|
|________________________________|
| Player: 0 |
| - Nickname : |
| - Time played : 00:00:24 |
| - Fish : Salmon |
| - Experience : 0 |
| - EXP/H : 0 |
| - Breaks : 0 |
|________________________________|
\________________________________/
[setupChecks]: Checks done
[countDTMs]: Amount of items: 28
[useRaw]: Item successfully clicked
[locateObject]: Length(TPA): 1
[locateObject]: Object found at [265, 155, True]
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 1 strings found in this option
[findOptionMulti]: Correct option bounds are : (91, 210, 261, 223)
[findRange]: Cookingbox found at mainscreen!
[countDTMs]: Amount of items: 25
[waitConversion]: Entering conversion loop!
[countDTMs]: Amount of items: 25
[countDTMs]: Amount of items: 23
[countDTMs]: Amount of items: 22
[countDTMs]: Amount of items: 21
[countDTMs]: Amount of items: 19
[countDTMs]: Amount of items: 18
[countDTMs]: Amount of items: 17
[countDTMs]: Amount of items: 15
[countDTMs]: Amount of items: 14
[countDTMs]: Amount of items: 13
[countDTMs]: Amount of items: 11
[countDTMs]: Amount of items: 10
[countDTMs]: Amount of items: 8
[countDTMs]: Amount of items: 6
[countDTMs]: Amount of items: 5
[countDTMs]: Amount of items: 4
[countDTMs]: Amount of items: 2
[countDTMs]: Amount of items: 1
[waitConversion]: Conversion successfull
[setupMain]: Walking initiated!
[setupMain]: Destination: 0
[findBankersMM]: Point: (626, 140)
[findBankersMM]: Point: (619, 70)
[findArea]: Player is in bank.
[findBankersMM]: Point: (619, 70)
[findArea]: Player is in bank.
[findBankersMM]: Point: (619, 70)
[findArea]: Player is in bank.
________________________________
/________________________________\
| AK Cooker by Smidqe |
|________________________________|
|________________________________|
| - Version: 1.42 |
| - Total runtime: 00:01:50 |
|________________________________|
|________________________________|
| Player: 0 |
| - Nickname : |
| - Time played : 00:01:50 |
| - Fish : Salmon |
| - Experience : 0 |
| - EXP/H : 0 |
| - Breaks : 0 |
|________________________________|
\________________________________/
[setupChecks]: Checks done
[countDTMs]: No searched items in inventory!
[locateObject]: Length(TPA): 5
[locateObject]: Current uptext: Bank Bank booth / 6 more options
[locateObject]: Object found at [217, 100, False]
[initBank]: Click happened at: (217, 100)
[initBank]: Bank wasn't open
[initBank]: Bank opening: True
[setupMain]: All items deposited!
[itemWithdraw]: Initiating withdrawing
[itemWithdraw]: item found, checking their amount
[itemWithdraw]: 3982 items found
[setupMain]: Walking initiated!
[setupMain]: Destination: 1
[findRangeMM]: Success! Point: (624, 20)
[findBankersMM]: Point: (626, 140)
[findArea]: Player is in range.
[findBankersMM]: Point: (626, 140)
[findArea]: Player is in range.
[findBankersMM]: Point: (626, 140)
[findArea]: Player is in range.
________________________________
/________________________________\
| AK Cooker by Smidqe |
|________________________________|
|________________________________|
| - Version: 1.42 |
| - Total runtime: 00:02:13 |
|________________________________|
|________________________________|
| Player: 0 |
| - Nickname : |
| - Time played : 00:02:12 |
| - Fish : Salmon |
| - Experience : 0 |
| - EXP/H : 0 |
| - Breaks : 0 |
|________________________________|
\________________________________/
[setupChecks]: Checks done
[countDTMs]: Amount of items: 28
[useRaw]: Item successfully clicked
[locateObject]: Length(TPA): 65
[locateObject]: Object found at [248, 148, True]
[findOptionMulti]: 1 strings found in this option
[findOptionMulti]: Correct option bounds are : (160, 171, 327, 184)
[findRange]: Cookingbox found at mainscreen!
[countDTMs]: Amount of items: 25
[waitConversion]: Entering conversion loop!
[countDTMs]: Amount of items: 25
[countDTMs]: Amount of items: 23
[countDTMs]: Amount of items: 22
[countDTMs]: Amount of items: 21
[countDTMs]: Amount of items: 19
[countDTMs]: Amount of items: 18
[countDTMs]: Amount of items: 17
[countDTMs]: Amount of items: 15
[countDTMs]: Amount of items: 14
[countDTMs]: Amount of items: 13
[countDTMs]: Amount of items: 12
[countDTMs]: Amount of items: 10
[countDTMs]: Amount of items: 9
[countDTMs]: Amount of items: 8
[countDTMs]: Amount of items: 6
[countDTMs]: Amount of items: 5
[countDTMs]: Amount of items: 4
[countDTMs]: Amount of items: 2
[countDTMs]: Amount of items: 1
[waitConversion]: Conversion successfull
[setupMain]: Walking initiated!
[setupMain]: Destination: 0
[findBankersMM]: Point: (626, 141)
[findBankersMM]: Point: (623, 74)
[findArea]: Player is in bank.
[findBankersMM]: Point: (623, 74)
[findArea]: Player is in bank.
[findBankersMM]: Point: (623, 74)
[findArea]: Player is in bank.
________________________________
/________________________________\
| AK Cooker by Smidqe |
|________________________________|
|________________________________|
| - Version: 1.42 |
| - Total runtime: 00:03:38 |
|________________________________|
|________________________________|
| Player: 0 |
| - Nickname : |
| - Time played : 00:03:37 |
| - Fish : Salmon |
| - Experience : 0 |
| - EXP/H : 0 |
| - Breaks : 0 |
|________________________________|
\________________________________/
[setupChecks]: Checks done
[countDTMs]: No searched items in inventory!
[locateObject]: Length(TPA): 15
[locateObject]: Current uptext: Bank Bank booth / 6 more options
[locateObject]: Object found at [265, 121, False]
[initBank]: Click happened at: (265, 121)
[initBank]: Bank opening: True
[setupMain]: All items deposited!
[itemWithdraw]: Initiating withdrawing
[itemWithdraw]: item found, checking their amount
[itemWithdraw]: 3954 items found
[setupMain]: Walking initiated!
[setupMain]: Destination: 1
[findRangeMM]: Failure! Unable to find range!
[walkTo]: Walking to range failed: No outlines or no box found!
[DDTMRelocate]: DDTM found! Point: (619, 35)
[DDTMRelocate]: Relocating to: 1 succesfull
[findBankersMM]: Point: (633, 140)
[findArea]: Player is in range.
[findBankersMM]: Point: (633, 140)
[findArea]: Player is in range.
[findBankersMM]: Point: (633, 140)
[findArea]: Player is in range.
________________________________
/________________________________\
| AK Cooker by Smidqe |
|________________________________|
|________________________________|
| - Version: 1.42 |
| - Total runtime: 00:03:58 |
|________________________________|
|________________________________|
| Player: 0 |
| - Nickname :
|
| - Time played : 00:03:58 |
| - Fish : Salmon |
| - Experience : 0 |
| - EXP/H : 0 |
| - Breaks : 0 |
|________________________________|
\________________________________/
[setupChecks]: Checks done
[countDTMs]: Amount of items: 28
[useRaw]: Item successfully clicked
[locateObject]: Length(TPA): 24
[locateObject]: Length(TPA): 64
[locateObject]: Length(TPA): 32
[locateObject]: Length(TPA): 1
[locateObject]: Length(TPA): 41
[locateObject]: Object found at [257, 150, True]
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 1 strings found in this option
[findOptionMulti]: Correct option bounds are : (110, 221, 276, 234)
[findRange]: Cookingbox found at mainscreen!
[countDTMs]: Amount of items: 25
[waitConversion]: Entering conversion loop!
[countDTMs]: Amount of items: 25
[countDTMs]: Amount of items: 23
[countDTMs]: Amount of items: 22
[countDTMs]: Amount of items: 21
[countDTMs]: Amount of items: 19
[countDTMs]: Amount of items: 18
[countDTMs]: Amount of items: 17
[countDTMs]: Amount of items: 15
[countDTMs]: Amount of items: 14
[countDTMs]: Amount of items: 13
[countDTMs]: Amount of items: 11
[countDTMs]: Amount of items: 10
[countDTMs]: Amount of items: 9
[countDTMs]: Amount of items: 7
[countDTMs]: Amount of items: 6
[countDTMs]: Amount of items: 4
[countDTMs]: Amount of items: 3
[countDTMs]: Amount of items: 2
[countDTMs]: Amount of items: 1
[waitConversion]: Conversion successfull
[setupMain]: Walking initiated!
[setupMain]: Destination: 0
[findBankersMM]: Point: (630, 141)
[findBankersMM]: Point: (630, 77)
[findArea]: Player is in bank.
[findBankersMM]: Point: (630, 77)
[findArea]: Player is in bank.
[findBankersMM]: Point: (630, 77)
[findArea]: Player is in bank.
________________________________
/________________________________\
| AK Cooker by Smidqe |
|________________________________|
|________________________________|
| - Version: 1.42 |
| - Total runtime: 00:05:43 |
|________________________________|
|________________________________|
| Player: 0 |
| - Nickname : |
| - Time played : 00:05:42 |
| - Fish : Salmon |
| - Experience : 0 |
| - EXP/H : 0 |
| - Breaks : 0 |
|________________________________|
\________________________________/
[setupChecks]: Checks done
[countDTMs]: No searched items in inventory!
[locateObject]: Length(TPA): 10
[locateObject]: Current uptext: Bank Bank booth / 3 more options
[locateObject]: Object found at [275, 142, False]
[initBank]: Click happened at: (275, 142)
[initBank]: Bank wasn't open
[initBank]: Bank opening: True
[setupMain]: All items deposited!
[itemWithdraw]: Initiating withdrawing
[itemWithdraw]: item found, checking their amount
[itemWithdraw]: 3926 items found
[setupMain]: Walking initiated!
[setupMain]: Destination: 1
[findRangeMM]: Success! Point: (624, 19)
[findBankersMM]: Point: (628, 141)
[findArea]: Player is in range.
[findBankersMM]: Point: (628, 141)
[findArea]: Player is in range.
[findBankersMM]: Point: (628, 141)
[findArea]: Player is in range.
________________________________
/________________________________\
| AK Cooker by Smidqe |
|________________________________|
|________________________________|
| - Version: 1.42 |
| - Total runtime: 00:06:03 |
|________________________________|
|________________________________|
| Player: 0 |
| - Nickname : |
| - Time played : 00:06:03 |
| - Fish : Salmon |
| - Experience : 0 |
| - EXP/H : 0 |
| - Breaks : 0 |
|________________________________|
\________________________________/
[setupChecks]: Checks done
[countDTMs]: Amount of items: 28
[useRaw]: Item successfully clicked
[locateObject]: Length(TPA): 5
[locateObject]: Object found at [267, 154, True]
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 1 strings found in this option
[findOptionMulti]: Correct option bounds are : (75, 193, 246, 206)
[findRange]: Cookingbox found at mainscreen!
[countDTMs]: Amount of items: 25
[waitConversion]: Entering conversion loop!
[countDTMs]: Amount of items: 25
[countDTMs]: Amount of items: 23
[countDTMs]: Amount of items: 22
[countDTMs]: Amount of items: 20
[countDTMs]: Amount of items: 17
[countDTMs]: Amount of items: 15
[countDTMs]: Amount of items: 14
[countDTMs]: Amount of items: 13
[countDTMs]: Amount of items: 11
[countDTMs]: Amount of items: 10
[countDTMs]: Amount of items: 9
[countDTMs]: Amount of items: 7
[countDTMs]: Amount of items: 6
[countDTMs]: Amount of items: 4
[countDTMs]: Amount of items: 3
[countDTMs]: Amount of items: 2
[waitConversion]: Conversion successfull
[setupMain]: Walking initiated!
[setupMain]: Destination: 0
[findBankersMM]: Point: (630, 143)
[findBankersMM]: Point: (630, 73)
[findArea]: Player is in bank.
[findBankersMM]: Point: (630, 73)
[findArea]: Player is in bank.
[findBankersMM]: Point: (630, 73)
[findArea]: Player is in bank.
________________________________
/________________________________\
| AK Cooker by Smidqe |
|________________________________|
|________________________________|
| - Version: 1.42 |
| - Total runtime: 00:07:29 |
|________________________________|
|________________________________|
| Player: 0 |
| - Nickname : |
| - Time played : 00:07:29 |
| - Fish : Salmon |
| - Experience : 0 |
| - EXP/H : 0 |
| - Breaks : 0 |
|________________________________|
\________________________________/
[setupChecks]: Checks done
[countDTMs]: No searched items in inventory!
[locateObject]: Length(TPA): 2
[locateObject]: Current uptext: Walk here .,e l Sir Blade M (skill: 246) / 3 more options
[locateObject]: Uptext not found
[locateObject]: Length(TPA): 5
[locateObject]: Current uptext: Bank Bank booth / 3 more options
[locateObject]: Object found at [261, 126, False]
[initBank]: Click happened at: (261, 126)
[initBank]: Bank wasn't open
[initBank]: Bank opening: True
[setupMain]: All items deposited!
[itemWithdraw]: Initiating withdrawing
[itemWithdraw]: item found, checking their amount
[itemWithdraw]: 3898 items found
[setupMain]: Walking initiated!
[setupMain]: Destination: 1
[findRangeMM]: Success! Point: (633, 17)
[findBankersMM]: Point: (0, 0)
[DDTMRelocate]: Failed to relocate, reason: no DDTM seen
[lostWalk]: Current step: 0
[blindWalk]: Relying on blind walking...
[findBankersMM]: Point: (0, 0)
[lostWalk]: Starting position found: True
________________________________
/________________________________\
| AK Cooker by Smidqe |
|________________________________|
|________________________________|
| - Version: 1.42 |
| - Total runtime: 00:08:28 |
|________________________________|
|________________________________|
| Player: 0 |
| - Nickname : |
| - Time played : 00:08:27 |
| - Fish : Salmon |
| - Experience : 0 |
| - EXP/H : 0 |
| - Breaks : 0 |
|________________________________|
\________________________________/
[setupChecks]: Checks done
[countDTMs]: Amount of items: 28
[setupMain]: Walking initiated!
[setupMain]: Destination: 1
[findRangeMM]: Failure! Unable to find range!
[walkTo]: Walking to range failed: No outlines or no box found!
[DDTMRelocate]: Failed to relocate, reason: no DDTM seen
[findBankersMM]: Point: (0, 0)
[DDTMRelocate]: Failed to relocate, reason: no DDTM seen
[lostWalk]: Current step: 0
[blindWalk]: Relying on blind walking...
[findBankersMM]: Point: (0, 0)
[lostWalk]: Starting position found: True
________________________________
/________________________________\
| AK Cooker by Smidqe |
|________________________________|
|________________________________|
| - Version: 1.42 |
| - Total runtime: 00:09:18 |
|________________________________|
|________________________________|
| Player: 0 |
| - Nickname : |
| - Time played : 00:09:17 |
| - Fish : Salmon |
| - Experience : 0 |
| - EXP/H : 0 |
| - Breaks : 0 |
|________________________________|
\________________________________/
[setupChecks]: Checks done
[countDTMs]: Amount of items: 28
[setupMain]: Walking initiated!
[setupMain]: Destination: 1
[findRangeMM]: Success! Point: (691, 51)
[findBankersMM]: Point: (0, 0)
[DDTMRelocate]: Failed to relocate, reason: no DDTM seen
[lostWalk]: Current step: 0
[blindWalk]: Relying on blind walking...
[findBankersMM]: Point: (0, 0)
[lostWalk]: Starting position found: True
________________________________
/________________________________\
| AK Cooker by Smidqe |
|________________________________|
|________________________________|
| - Version: 1.42 |
| - Total runtime: 00:09:59 |
|________________________________|
|________________________________|
| Player: 0 |
| - Nickname : |
| - Time played : 00:09:59 |
| - Fish : Salmon |
| - Experience : 0 |
| - EXP/H : 0 |
| - Breaks : 0 |
|________________________________|
\________________________________/
[setupChecks]: Checks done
[countDTMs]: Amount of items: 28
[setupMain]: Walking initiated!
[setupMain]: Destination: 1
[findRangeMM]: Success! Point: (692, 80)
[findBankersMM]: Point: (0, 0)
[DDTMRelocate]: Failed to relocate, reason: no DDTM seen
[lostWalk]: Current step: 0
[blindWalk]: Relying on blind walking...
[findBankersMM]: Point: (0, 0)
[lostWalk]: Starting position found: True
________________________________
/________________________________\
| AK Cooker by Smidqe |
|________________________________|
|________________________________|
| - Version: 1.42 |
| - Total runtime: 00:10:51 |
|________________________________|
|________________________________|
| Player: 0 |
| - Nickname : |
| - Time played : 00:10:50 |
| - Fish : Salmon |
| - Experience : 0 |
| - EXP/H : 0 |
| - Breaks : 0 |
|________________________________|
\________________________________/
[setupChecks]: Checks done
[countDTMs]: Amount of items: 28
[setupMain]: Walking initiated!
[setupMain]: Destination: 1
[findRangeMM]: Failure! Unable to find range!
[walkTo]: Walking to range failed: No outlines or no box found!
[DDTMRelocate]: Failed to relocate, reason: no DDTM seen
[findBankersMM]: Point: (0, 0)
[DDTMRelocate]: Failed to relocate, reason: no DDTM seen

Smidqe

2013-02-23 14:13:04

From: BMWxi
Hey @Smidqe, I tried this for a bit. It worked well for 5 loads, but then once when it was walking it clicked a few pixels past the cooking building. It teleported, ran to the left, then repeated teleporting and running left until I stopped it. I suggest adding a failsafe to logout & terminate if it messes up too much, it looks as if it would have continued messing up the walking for hours until I had stopped it.

Here's the debug, but ignore the xp/fish counting because I forgot to enable the counter:
//snip - report


I also have noticed that behaviour on several occasions, I'll figure out why that happens. For the "death" walk, I think it probably found the the bank symbol but failed to click on it if the symbol was at the edge of the minimap.

As I am writing this I am already testing the fix for both of these, feels already better with just some simple fixes (failure on my part :p ).

Here's the longest report for today, failed because of the breaking (found a problem with a single player setup). Going for longer tomorrow.
 ________________________________ 
/________________________________\
| AK Cooker by Smidqe |
|________________________________|
|________________________________|
| - Version: 1.43 |
| - Total runtime: 01:49:11 |
|________________________________|
|________________________________|
| Player: 0 |
| - Nickname : idq |
| - Time played : 01:49:10 |
| - Fish : Trout |
| - Experience : 95830 |
| - EXP/H : 52661 |
| - Breaks : 1 |
|________________________________|
\________________________________/

E: Version 1.43 released!

E2: Version 1.44 released!

E3: Version 1.5 is coming along nicely, minor tweaking is needed unless something else comes up.

E4: So silent… Anyway, version 1.5 is coming either today or tomorrow, findRangeMM is now much better (altough it fails in certain conditions, solution is in search).

E5: Version 1.5 is out!

quartersun

2013-04-01 11:15:01

Using 1.5 and I keep getting…
Exception in Script: The given DTM Index[3] doesn't exist
The following bitmaps were not freed: [5]
File[C:\Simba\Scripts\Smidqe's AK-Cooker 01-04-13 at 04-04-00 PM.txt] has not been freed in the script, freeing it now.

…with lobsters. Log here: http://pastebin.com/TtznNQXm
Also after this has happened, I need to completely reload simba to make it work again, but that isn't important, I would just like to be able to run it for longer.

Smidqe

2013-04-01 11:35:52

From: quartersun
Using 1.5 and I keep getting…
Exception in Script: The given DTM Index[3] doesn't exist
The following bitmaps were not freed: [5]
File[C:\Simba\Scripts\Smidqe's AK-Cooker 01-04-13 at 04-04-00 PM.txt] has not been freed in the script, freeing it now.

…with lobsters. Log here: http://pastebin.com/TtznNQXm
Also after this has happened, I need to completely reload simba to make it work again, but that isn't important, I would just like to be able to run it for longer.


It seems that DDTM was found somewhere where it wasn't supposed to. I'll update to 1.51 as soon as I find better coordinates.

E: Version 1.51 uploaded.

quartersun

2013-04-01 18:21:53

Thanks for the super fast reply man, sorry I couldn't test straight away. Done some testing now, and it managed to cook 990 before throwing the same error, although I didn't see exactly what caused it. Log here: http://pastebin.com/bTBDkfyV

Edit: seems like it got lost and logged out, which is probably appropriate, although it still said the Exception in Script: The given DTM Index[3] doesn't exist at the end, not sure if that is relevant.

Smidqe

2013-04-02 00:12:26

From: quartersun
Thanks for the super fast reply man, sorry I couldn't test straight away. Done some testing now, and it managed to cook 990 before throwing the same error, although I didn't see exactly what caused it. Log here: http://pastebin.com/bTBDkfyV

Edit: seems like it got lost and logged out, which is probably appropriate, although it still said the Exception in Script: The given DTM Index[3] doesn't exist at the end, not sure if that is relevant.


Hmm.. The problem is in the findbankersMM, because it goes too much to the east. I'll look into it.

Script gives an exception because it has already released the fish DTM, and it's no longer there. It's not a problem since it comes when the script has stopped.

E: Problem found and hopefully solved, uploading version 1.52 soon.

quartersun

2013-04-02 08:12:29

I have babysat it a long while now, and as you say, it's a path-finding error. Sometimes, for reasons that I can't fathom, it will either take itself to the docks in the west, or more commonly to the palace in the east. This would have had to have occured when the bank and range symbols were on the minimap recently, so perhaps the tolerances for those are a little off? I'm only guessing, but I wanted to suggest something. Good luck with the fix buddy <3

Smidqe

2013-04-02 11:18:38

From: quartersun
I have babysat it a long while now, and as you say, it's a path-finding error. Sometimes, for reasons that I can't fathom, it will either take itself to the docks in the west, or more commonly to the palace in the east. This would have had to have occured when the bank and range symbols were on the minimap recently, so perhaps the tolerances for those are a little off? I'm only guessing, but I wanted to suggest something. Good luck with the fix buddy <3


I really don't know what's going on, since there's no way the script could've gone to docks since there's no npc dots there. Thanks for the info anyway, I'll try to fix this annoying problem, which hasn't happened to me at any point.

quartersun

2013-04-02 12:35:36

I agree, it is very odd. It always seems to end like this http://pastebin.com/yUqFsE0r with walkTo failing. I'm not sure why, but I know everything is setup correctly however, and that it is uncommon. Thanks for all your help, it is a really great script otherwise, and everything else seems to work well now that the lobster dtms are fixed.

Smidqe

2013-04-02 13:22:29

From: quartersun
I agree, it is very odd. It always seems to end like this http://pastebin.com/yUqFsE0r with walkTo failing. I'm not sure why, but I know everything is setup correctly however, and that it is uncommon. Thanks for all your help, it is a really great script otherwise, and everything else seems to work well now that the lobster dtms are fixed.


I noticed that you are using version 1.51. Try the 1.52, I haven't had time to test extensively the DDTM, but it should be much more stable.

E: Never mind, I really wasn't thinking straight…

E2: Hmm.. what if the findNormalRandoms in my walkTo function causes this? Testing without it…
E3: Hmmm…. Flag is covering the points, adding a failsafe for if the flag is still present after moving.
E4: Feeling more stable now. I'll keep testing for couple days until I decide whether my fixes work or not.

E5: HEUREKA! Finally found the problem, that freaking flag caused all that trouble. Also DDTM isn't really needed when walking from the range to bank and it isn't visible from there…

E6: Version 1.53 uploaded!

dmacgod

2013-04-29 20:50:34

First i wanna start off by saying great script. it works like a charm. i was curious if you could run it however without the breaks and relogins. Like a constant to stove cook bank stove repeat type of thing. thanks in advance!

Smidqe

2013-04-30 08:06:32

From: dmacgod
First i wanna start off by saying great script. it works like a charm. i was curious if you could run it however without the breaks and relogins. Like a constant to stove cook bank stove repeat type of thing. thanks in advance!


I can't believe I forgot to implement that, since I always use breaks. I'll upload version 1.531 in couple minutes, so be sure to use that version.

Anyway, set takeBreaks on line 86 to false. Also if you want it to run until an error or something else comes up, then set integers[PLAYER_TTIME] to 0

Laggyguy

2013-05-01 15:24:39

Awesome script mate, can see this being amazing. I'm running in to a slight problem though. The script logs me out once it has cooked a bags worth of lobsters. Was this script designed to do this or is this an error? Sorry first time posting, not too clued up when it comes to scripts.

Smidqe

2013-05-02 05:19:11

From: Laggyguy
Awesome script mate, can see this being amazing. I'm running in to a slight problem though. The script logs me out once it has cooked a bags worth of lobsters. Was this script designed to do this or is this an error? Sorry first time posting, not too clued up when it comes to scripts.


Could you post the debug that it gives when it stops? No, the script wasn't designed to just quit after one load. I really can't tell what's wrong if I don't have the debug log the script created.

Laggyguy

2013-05-02 14:00:35

Hi again. This is the error i'm getting.

[countDTMs]: Amount of items: 2
[countDTMs]: Amount of items: 1
[waitConversion]: We failed, somehow
[countDTMs]: No searched items in inventory!
]: ________________________________
]: /________________________________\
]: | AK Cooker by Smidqe |
]: |________________________________|
]: |________________________________|
]: | - Version: 1.531 |
]: | - Total runtime: 00:02:22 |
]|________________________________|
]: |________________________________|
]: | Player: 0 |
]: | - Nickname : aag |
]: | - Time played : 00:01:50 |
]: | - Fish : Lobster |
]: | - Cooked : 24 |
]: | - Experience : 2880 |
]: | - EXP/H : 72818 |
]: | - Breaks : 0 |
]: |________________________________|
]: \________________________________/
]: [setupChecks]: Checks done
]: [setupMain]: Switching players, reason: cooking failed
]: [switchPlayer]: Player switching initiated
]: [switchPlayer]: Player switching finished, last player: False
]: [setupMain]: This is the end, stopping the script and something.

I always receive this after the last lobster has been cooked.

The script can run fine from the bank to the stove and cook but after it cooks it logs me out.

Smidqe

2013-05-03 02:34:01

From: Laggyguy
Hi again. This is the error i'm getting.

[countDTMs]: Amount of items: 2
[countDTMs]: Amount of items: 1
[waitConversion]: We failed, somehow
[countDTMs]: No searched items in inventory!
]: ________________________________
]: /________________________________\
]: | AK Cooker by Smidqe |
]: |________________________________|
]: |________________________________|
]: | - Version: 1.531 |
]: | - Total runtime: 00:02:22 |
]|________________________________|
]: |________________________________|
]: | Player: 0 |
]: | - Nickname : aag |
]: | - Time played : 00:01:50 |
]: | - Fish : Lobster |
]: | - Cooked : 24 |
]: | - Experience : 2880 |
]: | - EXP/H : 72818 |
]: | - Breaks : 0 |
]: |________________________________|
]: \________________________________/
]: [setupChecks]: Checks done
]: [setupMain]: Switching players, reason: cooking failed
]: [switchPlayer]: Player switching initiated
]: [switchPlayer]: Player switching finished, last player: False
]: [setupMain]: This is the end, stopping the script and something.

I always receive this after the last lobster has been cooked.

The script can run fine from the bank to the stove and cook but after it cooks it logs me out.


Thanks, it looks like I had made a mistake on the waitConversion, since it would result as false if the DTMs were not found. I'll upload a fix today.

Laggyguy

2013-05-04 06:40:50

You sir are a genius. All fixed and working perfectly. I'll post results soon. Thanks!

hamster31

2013-05-06 15:44:31

/________________________________\
| AK Cooker by Smidqe |
|________________________________|
|________________________________|
| - Version: 1.531 |
| - Total runtime: 06:34:40 |
|________________________________|
|________________________________|
| Player: 0 |
| - Nickname : |
| - Time played : 05:53:14 |
| - Fish : Lobster |
| - Cooked : 5024 |
| - Experience : 602880 |
| - EXP/H : 91650 |
| - Breaks : 2 |
|________________________________|
\________________________________/

Lol ran it for longer than that but had to stop it since my internet died in the middle! but over all - Amazing Script!

Ian

2013-05-10 17:45:52

Using this again, here's a proggy:
 ________________________________ 
/________________________________\
| AK Cooker by Smidqe |
|________________________________|
|________________________________|
| - Version: 1.531 |
| - Total runtime: 01:00:46 |
|________________________________|
|________________________________|
| Player: 0 |
| - Nickname : |
| - Time played : 01:00:46 |
| - Fish : Salmon |
| - Cooked : 830 |
| - Experience : 74700 |
| - EXP/H : 73754 |
| - Breaks : 0 |
| - Reason : bank opening failed|
|________________________________|
\________________________________/

And the debug:
[setupChecks]: Checks done
[countDTMs]: Amount of items: 28
[useRaw]: Item successfully clicked
[locateObject]: Length(TPA): 90
[locateObject]: Object found at [237, 89, True]
[findOptionMulti]: 1 strings found in this option
[findOptionMulti]: 2 strings found in this option
[findOptionMulti]: Correct option bounds are : (58, 128, 228, 141)
[findRange]: Cookingbox found at mainscreen!
[countDTMs]: Amount of items: 25
[waitConversion]: Entering conversion loop!
[countDTMs]: Amount of items: 25
[countDTMs]: Amount of items: 23
[countDTMs]: Amount of items: 22
[countDTMs]: Amount of items: 20
[countDTMs]: Amount of items: 17
[countDTMs]: Amount of items: 16
[countDTMs]: Amount of items: 14
[countDTMs]: Amount of items: 13
[countDTMs]: Amount of items: 12
[countDTMs]: Amount of items: 10
[countDTMs]: Amount of items: 9
[countDTMs]: Amount of items: 7
[countDTMs]: Amount of items: 5
[countDTMs]: Amount of items: 4
[countDTMs]: Amount of items: 3
[countDTMs]: Amount of items: 1
[waitConversion]: Conversion successfull
[countDTMs]: No searched items in inventory!
[setupMain]: Walking initiated!
[setupMain]: Destination: 0
[findBankersMM]: Length(TPA): 1
[findBankersMM]: Length(TPA): 6
[findBankersMM]: B[w]: 23
[findBankersMM]: B[h]: 2
[findBankersMM]: Length[ref]: 6
[findBankersMM]: Point: (633, 145)
[walkTo]: Flag is still present, taking a step backwards
[findBankersMM]: Length(TPA): 1
[findBankersMM]: Length(TPA): 1
[findBankersMM]: Length(TPA): 1
[findBankersMM]: Length(TPA): 5
[findBankersMM]: B[w]: 17
[findBankersMM]: B[h]: 0
[findBankersMM]: Length[ref]: 5
[findBankersMM]: Point: (630, 76)
[findArea]: Player is in bank.
[findBankersMM]: Length(TPA): 1
[findBankersMM]: Length(TPA): 1
[findBankersMM]: Length(TPA): 1
[findBankersMM]: Length(TPA): 5
[findBankersMM]: B[w]: 17
[findBankersMM]: B[h]: 0
[findBankersMM]: Length[ref]: 5
[findBankersMM]: Point: (630, 76)
[findArea]: Player is in bank.
________________________________
/________________________________\
| AK Cooker by Smidqe |
|________________________________|
|________________________________|
| - Version: 1.531 |
| - Total runtime: 00:58:47 |
|________________________________|
|________________________________|
| Player: 0 |
| - Nickname : |
| - Time played : 00:58:43 |
| - Fish : Salmon |
| - Cooked : 830 |
| - Experience : 74700 |
| - EXP/H : 76220 |
| - Breaks : 0 |
|________________________________|
\________________________________/
[setupChecks]: Checks done
[countDTMs]: No searched items in inventory!
[locateObject]: Length(TPA): 124
[locateObject]: Current uptext: Walk here
[locateObject]: Uptext not found
[locateObject]: Length(TPA): 259
[locateObject]: Current uptext: Walk here B-0-O-t- Y H0 (skill: 363) / 3 more options
[locateObject]: Uptext not found
[locateObject]: Length(TPA): 230
[locateObject]: Current uptext: Walk here Nabukito0 (skill: 1043) / 3 more options
[locateObject]: Uptext not found
[locateObject]: Length(TPA): 274
[locateObject]: Current uptext: Walk here
[locateObject]: Uptext not found
[locateObject]: Length(TPA): 242
[locateObject]: Current uptext: Walk here
[locateObject]: Uptext not found
[locateObject]: Length(TPA): 232
[locateObject]: Current uptext: Walk here
[locateObject]: Uptext not found
[locateObject]: Length(TPA): 161
[locateObject]: Current uptext: Walk here
[locateObject]: Uptext not found
[locateObject]: Length(TPA): 1
[locateObject]: Current uptext: Walk here
[locateObject]: Uptext not found
[locateObject]: Length(TPA): 207
[locateObject]: Current uptext: Walk here
[locateObject]: Uptext not found
[locateObject]: Length(TPA): 57
[locateObject]: Current uptext: Walk here
[locateObject]: Uptext not found
[locateObject]: Length(TPA): 1
[locateObject]: Current uptext: Walk here
[locateObject]: Uptext not found
[locateObject]: Object wasn't found, setting player false
[initBank]: Click happened at: (0, 0)
[initBank]: Bank wasn't open
[initBank]: Bank opening: False
________________________________
/________________________________\
| AK Cooker by Smidqe |
|________________________________|
|________________________________|
| - Version: 1.531 |
| - Total runtime: 01:00:40 |
|________________________________|
|________________________________|
| Player: 0 |
| - Nickname : |
| - Time played : 01:00:36 |
| - Fish : Salmon |
| - Cooked : 830 |
| - Experience : 74700 |
| - EXP/H : 73860 |
| - Breaks : 0 |
|________________________________|
\________________________________/
[setupChecks]: Checks done
[setupMain]: Switching players, reason: bank opening failed
[switchPlayer]: Player switching initiated
NextPlayer(False)
SwitchToPlayer(PlayerNo: 0, Active: False);
Player is not Active...
All players not active!
[switchPlayer]: Player switching finished, last player: False
[setupMain]: This is the end, stopping the script and something.
________________________________
/________________________________\
| AK Cooker by Smidqe |
|________________________________|
|________________________________|
| - Version: 1.531 |
| - Total runtime: 01:00:46 |
|________________________________|
|________________________________|
| Player: 0 |
| - Nickname : |
| - Time played : 01:00:46 |
| - Fish : Salmon |
| - Cooked : 830 |
| - Experience : 74700 |
| - EXP/H : 73754 |
| - Breaks : 0 |
| - Reason : bank opening failed|
|________________________________|
\________________________________/
And here is the location he was at when he couldn't find the bank:

Smidqe

2013-05-11 04:49:44

From: BMWxi
//snip


Well, that's not good… Probably colors are outdated.

I'll update this as soon as possible. I'll probably update the sorting for the bank booth and add the right clicking back for the bank booth. (Also I apparently forgot to change the script version in 1.532, silly me :p)

E: The update will take longer, since I am going to rewrite most of the functions and replace them with more global methods (which I use)

iamorange12

2013-05-14 21:15:02

Hey, I would love to see P2P fish implemented into this. I'm willing to get the DTM's… just need to know if you need them cooked, raw, or both.

Smidqe

2013-05-15 03:17:50

From: iamorange12
Hey, I would love to see P2P fish implemented into this. I'm willing to get the DTM's… just need to know if you need them cooked, raw, or both.


I only need the raw ones.

iamorange12

2013-05-15 15:19:42

From: Smidqe
I only need the raw ones.


Okay, will get working on those asap!

iamorange12

2013-05-16 10:44:42

DTM's :spongebob:

@Smidqe

Raw mackerel:
DTM := DTMFromString('mwQAAAHic42RgYFAAYkMg1gViZSAWA2JpKFsUiGWAWBKKhYBYGIilgFgRqlceqm7K5GAgyYQXczEQBoxEYDgAAACEA7M=');

Raw cod:
DTM := DTMFromString('mPwEAAHicpcnNCkBQEMXxYcnCRyg2woMopUS53Sip+wbef++/mJXldep3pukkIrJix4IRMzZMeg0O3OrCCYsaLUr0GNChQYocGWL9C1S6O/fQoZdI/BP88MkLWQgHUw==');

Raw manta ray:
DTM := DTMFromString('m0gEAAHictc7NCkRQFMDxO3aG0SSU1LjJA3gLi3kRRcRCGrEZD+5/6yzJyqlf56tOJ1JKzfhjE6ZeMGFAhxqt1EaDSnKPET+swtyIECBGigwfoaXPZZcghA8PL7hw8IQtszfKr/nGOlRofbq7dk88bnIcOy3wDeE=');

Raw rocktail:
DTM := DTMFromString('mVAEAAHicpc1BC0BAEIbh4UapdRHtOqD8YA4OchC1Lv6jd2sOcrRfPVMzfTVGRHbMmLBgwwGP++XCqf1Vu0GNAQ4VShTIkMPovUWPUftW9842zPS38CMmSaRvHtyGDCg=');

Raw sea turtle:
DTM := DTMFromString('m6wAAAHic42ZgYFAEYhUglgNicSAWgdIyQKwBxFpArAulY4E4FIjDgTgKiBOAOAOIs4A4G4hTgTgGKp8UqQ0kmYjCXAzEA0YSMBIAAGvwBp0=');

Raw cavefish:
DTM := DTMFromString('m6wAAAHic42ZgYPAA4gggDgbiACD2g4o5ArEdlHYDYn8gtgViMyC2hso5AbErELsAsQMQWwKxERQvW10EJJmIwlwMxANGEjASAABlGge6');

Raw shark:
DTM := DTMFromString('mPwEAAHicpcu7CoAwEETRiYjFCioEX+i3pvLDveAUYqcOHLbITS8pMPrWqHQtoUGLARkzdqzo/Hbvw93mJrubsPiG26MU/34v9H3ph8dO1YoDUg==');

Raw monkfish:
DTM := DTMFromString('m0gEAAHictczdCkRQFIbhPQ5dwNyH8jMZCXHkRmxxMNMURZna4ba9ajlzyKpn/bTqeyqlfljwx4AOH7SooFGjwRc9RkwwWMUsGUb2Nxy48OGJfX/JP0GOQmYmjjtFjAiBZOkypFuXs9U99bjJeW0vvBDs');

Raw bass:
DTM := DTMFromString('mVAEAAHicE2BgYFgAxbOAeAoUTwfi2UA8D4gXQvFSIF4BxKuAeA0Qr4WK2QGxOxB7QGlHILYBYgsgNgZiUyA2AmITJLYFVJ8zEBenJgNJJrIxF5CkBDNSiNEBAPRFD9o=');

In case you want to make your own DTM's:

Smidqe

2013-05-16 11:09:35

From: iamorange12
DTM's :spongebob:

@Smidqe

Raw mackerel:
DTM := DTMFromString('mwQAAAHic42RgYFAAYkMg1gViZSAWA2JpKFsUiGWAWBKKhYBYGIilgFgRqlceqm7K5GAgyYQXczEQBoxEYDgAAACEA7M=');

Raw cod:
DTM := DTMFromString('mPwEAAHicpcnNCkBQEMXxYcnCRyg2woMopUS53Sip+wbef++/mJXldep3pukkIrJix4IRMzZMeg0O3OrCCYsaLUr0GNChQYocGWL9C1S6O/fQoZdI/BP88MkLWQgHUw==');

Raw manta ray:
DTM := DTMFromString('m0gEAAHictc7NCkRQFMDxO3aG0SSU1LjJA3gLi3kRRcRCGrEZD+5/6yzJyqlf56tOJ1JKzfhjE6ZeMGFAhxqt1EaDSnKPET+swtyIECBGigwfoaXPZZcghA8PL7hw8IQtszfKr/nGOlRofbq7dk88bnIcOy3wDeE=');

Raw rocktail:
DTM := DTMFromString('mVAEAAHicpc1BC0BAEIbh4UapdRHtOqD8YA4OchC1Lv6jd2sOcrRfPVMzfTVGRHbMmLBgwwGP++XCqf1Vu0GNAQ4VShTIkMPovUWPUftW9842zPS38CMmSaRvHtyGDCg=');

Raw sea turtle:
DTM := DTMFromString('m6wAAAHic42ZgYFAEYhUglgNicSAWgdIyQKwBxFpArAulY4E4FIjDgTgKiBOAOAOIs4A4G4hTgTgGKp8UqQ0kmYjCXAzEA0YSMBIAAGvwBp0=');

Raw cavefish:
DTM := DTMFromString('m6wAAAHic42ZgYPAA4gggDgbiACD2g4o5ArEdlHYDYn8gtgViMyC2hso5AbErELsAsQMQWwKxERQvW10EJJmIwlwMxANGEjASAABlGge6');

Raw shark:
DTM := DTMFromString('mPwEAAHicpcu7CoAwEETRiYjFCioEX+i3pvLDveAUYqcOHLbITS8pMPrWqHQtoUGLARkzdqzo/Hbvw93mJrubsPiG26MU/34v9H3ph8dO1YoDUg==');

Raw monkfish:
DTM := DTMFromString('m0gEAAHictczdCkRQFIbhPQ5dwNyH8jMZCXHkRmxxMNMURZna4ba9ajlzyKpn/bTqeyqlfljwx4AOH7SooFGjwRc9RkwwWMUsGUb2Nxy48OGJfX/JP0GOQmYmjjtFjAiBZOkypFuXs9U99bjJeW0vvBDs');

Raw bass:
DTM := DTMFromString('mVAEAAHicE2BgYFgAxbOAeAoUTwfi2UA8D4gXQvFSIF4BxKuAeA0Qr4WK2QGxOxB7QGlHILYBYgsgNgZiUyA2AmITJLYFVJ8zEBenJgNJJrIxF5CkBDNSiNEBAPRFD9o=');

In case you want to make your own DTM's:


Thanks, I'll include them in the next version.

netz

2013-05-22 14:25:32

"[locateObject]: Current uptext: Walk here / 1 more options
[locateObject]: Uptext not found
[locateObject]: Length(TPA): 8
[locateObject]: Current uptext: Walk here / 1 more options
[locateObject]: Uptext not found
[locateObject]: Length(TPA): 16
[locateObject]: Current uptext: Walk here / 1 more options
[locateObject]: Uptext not found"

Getting these errors now.

Smidqe

2013-05-22 14:44:55

From: netz
"[locateObject]: Current uptext: Walk here / 1 more options
[locateObject]: Uptext not found
[locateObject]: Length(TPA): 8
[locateObject]: Current uptext: Walk here / 1 more options
[locateObject]: Uptext not found
[locateObject]: Length(TPA): 16
[locateObject]: Current uptext: Walk here / 1 more options
[locateObject]: Uptext not found"

Getting these errors now.


Yep, the colors are somewhat outdated and it'll be fixed once I release the next version.

netz

2013-05-22 21:56:11

From: Smidqe
Yep, the colors are somewhat outdated and it'll be fixed once I release the next version.


Best of luck brother!

Smidqe

2013-05-25 01:54:10

Script updated to version 1.6! Changelog is on the opening post!

Note: DeclarePlayers() setup has changed, you can't use strings to choose what fish to cook anymore, since it's now handled by integers. Also this might be the last update for SRL5, since I'm slowly moving towards SRL6 and Lape

netz

2013-05-28 04:51:37

Not working.

Smidqe

2013-05-29 03:00:43

From: netz
Not working.


What kind of error are you getting? Problems with object finding or items?

Also remember to include the debug log, and the error you're getting. Otherwise I can't fix the bug.

E: I think I found the culprit… the problem was that I used deleteValueInATPA and it left a blank TPA causing debugging to whine about out of bounds…

netz

2013-05-31 11:33:33

From: Smidqe
What kind of error are you getting? Problems with object finding or items?

Also remember to include the debug log, and the error you're getting. Otherwise I can't fix the bug.

E: I think I found the culprit… the problem was that I used deleteValueInATPA and it left a blank TPA causing debugging to whine about out of bounds…


True, works again now, many thanks!!!!!

Smidqe

2013-05-31 11:42:33

From: netz
True, works again now, many thanks!!!!!


Good to hear.

evoke99s

2013-06-29 03:40:54

got stuck when finished cooking trouts, didn't realize they were cooked had to teleport using landstone. one more post and i can post the debug for u some reason it wont let me post it even though it has no links or images.


[findArea]: Player is in bank.
________________________________
/________________________________\
| AK Cooker by Smidqe |
|________________________________|
|________________________________|
| - Version: 1.6 |
| - Total runtime: 00:58:54 |
|________________________________|
|________________________________|
| Player: 0 |
| - Nickname : evoke |
| - Time played : 00:58:36 |
| - Fish : Trout |
| - Cooked : 769 |
| – Loads : 27 |
| - Experience : 53830 |
| - EXP/H : 54823 |
| - Breaks : 0 |
|________________________________|
\________________________________/
[setupChecks]: Checks done
[countDTMs]: No searched items in inventory!
[setupMainloop]: Banking: Try #0
[handleObject]: Object finding for: Bank booth initiated!
[locateObject]: Length(TPA): 356
[locateObject]: Object found at [274, 147, False]
[handleObject]: Try #0: True
[handleBanking]: Bankscreen is open.
[countDTMs]: No searched items in inventory!
inbank:1050
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 1 strings found in this option
[findOptionMulti]: Correct option bounds are : (163, 298, 315, 307)
[handleBanking]: Bank operations: True
[setupMain]: Walking initiated!
[setupMain]: Destination: 1
[findRangeMM]: No clear view, utilising symbols!
[findRangeMM]: Length(tpa): 0
[findRangeMM]: Length(tpa): 0
[findRangeMM]: Length(tpa): 42
[pointsNear]: Points: [(635, 33), (635, 21), (636, 32), (629, 16), (629, 15)]
[findRangeMM]: B(w): 16
[findRangeMM]: B(h): 21
[findRangeMM]: Point: (628, 25)
[findRangeMM]: Range found successfully!
[findBankersMM]: Length(TPA): 1
[findBankersMM]: Length(TPA): 6
[findBankersMM]: B[w]: 22
[findBankersMM]: B[h]: 2
[findBankersMM]: Length[ref]: 6
[findBankersMM]: Point: (628, 133)
[findArea]: Player is in range.
[findBankersMM]: Length(TPA): 1
[findBankersMM]: Length(TPA): 6
[findBankersMM]: B[w]: 22
[findBankersMM]: B[h]: 2
[findBankersMM]: Length[ref]: 6
[findBankersMM]: Point: (628, 133)
[findArea]: Player is in range.
________________________________
/________________________________\
| AK Cooker by Smidqe |
|________________________________|
|________________________________|
| - Version: 1.6 |
| - Total runtime: 00:59:13 |
|________________________________|
|________________________________|
| Player: 0 |
| - Nickname : evoke |
| - Time played : 00:58:55 |
| - Fish : Trout |
| - Cooked : 769 |
| – Loads : 27 |
| - Experience : 53830 |
| - EXP/H : 54528 |
| - Breaks : 0 |
|________________________________|
\________________________________/
[setupChecks]: Checks done
[countDTMs]: Amount of items: 28
[setupMainloop]: Cooking: Try #0
[useRaw]: Item successfully clicked
[handleObject]: Object finding for: Range initiated!
[locateObject]: Length(TPA): 93
[locateObject]: Object found at [245, 96, True]
[findOptionMulti]: 2 strings found in this option
[findOptionMulti]: Correct option bounds are : (163, 119, 321, 132)
[handleObject]: Try #0: True
[waitConversion]: Entering conversion loop!
[countDTMs]: Amount of items: 28
[countDTMs]: Amount of items: 24
[countDTMs]: Amount of items: 22
[countDTMs]: Amount of items: 21
[waitConversion]: Conversion successfull
[countDTMs]: Amount of items: 19
[setupMainloop]: Cooking: Try #0
[useRaw]: Item successfully clicked
[handleObject]: Object finding for: Range initiated!
[locateObject]: Length(TPA): 35
[locateObject]: Object found at [263, 158, True]
[findOptionMulti]: 1 strings found in this option
[findOptionMulti]: 2 strings found in this option
[findOptionMulti]: Correct option bounds are : (100, 197, 258, 210)
[handleObject]: Try #0: False
[locateObject]: Length(TPA): 113
[locateObject]: Object found at [268, 152, True]
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 1 strings found in this option
[findOptionMulti]: 0 strings found in this option
[locateObject]: Length(TPA): 62
[locateObject]: Object found at [262, 155, True]
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 1 strings found in this option
[findOptionMulti]: 0 strings found in this option
[locateObject]: Length(TPA): 102
[locateObject]: Object found at [266, 152, True]
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 1 strings found in this option
[findOptionMulti]: 0 strings found in this option
[locateObject]: Length(TPA): 83
[locateObject]: Object found at [260, 152, True]
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 1 strings found in this option
[findOptionMulti]: 0 strings found in this option
[locateObject]: Length(TPA): 122
[locateObject]: Object found at [259, 151, True]
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 1 strings found in this option
[findOptionMulti]: 0 strings found in this option
[locateObject]: Length(TPA): 122
[locateObject]: Object found at [259, 151, True]
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 1 strings found in this option
[findOptionMulti]: 0 strings found in this option
[locateObject]: Length(TPA): 119
[locateObject]: Object found at [259, 151, True]
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 1 strings found in this option
[findOptionMulti]: 0 strings found in this option
[locateObject]: Length(TPA): 119
[locateObject]: Object found at [259, 151, True]
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 1 strings found in this option
[findOptionMulti]: 0 strings found in this option
[locateObject]: Length(TPA): 117
[locateObject]: Object found at [259, 151, True]
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 1 strings found in this option
[findOptionMulti]: 0 strings found in this option
[locateObject]: Length(TPA): 117
[locateObject]: Object found at [259, 151, True]
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 1 strings found in this option
[findOptionMulti]: 0 strings found in this option
[locateObject]: Length(TPA): 74
[locateObject]: Object found at [259, 153, True]
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 1 strings found in this option
[findOptionMulti]: 0 strings found in this option
[locateObject]: Length(TPA): 74
[locateObject]: Object found at [259, 153, True]
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 1 strings found in this option
[findOptionMulti]: 0 strings found in this option
[locateObject]: Length(TPA): 79
[locateObject]: Object found at [258, 153, True]
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 1 strings found in this option
[findOptionMulti]: 0 strings found in this option
[locateObject]: Length(TPA): 81
[locateObject]: Object found at [259, 154, True]
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 1 strings found in this option
[findOptionMulti][locateObject]: Length(TPA): 84
[locateObject]: Length(TPA): 30
[locateObject]: Length(TPA): 33
[locateObject]: Length(TPA): 144
[locateObject]: Length(TPA): 125
[locateObject]: Length(TPA): 43
[locateObject]: Length(TPA): 50
[locateObject]: Length(TPA): 102
[locateObject]: Length(TPA): 29
[locateObject]: Length(TPA): 26
[locateObject]: Length(TPA): 87
[locateObject]: Object wasn't found, setting player false
[handleObject]: Try #1 : False
[setupMainloop]: handleObject failed: OBJECT_RANGE
[countDTMs]: No searched items in inventory!
[setupMain]: Walking initiated!
[setupMain]: Destination: 0
[findBankersMM]: Length(TPA): 1
[findBankersMM]: Length(TPA): 5
[findBankersMM]: B[w]: 16
[findBankersMM]: B[h]: 0
[findBankersMM]: Length[ref]: 5
[findBankersMM]: Point: (632, 141)
[walkTo]: No flag present, and we are not moving, point selection failed!
[findBankersMM]: Length(TPA): 1
[findBankersMM]: Length(TPA): 5
[findBankersMM]: B[w]: 16
[findBankersMM]: B[h]: 0
[findBankersMM]: Length[ref]: 5
[findBankersMM]: Point: (632, 141)
[walkTo]: No flag present, and we are not moving, point selection failed!
[findBankersMM]: Length(TPA): 1
[findBankersMM]: Length(TPA): 5
[findBankersMM]: B[w]: 16
[findBankersMM]: B[h]: 0
[findBankersMM]: Length[ref]: 5
[findBankersMM]: Point: (632, 141)
[findArea]: Player is in range.
[lostWalk]: Player is lost, teleporting to lodestone!
[lostWalk]: Current step: 0
[blindWalk]: Relying on blind walking…
[findBankersMM]: Length(TPA): 1
[findBankersMM]: Length(TPA): 1
[findBankersMM]: Length(TPA): 1
[findBankersMM]: Length(TPA): 1
[findBankersMM]: Length(TPA): 1
[findBankersMM]: Length(TPA): 1
[findBankersMM]: Length(TPA): 1
[findBankersMM]: Length(TPA): 1
[findBankersMM]: Length(TPA): 1
[findBankersMM]: Length(TPA): 1
[findBankersMM]: Point: (-1, -1)
[lostWalk]: Current step: 1
[blindWalk]: Relying on blind walking…
[lostWalk]: Symbol found: Point: (604, 132)
[lostWalk]: Point is inside minimap, clicking it
[lostWalk]: Relocate using symbol: Success!
[lostWalk]: Starting position found: True
[relocatePlayer]: Normal walking failed, trying to relocate the player to bank
[relocatePlayer]: Symbol found!
[relocatePlayer]: Player relocated: True

Smidqe

2013-06-29 04:57:17

From: evoke99s
got stuck when finished cooking trouts, didn't realize they were cooked had to teleport using landstone. one more post and i can post the debug for u some reason it wont let me post it even though it has no links or images.

//snip (log)


Next time you should use
tags (without space), the post will look much nicer.
[findArea]: Player is in bank.
________________________________
/________________________________\
| AK Cooker by Smidqe |
|________________________________|
|________________________________|
| - Version: 1.6 |
| - Total runtime: 00:58:54 |
|________________________________|
|________________________________|
| Player: 0 |
| - Nickname : evoke |
| - Time played : 00:58:36 |
| - Fish : Trout |
| - Cooked : 769 |
| -- Loads : 27 |
| - Experience : 53830 |
| - EXP/H : 54823 |
| - Breaks : 0 |
|________________________________|
\________________________________/
[setupChecks]: Checks done
[countDTMs]: No searched items in inventory!
[setupMainloop]: Banking: Try #0
[handleObject]: Object finding for: Bank booth initiated!
[locateObject]: Length(TPA): 356
[locateObject]: Object found at [274, 147, False]
[handleObject]: Try #0: True
[handleBanking]: Bankscreen is open.
[countDTMs]: No searched items in inventory!
inbank:1050
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 1 strings found in this option
[findOptionMulti]: Correct option bounds are : (163, 298, 315, 307)
[handleBanking]: Bank operations: True
[setupMain]: Walking initiated!
[setupMain]: Destination: 1
[findRangeMM]: No clear view, utilising symbols!
[findRangeMM]: Length(tpa): 0
[findRangeMM]: Length(tpa): 0
[findRangeMM]: Length(tpa): 42
[pointsNear]: Points: [(635, 33), (635, 21), (636, 32), (629, 16), (629, 15)]
[findRangeMM]: B(w): 16
[findRangeMM]: B(h): 21
[findRangeMM]: Point: (628, 25)
[findRangeMM]: Range found successfully!
[findBankersMM]: Length(TPA): 1
[findBankersMM]: Length(TPA): 6
[findBankersMM]: B[w]: 22
[findBankersMM]: B[h]: 2
[findBankersMM]: Length[ref]: 6
[findBankersMM]: Point: (628, 133)
[findArea]: Player is in range.
[findBankersMM]: Length(TPA): 1
[findBankersMM]: Length(TPA): 6
[findBankersMM]: B[w]: 22
[findBankersMM]: B[h]: 2
[findBankersMM]: Length[ref]: 6
[findBankersMM]: Point: (628, 133)
[findArea]: Player is in range.
________________________________
/________________________________\
| AK Cooker by Smidqe |
|________________________________|
|________________________________|
| - Version: 1.6 |
| - Total runtime: 00:59:13 |
|________________________________|
|________________________________|
| Player: 0 |
| - Nickname : evoke |
| - Time played : 00:58:55 |
| - Fish : Trout |
| - Cooked : 769 |
| -- Loads : 27 |
| - Experience : 53830 |
| - EXP/H : 54528 |
| - Breaks : 0 |
|________________________________|
\________________________________/
[setupChecks]: Checks done
[countDTMs]: Amount of items: 28
[setupMainloop]: Cooking: Try #0
[useRaw]: Item successfully clicked
[handleObject]: Object finding for: Range initiated!
[locateObject]: Length(TPA): 93
[locateObject]: Object found at [245, 96, True]
[findOptionMulti]: 2 strings found in this option
[findOptionMulti]: Correct option bounds are : (163, 119, 321, 132)
[handleObject]: Try #0: True
[waitConversion]: Entering conversion loop!
[countDTMs]: Amount of items: 28
[countDTMs]: Amount of items: 24
[countDTMs]: Amount of items: 22
[countDTMs]: Amount of items: 21
[waitConversion]: Conversion successfull
[countDTMs]: Amount of items: 19
[setupMainloop]: Cooking: Try #0
[useRaw]: Item successfully clicked
[handleObject]: Object finding for: Range initiated!
[locateObject]: Length(TPA): 35
[locateObject]: Object found at [263, 158, True]
[findOptionMulti]: 1 strings found in this option
[findOptionMulti]: 2 strings found in this option
[findOptionMulti]: Correct option bounds are : (100, 197, 258, 210)
[handleObject]: Try #0: False
[locateObject]: Length(TPA): 113
[locateObject]: Object found at [268, 152, True]
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 1 strings found in this option
[findOptionMulti]: 0 strings found in this option
[locateObject]: Length(TPA): 62
[locateObject]: Object found at [262, 155, True]
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 1 strings found in this option
[findOptionMulti]: 0 strings found in this option
[locateObject]: Length(TPA): 102
[locateObject]: Object found at [266, 152, True]
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 1 strings found in this option
[findOptionMulti]: 0 strings found in this option
[locateObject]: Length(TPA): 83
[locateObject]: Object found at [260, 152, True]
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 1 strings found in this option
[findOptionMulti]: 0 strings found in this option
[locateObject]: Length(TPA): 122
[locateObject]: Object found at [259, 151, True]
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 1 strings found in this option
[findOptionMulti]: 0 strings found in this option
[locateObject]: Length(TPA): 122
[locateObject]: Object found at [259, 151, True]
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 1 strings found in this option
[findOptionMulti]: 0 strings found in this option
[locateObject]: Length(TPA): 119
[locateObject]: Object found at [259, 151, True]
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 1 strings found in this option
[findOptionMulti]: 0 strings found in this option
[locateObject]: Length(TPA): 119
[locateObject]: Object found at [259, 151, True]
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 1 strings found in this option
[findOptionMulti]: 0 strings found in this option
[locateObject]: Length(TPA): 117
[locateObject]: Object found at [259, 151, True]
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 1 strings found in this option
[findOptionMulti]: 0 strings found in this option
[locateObject]: Length(TPA): 117
[locateObject]: Object found at [259, 151, True]
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 1 strings found in this option
[findOptionMulti]: 0 strings found in this option
[locateObject]: Length(TPA): 74
[locateObject]: Object found at [259, 153, True]
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 1 strings found in this option
[findOptionMulti]: 0 strings found in this option
[locateObject]: Length(TPA): 74
[locateObject]: Object found at [259, 153, True]
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 1 strings found in this option
[findOptionMulti]: 0 strings found in this option
[locateObject]: Length(TPA): 79
[locateObject]: Object found at [258, 153, True]
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 1 strings found in this option
[findOptionMulti]: 0 strings found in this option
[locateObject]: Length(TPA): 81
[locateObject]: Object found at [259, 154, True]
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 1 strings found in this option
[findOptionMulti][locateObject]: Length(TPA): 84
[locateObject]: Length(TPA): 30
[locateObject]: Length(TPA): 33
[locateObject]: Length(TPA): 144
[locateObject]: Length(TPA): 125
[locateObject]: Length(TPA): 43
[locateObject]: Length(TPA): 50
[locateObject]: Length(TPA): 102
[locateObject]: Length(TPA): 29
[locateObject]: Length(TPA): 26
[locateObject]: Length(TPA): 87
[locateObject]: Object wasn't found, setting player false
[handleObject]: Try #1 : False
[setupMainloop]: handleObject failed: OBJECT_RANGE
[countDTMs]: No searched items in inventory!
[setupMain]: Walking initiated!
[setupMain]: Destination: 0
[findBankersMM]: Length(TPA): 1
[findBankersMM]: Length(TPA): 5
[findBankersMM]: B[w]: 16
[findBankersMM]: B[h]: 0
[findBankersMM]: Length[ref]: 5
[findBankersMM]: Point: (632, 141)
[walkTo]: No flag present, and we are not moving, point selection failed!
[findBankersMM]: Length(TPA): 1
[findBankersMM]: Length(TPA): 5
[findBankersMM]: B[w]: 16
[findBankersMM]: B[h]: 0
[findBankersMM]: Length[ref]: 5
[findBankersMM]: Point: (632, 141)
[walkTo]: No flag present, and we are not moving, point selection failed!
[findBankersMM]: Length(TPA): 1
[findBankersMM]: Length(TPA): 5
[findBankersMM]: B[w]: 16
[findBankersMM]: B[h]: 0
[findBankersMM]: Length[ref]: 5
[findBankersMM]: Point: (632, 141)
[findArea]: Player is in range.
[lostWalk]: Player is lost, teleporting to lodestone!
[lostWalk]: Current step: 0
[blindWalk]: Relying on blind walking...
[findBankersMM]: Length(TPA): 1
[findBankersMM]: Length(TPA): 1
[findBankersMM]: Length(TPA): 1
[findBankersMM]: Length(TPA): 1
[findBankersMM]: Length(TPA): 1
[findBankersMM]: Length(TPA): 1
[findBankersMM]: Length(TPA): 1
[findBankersMM]: Length(TPA): 1
[findBankersMM]: Length(TPA): 1
[findBankersMM]: Length(TPA): 1
[findBankersMM]: Point: (-1, -1)
[lostWalk]: Current step: 1
[blindWalk]: Relying on blind walking...
[lostWalk]: Symbol found: Point: (604, 132)
[lostWalk]: Point is inside minimap, clicking it
[lostWalk]: Relocate using symbol: Success!
[lostWalk]: Starting position found: True
[relocatePlayer]: Normal walking failed, trying to relocate the player to bank
[relocatePlayer]: Symbol found!
[relocatePlayer]: Player relocated: True

I don't have any idea why waitConversion() thinks that there is no more raw fishes in the inventory, it is the thing that I still haven't figured out.

I have encountered it myself, but not regularly. Sometimes it would go for 6 hours, sometimes it would cut out after 1 hour, but it should recover by itself. I really can't fix it since I have no idea why it would even happen, eventually I will replace DTMs with my own item detection functions but not until SRL6 comes out.

evoke99s

2013-06-29 08:32:01

From: Smidqe
Next time you should use
tags (without space), the post will look much nicer.
[findArea]: Player is in bank.
________________________________
/________________________________\
| AK Cooker by Smidqe |
|________________________________|
|________________________________|
| - Version: 1.6 |
| - Total runtime: 00:58:54 |
|________________________________|
|________________________________|
| Player: 0 |
| - Nickname : evoke |
| - Time played : 00:58:36 |
| - Fish : Trout |
| - Cooked : 769 |
| -- Loads : 27 |
| - Experience : 53830 |
| - EXP/H : 54823 |
| - Breaks : 0 |
|________________________________|
\________________________________/
[setupChecks]: Checks done
[countDTMs]: No searched items in inventory!
[setupMainloop]: Banking: Try #0
[handleObject]: Object finding for: Bank booth initiated!
[locateObject]: Length(TPA): 356
[locateObject]: Object found at [274, 147, False]
[handleObject]: Try #0: True
[handleBanking]: Bankscreen is open.
[countDTMs]: No searched items in inventory!
inbank:1050
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 1 strings found in this option
[findOptionMulti]: Correct option bounds are : (163, 298, 315, 307)
[handleBanking]: Bank operations: True
[setupMain]: Walking initiated!
[setupMain]: Destination: 1
[findRangeMM]: No clear view, utilising symbols!
[findRangeMM]: Length(tpa): 0
[findRangeMM]: Length(tpa): 0
[findRangeMM]: Length(tpa): 42
[pointsNear]: Points: [(635, 33), (635, 21), (636, 32), (629, 16), (629, 15)]
[findRangeMM]: B(w): 16
[findRangeMM]: B(h): 21
[findRangeMM]: Point: (628, 25)
[findRangeMM]: Range found successfully!
[findBankersMM]: Length(TPA): 1
[findBankersMM]: Length(TPA): 6
[findBankersMM]: B[w]: 22
[findBankersMM]: B[h]: 2
[findBankersMM]: Length[ref]: 6
[findBankersMM]: Point: (628, 133)
[findArea]: Player is in range.
[findBankersMM]: Length(TPA): 1
[findBankersMM]: Length(TPA): 6
[findBankersMM]: B[w]: 22
[findBankersMM]: B[h]: 2
[findBankersMM]: Length[ref]: 6
[findBankersMM]: Point: (628, 133)
[findArea]: Player is in range.
________________________________
/________________________________\
| AK Cooker by Smidqe |
|________________________________|
|________________________________|
| - Version: 1.6 |
| - Total runtime: 00:59:13 |
|________________________________|
|________________________________|
| Player: 0 |
| - Nickname : evoke |
| - Time played : 00:58:55 |
| - Fish : Trout |
| - Cooked : 769 |
| -- Loads : 27 |
| - Experience : 53830 |
| - EXP/H : 54528 |
| - Breaks : 0 |
|________________________________|
\________________________________/
[setupChecks]: Checks done
[countDTMs]: Amount of items: 28
[setupMainloop]: Cooking: Try #0
[useRaw]: Item successfully clicked
[handleObject]: Object finding for: Range initiated!
[locateObject]: Length(TPA): 93
[locateObject]: Object found at [245, 96, True]
[findOptionMulti]: 2 strings found in this option
[findOptionMulti]: Correct option bounds are : (163, 119, 321, 132)
[handleObject]: Try #0: True
[waitConversion]: Entering conversion loop!
[countDTMs]: Amount of items: 28
[countDTMs]: Amount of items: 24
[countDTMs]: Amount of items: 22
[countDTMs]: Amount of items: 21
[waitConversion]: Conversion successfull
[countDTMs]: Amount of items: 19
[setupMainloop]: Cooking: Try #0
[useRaw]: Item successfully clicked
[handleObject]: Object finding for: Range initiated!
[locateObject]: Length(TPA): 35
[locateObject]: Object found at [263, 158, True]
[findOptionMulti]: 1 strings found in this option
[findOptionMulti]: 2 strings found in this option
[findOptionMulti]: Correct option bounds are : (100, 197, 258, 210)
[handleObject]: Try #0: False
[locateObject]: Length(TPA): 113
[locateObject]: Object found at [268, 152, True]
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 1 strings found in this option
[findOptionMulti]: 0 strings found in this option
[locateObject]: Length(TPA): 62
[locateObject]: Object found at [262, 155, True]
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 1 strings found in this option
[findOptionMulti]: 0 strings found in this option
[locateObject]: Length(TPA): 102
[locateObject]: Object found at [266, 152, True]
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 1 strings found in this option
[findOptionMulti]: 0 strings found in this option
[locateObject]: Length(TPA): 83
[locateObject]: Object found at [260, 152, True]
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 1 strings found in this option
[findOptionMulti]: 0 strings found in this option
[locateObject]: Length(TPA): 122
[locateObject]: Object found at [259, 151, True]
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 1 strings found in this option
[findOptionMulti]: 0 strings found in this option
[locateObject]: Length(TPA): 122
[locateObject]: Object found at [259, 151, True]
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 1 strings found in this option
[findOptionMulti]: 0 strings found in this option
[locateObject]: Length(TPA): 119
[locateObject]: Object found at [259, 151, True]
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 1 strings found in this option
[findOptionMulti]: 0 strings found in this option
[locateObject]: Length(TPA): 119
[locateObject]: Object found at [259, 151, True]
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 1 strings found in this option
[findOptionMulti]: 0 strings found in this option
[locateObject]: Length(TPA): 117
[locateObject]: Object found at [259, 151, True]
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 1 strings found in this option
[findOptionMulti]: 0 strings found in this option
[locateObject]: Length(TPA): 117
[locateObject]: Object found at [259, 151, True]
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 1 strings found in this option
[findOptionMulti]: 0 strings found in this option
[locateObject]: Length(TPA): 74
[locateObject]: Object found at [259, 153, True]
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 1 strings found in this option
[findOptionMulti]: 0 strings found in this option
[locateObject]: Length(TPA): 74
[locateObject]: Object found at [259, 153, True]
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 1 strings found in this option
[findOptionMulti]: 0 strings found in this option
[locateObject]: Length(TPA): 79
[locateObject]: Object found at [258, 153, True]
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 1 strings found in this option
[findOptionMulti]: 0 strings found in this option
[locateObject]: Length(TPA): 81
[locateObject]: Object found at [259, 154, True]
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 1 strings found in this option
[findOptionMulti][locateObject]: Length(TPA): 84
[locateObject]: Length(TPA): 30
[locateObject]: Length(TPA): 33
[locateObject]: Length(TPA): 144
[locateObject]: Length(TPA): 125
[locateObject]: Length(TPA): 43
[locateObject]: Length(TPA): 50
[locateObject]: Length(TPA): 102
[locateObject]: Length(TPA): 29
[locateObject]: Length(TPA): 26
[locateObject]: Length(TPA): 87
[locateObject]: Object wasn't found, setting player false
[handleObject]: Try #1 : False
[setupMainloop]: handleObject failed: OBJECT_RANGE
[countDTMs]: No searched items in inventory!
[setupMain]: Walking initiated!
[setupMain]: Destination: 0
[findBankersMM]: Length(TPA): 1
[findBankersMM]: Length(TPA): 5
[findBankersMM]: B[w]: 16
[findBankersMM]: B[h]: 0
[findBankersMM]: Length[ref]: 5
[findBankersMM]: Point: (632, 141)
[walkTo]: No flag present, and we are not moving, point selection failed!
[findBankersMM]: Length(TPA): 1
[findBankersMM]: Length(TPA): 5
[findBankersMM]: B[w]: 16
[findBankersMM]: B[h]: 0
[findBankersMM]: Length[ref]: 5
[findBankersMM]: Point: (632, 141)
[walkTo]: No flag present, and we are not moving, point selection failed!
[findBankersMM]: Length(TPA): 1
[findBankersMM]: Length(TPA): 5
[findBankersMM]: B[w]: 16
[findBankersMM]: B[h]: 0
[findBankersMM]: Length[ref]: 5
[findBankersMM]: Point: (632, 141)
[findArea]: Player is in range.
[lostWalk]: Player is lost, teleporting to lodestone!
[lostWalk]: Current step: 0
[blindWalk]: Relying on blind walking...
[findBankersMM]: Length(TPA): 1
[findBankersMM]: Length(TPA): 1
[findBankersMM]: Length(TPA): 1
[findBankersMM]: Length(TPA): 1
[findBankersMM]: Length(TPA): 1
[findBankersMM]: Length(TPA): 1
[findBankersMM]: Length(TPA): 1
[findBankersMM]: Length(TPA): 1
[findBankersMM]: Length(TPA): 1
[findBankersMM]: Length(TPA): 1
[findBankersMM]: Point: (-1, -1)
[lostWalk]: Current step: 1
[blindWalk]: Relying on blind walking...
[lostWalk]: Symbol found: Point: (604, 132)
[lostWalk]: Point is inside minimap, clicking it
[lostWalk]: Relocate using symbol: Success!
[lostWalk]: Starting position found: True
[relocatePlayer]: Normal walking failed, trying to relocate the player to bank
[relocatePlayer]: Symbol found!
[relocatePlayer]: Player relocated: True

I don't have any idea why waitConversion() thinks that there is no more raw fishes in the inventory, it is the thing that I still haven't figured out.

I have encountered it myself, but not regularly. Sometimes it would go for 6 hours, sometimes it would cut out after 1 hour, but it should recover by itself. I really can't fix it since I have no idea why it would even happen, eventually I will replace DTMs with my own item detection functions but not until SRL6 comes out.



okay thanks for replying so quickly :spot: if i encounter anything different i'll let you know
it did recover itself after it teleported to landstone it just banked em and kept going

evoke99s

2013-06-29 11:18:11

hour proggy and still going
________________________________
/________________________________\
| AK Cooker by Smidqe |
|________________________________|
|________________________________|
| - Version: 1.6 |
| - Total runtime: 01:01:34 |
|________________________________|
|________________________________|
| Player: 0 |
| - Nickname : evoke |
| - Time played : 01:01:17 |
| - Fish : Tuna |
| - Cooked : 962 |
| – Loads : 34 |
| - Experience : 96200 |
| - EXP/H : 93734 |
| - Breaks : 0 |
|________________________________|
\________________________________/

I changed your waitConversion wait(20); to wait(10); seems to be running better.

when cooking it clicks on the raw tuna then the range but the waitConversion does not start it wants to try and click the raw tunas again
even though they are already cooking, when finished cooking player just stands there.



[waitConversion]: Entering conversion loop!
[countDTMs]: Amount of items: 28
[countDTMs]: Amount of items: 26
[countDTMs]: Amount of items: 25
[countDTMs]: Amount of items: 24
[countDTMs]: Amount of items: 22
[countDTMs]: Amount of items: 21
[countDTMs]: Amount of items: 20
[countDTMs]: Amount of items: 19
[countDTMs]: Amount of items: 17
[countDTMs]: Amount of items: 15
[countDTMs]: Amount of items: 14
[countDTMs]: Amount of items: 13
[countDTMs]: Amount of items: 12
[countDTMs]: Amount of items: 10
[countDTMs]: Amount of items: 9
[countDTMs]: Amount of items: 7
[countDTMs]: Amount of items: 6
[countDTMs]: Amount of items: 5
[countDTMs]: Amount of items: 4
[countDTMs]: Amount of items: 2
[countDTMs]: Amount of items: 1
[waitConversion]: Conversion successfull
[countDTMs]: No searched items in inventory!
[setupMain]: Walking initiated!
[setupMain]: Destination: 0
[findBankersMM]: Length(TPA): 1
[findBankersMM]: Length(TPA): 5
[findBankersMM]: B[w]: 17
[findBankersMM]: B[h]: 0
[findBankersMM]: Length[ref]: 5
[findBankersMM]: Point: (629, 144)
[findBankersMM]: Length(TPA): 1
[findBankersMM]: Length(TPA): 1
[findBankersMM]: Length(TPA): 5
[findBankersMM]: B[w]: 17
[findBankersMM]: B[h]: 0
[findBankersMM]: Length[ref]: 5
[findBankersMM]: Point: (630, 77)
[findArea]: Player is in bank.
[findBankersMM]: Length(TPA): 1
[findBankersMM]: Length(TPA): 1
[findBankersMM]: Length(TPA): 5
[findBankersMM]: B[w]: 17
[findBankersMM]: B[h]: 0
[findBankersMM]: Length[ref]: 5
[findBankersMM]: Point: (630, 77)
[findArea]: Player is in bank.
________________________________
/________________________________\
| AK Cooker by Smidqe |
|________________________________|
|________________________________|
| - Version: 1.6 |
| - Total runtime: 01:59:48 |
|________________________________|
|________________________________|
| Player: 0 |
| - Nickname : evoke |
| - Time played : 01:59:31 |
| - Fish : Tuna |
| - Cooked : 1760 |
| -- Loads : 62 |
| - Experience : 176000 |
| - EXP/H : 88137 |
| - Breaks : 0 |
|________________________________|
\________________________________/
[setupChecks]: Checks done
[countDTMs]: No searched items in inventory!
[setupMainloop]: Banking: Try #0
[handleObject]: Object finding for: Bank booth initiated!
[locateObject]: Length(TPA): 366
[locateObject]: Object found at [277, 148, False]
[handleObject]: Try #0: True
[handleBanking]: Bankscreen is open.
[countDTMs]: No searched items in inventory!
inbank:3696
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 1 strings found in this option
[findOptionMulti]: Correct option bounds are : (172, 302, 325, 311)
[handleBanking]: Bank operations: True
[setupMain]: Walking initiated!
[setupMain]: Destination: 1
[findRangeMM]: No clear view, utilising symbols!
[findRangeMM]: Length(tpa): 0
[findRangeMM]: Length(tpa): 0
[findRangeMM]: Length(tpa): 15
[findRangeMM]: Length(tpa): 54
[pointsNear]: Points: [(617, 13), (618, 12), (618, 11), (636, 29), (618, 19), (630, 12), (630, 11), (634, 16), (635, 17), (619, 20)]
[findRangeMM]: B(w): 19
[findRangeMM]: B(h): 22
[findRangeMM]: Point: (626, 22)
[findRangeMM]: Range found successfully!
[findBankersMM]: Length(TPA): 1
[findBankersMM]: Length(TPA): 5
[findBankersMM]: B[w]: 17
[findBankersMM]: B[h]: 0
[findBankersMM]: Length[ref]: 5
[findBankersMM]: Point: (629, 140)
[findArea]: Player is in range.
[findBankersMM]: Length(TPA): 1
[findBankersMM]: Length(TPA): 5
[findBankersMM]: B[w]: 17
[findBankersMM]: B[h]: 0
[findBankersMM]: Length[ref]: 5
[findBankersMM]: Point: (629, 140)
[findArea]: Player is in range.
________________________________
/________________________________\
| AK Cooker by Smidqe |
|________________________________|
|________________________________|
| - Version: 1.6 |
| - Total runtime: 02:00:07 |
|________________________________|
|________________________________|
| Player: 0 |
| - Nickname : evoke |
| - Time played : 01:59:50 |
| - Fish : Tuna |
| - Cooked : 1760 |
| -- Loads : 62 |
| - Experience : 176000 |
| - EXP/H : 87904 |
| - Breaks : 0 |
|________________________________|
\________________________________/
[setupChecks]: Checks done
[countDTMs]: Amount of items: 28
[setupMainloop]: Cooking: Try #0
[useRaw]: Item successfully clicked
[handleObject]: Object finding for: Range initiated!
[locateObject]: Length(TPA): 136
[locateObject]: Object found at [258, 125, True]
[findOptionMulti]: 2 strings found in this option
[findOptionMulti]: Correct option bounds are : (178, 148, 330, 161)
[handleObject]: Try #0: True
[waitConversion]: Entering conversion loop!
[countDTMs]: Amount of items: 28
[waitConversion]: Conversion successfull
[countDTMs]: Amount of items: 27
[setupMainloop]: Cooking: Try #0
[useRaw]: Item successfully clicked
[handleObject]: Object finding for: Range initiated!
[locateObject]: Length(TPA): 83
[locateObject]: Object found at [261, 152, True]
[findOptionMulti]: 1 strings found in this option
[findOptionMulti]: 1 strings found in this option
[findOptionMulti]: 2 strings found in this option
[findOptionMulti]: Correct option bounds are : (103, 207, 225, 220)
[handleObject]: Try #0: False
[locateObject]: Length(TPA): 105
[locateObject]: Object found at [260, 151, True]
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 1 strings found in this option
[findOptionMulti]: 0 strings found in this option
[locateObject]: Length(TPA): 41
[locateObject]: Object found at [262, 156, True]
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 1 strings found in this option
[findOptionMulti]: 0 strings found in this option
[locateObject]: Length(TPA): 102
[locateObject]: Object found at [260, 151, True]
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 1 strings found in this option
[findOptionMulti]: 0 strings found in this option
[locateObject]: Length(TPA): 90
[locateObject]: Object found at [260, 152, True]
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 1 strings found in this option
[findOptionMulti]: 0 strings found in this option
[locateObject]: Length(TPA): 92
[locateObject]: Object found at [256, 150, True]
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 1 strings found in this option
[findOptionMulti]: 0 strings found in this option
[locateObject]: Length(TPA): 121
[locateObject]: Object found at [269, 151, True]
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 1 strings found in this option
[findOptionMulti]: 0 strings found in this option
[locateObject]: Length(TPA): 127
[locateObject]: Object found at [270, 150, True]
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 1 strings found in this option
[findOptionMulti]: 0 strings found in this option
[locateObject]: Length(TPA): 85
[locateObject]: Object found at [255, 150, True]
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 1 strings found in this option
[findOptionMulti]: 0 strings found in this option
[locateObject]: Length(TPA): 85
[locateObject]: Object found at [255, 150, True]
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 1 strings found in this option
[findOptionMulti]: 0 strings found in this option
[locateObject]: Length(TPA): 41
[locateObject]: Object found at [251, 150, True]
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 1 strings found in this option
[findOptionMulti]: 0 strings found in this option
[locateObject]: Length(TPA): 59
[locateObject]: Object found at [252, 150, True]
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 1 strings found in this option
[findOptionMulti]: 0 strings found in this option
[locateObject]: Length(TPA): 59
[locateObject]: Object found at [252, 150, True]
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 1 strings found in this option
[findOptionMulti]: 0 strings found in this option
[locateObject]: Length(TPA): 59
[locateObject]: Object found at [252, 150, True]
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 1 strings found in this option
[findOptionMulti]: 0 strings found in this option
[locateObject]: Length(TPA): 59
[locateObject]: Object found at [252, 150, True]
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 1 strings found in this option
[findOptionMulti]: 0 strings found in this option
[locateObject]: Length(TPA): 55
[locateObject]: Object found at [252, 150, True]
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 1 strings found in this option
[findOptionMulti]: 0 strings found in this option
[locateObject]: Length(TPA): 42
[locateObject]: Object found at [251, 150, True]
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 0 strings found in this option
[findOptionMulti]: 1 strings found in this option
[findOptionMulti]: 0 strings found in this option

Also even though player is located inside the bank it thinks that it's lost and has to use landstone, not a problem just results in loss of exp per hour :P

Smidqe

2013-06-29 12:28:07

From: evoke99s

Also even though player is located inside the bank it thinks that it's lost and has to use landstone, not a problem just results in loss of exp per hour :P


This should not be happening, it used to do this when the flag was on top of the bankers, but I thought I fixed it… I'll look into these issues and try to fix them in few days.

evoke99s

2013-06-29 17:06:10

Your script ran until all my tunas were cooked. :spot:
I think ~ AIO AK F2P [80%] [In works] should be correct :P

: ________________________________
: /________________________________\
: | AK Cooker by Smidqe |
: |________________________________|
: |________________________________|
: | - Version: 1.6 |
: | - Total runtime: 03:57:48 |
: |________________________________|
: |________________________________|
: | Player: 0 |
: | - Nickname : evoke |
: | - Time played : 03:35:43 |
: | - Fish : Tuna |
: | - Cooked : 3267 |
: | – Loads : 116 |
: | - Experience : 326700 |
: | - EXP/H : 82429 |
: | - Breaks : 1 |
: |________________________________|
: \________________________________/

i had to manually stop even though it was finished and out of fish it still tried to log into that same player again

[setupMain]: Switching players, reason: inactive: Out of: Tuna
[switchPlayer]: Player switching initiated
NextPlayer(True)
SwitchToPlayer(PlayerNo: 0, Active: True);


this is what i changed

function waitConversion(DTM, time : integer): boolean;
var
p : TPoint;
i, f, iC, ii, cC : integer;
begin
result := false;
writeDebug('[waitConversion]: Entering conversion loop!');

wait(5);
iC := countDTMs(DTM);

wait(50000);
MarkTime(f);
while findDTM(DTM, p.x, p.x, MIX1, MIY1, MIX2, MIY2) do
begin
if random(100) > 80 then
begin
i := random(100);
case i of //slight antiban
1: boredHuman;
2: SleepAndMoveMouse(RandomRange(2000, 4000));
3: PickUpMouse;
4: RandomMovement;
5: Wait(randomRange(500, 5000));
6: HoverSkill('random', false);
end;
end;

wait(5);

evoke99s

2013-06-29 22:53:33

From: evoke99s
Your script ran until all my tunas were cooked. :spot:
I think ~ AIO AK F2P [80%] [In works] should be correct :P

: ________________________________
: /________________________________\
: | AK Cooker by Smidqe |
: |________________________________|
: |________________________________|
: | - Version: 1.6 |
: | - Total runtime: 03:57:48 |
: |________________________________|
: |________________________________|
: | Player: 0 |
: | - Nickname : evoke |
: | - Time played : 03:35:43 |
: | - Fish : Tuna |
: | - Cooked : 3267 |
: | – Loads : 116 |
: | - Experience : 326700 |
: | - EXP/H : 82429 |
: | - Breaks : 1 |
: |________________________________|
: \________________________________/

i had to manually stop even though it was finished and out of fish it still tried to log into that same player again

[setupMain]: Switching players, reason: inactive: Out of: Tuna
[switchPlayer]: Player switching initiated
NextPlayer(True)
SwitchToPlayer(PlayerNo: 0, Active: True);


this is what i changed

function waitConversion(DTM, time : integer): boolean;
var
p : TPoint;
i, f, iC, ii, cC : integer;
begin
result := false;
writeDebug('[waitConversion]: Entering conversion loop!');

wait(5);
iC := countDTMs(DTM);

wait(50000);
MarkTime(f);
while findDTM(DTM, p.x, p.x, MIX1, MIY1, MIX2, MIY2) do
begin
if random(100) > 80 then
begin
i := random(100);
case i of //slight antiban
1: boredHuman;
2: SleepAndMoveMouse(RandomRange(2000, 4000));
3: PickUpMouse;
4: RandomMovement;
5: Wait(randomRange(500, 5000));
6: HoverSkill('random', false);
end;
end;

wait(5);





since i made changes your script has been working epicly! Here is another report
/________________________________\
| AK Cooker by Smidqe |
|________________________________|
|________________________________|
| - Version: 1.6 |
| - Total runtime: 05:08:45 |
|________________________________|
|________________________________|
| Player: 0 |
| - Nickname : evoke |
| - Time played : 04:20:44 |
| - Fish : Tuna |
| - Cooked : 3870 |
| – Loads : 138 |
| - Experience : 387000 |
| - EXP/H : 75204 |
| - Breaks : 2 |
|________________________________|
\________________________________/

still having troubles with this nextplayer thing though, when its finished cooking all the food it logs out thinks theres another player to login an it relogs in the same player with no food, an it does this in a loop till i stop it.

 
[setupMain]: Switching players, reason: inactive: Out of: Tuna
[switchPlayer]: Player switching initiated
NextPlayer(True)
SwitchToPlayer(PlayerNo: 0, Active: True);
Welcome to Runescape.

fire_burn_00

2013-07-01 14:49:16

/________________________________\
| AK Cooker by Smidqe |
|________________________________|
|________________________________|
| - Version: 1.6 |
| - Total runtime: 29:43:27 |
|________________________________|
|________________________________|
| Player: 0 |
| - Nickname : Fibu |
| - Time played : 28:54:32 |
| - Fish : Lobster |
| - Cooked : 8344 |
| – Loads : 298 |
| - Experience : 1001280 |
| - EXP/H : 33685 |
| - Breaks : 2 |
|________________________________|
\________________________________/

There was times when it didn't select the lobster before it clicked the range so it took a while for it to reset. However, my proggy says it all: Amazing script!

evoke99s

2013-07-01 20:19:44

From: fire_burn_00
/________________________________\
| AK Cooker by Smidqe |
|________________________________|
|________________________________|
| - Version: 1.6 |
| - Total runtime: 29:43:27 |
|________________________________|
|________________________________|
| Player: 0 |
| - Nickname : Fibu |
| - Time played : 28:54:32 |
| - Fish : Lobster |
| - Cooked : 8344 |
| – Loads : 298 |
| - Experience : 1001280 |
| - EXP/H : 33685 |
| - Breaks : 2 |
|________________________________|
\________________________________/

There was times when it didn't select the lobster before it clicked the range so it took a while for it to reset. However, my proggy says it all: Amazing script!


Wow only cooked 8,344 in nearly 29 hours?
when i tested i cooked 3,870 in 5 hours * by 3 = should only be 15 hours to cook 10k+,
cooking 9k+ tunas atm we'll see how long it takes!

evoke99s

2013-07-02 08:05:45

Would it be possible to have it so when the productionscreen is finished cooking it walks back instead of waitconversion?

something like


function ProductionScreen: Boolean;
begin
Result := (CountColorTolerance(855309, 86, 48, 434, 178, 5) > 5000)
end;

.................

until (ProductionScreen or (not LoggedIn));
if not ProductionScreen then
LOC_BANK;
not the correct color etc..
DON'T QUOTE ME ON IT JUST AN IDEA, Noticed BMWxi's booter worked off the production display
jus thought u could do that same since you're having troubles with waitconversion

Smidqe

2013-07-02 09:17:26

From: evoke99s
Would it be possible to have it so when the productionscreen is finished cooking it walks back instead of waitconversion?

something like


function ProductionScreen: Boolean;
begin
Result := (CountColorTolerance(855309, 86, 48, 434, 178, 5) > 5000)
end;

.................

until (ProductionScreen or (not LoggedIn));
if not ProductionScreen then
LOC_BANK;
not the correct color etc..
DON'T QUOTE ME ON IT JUST AN IDEA, Noticed BMWxi's booter worked off the production display
jus thought u could do that same since you're having troubles with waitconversion


I might include it as a failsafe, but the only problem what I have with waitConversion is that the DTM is lost for a while (Memory issue with Simba?) and I can't change that. When I release the next version, it'll use different item detection method, so hopefully it'll take that problem away.

Unfortunately I am currently busy in real life so I probably won't be able to update the script that quickly, but I still try to get it done by end of this week.

evoke99s

2013-07-02 17:49:25

Works Perfect AS IS just throwin around some options, an by the end of the week is good enough for me

THANKS SMIDGE :D

Smidqe

2013-07-05 14:21:49

Version 1.61 released.

FIXES
o No more waitConversion() problems!
o EXP amounts to member fishes (forgot them completely from 1.6)

From: evoke99s
Works Perfect AS IS just throwin around some options, an by the end of the week is good enough for me

THANKS SMIDGE :D


I added your idea into it, simple yet effective. What I had in mind wasn't fully working yet so I gave up on it.