PDA

View Full Version : Awkward VEB Miner!



Awkwardsaw
07-23-2013, 01:03 AM
I'm, awful at making these types of threads, so I'll just give straight details. I needed a mining script to help get my smithing(and mining obviously :p), since there wasn't any I decided to make one myself :p

Features:

"Advanced autocolor" (ACA)
TPA Walking and object finding
Advanced location finding and relocation within the mine
Can mine Iron, Tin, and Copper
Banks in Varrok East Bank
SRL Stats
SMART Debugging
Powermining if prefered
Now includes reflection! This is optional(And requires downloading a separate script)


Future:

Wold hopping when mine is busy
More advanced progress report
Multiplayer
Auto upgrade pickax if applicable
Auto upgrade ores if applicable


Bugs:

The road color changes often and drastically. I do my best to make the Autocolor as complete as possible, but sometimes it doesn't find the road. If you know how, please get me the road color when you notice it mess up, and it will help with accuracy in the long run :) edit: New auto coloring method. It should be much more accurate (I have yet to see it not find the road color).
No bugs found as of yet with reflection walking. Works Perfectly!

NOTE: I don't always get the same types of bugs that you get. If something doesn't work LET ME KNOW in as much detail as possible. Simply saying "this script doesn't work" or "it messed up in walking" doesn't help me in the least significance. If you want me to fix something, I have to know exactly what is going on!

Instructions:

Start at either the bank or inside the mine
Have pick equiped or in inventory
Fill out lines 6-42
REMEMBER TO INCLUDE YOUR NICKNAME OR RANDOMS WONT WORK


Changelog:


7/31/13: Added Reflection to the script! Currently only supports walking. And that is really all it needs, everything else is perfect as far as color goes
7/30/13: v1 - First 'full' release. Added powermining, even more accurate walking, and smart debugging.



Credits:

Brandon for writing the base reflection functions used in walking and others!


progress reports:


------------ Awkward VEB Miner -----------
- Time Running: 46 Minutes and 4 Seconds
- Ore Being Mined: Iron
- Banking Ore: True
- Number of Trips(per hour): 9(11)
- Experience Gained(per hour): 8820(11483)
- Breaks Performed: 0
- Total Time Breaking: 0
- Trips left till limit: 990
---------------------------------------
Had to stop manually to handle a random

Sjoe
07-23-2013, 02:30 AM
Grats on release! Let the vultures have their meal.

Flight
07-23-2013, 02:45 AM
If it's by Awkwardsaw it must be good. If you're looking for a mining script for the low-level rocks look no further.

Ashaman88
07-23-2013, 03:22 AM
Congrats on release :)

rj
07-23-2013, 03:41 AM
Gratz on release mang been a while since you have released one

Ian
07-23-2013, 03:44 AM
Try changing your clothes to red, or another color that's bright. That will minimize ground confusion. Congrats on the release!

Von_Bobbeh
07-24-2013, 08:30 PM
I can see the road color change.. with just my eyes.

So do I use the dropper tool on the road on the screen or the road on the minimap?

Awkwardsaw
07-24-2013, 10:30 PM
I can see the road color change.. with just my eyes.

So do I use the dropper tool on the road on the screen or the road on the minimap?

I just uploaded a new version with better color finding. I have yet to see it not find the color :)

Basically all I did was use SRL's "RoadColor" methods, which I have never seen anyone use before? It basically helps keep track of all the colors and makes finding them easier while walking


Grats on release! Let the vultures have their meal.
Hah, you are implying that anyone uses any of my scripts :p

Sjoe
07-24-2013, 10:45 PM
Hah, you are implying that anyone uses any of my scripts :p

I would most def use this if I played OSRS :p
Would have excepted more leechers tbh :) Just wait few days ;)

nickyvh
07-24-2013, 11:43 PM
Good script much better then mine :P

Awkwardsaw
07-31-2013, 12:23 AM
Uploaded what I'm calling the first actual 'full' release. I added powermining if you prefer exp > money. SMART debugging, and the walking is improved even more(Although the colors still change frequently, it doesnt mess up the script as often). I keep forgetting to grab proggies, but I could get it up to about 10 loads before the color messes it up

