SRL Archive - OSR Cooking

[AL]Catherby Cooker


Flight

2014-05-20 01:59:21


Catherby Cooker
By Flight

Current revision: 1.01
Required AL version: 1.0


Core features:
  • Cooks raw fish at the Catherby range
  • Handles trout, salmon, tuna, lobsters, swordfish, monkfish, and sharks
  • Optimized for speedy cooking (over 1,000 fish per hour!)
  • Very fast detection of random events (+anti-ban routines)
  • FSM-style engine
  • Solid break system (By Echo_)
  • 100% color

Requirements to run:
  • AeroLib
  • Everything AeroLib requires to run

Random-solvers:

Working
  • Swarm & Evil chicken
  • Strange plant
  • Strange box
  • Rewards (Lamp/XP Book)
  • All talking randoms
  • Royal frog
  • Drill demon
  • Pinball
  • Evil Bob's island
  • Pillory
  • Certers
Chance of fail
  • Frog cave
  • Sandwich lady (Chance of fail on triangle/square sandwich)
Detected but disabled
  • Mordaut
  • Quiz
  • Maze
  • Mime
  • Abyss
  • Leo (grave-digger)
  • Molly (evil twin)
  • Cap'n Arnav
  • Freaky forester
  • Bee-keeper
  • Prison Pete

How to run:
Start either in the Catherby bank or house east of the bank (with the range). If using Cooking Gauntlets, start with them already equipped.

Hoodz

2014-05-20 04:07:55

Flight do you think that these randoms

Mordaut
Quiz
Maze
Mime
Abyss
Leo (grave-digger)
Molly (evil twin)
Cap'n Arnav
Freaky forester
Bee-keeper
Prison Pete

Are ever going to be solved?

Syntax

2014-05-20 04:43:02

From: hoodz
Flight do you think that these randoms

Mordaut
Quiz
Maze
Mime
Abyss
Leo (grave-digger)
Molly (evil twin)
Cap'n Arnav
Freaky forester
Bee-keeper
Prison Pete

Are ever going to be solved?

Yeah, all you need to do is:
MMove(100,500);
ClickMouse(x,y,false);
repeat false;
//ultimate random solver by Syntax

Flight

2014-05-20 06:52:41

From: hoodz
Flight do you think that these randoms

Mordaut
Quiz
Maze
Mime
Abyss
Leo (grave-digger)
Molly (evil twin)
Cap'n Arnav
Freaky forester
Bee-keeper
Prison Pete

Are ever going to be solved?


I'm working on Mordaut and Prison Pete now, and I have concepts for the Quiz, Abyss, Molly, Cap'n Arnaz, Freeky Forester, Bee-keeper and the Mime event. But Leo and Maze….. I'm not sure what I'll do there.

Hoodz

2014-05-20 09:00:40

From: Flight
I'm working on Mordaut and Prison Pete now, and I have concepts for the Quiz, Abyss, Molly, Cap'n Arnaz, Freeky Forester, Bee-keeper and the Mime event. But Leo and Maze….. I'm not sure what I'll do there.


wouldn't sps work for maze?

masterBB

2014-05-21 06:15:40

This is not a color vs reflection thread. No more discussion about it.

hakishakataki

2014-05-22 13:38:11

From: hoodz
Okay thanks, you can delete your post since im deleting mine. If you see this post you can delete this one too ;)



is everyone's simba failing today or is it just me? i cant start a single script.

Hoodz

2014-05-22 14:11:27

From: hakishakataki
is everyone's simba failing today or is it just me? i cant start a single script.


this one should work since its not using reflection, reflection scripts are indeed broken

hakishakataki

2014-05-22 19:51:42

From: hoodz
this one should work since its not using reflection, reflection scripts are indeed broken


Thought I'd post before I investigate my problem.
When i press the run button on this script i get the error

Error] C:\Simba\Scripts\CatherbyCooker(1.0).simba(2:1): Unable to register function function CreatePerspective(const sx0, sy0, sx1, sy1, sx2, sy2, sx3, sy3, dx0, dy0, dx1, dy1, dx2, dy2, dx3, dy3: Double): TPerspective; at line 2
Compiling failed.

Flight

2014-05-22 21:05:14

From: hakishakataki
Thought I'd post before I investigate my problem.
When i press the run button on this script i get the error

Error] C:\Simba\Scripts\CatherbyCooker(1.0).simba(2:1): Unable to register function function CreatePerspective(const sx0, sy0, sx1, sy1, sx2, sy2, sx3, sy3, dx0, dy0, dx1, dy1, dx2, dy2, dx3, dy3: Double): TPerspective; at line 2
Compiling failed.


That's weird, AFAIK there's no compile errors with the Solvers plugin.

hakishakataki

