 |
 |
 |
HV Script Thread, Discuss your creations. Includes guidelines and infos for script creation (2020-02-28 upd) |
|
Jun 21 2015, 09:14
|
ctxl
Group: Members
Posts: 425
Joined: 20-May 12

|
QUOTE(tetron @ Jun 20 2015, 22:56)  Can you make it such that the results are sorted? I mean, restoratives at one place, equipments at one place etc., rather than mixed display?
That's actually the default behavior in whatever version I was using. I posted a broken-for-Firefox-by-default version 2.2 here that does grouping/sorting/gems (Dec 2013). Firefox users will need to set reTimer to false in that version, according to the subsequent posts. Everyone should set reTimer: false anyways, seeing how the Random Encounter mechanics were changed after that was posted. QUOTE(Acer37 @ Jun 20 2015, 22:21)  I have tried all the versions already. I couldn't get any of them to work. They are all clearly doing something, because they make the stamina icon clickable. It just doesn't do anything when I click. Could another script be interfering with it?
Your posts are sparse on details, so idk. I haven't played the clicky game in a while. I definitely haven't tested anything with the latest versions of popular browsers. Last time I checked, all the hardcore players are using old versions of Chrome/Firefox or less-bloaty forks for whatever reason. More restrictive sandboxing in the newer versions? lack of access to unsafeWindow? I don't remember. I'll look into it and shove an updated version of that, and some other scripts I have sitting around into a GitHub repo. That ought to keep things a little more orderly (even though it's substantially more :effort: to do so).
|
|
|
|
 |
|
Jun 21 2015, 09:27
|
simrock87
Group: Members
Posts: 647
Joined: 12-June 11

|
QUOTE(ctxl @ Jun 21 2015, 09:14)  Last time I checked, all the hardcore players are using old versions of Chrome/Firefox or less-bloaty forks for whatever reason. More restrictive sandboxing in the newer versions? lack of access to unsafeWindow? I don't remember. Oh, i can actually say something useful on that one (IMG:[ invalid] style_emoticons/default/smile.gif) Current Chrome for win doesn't "trust" userscripts anymore, so adding them and keeping them running is a pain. Also there seems to be an issue with newer versions that causes some flickering and memory rampups due to the unusually high refresh/render rate we have in HV. The Chrome forks take care of the userscript mess, but they often don't auto-update by default and may or may not be artificially stuck at a version where the flickering is less pronounced. As for Firefox ... i think most people are now using the portable version which doesn't auto-update by default iirc. QUOTE I'll look into it and shove an updated version of that, and some other scripts I have sitting around into a GitHub repo. That ought to keep things a little more orderly (even though it's substantially more :effort: to do so).
Whee, more code examples (IMG:[ invalid] style_emoticons/default/biggrin.gif) Thanks for the effort / time in advance.
|
|
|
|
 |
|
Jun 21 2015, 10:59
|
tetron
Group: Gold Star Club
Posts: 5,583
Joined: 30-July 14

|
QUOTE(ctxl @ Jun 21 2015, 12:44)  That's actually the default behavior in whatever version I was using. I posted a broken-for-Firefox-by-default version 2.2 here that does grouping/sorting/gems (Dec 2013). Firefox users will need to set reTimer to false in that version, according to the subsequent posts. Everyone should set reTimer: false anyways, seeing how the Random Encounter mechanics were changed after that was posted. I was using the 2.1 version, which does not sort. Didn't know about v2.2. Just checked v2.2. I don't like the Grouping, because I'd like to see how many Health/Mana/Spirit Potions I'm dropping, including their ratio. Turning off Cleanup doesn't show ANY restorative! How can grouping be disabled?NVM. Found the solution. just needed to comment out some lines. (IMG:[ invalid] style_emoticons/default/smile.gif) This post has been edited by tetron: Jun 21 2015, 11:53
|
|
|
|
 |
|
Jun 21 2015, 15:46
|
FAhentai
Group: Gold Star Club
Posts: 1,377
Joined: 27-October 08