Awkwardsaw
08-01-2013, 12:20 AM
Sorry for double post, but I just now uploaded a reflection version of the script with reflection walking. All credit for the reflection functions goes to Brandon(As far as I know anyways)!

samerdl
08-03-2013, 02:05 PM
Nice to see reflection put in use, hopefully we'll get some more detailed beginner guides around for it :).

Grats on release

Malscythe
08-03-2013, 06:40 PM
I keep on getting a few errors that are a bit bothersome. Here's one I can't figure out. It's under the SmartGraphics tab.:

Error: Exception: Access violation at line 58
The following DTMs were not freed: [SRL - Lamp bitmap, SRL - Book of Knowledge]
The following bitmaps were not freed: [SRL - Mod bitmap, SRL - Admin bitmap, SRL - Minimap Mask bitmap, 3, 4]

Btw: Logged in just fine, but this came up as soon as I entered the world. Was located at the Varrock East Bank.

Awkwardsaw
08-03-2013, 07:36 PM
I keep on getting a few errors that are a bit bothersome. Here's one I can't figure out. It's under the SmartGraphics tab.:

Error: Exception: Access violation at line 58
The following DTMs were not freed: [SRL - Lamp bitmap, SRL - Book of Knowledge]
The following bitmaps were not freed: [SRL - Mod bitmap, SRL - Admin bitmap, SRL - Minimap Mask bitmap, 3, 4]

Btw: Logged in just fine, but this came up as soon as I entered the world. Was located at the Varrock East Bank.

you might not have the correct SMART installed. You need at least SMART8, and if you're using the reflection version, you need SMART 8.2.

If you do have it, I'm not entirely sure why it gives an error in smartgraphics

Malscythe
08-03-2013, 11:56 PM
There must have been something wrong with the way SMART8 installed. I just went to this link:

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

And now it's fixed. Testing the script right now. It keeps failing to mine but it's most likely fault on my end.

Edit: The script fails to find any ore. I keep starting from the bank and it makes its way down to the mines, but goes east to the fence and gets stuck. Here's from the console:


AutoColor = 1656930
rocks found on minimap: 8
|| [07:01:37 PM] Mal || Failed to find MineDDTM
|| [07:01:38 PM] Mal || Failed to find MineDDTM
|| [07:01:40 PM] Mal || Failed to find MineDDTM
|| [07:01:41 PM] Mal || Failed to find MineDDTM
|| [07:01:43 PM] Mal || Failed to find MineDDTM
|| [07:01:45 PM] Mal || Cannot find ore: 0
|| [07:01:45 PM] Mal || Failed somewhere in the proccess of mining
Successfully executed.

Any ideas?

Edit 2: Here is the latest error. Same problem, but new message. Also added a picture for location reference.


AutoColor failed in finding the color.
rocks found on minimap: 17
|| [10:22:30 PM] Mal || Cannot find location, perhaps along the path somewhere?
Successfully executed.

22028

Jokaa
08-04-2013, 12:11 AM
First glances but it looks like a super solid script (sss) Awkwardsaw, congratulations! Jokes aside, I'll learn quite a bit from this and have fun using it, thank ya!

Awkwardsaw
08-04-2013, 08:40 PM
There must have been something wrong with the way SMART8 installed. I just went to this link:

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

And now it's fixed. Testing the script right now. It keeps failing to mine but it's most likely fault on my end.

Edit: The script fails to find any ore. I keep starting from the bank and it makes its way down to the mines, but goes east to the fence and gets stuck. Here's from the console:



Any ideas?

Edit 2: Here is the latest error. Same problem, but new message. Also added a picture for location reference.



Ah. I have the location finder set up so if it finds more than 11 rocks it would decide we aren't at the mine, mostly because the members-section of varrock has the same rock color, and would throw it off(Making the script think we where at the mine when really we where about half way there). I'm assuming the script found that dirt road to the right of the minimap, which is why it found 17 "rocks" rather than the normal 8-9 in the mine. Go to line 303 where it says "result := length(atpa) < 12;" and make 12 somewhere around 18 just to give it a shot. If anything, the reflection version of the script doesn't rely on counting the colors on the map, and just finds the specific tile inside the mine

