Loading. Please Wait... 
 |
 |
 |
HV Script Thread, Discuss your creations. Includes guidelines and infos for script creation (2020-02-28 upd) |
|
May 19 2015, 14:13
|
tetron
Group: Gold Star Club
Posts: 5,583
Joined: 30-July 14

|
QUOTE(simplesimon32 @ May 19 2015, 13:56)  Haven't been able to test with a lot of things, and it's probably still missing a few bits, but I've updated the Equipment Comparison script to work not face-plant with the new patch. IMPORTANT: Note that the script's base values have not been changed, since as far as I know they have not been deciphered just yet. This means that new equips will still be measured against the old base values. Keep this in mind if you try to use this to rate new equips. The main reason I'm releasing this now is for the people who want to use it to compare new stuff against their current equips ('q' key), which I think works correctly. Keys 'w' and 't' also work, as do 'e' and 'b', but again, they're using the old base values. Attempts to open wiki pages ('r' key) don't always go to the right page, but I'd need more examples to figure out why; 'f' is almost too simple to break.
HVEquipComparison_0.6.4.3.zip ( 23.74k )
Number of downloads: 339As always, bugs reports/fixes/etc are always welcome, and I'd be surprised if there aren't any in there. Edit: Noticed that the magic score script was broken too, and since it uses a stripped-down version of the same parser, I imported the same fix and yay, it works! No intention of taking over the project or anything, but it was literally a single-line edit, so why not fix it?
HVMagicScores_2.0.3.2.zip ( 4.84k )
Number of downloads: 442Thanks. It's working. @oohmrparis, can you please fix your ELP scripts? They were very helpful in the forum. QUOTE(oohmrparis @ May 4 2015, 22:05) 
HV___Magic_Scores_for_ELP.user.zip ( 4.61k )
Number of downloads: 152
HVEquipCompare_for_ELP.user.zip ( 22.23k )
Number of downloads: 195 This post has been edited by tetron: May 19 2015, 14:16
|
|
|
|
 |
|
May 19 2015, 14:44
|
ctxl
Group: Members
Posts: 425
Joined: 20-May 12

|
QUOTE(djackallstar @ May 18 2015, 23:33)  For anyone who is using this script, by editing the source code you can hide untradeable equipment pieces. Step 1. Search for the term Account Bound. Step 2. Replace them with Untradeable.
Here's a [ gist.github.com] newer version with more [ i.imgur.com] features. The default behavior is defined (and can be easily modified) in the last few lines.
|
|
|
May 19 2015, 15:30
|
djackallstar
Group: Gold Star Club
Posts: 8,216
Joined: 23-July 14

|
QUOTE(oohmrparis @ May 19 2015, 19:29)  I tried to fix Equipment Comparison The calculation method of the base level seems to be different from the new equipment by the old equipment. I do not understand a calculating formula to see wiki either (IMG:[ invalid] style_emoticons/default/faint.gif) Do you mean that you feel there is a new formula to calculate this in this patch?
|
|
|
May 19 2015, 16:20
|
oohmrparis
Group: Gold Star Club
Posts: 522
Joined: 18-June 13

|
QUOTE(djackallstar @ May 19 2015, 15:30)  Do you mean that you feel there is a new formula to calculate this in this patch? Yep. But HVEquipComparison_0.6.4.3 seems to solve the problem of the base value. But range problem is not fixed yet.
|
|
|
May 19 2015, 17:01
|
darkx
Group: Members
Posts: 1,197
Joined: 3-December 06

|
QUOTE(simplesimon32 @ May 19 2015, 04:26)  The main reason I'm releasing this now is for the people who want to use it to compare new stuff against their current equips ('q' key), which I think works correctly. Keys 'w' and 't' also work, as do 'e' and 'b', but again, they're using the old base values. Attempts to open wiki pages ('r' key) don't always go to the right page, but I'd need more examples to figure out why; 'f' is almost too simple to break.
HVEquipComparison_0.6.4.3.zip ( 23.74k )
Number of downloads: 339Thanks!
|
|
|
|
 |
