SRL Archive - RS3 Mining

[RS3] Varrock Miner


Renzanity

2015-05-13 09:09:17

***[RS3] Mining Trainer***
Varrock Miner
Version: 1.72
Status: Working



Features:
-100% COLOR
-Progress Report (Debug and Paint)
-Rafiki Player Form
-SPS Mapping
-Antiban
-Mines Copper & Tin, Copper, Tin, Clay or Iron
-XP counter
-Ore Counter (Using DTM)
-Failsafes
-Breaks
-Option to power mine or to bank
-Option to bank using presets or quick deposit
-Option of what preset to use when banking using presets
-Gem counter
-Changeable antiban percentage
-Changeable quick key to use for dropping ores

Features to be added:
-Leave suggestions below

What it basically does:
-Mines for ore at both the Varrock West or East Mining area
-Banks or drops and repeats

Requirements:
-Varrock Lodestone must be unlocked
-(Preferrably) With a rune pickaxe on your toolbelt, so your pickaxe changes as your mining lvl goes up along the way.

Instructions:
[SPOILER=Instructions Compilation]
1. Be sure that your client is properly setup. Click me

2. Have your players setup in the Rafiki Player Manager.
[SPOILER=Rafiki Player Manager Setup]
[/SPOILER]
3. Start anywhere!

4. If you want to use presets as a way to deposit your ore, save your preset as an empty backpack.

5. If power mining, place the ore you're mining on your actionbar with your specified quick key

6. Wear lightweight clothing. (Long runs from bank to mine and vice versa)

7. Place your XP tracker on the upper right corner of your chatbox like so:
[SPOILER=XP Tracker location]
[/SPOILER]
[/SPOILER]

Progress Reports:
[SPOILER=Proggy List]
[SPOILER=Debug proggy]
Progress Report by @Garden of Sinners's powermining

/=======================================\
|========== Varrock West Miner =========|
|=======================================|
| Time Ran: 03h 39m 17s |
| No. of breaks taken: 2 |
| No. of iron mined: 2,124 pcs |
| No. of iron/hr: 581 pcs |
| Total XP Gained: 84,099 xp |
| Total XP/hr: 23,010 xp |
\=======================================/

1.71
/=======================================\
|========== Varrock West Miner =========|
|=======================================|
| Time Ran: 08h 40m 55s |
| No. of breaks taken: 0 |
| No. of iron mined: 4,643 pcs |
| No. of iron/hr: 535 pcs |
| Total XP Gained: 162,638 xp |
| Total XP/hr: 18,732 xp |
\=======================================/

1.71
/=======================================\
|========== Varrock West Miner =========|
|=======================================|
| Time Ran: 10h 03m 06s |
| No. of breaks taken: 0 |
| No. of iron mined: 5,396 pcs |
| No. of iron/hr: 537 pcs |
| Total XP Gained: 197,202 xp |
| Total XP/hr: 19,619 xp |
\=======================================/

Progress Report by @rkroxpunk

[FONT=Courier New]v1.62
/=======================================\
|========== Varrock West Miner =========|
|=======================================|
| Time Ran: 04h 36m 00s |
| No. of breaks taken: 1 |
| No. of iron mined: 1,741 pcs |
| No. of iron/hr: 378 pcs |
| Total XP Gained: 58,615 xp |
| Total XP/hr: 12,742 xp |
| Sapphire collected: 4 pcs |
| Emerald collected: 1 pcs |
| Ruby collected: 1 pcs |
| Diamond collected: 0 pcs |
| Total Profit: 547,183 gp |
| Estimated Profit/hr: 118,950 gp |
\=======================================/[/FONT]

Varrock Miner v1.4 testing proggy

[FONT=Courier New]
1.4
/============================================\
|================ Varrock Miner =============|
|============================================|
| Time Ran: 03h 08m 53s |
| No. of breaks taken: 0 |
| No. of iron mined: 1591 pcs |
| No. of iron/hr: 505 pcs |
| Total XP Gained: 55685 xp |
| Total XP/hr: 17688 xp |
| Sapphire collected: 5 pcs |
| Emerald collected: 0 pcs |
| Ruby collected: 0 pcs |
| Diamond collected: 0 pcs |
| Total Profit: 500967 gp |
| Estimated Profit/hr: 159131 gp |
\============================================/[/FONT]