2014-05-22 23:30:36

From: Flight
That's weird, AFAIK there's no compile errors with the Solvers plugin.


so what should i do?

Flight

2014-05-23 02:18:14

From: hakishakataki
so what should i do?


Are you running Simba as administrator? I've never seen this error before; @Olly?

hakishakataki

2014-05-23 03:10:02

From: Flight
Are you running Simba as administrator? I've never seen this error before; @Olly?


just tried as admin. same error
[Error] C:\Simba\Scripts\CatherbyCooker(1.0).simba(2:1): Unable to register function function CreatePerspective(const sx0, sy0, sx1, sy1, sx2, sy2, sx3, sy3, dx0, dy0, dx1, dy1, dx2, dy2, dx3, dy3: Double): TPerspective; at line 2
Compiling failed.

Flight

2014-05-24 00:39:26

Ok, has anyone already run this script successfully?

slacky

2014-05-31 05:28:39

From: hakishakataki
just tried as admin. same error
[Error] C:\Simba\Scripts\CatherbyCooker(1.0).simba(2:1): Unable to register function function CreatePerspective(const sx0, sy0, sx1, sy1, sx2, sy2, sx3, sy3, dx0, dy0, dx1, dy1, dx2, dy2, dx3, dy3: Double): TPerspective; at line 2
Compiling failed.

You are trying to run the AeroLib inclide with the PascalScript engine. AeroLib requires you to use Lape as the engine.
How to fix: Menu -> Script -> Interpreter -> Lape

This should be mentioned in the topic.


@Flight, as i mentioned to Olly regarding SRL, you should add this as well to your include (AeroLib):
{$DEFINE AEROLIB}

That will allow us to make compatibility adjustments cross-include, as we would know at compile-time that AeroLib is included.

Flight

2014-05-31 06:57:40

From: slacky
You are trying to run the AeroLib inclide with the PascalScript engine. AeroLib requires you to use Lape as the engine.
How to fix: Menu -> Script -> Interpreter -> Lape

This should be mentioned in the topic.



Indeed it is mentioned that everything required to run AeroLib is also required for the script, but I don't see any harm with mentioning here as well; will do.

From: slacky

@Flight, as i mentioned to Olly regarding SRL, you should add this as well to your include (AeroLib):
{$DEFINE AEROLIB}

That will allow us to make compatibility adjustments cross-include, as we would know at compile-time that AeroLib is included.


As far as I can tell the main AeroLib.simba file will still need to be included in every script which uses it; I'm not sure where exactly I'm supposed to add that. :huh:

slacky

2014-06-01 17:42:02

@Flight:
^ like so
Say if we include two includes in our script, include one is AeroLib:

{$I AeroLib/AeroLib.simba}
then we include another one
{$I SuperUtils/SuperUtils.simba}

SuperUtils (just made it up) has many cool TBox functions.. but some does not get along with AeroLib..
So it's "smart", once AeroLib is parsed SuperUtils will be parsed, and now it KNOWS that AeroLib is included, so it can make workarounds for compatibility:


{$IFNDEF AeroLib}
function TBox.Width(): Int32;
{$ELSE}
function TBox.Width(): Int32; override;
{$ENDIF}
begin
Result := (Self.X2 - Self.X1 + 1);
end;

(* .. or ... *)

{$IFNDEF AeroLib}
function TBox.Height(): Int32;
begin
Result := (Self.Y2 - Self.Y1 + 1);
end;
{$ENDIF}

And that was it.. Nothing more has to be done. It would now be compatible with AeroLib.

Flight

2014-06-01 21:49:39

From: slacky

^ like so
Say if we include two includes in our script, include one is AeroLib:

{$I AeroLib/AeroLib.simba}
then we include another one
{$I SuperUtils/SuperUtils.simba}

SuperUtils (just made it up) has many cool TBox functions.. but some does not get along with AeroLib..
So it's "smart", once AeroLib is parsed SuperUtils will be parsed, and now it KNOWS that AeroLib is included, so it can make workarounds for compatibility:



Ok I've done that, but for every function that has compile conflicts with another loaded include, wouldn't one of the two includes have to have "{$IFNDEF AeroLib}" and "{$ELSE}" for every function that has conflicts?

slacky

2014-06-02 12:03:43

From: Flight
Ok I've done that, but for every function that has compile conflicts with another loaded include, wouldn't one of the two includes have to have "{$IFNDEF AeroLib}" and "{$ELSE}" for every function that has conflicts?

My example code shows you what has to be done for compatibility… but yes you are on track.

hakishakataki

2014-06-02 12:10:23

something I've often run into is that after cooking the fish, the script just idles at the cooking range and never goes back to the bank.