|
May 19 2015, 17:34
|
djackallstar
Group: Gold Star Club
Posts: 8,216
Joined: 23-July 14

|
QUOTE(ctxl @ May 19 2015, 20:44)  Here's a [ gist.github.com] newer version with more [ i.imgur.com] features. The default behavior is defined (and can be easily modified) in the last few lines. Thanks for the update! However, after selecting different options, the select element always shows the first option: (IMG:[ i.imgur.com] http://i.imgur.com/jrnB6Cs.png) Same for the other select element, which always shows "quality" even if I click "default". I tested this when disabling all other userscripts except hvsort.user.js, on Fx 38.0.1 (the latest version). Brower Console shows no error message. update: function (y) { var _options = y.target; var z = _options.parentNode; z.firstChild.style.display = null; z.firstChild.innerText = _options.children[_options.selectedIndex].innerHTML; var _header = _options.parentNode.parentNode; var _hide = _header.childNodes[1].childNodes[0].innerHTML; console.log(_hide); // always "untradeable" var _sort = _header.childNodes[3].childNodes[0].innerHTML; console.log(_sort); // always "quality"QUOTE(oohmrparis @ May 19 2015, 22:20)  Yep. But HVEquipComparison_0.6.4.3 seems to solve the problem of the base value. But range problem is not fixed yet.
I see. We need to wait for the wiki to be updated to fix the problem. EDIT: typo. This post has been edited by djackallstar: May 20 2015, 04:24
|
|
|
|
 |
|
May 19 2015, 22:37
|
ctxl
Group: Members
Posts: 425
Joined: 20-May 12

|
Looks like Firefox isn't applying innerText. Changing that to innerHTML should fix things; I've updated the gist.
|
|
|
May 20 2015, 02:58
|
gynew
Group: Members
Posts: 2,019
Joined: 27-December 08

