SRL Archive - Simba (Testing) Scripts

Draynor Chop N' Bank


Coh3n

2010-03-02 11:43:19

Please go here if you have problems/reports to post. :)

Well, thanks to ray, this script now works with Simba. <3

Checkout from here -> http://dcnb.googlecode.com/svn/trunk/

More info about the script here -> http://villavu.com/forum/showthread.php?t=47111

Cheers,
Coh3n

Bionicle

2010-03-02 16:56:01

It's a .scar file :p silly

Error: Exception: Any Find Function, you did not pass a correct ys: -4. at line 852
It also randomly clicked south of the trees on the minimap.
                                            ___          
____ /\__\
/\___\ ____ \/ _/
_____ \/_ / /\___\ \/ _____
/\____\ _______/ / /___ _\/___ \_____ /\____\
/ / ___\/\______\/ /____\\____/ /_____\/ / ____\
/ / /__ / / ___ / ____ //___ / ____ \/ /___\
/ / /___\ / /__/ / / / / /____/ / / / / /____ /
\/_______//______/_/ /_/_/______/_/__/_/_/____/ /
\/___________________/
Draynor Chop N' Bank Rev.31!
Loading, please wait...
SRL Compiled in 16 msec
SMART Initialized.
Loaded: Server 152, Members: False, Signed: True, Super Detail: False.
Disguising as: Logs Chopped: 0
Better be using FindMaskTolerance in combination with CreateMaskFromBitmap, more efficient.
Better be using FindMaskTolerance in combination with CreateMaskFromBitmap, more efficient.
********
Better be using FindMaskTolerance in combination with CreateMaskFromBitmap, more efficient.
[697, 408, 0, 3, 4, 65535, 100, 3, 'StatChars']
GetTextAt result: 47
Current Woodcutting level: 4747
Found hatchet!
[740, 108, 0, 3, 4, 65535, 30, 20, 'StatChars']
GetTextAt result: 60
-> Chop_Tree: Failed to find uptext
Better be using FindMaskTolerance in combination with CreateMaskFromBitmap, more efficient.
Better be using FindMaskTolerance in combination with CreateMaskFromBitmap, more efficient.
Better be using FindMaskTolerance in combination with CreateMaskFromBitmap, more efficient.
Better be using FindMaskTolerance in combination with CreateMaskFromBitmap, more efficient.
Error: Exception: Any Find Function, you did not pass a correct ys: -4. at line 852

Coh3n

2010-03-02 22:53:53

From: bionicle1800
It's a .scar file :p silly

Error: Exception: Any Find Function, you did not pass a correct ys: -4. at line 852
It also randomly clicked south of the trees on the minimap.
                                            ___          
____ /\__\
/\___\ ____ \/ _/
_____ \/_ / /\___\ \/ _____
/\____\ _______/ / /___ _\/___ \_____ /\____\
/ / ___\/\______\/ /____\\____/ /_____\/ / ____\
/ / /__ / / ___ / ____ //___ / ____ \/ /___\
/ / /___\ / /__/ / / / / /____/ / / / / /____ /
\/_______//______/_/ /_/_/______/_/__/_/_/____/ /
\/___________________/
Draynor Chop N' Bank Rev.31!
Loading, please wait...
SRL Compiled in 16 msec
SMART Initialized.
Loaded: Server 152, Members: False, Signed: True, Super Detail: False.
Disguising as: Logs Chopped: 0
Better be using FindMaskTolerance in combination with CreateMaskFromBitmap, more efficient.
Better be using FindMaskTolerance in combination with CreateMaskFromBitmap, more efficient.
********
Better be using FindMaskTolerance in combination with CreateMaskFromBitmap, more efficient.
[697, 408, 0, 3, 4, 65535, 100, 3, 'StatChars']
GetTextAt result: 47
Current Woodcutting level: 4747
Found hatchet!
[740, 108, 0, 3, 4, 65535, 30, 20, 'StatChars']
GetTextAt result: 60
-> Chop_Tree: Failed to find uptext
Better be using FindMaskTolerance in combination with CreateMaskFromBitmap, more efficient.
Better be using FindMaskTolerance in combination with CreateMaskFromBitmap, more efficient.
Better be using FindMaskTolerance in combination with CreateMaskFromBitmap, more efficient.
Better be using FindMaskTolerance in combination with CreateMaskFromBitmap, more efficient.
Error: Exception: Any Find Function, you did not pass a correct ys: -4. at line 852