Varrock Miner v1.2 testing proggy (mining at the west mine)

v1.2
/============================================\
|================ Varrock Miner =============|
|============================================|
| Time Ran: 08h 14m 28s |
| No. of breaks taken: 1 |
| No. of clay mined: 5408 pcs |
| No. of clay/hr: 656 pcs |
| Total XP Gained: 26650 xp |
| Total XP/hr: 3234 xp |
| Sapphire collected: 6 pcs |
| Emerald collected: 1 pcs |
| Ruby collected: 1 pcs |
| Diamond collected: 0 pcs |
| Total Profit: 1588922 gp |
| Estimated Profit/hr: 192800 gp |
\============================================/

Varrock Miner v1.2 testing proggy (mining at the east mine)

v1.2
/============================================\
|================ Varrock Miner =============|
|============================================|
| Time Ran: 07h 13m 17s |
| No. of breaks taken: 1 |
| No. of iron mined: 3831 pcs |
| No. of iron/hr: 531 pcs |
| Total XP Gained: 130270 xp |
| Total XP/hr: 18039 xp |
| Sapphire collected: 3 pcs |
| Emerald collected: 2 pcs |
| Ruby collected: 0 pcs |
| Diamond collected: 0 pcs |
| Total Profit: 1216502 gp |
| Estimated Profit/hr: 168457 gp |
\============================================/

Varrock Miner v1.0 testing proggy

v1.0
/============================================\
|================ Varrock Miner =============|
|============================================|
| Time Ran: 04h 33m 32s |
| No. of breaks taken: 2 |
| No. of iron mined: 2265 pcs |
| No. of iron/hr: 497 pcs |
| Total XP Gained: 79275 xp |
| Total XP/hr: 17389 xp |
| Sapphire collected: 1 pcs |
| Emerald collected: 1 pcs |
| Ruby collected: 1 pcs |
| Diamond collected: 0 pcs |
| Total Profit: 738996 gp |
| Estimated Profit/hr: 162096 gp |
\============================================/

A v2.6.2 proggy

v2.6.2
/==================================\
|========Varrock West Miner========|
|==================================|
| Time Ran: 11h 25m 01s |
| No. of breaks taken: 3 |
| No. of clay mined: 7417 pcs |
| No. of clay/hr: 650 pcs |
| Total XP Gained: 86975 xp |
| Total XP/hr: 7618 xp |
| Sapphire collected: 10 pcs |
| Emerald collected: 3 pcs |
| Ruby collected: 1 pcs |
| Total Profit: 1082016 gp |
| Estimated Profit/hr: 94772 gp |
\==================================/

A v2.5 proggy

v2.5
/==================================\
|========Varrock West Miner========|
|==================================|
| Time Ran: 02h 19m 15s |
| No. of breaks taken: 0 |
| No. of iron mined: 1145 pcs |
| No. of iron/hr: 493 pcs |
| Total XP Gained: 38255 xp |
| Total XP/hr: 16483 xp |
| Sapphire collected: 0 pcs |
| Emerald collected: 1 pcs |
| Ruby collected: 0 pcs |
| Total Profit: 253234 gp |
| Estimated Profit/hr: 109110 gp |
\==================================/

A v2.4 proggy

v2.4
/===================================\
|========Varrock West Miner=========|
|===================================|
| Time Ran: 07h 41m 24s |
| No. of breaks taken: 3 |
| No. of iron mined: 3663 pcs |
| No. of iron/hr: 476 pcs |
| Total XP Gained: 126245 xp |
| Total XP/hr: 16416 xp |
| Sapphire collected: 2 pcs |
| Emerald collected: 3 pcs |
| Ruby collected: 0 pcs |
| Total Profit: 807753 gp |
| Estimated Profit/hr: 105037 gp |
\===================================/

A v2.3 proggy