|
Since some hours after the HV 0.82 patch, whenever I try to compare an equipment I just get the Loading.. (Everytime I press again a compare key I get an additional Loading.. )I didn't pay much attention to it then, but now I've just installed HVEquipComparison_0.6.4.3 and I still only get the Loading.. I've cleared all my cookies, I've tried it disabling all other userscripts and addons except Greasemonkey and HVEquipComparison_0.6.4.3, on Mozilla Firefox 38.0.1 (the lastest version). Any help please? (IMG:[ i.imgur.com] http://i.imgur.com/9RPhVvS.png?1)
|
|
|
|
 |
|
May 20 2015, 03:06
|
sssss2
Group: Gold Star Club
Posts: 3,962
Joined: 11-April 14

|
QUOTE(gynew @ May 20 2015, 09:58)  Since some hours after the HV 0.82 patch, whenever I try to compare an equipment I just get the Loading.. (Everytime I press again a compare key I get an additional Loading.. )I didn't pay much attention to it then, but now I've just installed HVEquipComparison_0.6.4.3 and I still only get the Loading.. I've cleared all my cookies, I've tried it disabling all other userscripts and addons except Greasemonkey and HVEquipComparison_0.6.4.3, on Mozilla Firefox 38.0.1 (the lastest version). Any help please? (IMG:[ i.imgur.com] http://i.imgur.com/9RPhVvS.png?1) CODE saveData: function(eq) { var level = eq.querySelector('.fd4'); if (level.textContent.indexOf('Level') != -1 || level.textContent.indexOf('嶺?') != -1) level = level.textContent; else level = Controller.toText(level); if (level.indexOf('Level') != -1) localStorage.setItem('HVLevel',level.match(/(\d+)/)[1]);
Replace the upper codes with the ones below. CODE saveData: function(eq) { var level = eq.evaluate('.//div[starts-with(text(),"Level")]',eq,null,9,null).singleNodeValue; if (level) localStorage.setItem('HVLevel',level.textContent.match(/(\d+)/)[1]);
This post has been edited by sssss2: May 20 2015, 03:21
|
|
|
|
 |
|
May 20 2015, 03:25
|
gynew
Group: Members
Posts: 2,019
Joined: 27-December 08

|
Wow, Thanks a lot sssss2! It seems that solved the problem. I wonder what happened? (IMG:[ invalid] style_emoticons/default/wacko.gif)
|
|
|
May 20 2015, 06:57
|
djackallstar
Group: Gold Star Club
Posts: 8,216
Joined: 23-July 14

|
QUOTE(ctxl @ May 20 2015, 04:37)  Looks like Firefox isn't applying innerText. Changing that to innerHTML should fix things; I've updated the gist.
Thank you, it works now. Thanks to the well-written code, it's very easy to add my own filters. QUOTE(gynew @ May 20 2015, 09:25)  Wow, Thanks a lot sssss2! It seems that solved the problem. I wonder what happened? (IMG:[ invalid] style_emoticons/default/wacko.gif) This line: var level = eq.querySelector('.fd4'); is intended to grab the DIV element that contains the level info, but due to the layout change in 0.82, it fails. This post has been edited by djackallstar: May 20 2015, 06:58
|
|
|
|
 |
|
May 20 2015, 10:12
|
chjj30
Group: Catgirl Camarilla
Posts: 10,914
Joined: 5-January 14

|
QUOTE(ctxl @ May 20 2015, 04:37)  Looks like Firefox isn't applying innerText. Changing that to innerHTML should fix things; I've updated the gist.
Thanks! Now it works right in Firefox!
|
|
|
|
 |
|
May 20 2015, 18:03
|
holy_demon
Group: Gold Star Club
Posts: 5,417
Joined: 2-April 10

|
QUOTE(oohmrparis @ May 19 2015, 21:29)  I tried to fix Equipment Comparison The calculation method of the base level seems to be different from the new equipment by the old equipment. I do not understand a calculating formula to see wiki either (IMG:[ invalid] style_emoticons/default/faint.gif) if the equipment has a level, the displayed stats are scaled to the equipment's level (basically, a level 1 and a level 500 player will see the same number) If the equipment doesn't have a level (unassigned or soulfused), the displayed stats are scaled to the level of the player who views it. yeah it's confusing. Hope it helps
|
|
|
|
 |
|
May 21 2015, 20:07
|
karyl123
Group: Gold Star Club
Posts: 1,659
Joined: 9-January 11

|
[request]
can someone make a script that camouflage monster name in battle ?
its not funny when someone behind me laughing read the monstername "SpermTANK" when I play in public.
|
|
|
May 21 2015, 20:19
|
boulay
Group: Gold Star Club
Posts: 2,675
Joined: 27-June 11

|
QUOTE(karyl123 @ May 21 2015, 20:07)  [request]
can someone make a script that camouflage monster name in battle ?
its not funny when someone behind me laughing read the monstername "SpermTANK" when I play in public.
It already exists, look at holy_demon's shop
|
|
|
May 21 2015, 20:34
|
tetron
Group: Gold Star Club
Posts: 5,583
Joined: 30-July 14

|
QUOTE(karyl123 @ May 21 2015, 23:37)  [request]
can someone make a script that camouflage monster name in battle ?
its not funny when someone behind me laughing read the monstername "SpermTANK" when I play in public.
Why the flying fuck would anyone want to play this game in public?? (IMG:[ invalid] style_emoticons/default/blink.gif)
|
|
|
May 22 2015, 08:30
|
karyl123
Group: Gold Star Club
Posts: 1,659
Joined: 9-January 11

|
QUOTE(tetron @ May 22 2015, 01:34)  Why the flying fuck would anyone want to play this game in public?? (IMG:[ invalid] style_emoticons/default/blink.gif) me I am, when I am on wifi hotspot waiting for my list of hentai download to complete.
|
|
|
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
|
 |
 |
 |
|
|
|