|
|
|
HV Script Thread, Discuss your creations. Includes guidelines and infos for script creation (2020-02-28 upd) |
|
Sep 14 2017, 17:38
|
f4tal
Group: Members
Posts: 2,662
Joined: 10-January 13
|
QUOTE it wasn't a bug No it is not =) In most programming languages counting starts at 0, not 1. And for coders it is way easier to work with innate counting than add/subtract a digit after various operations =) Also, this makes bug-tracking easier.
|
|
|
Sep 14 2017, 18:04
|
Scremaz
Group: Gold Star Club
Posts: 24,304
Joined: 18-January 07
|
QUOTE(f4tal @ Sep 14 2017, 17:38) In most programming languages counting starts at 0, not 1.
even in math, if it's for that.
|
|
|
Sep 14 2017, 22:31
|
Maharid
Group: Catgirl Camarilla
Posts: 2,369
Joined: 27-April 10
|
@rokyroky: Probably you have messed with some settings. Remove Monsterbation, restart, redownload the last version and install it. If this work change some settings each time and see if all go well, if not revert and try until all is good.
@sickentide: I just got gifts from monsters, i clicked the box to close it... nope, for some reason it will not close itself, i need to reload the page. Before MonsterLab got the x to close it now no script has this feature.
If is not much of a bother cna you add something to close the gift screen on HVCJ?
This post has been edited by Maharid: Sep 14 2017, 23:32
|
|
|
|
|
|
Sep 15 2017, 01:27
|
sickentide
Group: Catgirl Camarilla
Posts: 1,355
Joined: 31-August 10
|
QUOTE(Maharid @ Sep 14 2017, 23:31) If is not much of a bother cna you add something to close the gift screen on HVCJ?
should be doable, i'll just have to wait for some gifts to test it
|
|
|
Sep 15 2017, 03:20
|
BMXArena
Group: Members
Posts: 123
Joined: 1-December 10
|
QUOTE(Maharid @ Sep 15 2017, 05:31) @sickentide: I just got gifts from monsters, i clicked the box to close it... nope, for some reason it will not close itself, i need to reload the page. Before MonsterLab got the x to close it now no script has this feature. Is this the message you're talking about? (IMG:[ i.imgur.com] https://i.imgur.com/h5BnQNx.png) In my case it both has the 'x' and closes when I press on it. Maybe some script is messing it up in your case? This post has been edited by BMXArena: Sep 15 2017, 10:13
|
|
|
Sep 15 2017, 11:07
|
Scremaz
Group: Gold Star Club
Posts: 24,304
Joined: 18-January 07
|
QUOTE(BMXArena @ Sep 15 2017, 03:20) Is this the message you're talking about? (IMG:[ i.imgur.com] https://i.imgur.com/h5BnQNx.png) In my case it both has the 'x' and closes when I press on it. same.
|
|
|
Sep 15 2017, 13:03
|
f4tal
Group: Members
Posts: 2,662
Joined: 10-January 13
|
just a wildguess - you may have custom font that makes that 'x' button to disappear (well offstep to the far right)
|
|
|
Sep 15 2017, 13:17
|
BMXArena
Group: Members
Posts: 123
Joined: 1-December 10
|
QUOTE(f4tal @ Sep 15 2017, 20:03) just a wildguess - you may have custom font that makes that 'x' button to disappear (well offstep to the far right)
Could be the case, but then he should still be able to close it by clicking on it, right?
|
|
|
|
|
|
Sep 15 2017, 13:26
|
f4tal
Group: Members
Posts: 2,662
Joined: 10-January 13
|
QUOTE Could be the case, but then he should still be able to close it by clicking on it, right? True enough. On other hand maybe he never tried it? I do not remember that message window said "click on this window to close". Just an example - nowhere in the whole game* you may find that one can use buttons on numpad to attack monsters (and this type of attack actually more faster than regular clicking, though less safely), so I will be not surprised if some person never even clicked that windows on order to close it and there is nothing bad about it =) * - game! not wiki!
|
|
|
|
|
|
Sep 15 2017, 17:38
|
Mantra64
Group: Catgirl Camarilla
Posts: 5,600
Joined: 23-March 12
|
QUOTE(FabulousCupcake @ Jul 29 2017, 13:13) Updated tatarime's HV_SmartMonsterLab again: [ gist.github.com] HV_SmartMonsterLab 2.0.13c- Readjusted more selectors that got changed in HV 0.85; this fixes monster level and class display - Readjusted selectors for StateCheck and SkillCheck (they are working now) - Fixed the issue where Feed/Drug monster rows overlap full list of features here: https://forums.e-hentai.org/index.php?s=&am...t&p=4403137I installed it this script today. Seems to work. However when I try to sort by level my lv205 monster is shown higher than every monster who has passed lv1000. (IMG:[ invalid] style_emoticons/default/blink.gif) Can the script be fixed so that it can show the right order as it is a bit confusing right now.
|
|
|
|
|
|
Sep 15 2017, 17:55
|
Scremaz
Group: Gold Star Club
Posts: 24,304
Joined: 18-January 07
|
QUOTE(Mantra64 @ Sep 15 2017, 17:38) I installed it this script today. Seems to work. However when I try to sort by level my lv205 monster is shown higher than every monster who has passed lv1000. (IMG:[ invalid] style_emoticons/default/blink.gif) Can the script be fixed so that it can show the right order as it is a bit confusing right now. could it be the order function sees the first digit as 2 and not as 0?
|
|
|
|
|
|
Sep 15 2017, 18:16
|
f4tal
Group: Members
Posts: 2,662
Joined: 10-January 13
|
QUOTE However when I try to sort by level my lv205 monster is shown higher than every monster who has passed lv1000. blink.gif try to change this block of code near line 200: CODE $(this, { name: n.children[1].textContent, url: "?s=Bazaar&ss=ml&slot=" + this.no, lv: n.children[2].textContent.match(/Lvl (\d+)/)[1], class: n.children[3].textContent, });
to this CODE $(this, { name: n.children[1].textContent, url: "?s=Bazaar&ss=ml&slot=" + this.no, lv: +n.children[2].textContent.match(/Lvl (\d+)/)[1], class: n.children[3].textContent, });
Mind the plus-sign after lv. That should fix it. Yes, Scremax, - it is because after script has parsed the level of monster, it stored levels as strings, not as number. And when strings are being compared you will get something like this "20" > "105", because the first letter is ~2~ and it stands after the letter ~1~. Adding plus-sign before string converts it to number and then comparing would be as expected.... at least they should be... =) This post has been edited by f4tal: Sep 15 2017, 18:23
|
|
|
|
|
|
Sep 15 2017, 18:25
|
Mantra64
Group: Catgirl Camarilla
Posts: 5,600
Joined: 23-March 12
|
QUOTE(f4tal @ Sep 15 2017, 18:16) try to change this block of code near line 200: CODE $(this, { name: n.children[1].textContent, url: "?s=Bazaar&ss=ml&slot=" + this.no, lv: n.children[2].textContent.match(/Lvl (\d+)/)[1], class: n.children[3].textContent, });
to this CODE $(this, { name: n.children[1].textContent, url: "?s=Bazaar&ss=ml&slot=" + this.no, lv: +n.children[2].textContent.match(/Lvl (\d+)/)[1], class: n.children[3].textContent, });
Mind the plus-sign after lv. That should fix it. Yes, Scremax, - it is because after script has parsed the level of monster, it stored levels as strings, not as number. And when strings are being compared you will get something like this "20" > "105", because the first letter is ~2~ and it stands after the letter ~1~. Adding plus-sign before string converts it to number and then comparing would be as expected.... at least they should be... =) Thank you very much for the quick help. (IMG:[ invalid] style_emoticons/default/biggrin.gif)
|
|
|
|
|
|
Sep 15 2017, 22:21
|
sickentide
Group: Catgirl Camarilla
Posts: 1,355
Joined: 31-August 10
|
one more thing from the backlog: maximum player vitals, activated by the new maxVitals option
HentaiverseMonsterbation.1.2.1.1.user.js.zip ( 15.45k )
Number of downloads: 294This post has been edited by sickentide: Sep 16 2017, 00:28
|
|
|
|
|
|
Sep 15 2017, 23:37
|
Maharid
Group: Catgirl Camarilla
Posts: 2,369
Joined: 27-April 10
|
QUOTE(sickentide @ Sep 15 2017, 22:21) one more thing from the backlog: maximum player vitals, activated by the new maxVitals option [attachmentid=108637] Everything work, just a little thing with maxVitals (great function): [attachmentid=108641] With 5 digits it go over the bar. --------------------------------------------- For the Monster Gifts, i just got some gift but missed a screen, i will make it the next time (if i remember it). I just see a box with information like Received Low-Grade Metals x3 Received Low-Grade Cloth x2 Received Binding of Balance x1 No "Sustem Message", no "x", not closing if i click on it. Script that are active on the page (not all do something in it): - Monsterbation - Inline Difficulty Changer - Credits And Character Link - HV Crunk Juice - HV MonsterLab BabySitter - Riddle Limiter Plus Now i disabled Baby Sitter and Crunck Juice and see what happen next time i get gifts. This post has been edited by Maharid: Sep 15 2017, 23:54
|
|
|
|
|
|
Sep 16 2017, 00:18
|
sickentide
Group: Catgirl Camarilla
Posts: 1,355
Joined: 31-August 10
|
QUOTE(Maharid @ Sep 16 2017, 00:37) Everything work, just a little thing with maxVitals (great function): [attachmentid=108641] With 5 digits it go over the bar.
ah, that's unique to firefox. this should fix it
HentaiverseMonsterbation.1.2.1.1.user.js.zip ( 15.45k )
Number of downloads: 294QUOTE(Maharid @ Sep 16 2017, 00:37) No "Sustem Message", no "x", not closing if i click on it.
this seems to be a bug unique to your setup, so i wrote a standalone script for it CODE // ==UserScript== // @name HV Dismiss Gifts // @namespace hvdismiss // @version 1.0 // @description Dismiss gift list by clicking. // @match *://*.hentaiverse.org/?s=Bazaar&ss=ml // @grant none // ==/UserScript==
if ( (messagebox = document.getElementById('messagebox')) ) messagebox.setAttribute('onclick', 'document.getElementById("messagebox").style.visibility="hidden"'); This post has been edited by sickentide: Sep 16 2017, 00:28
|
|
|
|
|
|
Sep 16 2017, 06:13
|
Maharid
Group: Catgirl Camarilla
Posts: 2,369
Joined: 27-April 10
|
Thanks, i'll try it.
|
|
|
Sep 16 2017, 08:27
|
Maharid
Group: Catgirl Camarilla
Posts: 2,369
Joined: 27-April 10
|
I tryed the fix for MMM and it work, now the stats are shown correctly... unfortunately i was hit by a change i really don't like.
Before i was still using MMM 1.2.0.5 and i have to say that i completely dislike the new alert system that removed the standalone usableAlert setting.
Now i have to forcefully enable the alerts that i simply don't like to do because for some reson when an alert pop-up on a round it will not go away until the next round (and i still disable all color exept for highlight Channeling).
It is possible top have an option to revert to the old behavior? Or what i have to change to restore the previous setting to work?
For now i reverted to 1.2.0.5.
This post has been edited by Maharid: Sep 16 2017, 08:28
|
|
|
|
|
|
Sep 16 2017, 10:27
|
sickentide
Group: Catgirl Camarilla
Posts: 1,355
Joined: 31-August 10
|
QUOTE(Maharid @ Sep 16 2017, 09:27) I tryed the fix for MMM and it work, now the stats are shown correctly... unfortunately i was hit by a change i really don't like.
Before i was still using MMM 1.2.0.5 and i have to say that i completely dislike the new alert system that removed the standalone usableAlert setting.
Now i have to forcefully enable the alerts that i simply don't like to do because for some reson when an alert pop-up on a round it will not go away until the next round (and i still disable all color exept for highlight Channeling).
It is possible top have an option to revert to the old behavior? Or what i have to change to restore the previous setting to work?
For now i reverted to 1.2.0.5.
you're running into some weird ass bugs. i specifically made sure that the colour is reset to default when the alert condition ends and tested it in both chrome and firefox there is one thing you could try: find-replace every instance of colours.default with colours['default'] i would be interested to hear if that helps the reasoning behind rolling the options into one is that you can just as well disable them individually by means of the colours setting. you may want something like this: CODE colours = { 'default': '#EDEBDF', // alert colours 'spark': '#EDEBDF', // set to any valid html colour, or '#EDEBDF' to disable 'lowhp': '#EDEBDF', 'lowmp': '#EDEBDF', 'lowsp': '#EDEBDF', 'ocfull': '#EDEBDF', 'expiring': '#EDEBDF', 'channelling': '#EDEBDF', 'usable': 'mediumspringgreen', // set to false to disable
|
|
|
|
|
|
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:
|
|
|
|
|