|
QUOTE(oohmrparis @ May 5 2015, 02:35)  Popup equipment links on mouseover in forum.
HV_equipment_link_popup.user.zip ( 2.38k )
Number of downloads: 197CODE var set = { popupX: 700, //popup x position. popupColor: '#E3E0D1', //popup color. color name or color code. animationColor: '92, 12, 17' //load animation color. RGB only. }, Auto login: auto login if you are not logged in.(need a few sec) Num key: change equipment set if other window not in battle.(need a few sec) Popup fix left side when popup x position < mouse x position. The current equipment data is displayed in the lower right corner once you press the numkey. Download this ver if you want to use MagicScores and HVEquipCompare in popup.
HV___Magic_Scores_for_ELP.user.zip ( 4.61k )
Number of downloads: 153
HVEquipCompare_for_ELP.user.zip ( 22.23k )
Number of downloads: 196HVEquipCompare (update by simplesimon32, thanks (IMG:[ invalid] style_emoticons/default/smile.gif) ) add function. R -> before forge base stat (range) F -> create forum direct link (Press C isn't necessary) P -> open WIKI MagicScores and HVEquipCompare to compete. Serch 'add code' in script if you want add code by me. NOTE: Doesn't works in firefox 35 or(and?) 36 and old browser. Can't auto login if lottery link. But mouse over the once again displayed. This bug fix lazy... ■ Because can change the equipment from outside, Please check the equipment number before battle always. HI, man, I found there is something wrong with the mage score, currently, my MD is 3506, edb 442.3%, but mage score shows my score is 15500, in fact, MDX(EDB+1)=19013 something, can you please tell me how to fix it?
|
|
|
|
 |
|
Jun 22 2015, 04:39
|
djackallstar
Group: Gold Star Club
Posts: 8,221
Joined: 23-July 14

|
QUOTE(FAhentai @ Jun 21 2015, 21:46)  HI, man, I found there is something wrong with the mage score, currently, my MD is 3506, edb 442.3%, but mage score shows my score is 15500, in fact, MDX(EDB+1)=19013 something, can you please tell me how to fix it?
Are you using any UI translation script?
|
|
|
|
 |
|
Jun 23 2015, 08:05
|
ctxl
Group: Members
Posts: 425
Joined: 20-May 12

|
RE: track drops As promised, I looked into it.  Firefox 38.0.5 + Scriptish 0.1.11 = OK Firefox 38.0.5 + Greasemonkey 3.2 = OK PEBKAC. Potential causes: - localstorage full/disabled due to 'private' browsing - conflicting user scripts - idk, check your console for hints --- Either way the script is ancient and is overdue for a rewrite with improvements: - eliminate regex and use split/substring/whatever matching - use event.persisted to detect cache reloads rather than 'drops.last' localstorage - only parse battle logs when the round has ended and has the actual potential for drops (vs. every turn of every round) - update UI/UX (seriously) - wrap everything in an IIFE (pass window, document in as local variables) - lint/style cleanup/etc. Not difficult, but I have other things to do atm. I'll see what I can get done this coming weekend.
|
|
|
|
 |
|
Jun 23 2015, 21:20
|
CronoBoA
Group: Gold Star Club
Posts: 730
Joined: 29-December 10

|
QUOTE(ctxl @ Jun 23 2015, 02:05)  -snip- You are the hero we need, but not the one we deserve.
|
|
|
Jun 26 2015, 10:43
|
hahaha113
Lurker
Group: Lurkers
Posts: 4
Joined: 26-June 15

|
QUOTE(LangTuTaiHoa @ Apr 21 2012, 04:58)  I wrote a very small and simple script that notifies the forum user when the karma bar is full (I often miss this) to imbue someone. Should I post it here or elsewhere? Since this is not very related to HV, it's more of a forum script.
đồng dâm đây rồi , same my big color new
|
|
|
Jun 29 2015, 03:50
|
tatarime
Group: Gold Star Club
Posts: 802
Joined: 23-June 10

|
I wrote "battle item counter" script. I am a beginner, so I always welcome your kind donations.
HV___PotionCounter.user.zip ( 1.55k )
Number of downloads: 109This post has been edited by tatarime: Jun 29 2015, 18:54
|
|
|
Jul 1 2015, 22:27
|
arialinnoc
Group: Gold Star Club
Posts: 7,704
Joined: 6-April 10

|
Is there a scripts for detach item from moogle?
|
|
|
Jul 4 2015, 16:16
|
nobody_xxx
Group: Gold Star Club
Posts: 13,753
Joined: 7-December 10

|
anyone have mousemelee scripts that I can install directly via drag on into chrome without tampermonkey add ons and not .crx extension (IMG:[ invalid] style_emoticons/default/smile.gif)
|
|
|
Jul 5 2015, 14:17
|
meenanana
Newcomer
 Group: Recruits
Posts: 16
Joined: 15-March 15

|
Dalek Voicebox x2 sent
Thank
|
|
|
|
 |
|
Jul 6 2015, 18:31
|
ctxl
Group: Members
Posts: 425
Joined: 20-May 12

|
the tracking and displaying-tracked-drops functions are now decoupled. hvtrackdrops.user.js - writes a json.stringify-ed array of objects to the _hvtd-data localstorage key - [ gist.github.com] sample array of data hvdisplaydrops.user.js - parses the _hvtd-data localstorage key; not all of it is currently used - mimics most of the old HVTD display functionality; example below  if you're upgrading: - note that this was only tested in an old version of chrome - note that the out-of-battle drop logic was based on the old version(s), but has not been fully tested - note that this version uses a different storage key, so old data wont carry forward/vice-versa instructions: - install [ github.com] hvtrackdrops.user.js- install [ github.com] hvdisplaydrops.user.jsfor script authors that want to access the currently-unutilized tracking data with an alternative 'display drops' script: - there is cache-reload detection for all tracking methods - in-battle drops will have "d" set to difficulty - arena clear bonuses will have "a" set to "true" - out-of-battle drops will have "o" set to Monster Lab/Artifact/Trophy/Figurine/Salvage hvdisplaydropsplus.user.js - whenever i feel like getting around to it - use a mv* framework for interactive filtering/summarization/etc. - import track drops localstorage data into indexeddb when running low on space - use all of the newly-tracked data, etc. - custom reporting options (last x hours, x rounds, etc.) edit: to enable 'nopopup' functionality console -> localStorage.setItem('_hvtd-nopopup', 'true'); This post has been edited by ctxl: Jul 7 2015, 02:30
|
|
|
|
 |
|
Jul 8 2015, 03:09
|
dedpanda
Newcomer
 Group: Members
Posts: 24
Joined: 12-February 14

|
Any scripts a scrub should consider using for improving the HV experience?
|
|
|
Jul 9 2015, 19:20
|
stryker115
Group: Members
Posts: 437
Joined: 20-April 13

|
QUOTE(dedpanda @ Jul 8 2015, 09:09)  Any scripts a scrub should consider using for improving the HV experience?
HV STAT Or just go to EHWiki's Scripts and Tools section and browse from there
|
|
|
Jul 10 2015, 07:42
|
fathergoodfuckins
Newcomer
  Group: Members
Posts: 50
Joined: 10-July 15

|
I used to write screenplays, do those count?
|
|
|
Jul 14 2015, 18:46
|
cwx
Group: Members
Posts: 873
Joined: 15-November 09

|
Is there a ping script?
|
|
|
|
 |
|
Jul 14 2015, 18:54
|
cwx
Group: Members
Posts: 873
Joined: 15-November 09

|
QUOTE(ctxl @ Jul 6 2015, 12:31)  the tracking and displaying-tracked-drops functions are now decoupled. hvtrackdrops.user.js - writes a json.stringify-ed array of objects to the _hvtd-data localstorage key - [ gist.github.com] sample array of data hvdisplaydrops.user.js - parses the _hvtd-data localstorage key; not all of it is currently used - mimics most of the old HVTD display functionality; example below  if you're upgrading: - note that this was only tested in an old version of chrome - note that the out-of-battle drop logic was based on the old version(s), but has not been fully tested - note that this version uses a different storage key, so old data wont carry forward/vice-versa instructions: - install [ github.com] hvtrackdrops.user.js- install [ github.com] hvdisplaydrops.user.jsfor script authors that want to access the currently-unutilized tracking data with an alternative 'display drops' script: - there is cache-reload detection for all tracking methods - in-battle drops will have "d" set to difficulty - arena clear bonuses will have "a" set to "true" - out-of-battle drops will have "o" set to Monster Lab/Artifact/Trophy/Figurine/Salvage hvdisplaydropsplus.user.js - whenever i feel like getting around to it - use a mv* framework for interactive filtering/summarization/etc. - import track drops localstorage data into indexeddb when running low on space - use all of the newly-tracked data, etc. - custom reporting options (last x hours, x rounds, etc.) edit: to enable 'nopopup' functionality console -> localStorage.setItem('_hvtd-nopopup', 'true'); Stupid question, but installed both, now how do I view the drops?
|
|
|
|
 |
|
Jul 14 2015, 20:53
|
Razor320
Group: Members
Posts: 220
Joined: 17-October 13

|
CODE ... hv.stamina = document.querySelector('img[title^="Stamina"]'); ... hv.stamina.addEventListener('click', function(e) { ...
It seems you're supposed to click on smiley beside stamina value.
|
|
|
|
 |
|
Jul 15 2015, 11:00
|
djackallstar
Group: Gold Star Club
Posts: 8,221
Joined: 23-July 14

|
QUOTE(cwx @ Jul 15 2015, 00:46)  Is there a ping script?
Hi, I think most web browsers don't support the function of sending ICMP packets to a remote computer. You'd better use the ping command in console. (Windows and *nix-like OSes have the ping command, with slightly different parameters taken) Or, if you just want to know the approximate time an HTTP request takes, just use the web developer tools provided by your web browser. Many web browsers already have built-in web developer tools for various tasks including network analysis like that. Firefox, for example, can display the details of a request when you press CTRL+SHIFT+Q to use the network analysis tool. I believe that Google Chrome and Opera have the similar feature. Check their online docs for details. (IMG:[ invalid] style_emoticons/default/smile.gif) This post has been edited by djackallstar: Jul 15 2015, 11:01
|
|
|
|
 |
|
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
|
 |
 |
 |
|