im not quite sure what's going on, maybe it doesnt detect that all of the fish have cooked. Ill grab a screen shot next time it happens.

edit: here it is just sittin. http://i.gyazo.com/448b7df7bf7583bee47a51990f632540.png

Flight

2014-06-03 02:26:40

From: hakishakataki
something I've often run into is that after cooking the fish, the script just idles at the cooking range and never goes back to the bank.

im not quite sure what's going on, maybe it doesnt detect that all of the fish have cooked. Ill grab a screen shot next time it happens.

edit: here it is just sittin. http://i.gyazo.com/448b7df7bf7583bee47a51990f632540.png


Ok well I'm pleased that you at least got the script running. I believe the problem simply is the script cannot find my assigned DTM for the bank's location via the MM. I have rev. #1 already set with a couple adjustments here and there, including a second MM DTM for both the house with the range as well as the bank. I suppose I could make one more DTM using the image you posted above and I'll go ahead and put it out.

This is good news though, now that I know the include runs fine I can put out updates for AeroLib without worrying if it works at all for others.

hakishakataki

2014-06-03 12:43:40

From: Flight
Ok well I'm pleased that you at least got the script running. I believe the problem simply is the script cannot find my assigned DTM for the bank's location via the MM. I have rev. #1 already set with a couple adjustments here and there, including a second MM DTM for both the house with the range as well as the bank. I suppose I could make one more DTM using the image you posted above and I'll go ahead and put it out.

This is good news though, now that I know the include runs fine I can put out updates for AeroLib without worrying if it works at all for others.


As am I, thankfully it was something as simple as switching the interpreter to lape hahaha!
That sounds great! I'm excited to see the update.

What does AeroLib do exactly?

Flight

2014-06-03 22:34:04

From: hakishakataki
As am I, thankfully it was something as simple as switching the interpreter to lape hahaha!
That sounds great! I'm excited to see the update.

What does AeroLib do exactly?


It's just an alternative library for writing Simba scripts for OSRS.

Edit:

[==========================================]
[ Catherby Cooker V 1 Rev 1 ]
[ by Flight ]
[==========================================]
[ Total Run Time : 9 Hr 7 Min 9 Sec ]
[ Cooking XP : 1,313,100 (143,990/Hr) ]
[ Monkfish Cooked : 8,754 (960/Hr) ]
[ Breaks : 2 ]
[ Logged In : 3 ]
[==========================================]
[ Catherby Cooker V 1 Rev 1 ]
[==========================================]
[====================================]
[ Randoms Report ]
[____________________________________]
[ [Certers] Solved: 3 ]
[ [Sandwich Lady] Solved: 2 ]
[ [Frog] Solved: 1 ]
[ [Rewards] Solved: 3 ]
[ [Combat] Solved: 3 ]
[ [Strange Plant] Solved: 6 ]
[ [Evil Chicken] Solved: 4 ]
[====================================]
Time until break: 02:18:25

Had to stop because I'm sleepy… Rev #1 seems to work just fine so I'll release it in the morning.

Flight

2014-06-15 23:40:22

Script updated with its first revision. I can't remember what exactly I did but for sure I know I've updated the walking between the bank and the range, as well as the optional FastMode which will skip a few checks to optimize speed. I left this optional because you may wish to have the script wait for actions to complete before moving to the next stage, perhaps if you're lagging it's better to disable FastMode.

Nebula

2014-06-15 23:41:35

flight is a bad scripter I wouldnt recommend anybody use this script

hakishakataki

2014-06-24 01:18:25

will this script be updated to work with 2.0?

never mind, it seems i spoke before reading.

mainofmark

2014-07-09 05:14:15

tuna does in fact not work,

and for some of you with an error
Interpreter must be on lape.

Scripts>Interpreter>Lape

uhit

2014-08-09 13:14:43

Exception in Script: Unknown declaration "scrollToItemDTM" at line 513, column 6

I get that error when trying to run.

Cyber 6 Cal

2014-08-28 16:03:05

Same as poster above me. Exception in Script: Unknown declaration "scrollToItemDTM" at line 529, column 6

vengeance09

2014-09-24 23:25:45

I get the same error as those two above me, someone help please

jarnovg

2014-10-07 10:58:33

the script isn't working for me it is saying :

Error: Unknown declaration "scrollToItemDTM" at line 529
Compiling failed.

can you tell me what to do?

Dan the man

2015-01-04 04:09:33

Hey mate I am trying to get this one working but i cant seem to get past this error:

Error: Unknown declaration "toObj" at line 62
Compiling failed.

Any ideas?

squirrelz

2015-01-04 22:12:30

From: Dan the man
Hey mate I am trying to get this one working but i cant seem to get past this error:

Error: Unknown declaration "toObj" at line 62
Compiling failed.