Malscythe
08-05-2013, 01:14 AM
Ah. I have the location finder set up so if it finds more than 11 rocks it would decide we aren't at the mine, mostly because the members-section of varrock has the same rock color, and would throw it off(Making the script think we where at the mine when really we where about half way there). I'm assuming the script found that dirt road to the right of the minimap, which is why it found 17 "rocks" rather than the normal 8-9 in the mine. Go to line 303 where it says "result := length(atpa) < 12;" and make 12 somewhere around 18 just to give it a shot. If anything, the reflection version of the script doesn't rely on counting the colors on the map, and just finds the specific tile inside the mine

Well, I tried all values from 12-22. None of them worked. Either the script went nowhere (Or to the building just north of the bank)or got lost on the path again. I'd like to try the reflection version, but I can't seem to find where to get smartv8.2. If you have another idea for the original or the download link for smartv8.2, I would be appreciative.

I would also like to say thankyou for such a detailed script, and it's truly great work. I forgot to mention that before. :)

Sjoe
08-05-2013, 01:18 AM
Well, I tried all values from 12-22. None of them worked. Either the script went nowhere (Or to the building just north of the bank)or got lost on the path again. I'd like to try the reflection version, but I can't seem to find where to get smartv8.2. If you have another idea for the original or the download link for smartv8.2, I would be appreciative.

I would also like to say thankyou for such a detailed script, and it's truly great work. I forgot to mention that before. :)

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

Malscythe
08-05-2013, 01:59 AM
http://villavu.com/forum/showthread.php?t=104778

Thankyou very much.

Now I realize I look like a helpless 10 year old, but I keep getting the following error on multiple lines in simba.simba under the SRL-OSR directory (464/489):

[Error] C:\Simba\Includes\SRL-OSR/SRL/core/simba.simba(465:14): Unknown identifier '' at line 464
Compiling failed.

I reinstalled the SRL-OSR from Github, thinking it was due to that since that's where the file is located, but to no avail. Again, sorry for the bugging.

Sjoe
08-05-2013, 02:10 AM
Thankyou very much.

Now I realize I look like a helpless 10 year old, but I keep getting the following error on multiple lines in simba.simba under the SRL-OSR directory (464/489):

[Error] C:\Simba\Includes\SRL-OSR/SRL/core/simba.simba(465:14): Unknown identifier '' at line 464
Compiling failed.

I reinstalled the SRL-OSR from Github, thinking it was due to that since that's where the file is located, but to no avail. Again, sorry for the bugging.

Try restarting simba or waiting few seconds till simba is fully loaded.

Awkwardsaw
08-05-2013, 02:27 AM
Well, I tried all values from 12-22. None of them worked. Either the script went nowhere (Or to the building just north of the bank)or got lost on the path again. I'd like to try the reflection version, but I can't seem to find where to get smartv8.2. If you have another idea for the original or the download link for smartv8.2, I would be appreciative.

I would also like to say thankyou for such a detailed script, and it's truly great work. I forgot to mention that before. :)

No, thank you for your input :) I havnt used the color version for a while now, the next free time i get I'll look into why the walking sucks

Malscythe
08-07-2013, 01:55 AM
Try restarting simba or waiting few seconds till simba is fully loaded.

I'm currently on a work excursion where I can't test the script, although I tried reinstalling all of the components required. Just to be clear, the smartv8.2 installation requires the same method as 8.0, being just to extract the files into the plugins folder?

Sjoe
08-07-2013, 01:59 AM
I'm currently on a work excursion where I can't test the script, although I tried reinstalling all of the components required. Just to be clear, the smartv8.2 installation requires the same method as 8.0, being just to extract the files into the plugins folder?

yerh :)

Malscythe
08-08-2013, 07:35 PM
yerh :)

Alright. Slowly getting there. I was defining "Smart8" instead of "Smart8.2" in the test scripts and now it works. Smartv8.2 is now configured properly, but I'm having an issue with SmartGraphics:


[Error] C:\Simba\Includes\SRL-OSR/SRL/Misc/SmartGraphics.simba(22:3): Unknown identifier 'SmartSetDebug' at line 21
Compiling failed.

Which is odd because the actual identifier is on line 24, but here's the function in question in SmartGraphics.simba anyway:


{$DEFINE SMART_GRAPHICS}
{*
Smart Grahpics
==============

The Smart Grahpics include contains functions that will paint graphics on to the
SMART screen. Used to make scripts look nicer and sometimes to display
progress reports. Also used as a useful debugging tool. This is for Simba 0.99 and above.

*}

var
SMART_Canvas: TMufasaBitmap;
SMART_DebugSetup, SMART_Reset: Boolean;

{*
Authors: Coh3n, Brandon.

Declares everything needed for setting up SmartDebug.
There is no need to call this in scripts.
*}
procedure SMART_SetupDebug;
begin
SmartSetDebug(True);
SMART_Canvas := TMufasaBitmap.Create;
SMART_Canvas.SetPersistentMemory(SmartDebugArray, 765, 505);
SMART_DebugSetup := true;
if not SMART_Reset then
AddOnTerminate('SMART_FreeDebug');
end;

If in case you're not supposed to define "Smart8.2", when I do define "Smart8" it gives me the following error:


[Error] C:\Simba\Includes\SRL-OSR/SRL/misc/SmartParams.Simba(229:202): Invalid number of parameters at line 228
Compiling failed.

Turpinator
08-08-2013, 07:53 PM
Alright. Slowly getting there. I was defining "Smart8" instead of "Smart8.2" in the test scripts and now it works. Smartv8.2 is now configured properly, but I'm having an issue with SmartGraphics:



Which is odd because the actual identifier is on line 24, but here's the function in question in SmartGraphics.simba anyway:



If in case you're not supposed to define "Smart8.2", when I do define "Smart8" it gives me the following error:

SMART8.2 is NOT a valid define.
It is giving you that error in SmartGraphics.simba because SMART is not defined. (ie from defining smart8)

So make it SMART8.
To fix the SmartParams error... Read the SMART 8.2 thread, as how to fix this is listed multiple times.

Sjoe
08-08-2013, 08:26 PM
Alright. Slowly getting there. I was defining "Smart8" instead of "Smart8.2" in the test scripts and now it works. Smartv8.2 is now configured properly, but I'm having an issue with SmartGraphics:



Which is odd because the actual identifier is on line 24, but here's the function in question in SmartGraphics.simba anyway:



If in case you're not supposed to define "Smart8.2", when I do define "Smart8" it gives me the following error:

1) use {$Define Smart8}
2) go to line 240 in SmartParams.simba and replace Smartspawnclient line with:

Result := SmartSpawnClient(ReplaceWrap(PluginPath, '\', '/', [rfReplaceAll]), 'http://oldschool' + World + '.runescape.com/', 'j1', 765, 503, '', '', '', '');
3)Save the file and press play on Awkward VEB Miner

Malscythe
08-08-2013, 10:01 PM
Thankyou very much to both of you. I did try to add the extra '', but apparently looking back I added a " instead like an idiot. With that done, the script appears to work fine. Once again, amazing job Awkward. You are of genius!

FearIsNotAnOption
08-10-2013, 10:35 AM
Well, I can only seem to get this to mine a single load before it shuts down and says successfully executed. I've tried banking and powermining; each method stops after one load. This is with the color script, not the reflection script. I receive an error running the reflection script about an unknown identifier, smart something int. However, I don't think this error has anything to do with the reflection script itself.

Awkwardsaw
08-10-2013, 01:23 PM
What do you have set as your load limit? Does it say any errors in the debug box, such as cannot find mine/ color/ bank?

Frankenstein
08-12-2013, 08:34 PM
Can you please help me, I keep getting this error.

[Error] C:\Documents and Settings\Home\Desktop\[R]OSR VEB Miner v1.simba(162:13): Unknown identifier 'SmartGetFieldInt' at line 161
Compiling failed.

Awkwardsaw
08-12-2013, 10:56 PM
Can you please help me, I keep getting this error.

[Error] C:\Documents and Settings\Home\Desktop\[R]OSR VEB Miner v1.simba(162:13): Unknown identifier 'SmartGetFieldInt' at line 161
Compiling failed.

you don't have smart 8.2

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

Frankenstein
08-12-2013, 11:10 PM
you don't have smart 8.2

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

I updated to 8.2 and kept getting other errors :/ and thus i went on a loop of re-installing simba for about 2 hours and then i finally gave up.

This is the error I keep getting after putting 8.2


[Error] C:\Simba\Includes\SRL-OSR/SRL/misc/SmartParams.Simba(229:202): Invalid number of parameters at line 228
Compiling failed.

Nvm, got it fixed, thank you Sjoe!



Sorry I am back to ask about the Load limit. What exactly is it? Will it stop after the amount of loads I put?

Awkwardsaw
08-12-2013, 11:59 PM
Yep. Just put something like 9999 if you want it to go for ever

Frankenstein
08-13-2013, 12:36 AM
Hey, it gets a one load and then when it's time to go back it just stays there, it would go and bank if i click once on the path to bank.

Awkwardsaw
08-13-2013, 03:03 AM
Hey, it gets a one load and then when it's time to go back it just stays there, it would go and bank if i click once on the path to bank.

hmm. Are you mining copper/ tin by chance?

Frankenstein
08-13-2013, 04:06 PM
hmm. Are you mining copper/ tin by chance?

No, I am mining Iron.

botsrs
08-30-2013, 01:57 PM
Thanks for the script, I'm really enjoying it. Haven't been able to get a good log since it keeps stopping because I take too long on the ore ;) but I did find a few errors.
First is that it doesn't detect gas, though I'm not sure if that is possible yet.
Second, there is a small clerical error in that when you have it set to bank, the log says you don't. You still bank, though.
Also, when using breaking it takes a break as soon as I start, not sure if it actually starts after the break though.
It also bags early quite a bit, but that may be due to my slow mining speed. And in addition I already mention that it stops when you take too long to mine.
And it doesn't upgrade the pickaxe. I have two of each in the bank, but when I got to 31 it didn't grab the axe on the way back to mining after banking. EDIT---> I now see this is in the 'future' column, my bad!

And, since an update early yesterday morning, the Reflection script has no idea where I am no matter where I start. Thanks a ton for the work, just thought I'd post with what's happening in with my botting :)
EDIT2: Just tested the other script, it also doesn't know where I am.

alexyoda
09-01-2013, 05:32 AM
I'm sure im doing something wrong but im getting || [01:31:10 AM] four || Cannot find location, perhaps along the path somewhere? when im in the mine

subsidel
09-01-2013, 07:29 PM
I'm sure im doing something wrong but im getting || [01:31:10 AM] four || Cannot find location, perhaps along the path somewhere? when im in the mine

getting the same error... im in varrock east bank or mine and it cant find the location! :(

subsidel
09-03-2013, 05:56 PM
Ok the second version OSR (without the Reflection) does work with some difficulty... I'm still experimenting but if: u click run and let it log in for you it wont work.

It seems to work if:

1)Click run until it loads the client

2)While its the game is loading disable smart screen and log in yourself

3)BEFORE YOU CLICK THAT RED BOX TO PLAY THE GAME- enable the smart screen then:

4)Minimise the smart client and you'll see a small box that appears saying to register- just hit NO twice

5) Now on that page where you click that box to play- u'll see something white in the top right corner- that means its worked.

6) Disable the smart- click to play and enable- and it will powermine.



So recap- just go to the page where it says CLICK HERE TO PLAY- then Hit Run on the script- enable the smart client (small box appears- hit no twice) and you will see a small white box at top right... then just disable the smart client- click to enter game, then enable smart and it'll detect and powermine.

Even with it working, it fails to detect gas rocks/ flee from rock monster and script runs for 1 load :(

Posh
09-04-2013, 08:17 PM
great script mate. hope to see more from ya ;)

botsrs
09-07-2013, 12:35 AM
Not sure, but I think the colours must have updated.. Got it to detect rocks by changing it. Gonna see where I can get

rj
09-07-2013, 02:26 AM
Not sure, but I think the colours must have updated.. Got it to detect rocks by changing it. Gonna see where I can get
Lol, it's Runescape 2007 the rocks havn't been updated your settings must have been wrong


Good that you got it working though

leeds4eva
09-08-2013, 12:14 PM
how to u select what ore to use//