v2.3
/=====================================\
|=========Varrock West Miner==========|
|=====================================|
| Time Ran: 18h 18m 37s |
| No. of breaks taken: 7 |
| No. of Clay mined: 12214 pcs |
| No. of Clay/hr: 667 pcs |
| Total XP Gained: 61018 xp |
| Total XP/hr: 3332 xp |
| Sapphire collected: 0 pcs |
| Emerald collected: 7 pcs |
| Ruby collected: 3 pcs |
| Total Profit: 2141708 gp |
| Estimated Profit/hr: 116967 gp |
\=====================================/


v1.0
/======================================\
|=======Varrock West Iron Miner========|
|======================================|
| Time Ran: 58m 47s |
| No. of breaks taken: 0 |
| No. of iron mined: 476 pcs |
| No. of iron/hr: 486 pcs |
| Total XP Gained: 16030 xp |
| Total XP/hr: 16360 xp |
| Total Profit: 99960 gp |
| Estimated Profit/hr: 102016 gp |
\======================================/
[/SPOILER]
[SPOILER=Paint Proggy]
Sample:
[/SPOILER]
[/SPOILER]

Changelog:
[SPOILER=Changelog]
Varrock Miner v1.72 release
-Changed the mining procedure to detecting if your player is still animating
-Added an auto client reload for when the script's been running for approximately 8hrs already
-Added a function to close the popup when you reach lvl10 (From The Mayor's VEB Miner)

Varrock Miner v1.71 release
-Fixed the part where the script mines for copper and tin but doesn't count them correctly

Varrock Miner v1.7 release
-Rewritten thescript to shorten some parts of the it

Varrock Miner v1.66 release
-Quick fix on the copper and tin mining lines

Varrock Miner v1.65 release
-Fixed the power miner (fixed item dropping)

Varrock Miner v1.64 release
-You can now specify what Quick Key to use to drop your ore
-Changed the SPS map for it was too small
-Changed the findObj function to be able to click on offsets and not just the middle of the ATPA
-Some minor fixes on some procedures

Varrock Miner v1.63 release
-Edited the findObj function to click random offsets from the middle of the ATPA

Varrock Miner v1.6 release
-Updated the DTMs
-Updated the Varrock West mine paths

Varrock Miner v1.5 release
-Updated the DTMs (hopefully that fixes the power mining issue)
-Now banks by randomly clicking the bank booth or the banker
-Updated progress report

Varrock Miner v1.4 release
-Revised the Updater again (please download the new one)
-Changed the banking procedure (removed the booleans 'preNum' and 'deopOption')
-Now makes a folder for all the files for this script and downloads the files there
-Edited the DTMs for the gems (It works now I think?)
-Reduced the minibreak wait time to randomRange(5seconds, 15seconds)
-Added mouseMovingObject on the antiban. (See the SRL include for more info)
-Changed the code for mining Tin and Copper at the same time

Varrock Miner v1.3 is now open for testing
-Added an auto updater on the script itself to automatically download a new version when you run the script. (Be sure to check for a new script frequently for I edit the script every so often)
-Auto downloads the SPS map and paint images and placing them on their respective folders
-Edited the toMine(); procedure
-When mining for Tin and Copper, it randomly mines the stones instead of mining them 14x14
-Edited the Areas for polygons
-Fixed the progress report procedure
-Uploaded a new Varrock Miner Updater file (download it again if you have downloaded the old ones)

Varrock Miner v1.2 is now open for testing
-You can now choose how to deposit your ores (Using a preset or just plain quickdeposit)
-You can choose what preset to use when depositing ores

Varrock Miner v1.0 is now open for testing!
-You can now mine on either Varrock West or East mining areas
-You can now mine for Copper
-You can also mine for both Tin & Copper
P.S. Don't forget to grab the new SPS Map for this.
[/SPOILER]


Please report any bug you find or suggestions as a post below.:norris:

Richard

2015-05-13 10:50:17

Haven't got Simba downloaded, so can't really test it and comment. But I noticed that you ask for the iron price as an input, but you could probably quite easily read it from the GE API that Jagex provides, to save you time, this is the JSON page for iron ore. Not sure if we have any useful libraries from interpreting JSON data, but you could quite easily find the price by using some simple string methods.

Renzanity

2015-05-13 11:11:20

From: Richard
Haven't got Simba downloaded, so can't really test it and comment. But I noticed that you ask for the iron price as an input, but you could probably quite easily read it from the GE API that Jagex provides, to save you time, this is the JSON page for iron ore. Not sure if we have any useful libraries from interpreting JSON data, but you could quite easily find the price by using some simple string methods.


Hello,

Thanks for the suggestion!

Will implement it on the script right now. I didn't know where to declare grandExchange.getPrice()(which uses the IDs from JSON), but thanks to @Taric(thank you), I now know how.

Have a good one!

Renzanity

2015-05-13 12:10:38

v1.1 release
-Now automatically grabs the price of iron.
-Updated the SPS path.

Renzanity

2015-05-14 02:22:14

v2.0 release
-Can now mine 'Tin', 'Clay' and 'Iron'
-Added an option to power mine or not
–Added an option to drop the gems or not
-Added gem counter
-Turned the antiBan into a minibreak
-New paint proggy

Please post any bug you find, I don't have enough time to test it out because I'll be busy with RL stuff these next few days.

Have a good one and enjoy!

Renzanity

2015-05-14 05:49:51

v2.1 release
-Altered the break procedure
-Fixed a parentheses problem on the Run Time timer
-Fixed the problem with locating tin ore rocks

Renzanity

2015-05-14 23:18:05

v2.2 release
-Altered the power miner; Now drops the gems automatically, regardless of setting the drop gems function active or not. As to get rid of the gem counter bug
-Altered the logIn() procedure
-Changed the path coordinates for running to the mining area

Renzanity

2015-05-15 22:51:12

v2.3 release
-Fixed the breaking issues
-Now shows what you are mining on the debug progress report
-Now lets you specify the percentage of the antiban being initiated on the playerform
-Shortened the minibreak from (30secs to 2mins) to (10secs to 30secs) to maximize your mining exp/hr

Renzanity

2015-05-17 02:01:27

v2.3 testing's done!

v2.3
/=====================================\
|=========Varrock West Miner==========|
|=====================================|
| Time Ran: 18h 18m 37s |
| No. of breaks taken: 7 |
| No. of Clay mined: 12214 pcs |
| No. of Clay/hr: 667 pcs |
| Total XP Gained: 61018 xp |
| Total XP/hr: 3332 xp |
| Sapphire collected: 0 pcs |
| Emerald collected: 7 pcs |
| Ruby collected: 3 pcs |
| Total Profit: 2141708 gp |
| Estimated Profit/hr: 116967 gp |
\=====================================/

Gonna add a little more stuff on the script and v2.4 will be the last update.

lisapvm24

2015-05-19 00:22:09

I can vouch that this worked whilst mining clay. Thank-you.

Renzanity

2015-05-19 02:24:50

v2.4 release
-Added more failsafes
-Removed the drop gem function
-Updated the colors for each ore
[SPOILER=Proggy for v2.4 so far (Still running)]

v2.4
/===================================\
|========Varrock West Miner=========|
|===================================|
| Time Ran: 10h 42m 31s |
| No. of breaks taken: 5 |
| No. of iron mined: 5055 pcs |
| No. of iron/hr: 472 pcs |
| Total XP Gained: 174965 xp |
| Total XP/hr: 16338 xp |
| Sapphire collected: 6 pcs |
| Emerald collected: 6 pcs |
| Ruby collected: 1 pcs |
| Total Profit: 1121959 gp |
| Estimated Profit/hr: 104770 gp |
\===================================/
[/SPOILER]

Renzanity

2015-05-20 09:04:38

v2.5 release
-Changed the SPS map
-Added a very nifty snippet by @The Mayor, it's called SPS.isInPolygon(). You can find out more about it, here. I used it as a failsafe for when your character suddenly feels like strolling off the radar. If it does wander off the map, this failsafe's going to trigger and use the Varrock Lodestone to bring you back. If your backpack's full, you will be walked to the bank; if not, you'll be walked back to the mining area.

P.S.
It's still a little buggy because the map's too big to cover a good enough area, so if you have any suggestions let me know.

EDIT:
v2.5 proggy

v2.5
/==================================\
|========Varrock West Miner========|
|==================================|
| Time Ran: 03h 48m 22s |
| No. of breaks taken: 1 |
| No. of iron mined: 1844 pcs |
| No. of iron/hr: 484 pcs |
| Total XP Gained: 62720 xp |
| Total XP/hr: 16478 xp |
| Sapphire collected: 0 pcs |
| Emerald collected: 2 pcs |
| Ruby collected: 0 pcs |
| Total Profit: 408348 gp |
| Estimated Profit/hr: 107280 gp |
\==================================/

The Mayor

2015-05-20 10:11:32

From: Renzanity
v2.5 release
-Changed the SPS map
-Added a very nifty snippet by @The Mayor, it's called SPS.isInPolygon(). You can find out more about it, here. I used it as a failsafe for when your character suddenly feels like strolling off the radar. If it does wander off the map, this failsafe's going to trigger and use the Varrock Lodestone to bring you back. If your backpack's full, you will be walked to the bank; if not, you'll be walked back to the mining area.

P.S.
It's still a little buggy because the map's too big to cover a good enough area, so if you have any suggestions let me know.


TBH, that should probably included with SPS.

Renzanity

2015-05-20 10:48:49

From: The Mayor
TBH, that should probably included with SPS.


Will it be pushed to the SPS include? This is a really neat addition for SPS IMO. I wonder why it's not included in the tutorials by now.

Renzanity

2015-05-20 11:17:44

To the person who downloaded v2.5, please grab the new SPS map again, I forgot to change the link on the instructions tab(my bad).:p

rickhunley

2015-05-20 17:10:14

Thanks for updates. Is there a way for the script to wait two seconds after successfully getting ore, to then click on the next available ore? There seems to be a long wait time sometimes between identifying rocks. Is this for antiban purposes? One more request :P Is there a way to add variation to the breaks and session times? Just that if I'm seen to be logging out every 20 minutes, I guess that will raise flags ha. Okay thanks man and keep it up.

rickhunley

2015-05-20 21:02:36


Three hour proggy using VPS and level three miner @ beginning.

Renzanity

2015-05-20 22:07:46

From: rickhunley
Thanks for updates. Is there a way for the script to wait two seconds after successfully getting ore, to then click on the next available ore? There seems to be a long wait time sometimes between identifying rocks. Is this for antiban purposes? One more request :P Is there a way to add variation to the breaks and session times? Just that if I'm seen to be logging out every 20 minutes, I guess that will raise flags ha. Okay thanks man and keep it up.


Hello rick,

Thanks for trying the script out and raising some of your concerns, I'm sure we can figure something out.

For your first concern, if you are mining somewhere crowded, it will be a difficult for your miner. (i.e You're mining lvl's 15 and you want to mine Iron, but there are other bots that are mining iron..I suggest that you mine some tin until you reach about lvl 41 and above so you can compete for ores.)

And as for the wait time, if the debug says "Initiating Minibreak.." then yes, it's the antiban being triggered. If not, please provide a screenshot or a more detailed explanation of what's actually happening.

For your last concern, you can change your breaks anytime. The script provides that kind of feature. But if your concern's about "Does it take a break EXACTLY how much time I put it?" Then my answer's no, if you chose to take a break after 20mins there will be deductions or additions to that exact amount of time as seen in this line in the script:

if (BreakTimer.getTime() >= ((breakT + randomRange(-5, 6)) * 60000)) then
takeBreak(); {*There is a 5min deduction or addition to the amount of time you provided before it does take a break*}

I hope that clears up your worries. If not, tell me.:)