Yeah, that's for people who still want to use SCAR. There are Simba defines to make it work. Also, I have no idea what that error means. :confused:

i luffs yeww

2010-03-02 23:03:41

Pretty sure that for a find somewhere (FindColor or something), it got -4 for the y co-ordinate start position somehow. Which will give an error because it's off the screen.

Yup.


FindColorsTolerance(inBox, Tree.Color, tP.x - 15, [B]tP.y - 15[/B], tP.x + 15, tP.y + 15, Tree.Tol);

It found something at tP.y (tP.11), and subtracted 15, which was then tP.-4, which you can't do. :3 You might want to have a check for that.. (if tP.x <15 or tP.y < 15 then FindColorsTolerance(inBox, TreeColor, tP.x, tP.y, tP.x + 15, tP.y + 15, Tree.Tol); or something).

Bionicle

2010-03-03 06:46:53

From: Coh3n
Yeah, that's for people who still want to use SCAR. There are Simba defines to make it work. Also, I have no idea what that error means. :confused:


Yea same…that's why i didn't speculate on it more :p

@yeww: the spot where it should have gotten the tpoint was no where even close to the bottom of the screen. If anything it would have been the very last coord of the box - tP.y + 15 because it was closer to the top.

Blumblebee

2010-03-03 11:38:25

I suppose you could slow down the function slightly and wrap it in a try…except…finally block, that should correct that error at the sacrifice of speed.

Coh3n

2010-03-03 11:45:01

From: Blumblebee
I suppose you could slow down the function slightly and wrap it in a try…except…finally block, that should correct that error at the sacrifice of speed.

Yeah, I've never had that happen with SCAR though. Is it some new error handling with Simba?

Blumblebee

2010-03-03 11:47:55

From: Coh3n
Yeah, I've never had that happen with SCAR though. Is it some new error handling with Simba?


maybe Simba doesn't allow you to enter negatives much like I luff yews stated, although that seems fishy to me (in general and in the fact your script would find a tree at x < 15 or y < 15). Bring it up with Wizzup maybe, if he doesn't have an explanation try..except blocks ftw!

Coh3n

2010-03-03 11:53:11

From: Blumblebee
maybe Simba doesn't allow you to enter negatives much like I luff yews stated, although that seems fishy to me (in general and in the fact your script would find a tree at x < 15 or y < 15). Bring it up with Wizzup maybe, if he doesn't have an explanation try..except blocks ftw!

Well my thinking is, that since the script makes a box around the point clicked, that the point clicked was very close to the edge of the client. That seems pretty unlikely, but a logical answer.

EDIT: Update your SRL, raymond fixed a problem where it would search outside the client. I'm guessing that will take care of this problem. :)

Widget

2010-03-03 12:05:20

This still seems to me like it should be a warning instead of an error. Tell the scripter they're doing it wrong, but don't nuke the script if it's a once-per-20-hours thing :)

Coh3n

2010-03-03 14:14:27

From: Widget
This still seems to me like it should be a warning instead of an error. Tell the scripter they're doing it wrong, but don't nuke the script if it's a once-per-20-hours thing :)

I like that idea. :)

i luffs yeww

2010-03-03 18:15:59

So I was kinda right? x] Haha oh well.

Glad it got fixed. :3

Coh3n

2010-03-03 23:32:10

From: i luffs yeww
So I was kinda right? x] Haha oh well.

Glad it got fixed. :3

That you were. ;)

mastaraymond

2010-03-04 17:02:22

Well no, it should clearly throw an exception -> You are searching for a colour outside the bounds.. Simba cannot possibly know where you want to search, and therefore should throw an exception.

n33d scripts

2010-03-20 00:52:00

for people who are using simba and would like to use this script.
open the script in simba and then save as as a .simb, also do this to the dcnb file.
then inside the script change the include to the dcnb.simb

Coh3n

2010-03-20 12:23:51

From: n33d scripts
for people who are using simba and would like to use this script.
open the script in simba and then save as as a .simb, also do this to the dcnb file.
then inside the script change the include to the dcnb.simb

Why? It should work as a .scar file…

Coh3n

2010-03-31 23:32:23

I keep getting:

[696, 408, 0, 3, 4, 65535, 100, 3, 'StatChars']
Error: Exception: Finder function: Ys > ye (408,407) at line 225
When it tries to get the Woodcutting level. It also opens Simba.scar/mufa and highlights line 225:

tr_NormalChars = 10;
I've already tried updating my SRL and Fonts folders. I have the most recent ones.

Any ideas anyone?

mastaraymond

2010-04-11 13:48:19

From: Coh3n
I keep getting:

[696, 408, 0, 3, 4, 65535, 100, 3, 'StatChars']
Error: Exception: Finder function: Ys > ye (408,407) at line 225
When it tries to get the Woodcutting level. It also opens Simba.scar/mufa and highlights line 225:

tr_NormalChars = 10;
I've already tried updating my SRL and Fonts folders. I have the most recent ones.

Any ideas anyone?

That error is because it tries to read text that is out of the screen, which is not possible.. It won't throw an exception in the latest Simba :-). So this should be fixedzoorss

Coh3n

2010-04-11 13:49:18

From: mastaraymond
That error is because it tries to read text that is out of the screen, which is not possible.. It won't throw an exception in the latest Simba :-). So this should be fixedzoorss

Excellent, thank you. :)

mastaraymond

2010-04-15 05:37:15

Well, I've been running this for some time lately.. And I can say that this works pretty well (with the latest SRL + Simba) :). Got me to WC 56 already :).

Coh3n

2010-04-15 10:15:07

From: mastaraymond
Well, I've been running this for some time lately.. And I can say that this works pretty well (with the latest SRL + Simba) :). Got me to WC 56 already :).

Nice! I didn't know anyone used this for Simba. :p

mastaraymond

2010-04-15 18:20:48

From: Coh3n
Nice! I didn't know anyone used this for Simba. :p

Hell yeah!

[1:57:05]: /====================================================|
[1:57:05]: | Coh3n's Draynor Chop N' Bank! |
[1:57:05]: | - Revision 45 - |
[1:57:05]: |====================================================|
[1:57:05]: | |
[1:57:05]: | Program: Simba |
[1:57:05]: | SMART: Yes |
[1:57:05]: | Ran For: 1 Hours, 57 Minutes and 5 Seconds |
[1:57:05]: | |
[1:57:05]: | Player: Global Space |
[1:57:05]: | Active: True |
[1:57:05]: | Location: Bank |
[1:57:05]: | Tree Type: Willow |
[1:57:05]: | Loads Done: 36 |
[1:57:05]: | Logs Cut: 1,008 |
[1:57:05]: | Levels Up: 2 |
[1:57:05]: | Experience: 68,040 |
[1:57:05]: | Breaks: 0 |
[1:57:05]: |____________________________________________________|
[1:57:05]: |____________________________________________________/

Coh3n

2010-04-15 21:10:08

That's great. Now if I could just get SMART to work on WINE…

I guess I could just use the VM I have setup, but it sucks. I should just make a better one. :p

i luffs yeww

2010-04-15 21:39:19

wat

Doesn't SMART work without Wine? :o

Coh3n

2010-04-15 21:40:29

I was running Simba through WINE because I was told the PS interpreter fails in Ubu.

Avaphi

2010-05-26 14:38:09

Exception in Script: Unable to find file 'DCnB_Form.scar' used from '' —

mastaraymond

2010-05-26 14:39:56

From: Avaphi
Exception in Script: Unable to find file 'DCnB_Form.scar' used from '' —

o.O; Is your Simba located in some fancy directory name?

Avaphi

2010-05-26 14:50:54

From: mastaraymond
o.O; Is your Simba located in some fancy directory name?


ehhh not really its just on my desktop, in a folder called simba…

nielsie95

2010-05-26 14:57:34

And you have downloaded the full script? So DCnB_Form.scar is in the same folder?

Coh3n

2010-05-26 17:21:58

From: nielsie95
And you have downloaded the full script? So DCnB_Form.scar is in the same folder?

As long as their in the same folder there should be no problems. Try putting DCnB folder in Simba/Sciripts if you haven't already.

Avaphi

2010-05-26 18:24:35

Got it working now ! Had to reinstall SVN. Your forms are so sexy ! Excellent script, 10/10- I have to gone on a couple of hours trip, I am contemplating leaving it on until I get back- assuming it logs out on non SRL randoms,

Coh3n

2010-05-26 18:58:58

From: Avaphi
Got it working now ! Had to reinstall SVN. Your forms are so sexy ! Excellent script, 10/10- I have to gone on a couple of hours trip, I am contemplating leaving it on until I get back- assuming it logs out on non SRL randoms,

Thanks. :)

You may as well post on the Jr. Member's thread as it's all the same version anyway.

Avaphi