Any ideas?

same here

Poojar102

2015-01-04 22:40:42

Error: Unknown declaration "Obj" at line 62
Compiling failed.

Harrier

2015-01-05 05:45:23

From: Poojar102
Error: Unknown declaration "Obj" at line 62
Compiling failed.
https://villavu.com/forum/showthread.php?t=108953&page=5&p=1319133#post1319133]

lempa

2015-02-06 18:42:21

Also getting error
"Unknown declaration "scrollToItemDTM" at line 529"
any thoughts how to fix this?

Harrier

2015-02-22 09:37:42

Fixed version for aerolib updates (I didn't run it, so the colours might be outdated)

[ATTACH]25084[/ATTACH]

mathiasverbert

2015-02-22 13:22:24

Error: Unknown declaration "toObj" at line 62
Compiling failed.

Harrier

2015-02-22 13:23:06

From: mathiasverbert
Error: Unknown declaration "toObj" at line 62
Compiling failed.


Download the one I posted just above this post.

hexdub

2015-03-04 21:37:14

when i run the script it connects to a f2p world. any idea on how to fix this?

Goobs

2015-03-06 19:25:58

From: Hawker
Fixed version for aerolib updates (I didn't run it, so the colours might be outdated)

[ATTACH]25084[/ATTACH]


Works just fine, props for fixing it.

cyanogen

2015-03-12 09:53:39

Changed the DTMs to work with tuna here's what works for me

A := DTMFromString('mAAEAAHiclcw7CoAwFETRSa1iYUBBQdD9p3cDCYKFn0ILF+MFLVLGgTPFgze5pNpIHUpkGFFhgEWLHgUabPzMuHFixYLw3S4c2OExOUebZFb/kr78ivMAX8cNQA==');

Also if you have the switching to f2p world thing add this to your declarePlayer() procedure

procedure declarePlayer();
begin
Me.Name := P_USERNAME;
Me.Pass := P_PASSWORD;
Me.Pin := P_PIN;
Me.Nick := P_NICKNAME;
Me.LampSkill := P_LAMPSKILL;
Me.Active := True;
Me.Member := True; //<–add this line
end;


Also, for those questioning the stability of the script, I was able to get 40-99 cooking using this script in about 5 days. Made about 6m profit too. There were several times where I caught it stuck in the fletching buiding to the east, but when I got into the higher 80s it didn't happen. All in all, great script. (no ban obv)

jok145

2015-03-25 19:37:35

working fine now ty !

R A G N A R

2015-03-27 02:49:26

From: cyanogen
Changed the DTMs to work with tuna here's what works for me

A := DTMFromString('mAAEAAHiclcw7CoAwFETRSa1iYUBBQdD9p3cDCYKFn0ILF+MFLVLGgTPFgze5pNpIHUpkGFFhgEWLHgUabPzMuHFixYLw3S4c2OExOUebZFb/kr78ivMAX8cNQA==');

Also if you have the switching to f2p world thing add this to your declarePlayer() procedure

procedure declarePlayer();
begin
Me.Name := P_USERNAME;
Me.Pass := P_PASSWORD;
Me.Pin := P_PIN;
Me.Nick := P_NICKNAME;
Me.LampSkill := P_LAMPSKILL;
Me.Active := True;
Me.Member := True; //<–add this line
end;


Also, for those questioning the stability of the script, I was able to get 40-99 cooking using this script in about 5 days. Made about 6m profit too. There were several times where I caught it stuck in the fletching buiding to the east, but when I got into the higher 80s it didn't happen. All in all, great script. (no ban obv)


I'm getting this error when I changed the DTM.

The following DTMs were not freed: [0, 1, 2, 3, 4, 5, 6, 7]

hughtwo

2015-03-28 20:22:36

Still getting "Error: Unknown declaration "toObj" at line 63" even with the new version.

dandandan

2015-04-04 20:44:20

Nevermind, it seems I can't read the thread.

Pekoni64

2015-04-20 07:22:01

Hexdub, pause the script while its on the login screen and change to a p2p world.
But the script itself doesn't work. It doesn't find the raw tuna I'm trying to cook in the bank.

dutchp0wner

2015-05-20 14:53:30

Got my cooking till 50 :)

Gf Fagex

2015-05-21 17:11:29

Flight u are without a doubt my favorite scripter on this forums thank you so muchhhh <3

Zego

2015-05-21 21:36:27

Getting this error, I figure it's because of the AL update.

Error: Unknown declaration "toObj" at line 62
Compiling failed.


Anyone else?

chace171

2015-05-22 22:24:27

im getting also

Carlito

2015-06-07 00:56:47

Error: Unknown declaration "toObj" at line 62

Hello flight :) long time no see - could we add shrimp to the cooker?