Thanks for the proggy. Forgot to put the XP tracker on the upper right hand side of your chatbox huh?:P

Have a good one.

rickhunley

2015-05-20 22:34:35

From: Renzanity
Hello rick,

Thanks for trying the script out and raising some of your concerns, I'm sure we can figure something out.

For your first concern, if you are mining somewhere crowded, it will be a difficult for your miner. (i.e You're mining lvl's 15 and you want to mine Iron, but there are other bots that are mining iron..I suggest that you mine some tin until you reach about lvl 41 and above so you can compete for ores.)

And as for the wait time, if the debug says "Initiating Minibreak.." then yes, it's the antiban being triggered. If not, please provide a screenshot or a more detailed explanation of what's actually happening.

For your last concern, you can change your breaks anytime. The script provides that kind of feature. But if your concern's about "Does it take a break EXACTLY how much time I put it?" Then my answer's no, if you chose to take a break after 20mins there will be deductions or additions to that exact amount of time as seen in this line in the script:

if (BreakTimer.getTime() >= ((breakT + randomRange(-5, 6)) * 60000)) then
takeBreak(); {*There is a 5min deduction or addition to the amount of time you provided before it does take a break*}

I hope that clears up your worries. If not, tell me.:)


Thanks for the proggy. Forgot to put the XP tracker on the upper right hand side of your chatbox huh?:P