2010-05-26 19:45:42

Posted ! Seeing Simba run this smooth really inspires me. Thank you so much for this- QUALITY WORK. A+

EDIT:

This script is seemingly flawless my friend. Quite a dominant performance by you.

BraK

2010-06-13 06:12:03

It seems to want to linger on the regular trees by the oaks this slows it down.


[0:08:19]: /====================================================|
[0:08:19]: | Coh3n's Draynor Chop N' Bank! |
[0:08:19]: | - Revision 66 - |
[0:08:19]: |====================================================|
[0:08:19]: | |
[0:08:19]: | Program: Simba |
[0:08:19]: | SMART: Yes |
[0:08:19]: | Ran For: 8 Minutes and 19 Seconds |
[0:08:19]: | |
[0:08:19]: | Player: ******** |
[0:08:19]: | Location: Bank |
[0:08:19]: | Active: False |
[0:08:19]: | Reason: Failed to find uptext 60 times |
[0:08:19]: | Tree Type: Oak |
[0:08:19]: | Loads Done: 0 |
[0:08:19]: | Logs Cut: 0 |
[0:08:19]: | Logs P/H: 0 |
[0:08:19]: | Levels Up: 1 |
[0:08:19]: | Experience: 0 |
[0:08:19]: | Breaks: 0 |
[0:08:19]: |____________________________________________________|
[0:08:19]: |____________________________________________________/
[0:08:19]: Successfully executed.

There is the report for oaks

[0:14:28]: /====================================================|
[0:14:28]: | Coh3n's Draynor Chop N' Bank! |
[0:14:28]: | - Revision 66 - |
[0:14:28]: |====================================================|
[0:14:28]: | |
[0:14:28]: | Program: Simba |
[0:14:28]: | SMART: Yes |
[0:14:28]: | Ran For: 14 Minutes and 28 Seconds |
[0:14:28]: | |
[0:14:28]: | Player: ******** |
[0:14:28]: | Location: Bank |
[0:14:28]: | Active: False |
[0:14:28]: | Reason: Failed to find uptext 60 times |
[0:14:28]: | Tree Type: Oak |
[0:14:28]: | Loads Done: 1 |
[0:14:28]: | Logs Cut: 25 |
[0:14:28]: | Logs P/H: 103 |
[0:14:28]: | Levels Up: 2 |
[0:14:28]: | Experience: 938 |
[0:14:28]: | Breaks: 0 |
[0:14:28]: |____________________________________________________|
[0:14:28]: |____________________________________________________/

Well it's consistant.

Coh3n

2010-06-13 09:56:00

From: BraK
It seems to want to linger on the regular trees by the oaks this slows it down.

What do you mean? It just hovers over the normal trees? There's not much I can do about that, the colours are al most exactly the same. Usually one of the Oak trees spawns before it hovers other trees 60 times. =\

BraK

2010-06-14 08:57:30

From: Coh3n
What do you mean? It just hovers over the normal trees? There's not much I can do about that, the colours are al most exactly the same. Usually one of the Oak trees spawns before it hovers other trees 60 times. =\


Once while the script was running it glitched. during that glitch the camera was stuck at the lowest altitude but i't almost always hit the right tree. After it did a rotatecamera function and went back up it started seeing all the other trees again. Don't know if this will help but thought i'd post it anyway. it's a nice script anyway :)

Coh3n

2010-06-14 18:52:30

From: BraK
Once while the script was running it glitched. during that glitch the camera was stuck at the lowest altitude but i't almost always hit the right tree. After it did a rotatecamera function and went back up it started seeing all the other trees again. Don't know if this will help but thought i'd post it anyway. it's a nice script anyway :)

