SRL Archive - SRL Bugs

SRL/Skill/Mining.Scar


Leech

2008-10-01 21:06:45

I'm almost positive that FindPick, doesn't work anymore. I have tried implimenting it into my script as part of a findallrandoms procedure and every time my pick head flies off it runtime errors out into mining.scar.

I'm not sure if anyone knows if this is true or not but I just thought I would let someone know…

I feel bad for being the first one to post a potential bug. Feel free to remove this thread if i'm wrong and I am just retarded and not doing it right.

This is basically my findallrandoms procedure with some stuff taken out

Procedure FindAllRandoms;
Begin
FindNormalRandoms;
[COLOR="Magenta"] FindPick;[/COLOR]
If FindFight then
Begin

I have had this problem 6/6 of the times and I got a 10 day ban because of it.

Edit Here is the runtime error:

[Runtime Error] : Exception: Access violation at address 006D5360 in module 'scar.exe'. Read of address 00000034 in line 223 in script C:\Program Files\SCAR 3.15\includes\SRL/SRL/Skill/Mining.Scar

TViYH

2008-10-01 21:17:54

You don't know whether or not you got the ban because of the FindPick; being broken.

Leech

2008-10-01 21:24:29

Well, I actually do because I didn't use the character for anything for three weeks except for when I was testing the script. The only thing that went wrong was that and the script would end right afterwards.

I'm pretty sure that it is a problem with finding the broken pick part because the two times I watched it, that is where it would fail.

Edit: I'm not blaming anyone but myself for using it, i'm just saying that is the primary reason for my 10 day ban, argue with me if you want to or actually help solve the problem. Either way I still believe it is broken.

TViYH

2008-10-01 21:29:38

Well. I believe someone posted a working one in the Public SVN.

Leech

2008-10-01 21:36:12

I couldn't find it, post a link please. I feel foolish if someone already fixed it

TViYH

2008-10-01 22:06:50

http://www.villavu.com/forum/showthread.php?t=36038

noidea

2008-10-01 22:09:53

Isn't that for WC.scar? "Find Broken Axe" ;)

TViYH

2008-10-01 22:15:53

Ohhh. Sorry.

tarajunky

2008-10-02 01:05:56

Did you save the error message? Usually it will tell you the exact line of code that's stuffing up.

Leech

2008-10-02 02:15:21

From: tarajunky
Did you save the error message? Usually it will tell you the exact line of code that's stuffing up.


I didn't think about it, I was in a hurry to get off to school. It opened up to the part where it looks for the broken pick though, I remember that. I will test it again on a different character and see if I can reproduce it. I thought I was just being retaded and not setting it up right (Which may be the case).

Edit: I recreted it and here it is
[Runtime Error] : Exception: Access violation at address 006D5360 in module 'scar.exe'. Read of address 00000034 in line 223 in script C:\Program Files\SCAR 3.15\includes\SRL/SRL/Skill/Mining.Scar

Leech

2008-10-03 01:19:37

This is the line it is having trouble with:
if FindBitmapMaskTolerance(BrokenPick, dx, dy, EC.x1, EC.y1, EC.x2, EC.y2, 10, 10) then

noidea

2008-10-03 01:30:24

Isn't there supposted to be one 10 in that line?

Wizzup?

2008-10-03 02:18:13

From: noidea
Isn't there supposted to be one 10 in that line?


Tolerance, ContourTolerance. No.
I'll test FindPick out soon.

ZephyrsFury

2008-10-03 02:42:38

You need to call SetupMining or LoadMiningBitmaps before you call FindPick. Otherwise your bitmaps aren't loaded into memory and you get a runtime error when you try to use them.