Have a good one.


That's great thanks. When you get a chance could you please add a fail safe of when your bot accidently clicks subscribe or one of the purchase buttons? Mine did haha, and then it couldn't click 'Continue Game'. Thanks :)

jagaren

2015-05-21 10:11:41

I got it to work once, then I get this all the time.

lease wait…now installing Renzanity's VW Miner image assets to your computer…
– INSTALLATION STATUS: Script Paint exists.
Successfully logged you in..
Error: Invalid floating point operation at line 335 (now its giving me Error: Invalid floating point operation at line 349)
Execution failed.
The following DTMs were not freed: [0, 1, 2, 3]
The following bitmaps were not freed: [Minimap Mask, 1, SMART Debug Image, Gametab Bitmap[0], Gametab Bitmap[1], Gametab Bitmap[2], Gametab Bitmap[3], Gametab Bitmap[4], Gametab Bitmap[5], Gametab Bitmap[6], Gametab Bitmap[7], Gametab Bitmap[8], Gametab Bitmap[9], Gametab Bitmap[10], Gametab Bitmap[11], Gametab Bitmap[12], Gametab Bitmap[13]]

Renzanity

2015-05-21 10:27:28

From: jagaren
I got it to work once, then I get this all the time.

lease wait…now installing Renzanity's VW Miner image assets to your computer…
– INSTALLATION STATUS: Script Paint exists.
Successfully logged you in..
Error: Invalid floating point operation at line 335
Execution failed.
The following DTMs were not freed: [0, 1, 2, 3]
The following bitmaps were not freed: [Minimap Mask, 1, SMART Debug Image, Gametab Bitmap[0], Gametab Bitmap[1], Gametab Bitmap[2], Gametab Bitmap[3], Gametab Bitmap[4], Gametab Bitmap[5], Gametab Bitmap[6], Gametab Bitmap[7], Gametab Bitmap[8], Gametab Bitmap[9], Gametab Bitmap[10], Gametab Bitmap[11], Gametab Bitmap[12], Gametab Bitmap[13]]

