In short: This script will display the amount of energy that your opponent has remaining as part of the fight log.
http://i.imgur.com/o9tYNnS.png
This is a feature that is on Ender's list of things to do, but hasn't had the time for. It is provided as a 'band-aid' until such a feature is properly implemented in the game.
As the script stores the energy a bot has (as listed in the fight list) in your browser, it may not always be correct. If someone else fights the bot it will not pick up the energy change and therefore be incorrect. The energy increase each hour also causes the value reported to be slightly out. In my use this has not been an issue. Please do not report this as a bug.
You can grab the script from here:
http://userscripts.org/scripts/show/172963
You will need some form of Greasemonkey/Tampermonkey in order to use it. I can confirm it works in Chrome and Firefox, but haven't tested any others. I won't provide support on how to install the script, there is plenty of howto's out there, but if you do find something that may be a bug, report it here and I'll investigate.
|
Any chance you could make a version that doesn't rely on grease monkey for storing the fight list? Maybe using localStorage
|
Thanks for putting this together! Hopefully I can build this into the game at some point.
|
how do you get it to work once installed
|
how do you get it to work once installed
Once installed and enabled it should automatically add the energy remaining to the fight log when you are fighting another bot that has energy. If you can't get it to display something like the picture linked above, let me know your setup (Operating System, Browser, script add-on) and I'll look into it further.
I will be adding support for localStorage over the weekend, as per scarabara's suggestion. This will remove the requirement for GreaseMonkey/TamperMonkey which will hopefully expand it's compatibility with other browsers.
|
I dont see it working on chrome
|
Erik Segersall only has 16k energy this month, how come the image shows 40k?
|
Erik Segersall only has 16k energy this month, how come the image shows 40k?
Well considering he attacked it on the bot he's posting with (which is 20 levels higher than that target atm) I would assume it's an old screenshot from last month.
|
Well considering he attacked it on the bot he's posting with (which is 20 levels higher than that target atm) I would assume it's an old screenshot from last month.
Correct. Screenshot was taken a few days before the month rolled over.
I dont see it working on chrome
leon, please let me know your OS, browser and script addon, and if anything appears in the javascript console while fighting a bot with energy. (you can access the javascript console in Chrome by pressing ctrl+shift+J)
|
I know how to access the java. Im leon btw. windows 7 and just the extension area of google chrome.
|
Cool script :)
I've installed it on my chromebook, and it doesn't show opponent's energy.
I see the following error in the console;
Uncaught ReferenceError: GM_SuperValue is not defined
chrome-extension://bmmjhdoomfeljkimlmoafkcpndenflkm/script.js:43
|
That means you don't have grease monkey jans
|
I thought you only need greasemonkey when using Firefox. Chrome runs scripts on its own. All the other userscripts run fine.
|
This script relies on grease monkeys storage, clay said he will work on one that uses localStorage, which should make it work without greasemonkey
|
oh right, it does rely on greasemonkey. Well that's not going to work on chromebooks then.
|
I have just updated the script to use localStorage by default. This removes the need to have GreaseMonkey(Firefox) or TamperMonkey(Chrome) installed. This functionality is still in it if required, just change the greaseMonkey variable to true at the top of the script.
Re-install the script from the link above and let me know how you go guys.
|
oh that was fast :)
tried the new version; it does show energy remaining! but, it doesn't seem to update the value when i continue fighting. The remaining energy stays the same, while i do keep winning and collecting energy.
when i go back to the fight list, and select the same opponent again, the amount of remaining energy does get updated.
so to summarize; it only seems to update the value with the first fight. Clicking fight again continues to show that same value.
|
Looks like he missed one grease monkey reference at the end of the big function
|
Yeah, I noticed that shortly after I posted it online. I updated it hoping that no one downloaded it during the 5 minutes that it was broken, but seems I wasn't quick enough! Re-install and it should be all good.
|
works perfectly - thanks for adding this!
|
Modified it to just say "[##] remaining", but really useful and awesome script. Cheers :>
|
hmm cant remember how to install from that page in chrome, any help?
|
- Right click the install button
- select 'Save as'
- find the file in your downloads
- drag & drop into your Chrome extensions
|
bump about this script that displays energy left
need more bump and post with descriptive nouns for search if thread dies, or sticky.....
|
It proved invaluable to me last month, can't imagine scoring without it now.
If interested, it used to bug after an hour ticks and would return that the opponent had a negative amount of energy. Not really worth the hassle to fix though.
|
If interested, it used to bug after an hour ticks and would return that the opponent had a negative amount of energy. Not really worth the hassle to fix though.
This is due to the hourly increase in energy and the script storing energy values locally, not refreshing them from the server at all. Which I agree, not really worth the hassle to fix. Plus Ender will fix it when he gets around to implementing this functionality into the game. :)
|
|
This doesn't work for me, I installed the script, nogo, installed tamper monkey, nogo.
Using chrome on windows 7 64 bit with tamper monkey.
Nothing show up in the console box when I hit ctrl+shift+j
|
works sometimes link
mostly doesn't work click
|
^ You have a weird way to keep your browsers. :)
|
Playing OSRS or RS3, DNM?
|
This doesn't work for me, I installed the script, nogo, installed tamper monkey, nogo.
Using chrome on windows 7 64 bit with tamper monkey.
Nothing show up in the console box when I hit ctrl+shift+j
After digging around a bit, I've found this happens when using Emanuel's remove frames script. If you click the "Add Frames" button when the energy is not displayed, you'll see that the energy count is displayed correctly with the frames.
I've updated my script to take note if the user is also running the remove frames script and to ensure that it also gets updated with the energy remaining. Update it and see how you go.
|
|
|
After happening this to me and re-installing the opponent energy display script by tampermonkey, it doesn't work. This one is quite important for scoring :(
|
Sometimes it works although I'm not sure if the value of energy it displays is correct. I don't understand why sometimes it works and others don't... I was playing just with one tab and then I oppened more tabs and it started to appear sometimes, not always :/
|
When you are fighting someone and it is not displaying, open up the console (Ctrl+Shift+J) and let me know if there is any error messages.
|
|
I've made some small changes to the script which should fix some of the random issues people are having.
As userscripts.org is no more, the new location to get the script from is:
https://openuserjs.org/scripts/ClayBanger/bots4Energy_display
|
It appears to be working. Thanks Clay Banger!
|
Mine doesn't do anything at all....
Any suggestions?
|
Use Google Chrome + Tamper monkey. I had no problem getting it to work.
|
This still works (and is as valuable as ever), but it looks like the userscripts link is broke
Can access my local copy of the script here: https://pastecode.io/s/kiene8yk
Maybe Clay can rehost it somewhere if he sees this
|
This feature is now part of the base game, so you no longer need an addon. Details: http://bots4.net/forum/4/7970
|