Ekarma
10-28-2013, 05:08 AM
I get this error:
Exception in Script: Unknown declaration "TDTMPointDef" at line 488, column 32

latour
10-29-2013, 01:11 AM
same here i got this Unknown declaration "TDTMPointDef" at line 488, column 32

leeds4eva
11-12-2013, 01:00 PM
tere any anti randoms?

leeds4eva
11-12-2013, 01:20 PM
[Error] C:\Users\user\Downloads\[R]OSR VEB Miner v1 (7).simba(162:42): Invalid number of parameters at line 162
Compiling failed.

tzaro
11-20-2013, 04:53 AM
doesnt work for me. oh well. mining is lame anyways :P

MKG
11-21-2013, 02:42 AM
same with other people, I'm getting this:

Exception in Script: Unknown declaration "TDTMPointDef" at line 488, column 32

bloodshot45
11-24-2013, 10:27 AM
When I try to use this script, I run it and it just says "Socket disconnected; unpairing" every time I hit the run button

Unfold
12-22-2013, 02:51 PM
I keep getting Unknown type 'TDTMPointDef

Brandon02852
12-26-2013, 03:21 AM
Reflection version of the script not working.

Unknown identifier 'R_GetCameraYaw' at line 162

megattack200
12-30-2013, 06:12 PM
[Error] C:\Users\Meg\Downloads\OSR VEB Miner v1.simba(489:32): Unknown identifier '' at line 488
Compiling failed.

Timba
01-20-2014, 03:27 AM
Soo many errors!

[Error] C:\Simba\Scripts\OSR VEB Miner v1.simba(489:32): Unknown identifier '' at line 488

makaveli1
02-22-2015, 12:20 AM
Hey noob here and noob question sorry. How do I fill out lines 38 to 43 about changing ores to mine and pickaxe wielding

kurome
02-24-2015, 12:18 AM
Hi Awkwardsaw.

I'm running into an issue when I try to compile and run the script.

====The error is:======
Error: No default value for parameter 3 found at line 161
Compiling failed.
=======================

======Line 161 of the code is:========
Result := SmartGetFieldInt(0, 'dq.fw') * -1896216087;
==================================

I've look around at other code snippets and it seems that the SmartGetFieldInt() method
should only take two parameters.

Do you have any idea why I would get this error?

meodows92
03-06-2015, 10:07 AM
Hi i have some problem encounter on your script, when i tried to run after i log in, it keep walking around the bank and then show the error as show below the image.

25208

May i know what should i do to solve this?

R A G N A R
03-13-2015, 10:53 PM
Why do I keep getting this error
"[Error] C:\Simba\Scripts\[R]OSR VEB Miner v1.simba(162:42): Invalid number of parameters at line 163
Compiling failed."

Please help.

Curse
03-20-2015, 07:29 PM
Is this a better location than varrock west?

yat13
04-28-2015, 06:20 AM
script runs great but why cant i bank my ore it just drops it please help

Rincewind
04-28-2015, 06:30 AM
looks good, i'll try this out sometime. haven't logged in for a while

Sh4d0wf0x
05-11-2015, 01:49 PM
[Error] C:\Users\Alexander\Downloads\[R]OSR VEB Miner v1.simba(162:42): Invalid number of parameters at line 163
Compiling failed.
[Error] C:\Users\Alexander\Downloads\[R]OSR VEB Miner v1.simba(162:42): Invalid number of parameters at line 163
Compiling failed.

Can't get it to work, checked includes

vacacow1
05-15-2015, 08:15 PM
I've noticed it doesn't recognize the location when standing 1 tile north of the iron ore and while mining it sometimes stands on those tiles, other than that works great. Thanks

sjemple
06-14-2015, 09:58 PM
i get this when i try and run it

Compiling failed.
Error: Expected variable of type "Pointer", got "record [0]record [0]UInt32; [4]UInt32; [8]UInt32; [12]UInt32; [16]UInt32; [20]UInt32; end; [24]array of record [0]UInt32; [4]UInt32; [8]UInt32; [12]UInt32; [16]UInt32; [20]UInt32; end; end" at line 537
Compiling failed.

Bulbasaur
06-21-2015, 02:29 AM
It hasn't been updated since 2013, guys.....