Hello,

Are you sure you got the latest version? Because upon checking the script, line 335 is just var. Can you provide more info about it? Maybe tell me what's on line 335 for you or a screenshot of the line highlighted by SIMBA upon initiation of the error.

Thanks for raising your concern.

jagaren

2015-05-21 11:04:22

here's the screenshot

[ATTACH=CONFIG]25988[/ATTACH]

Renzanity

2015-05-21 11:12:26

From: jagaren
here's the screenshot

[ATTACH=CONFIG]25988[/ATTACH]


Did you try re-downloading the script? It seems to be working fine for me.

jagaren

2015-05-21 11:14:00

I did, it's working now but not without resistance. I have to restart it multiple times but on this time that it started working I tried putting it into compatibility mode for windows xp and it worked first try. So I'm not sure if that fixed it or it just randomly started working again.



EDIT: I stopped it and turned it back on and I'm getting the same error again.

jagaren

2015-05-21 11:23:08

Do you want me to post my pc specs?


EDIT: I've tried re-downloading the script, reinstalling simba, changing the installation location, turning on compatibility mode for windows XP and run as admin. It seems to only work 10% of the time, I'm getting the same error so I can only assume its something wrong with the script.



Please wait…now installing Renzanity's VW Miner image assets to your computer…
– INSTALLATION STATUS: Script Paint exists.
Successfully logged you in..
Error: Invalid floating point operation at line 349
Execution failed.
The following DTMs were not freed: [0, 1, 2, 3]
The following bitmaps were not freed: [Minimap Mask, 1, SMART Debug Image, Gametab Bitmap[0], Gametab Bitmap[1], Gametab Bitmap[2], Gametab Bitmap[3], Gametab Bitmap[4], Gametab Bitmap[5], Gametab Bitmap[6], Gametab Bitmap[7], Gametab Bitmap[8], Gametab Bitmap[9], Gametab Bitmap[10], Gametab Bitmap[11], Gametab Bitmap[12], Gametab Bitmap[13]]