I've actually had that happen to me. I've also had it act as though one of the left/right arrow keys was being held (the main screen wouldn't stop spinning).

I'm going to add a link in the first post to the thread in Jr. Members.

BraK

2010-06-15 16:50:42

well even though the oak's need some tweaking the rest runs fine. Testing this gives me a break from my own script. It's been fun.



/============================================================|
| Coh3n's Draynor Chop N' Bank! |
| - Revision 66 - |
| |
| Ran For: 2 Hours, 14 Minutes and 20 Seconds |
| Program: Simba | SMART: Yes |
________ __________ ________ __________ ________ ____________ ________|
| Active | Location | Loads | Tree | Logs Cut | Levels | Experience | Breaks |
| False | Lost | 0 | Willow | 0 | 0 | 0 | 0 |
| False | Lost | 13 | Willow | 358 | 5 | 24,165 | 0 |
| False | Bank | 0 | Oak | 0 | 0 | 0 | 0 |
|---------------------------------------------------------------------------|
| Totals: | 13 | | 358 | 5 | 24,165 | 0 |
|_________________________________________________________________|

Coh3n

2010-06-15 18:30:37

From: BraK
well even though the oak's need some tweaking the rest runs fine. Testing this gives me a break from my own script. It's been fun.



/============================================================|
| Coh3n's Draynor Chop N' Bank! |
| - Revision 66 - |
| |
| Ran For: 2 Hours, 14 Minutes and 20 Seconds |
| Program: Simba | SMART: Yes |
________ __________ ________ __________ ________ ____________ ________|
| Active | Location | Loads | Tree | Logs Cut | Levels | Experience | Breaks |
| False | Lost | 0 | Willow | 0 | 0 | 0 | 0 |
| False | Lost | 13 | Willow | 358 | 5 | 24,165 | 0 |
| False | Bank | 0 | Oak | 0 | 0 | 0 | 0 |
|---------------------------------------------------------------------------|
| Totals: | 13 | | 358 | 5 | 24,165 | 0 |
|_________________________________________________________________|


What's wrong with the oak cutting?

BraK

2010-06-16 05:38:04

It almost completely refuses most time to cut the oak's. another bug that end the run's for my player's most of the time is. the script will try banking with the low altitude view and it cannot find the bank.

Coh3n

2010-06-16 05:47:01

From: BraK
It almost completely refuses most time to cut the oak's.

No offence, but that was about as useless as tits on a bull. :p What exactly doesn't work? The walking? The chopping? The banking? There are a lot of things that could make it not work.

As for the camera angle thing, hit Ctrl+F and search for RunEnergy, and after that line add SetAngle(True) and see if that helps.

BraK

2010-06-16 05:58:29

From: Coh3n
No offence, but that was about as useless as tits on a bull. :p What exactly doesn't work? The walking? The chopping? The banking? There are a lot of things that could make it not work.

As for the camera angle thing, hit Ctrl+F and search for RunEnergy, and after that line add SetAngle(True) and see if that helps.


Bull's give special milk wanna try some :p I'll try to be more informative next time.

Coh3n

2010-06-16 18:45:27

From: BraK
Bull's give special milk wanna try some :p I'll try to be more informative next time.

Thanks. :p I'm hoping that MSI will have a Draynor script soon. At that time I will no longer be updating this script. I've already stopped updating my Powerchopper.

BraK

2010-06-23 11:45:00

Well Here's a good proggy for you.


[9:20:31]: /=====================================================================================|
[9:20:32]: | Coh3n's Draynor Chop N' Bank! |
[9:20:32]: | - Revision 66 - |
[9:20:32]: |=====================================================================================|
[9:20:32]: | |
[9:20:32]: | Ran For: 9 Hours, 20 Minutes and 32 Seconds |
[9:20:32]: | Program: Simba | SMART: Yes |
[9:20:32]: |______ ________ __________ _______ ________ __________ ________ ____________ ________|
[9:20:32]: | Nick | Active | Location | Loads | Tree | Logs Cut | Levels | Experience | Breaks |
[9:20:32]: |------ -------- ---------- ------- -------- ---------- -------- ------------ --------|
[9:20:32]: | **** | False | Lost | 46 | Willow | 1,288 | 2 | 86,940 | 0 |
[9:20:32]: | **** | False | Lost | 46 | Willow | 1,288 | 3 | 86,940 | 0 |
[9:20:32]: | **** | True | Willows | 6 | Willow | 168 | 1 | 11,340 | 0 |
[9:20:32]: |-------------------------------------------------------------------------------------|
[9:20:32]: | Totals: | 98 | | 2,744 | 6 | 185,220 | 0 |
[9:20:32]: |_____________________________________________________________________________________|
[9:20:32]: | |
[9:20:32]: | False Reasons: |
[9:20:32]: | -------------- |
[9:20:32]: | 0: **** -> Failed to open bank after 40 tries |
[9:20:32]: | 1: **** -> Failed to walk to location: Bank |
[9:20:32]: |_____________________________________________________________________________________/

Coh3n

2010-06-23 16:43:18

That is a nice reprot! I'm glad its still working. :) I'm not sure if I've said this, but could you post anything related to this script in the thread in the public forum (link in first post).

Thanks,
Coh3n