Renzanity

2015-05-21 11:50:46

From: jagaren
Do you want me to post my pc specs?


Did you check your RS3 interface if they are in the up and up? 'Click Me' or 'Me'

jagaren

2015-05-21 12:37:44

I went through the video to make sure I did it right and its all correct. I followed the guide on the forums


EDIT:

Also idk if you noticed that I posted the wrong error on my first post. its on a different line.

Please wait…now installing Renzanity's VW Miner image assets to your computer…
– INSTALLATION STATUS: Script Paint exists.
Successfully logged you in..
Error: Invalid floating point operation at line 349
Execution failed.
The following DTMs were not freed: [0, 1, 2, 3]
The following bitmaps were not freed: [Minimap Mask, 1, SMART Debug Image, Gametab Bitmap[0], Gametab Bitmap[1], Gametab Bitmap[2], Gametab Bitmap[3], Gametab Bitmap[4], Gametab Bitmap[5], Gametab Bitmap[6], Gametab Bitmap[7], Gametab Bitmap[8], Gametab Bitmap[9], Gametab Bitmap[10], Gametab Bitmap[11], Gametab Bitmap[12], Gametab Bitmap[13]]

jagaren

2015-05-21 12:50:00

I think the problem is the exp/profit per hour numbers, its extremely high when i first start it. http://i.imgur.com/Nn5mYo2.png

jagaren

2015-05-21 12:51:07

I think the error has something to do with the exp, gold earned per hour. When I finally get it to launch it starts off with extremely high numbers. [ATTACH=CONFIG]25989[/ATTACH]

Renzanity

2015-05-21 13:06:25

From: jagaren
I think the error has something to do with the exp, gold earned per hour. When I finally get it to launch it starts off with extremely high numbers. [ATTACH=CONFIG]25989[/ATTACH]


Try deleting the pRep(); procedure at line 518, see if that works.

EDIT:
The high numbers doesn't really matter, it will simmer down after a few loads.

jagaren

2015-05-21 13:55:05

That seems to have fixed the problems, thankyou for helping :).

I noticed that the exp/profit thing isn't showing up anymore, was that the problem?

Renzanity

2015-05-21 14:03:20

From: jagaren
That seems to have fixed the problems, thankyou for helping :).

I noticed that the exp/profit thing isn't showing up anymore, was that the problem?


Probably because it's getting a null in the /hr calculations when trying to run at the beginning of the script.

Enjoy and have a good one!

Renzanity

2015-05-21 14:37:35

v2.6 release
-Fixed the areaCheck(); glitch
-Removed the pRep(); procedure at the start of the script to avoid future floating point operation errors
-Edited the Instructions tab. You may now start ANYWHERE when running this script. It will detect when you're not on the area and will bring you to the area via Varrock lodestone.

Richard

2015-05-21 19:03:26

From: Renzanity
v2.6 release
-Fixed the areaCheck(); glitch
-Removed the pRep(); procedure at the start of the script to avoid future floating point operation errors
-Edited the Instructions tab. You may now start ANYWHERE when running this script. It will detect when you're not on the area and will bring you to the area via Varrock lodestone.


I expect it's a logic error, trying to divide by zero. ScriptTimer.getTime / 60000 it probably either rounding to an int, or the FP is not high enough, so goes to 0. The only reason it does this at the start is because it's the only time the value is low. I'd advise changing the logic for the calculation. E.g


xppms := (currentXP / ScriptTimer.getTime); //XP per ms at this point
xpph := xpms / 3600000; //convert to hour

This should work at any time except when t = 0, but to prevent the logic error, you can always chuck the calculations in an if statement checking for t = 0.

Usual disclaimer: haven't programmed simba in years

Renzanity

2015-05-21 21:04:27

From: Richard
I expect it's a logic error, trying to divide by zero. ScriptTimer.getTime / 60000 it probably either rounding to an int, or the FP is not high enough, so goes to 0. The only reason it does this at the start is because it's the only time the value is low. I'd advise changing the logic for the calculation. E.g


xppms := (currentXP / ScriptTimer.getTime); //XP per ms at this point
xpph := xpms / 3600000; //convert to hour

This should work at any time except when t = 0, but to prevent the logic error, you can always chuck the calculations in an if statement checking for t = 0.

Usual disclaimer: haven't programmed simba in years


Hello Richard,

Thanks again for your wonderful input.:D When I woke up, I did some alterations on the declarations for the oresPH and xpPH. Instead of placing them under 'integer', I declared them as 'extended'. I've had a similar problem in my other script, where tls pointed out the logic was calculating to a 0, resulting to the same error as with the one here today.

v2.6.1 release
-Refixed the floating point problem
-Replaced the old SPS paths with new ones
-Removed the experimental world hopping after breaks

jagaren

2015-05-22 06:54:34

Hey, I'm sure this isn't the correct place to ask about this but is it possible to run multiple instances of simba? As in different scripts at the same time or the same script but on a different server? If there is a guide I'd love a link to it :).

The Mayor

2015-05-22 16:03:16

From: Renzanity
Will it be pushed to the SPS include? This is a really neat addition for SPS IMO. I wonder why it's not included in the tutorials by now.


Yep https://github.com/SRL/SPS/commit/f32202126aa128c9b195897f87cb5fa620909553

You will need to remove/change name in your script(s) so you don't get a duplicate declaration :)

Renzanity

2015-05-22 16:29:30

From: The Mayor
Yep https://github.com/SRL/SPS/commit/f32202126aa128c9b195897f87cb5fa620909553

You will need to remove/change name in your script(s) so you don't get a duplicate declaration :)


Thank you for the update, sir. :D

Renzanity

2015-05-22 16:30:49

v2.6.2 release
-Removed the TSPSArea.isInPolygon function for it has been pushed to the SPS include so duplicate declarations will be avoided

currynoodle

2015-06-17 04:21:06

Hi. Not sure if isn't intended, but when set to mine Iron Ore, the character only mines the lone ore on the east side of the mine and omits the 2 more close-knit ores to the west.

Edit: Disregard everything I say, I'm a scrub. Found out that all I needed to do was zoom out.

Edit2: Started at level 20-ish mining

/==================================\
|========Varrock West Miner========|
|==================================|
| Time Ran: 04h 03m 14s |
| No. of breaks taken: 3 |
| No. of clay mined: 1791 pcs |
| No. of clay/hr: 442 pcs |
| Total XP Gained: 0 xp |
| Total XP/hr: 0 xp |
| Sapphire collected: 1 pcs |
| Emerald collected: 0 pcs |
| Ruby collected: 0 pcs |
| Total Profit: 244315 gp |
| Estimated Profit/hr: 60264 gp |
\==================================/

oscareragon

2015-10-08 17:06:15

Nice work here is my proggy [ATTACH=CONFIG]26790[/ATTACH]

rkroxpunk

2016-05-01 03:54:59

From: Renzanity
Hello rkroxpunk,

Thank you for letting me know that this thing happens when running this script. I haven't encountered this event but it's likely to happen since my SPS paths are annoyingly bad and I focused too much on the Varrock East mining area while re-writing this script.

Have a good one. :D

EDIT:
I'll be fixing this now since I'm done re-writing another public script I got.


Yeah that's fair enough, I have to say I literally didn't have a single issue when using this on tin + copper at Varrock East with banking but obviously reached 15 mining very quickly and moved over to iron which is only at the West location.