Welcome Guest ( Log In | Register )

291 Pages V « < 256 257 258 259 260 > »   
Reply to this topicStart new topic
> HV Script Thread, Discuss your creations. Includes guidelines and infos for script creation (2020-02-28 upd)

 
post Sep 14 2017, 17:38
Post #5141
f4tal



Veteran Poster
********
Group: Members
Posts: 2,662
Joined: 10-January 13
Level 416 (Godslayer)


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.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Sep 14 2017, 17:43
Post #5142
Juggernaut Santa



Living in HV 0.83 until Tenboro adds the Tower to Persistent
***********
Group: Gold Star Club
Posts: 11,129
Joined: 26-April 12
Level 500 (Ponyslayer)


Tell that to the "1234567890" row of keys (IMG:[invalid] style_emoticons/default/laugh.gif)
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Sep 14 2017, 18:04
Post #5143
Scremaz



A certain pervert. OT expert. Just dancing around in the game.
***********
Group: Gold Star Club
Posts: 24,304
Joined: 18-January 07
Level 500 (Ponyslayer)


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.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Sep 14 2017, 22:31
Post #5144
Maharid



The Sleeper
*******
Group: Catgirl Camarilla
Posts: 2,369
Joined: 27-April 10
Level 500 (Ponyslayer)


@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
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Sep 15 2017, 01:27
Post #5145
sickentide



sexromancer
*******
Group: Catgirl Camarilla
Posts: 1,355
Joined: 31-August 10
Level 500 (Ponyslayer)


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
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Sep 15 2017, 03:20
Post #5146
BMXArena



Casual Poster
***
Group: Members
Posts: 123
Joined: 1-December 10
Level 415 (Godslayer)


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
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Sep 15 2017, 11:07
Post #5147
Scremaz



A certain pervert. OT expert. Just dancing around in the game.
***********
Group: Gold Star Club
Posts: 24,304
Joined: 18-January 07
Level 500 (Ponyslayer)


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.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Sep 15 2017, 13:03
Post #5148
f4tal



Veteran Poster
********
Group: Members
Posts: 2,662
Joined: 10-January 13
Level 416 (Godslayer)


just a wildguess - you may have custom font that makes that 'x' button to disappear (well offstep to the far right)
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Sep 15 2017, 13:17
Post #5149
BMXArena



Casual Poster
***
Group: Members
Posts: 123
Joined: 1-December 10
Level 415 (Godslayer)


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?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Sep 15 2017, 13:26
Post #5150
f4tal



Veteran Poster
********
Group: Members
Posts: 2,662
Joined: 10-January 13
Level 416 (Godslayer)


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!
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Sep 15 2017, 17:38
Post #5151
Mantra64



Sekishi
*********
Group: Catgirl Camarilla
Posts: 5,600
Joined: 23-March 12
Level 500 (Godslayer)


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=4403137

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.

User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Sep 15 2017, 17:55
Post #5152
Scremaz



A certain pervert. OT expert. Just dancing around in the game.
***********
Group: Gold Star Club
Posts: 24,304
Joined: 18-January 07
Level 500 (Ponyslayer)


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?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Sep 15 2017, 18:16
Post #5153
f4tal



Veteran Poster
********
Group: Members
Posts: 2,662
Joined: 10-January 13
Level 416 (Godslayer)


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
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Sep 15 2017, 18:25
Post #5154
Mantra64



Sekishi
*********
Group: Catgirl Camarilla
Posts: 5,600
Joined: 23-March 12
Level 500 (Godslayer)


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)
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Sep 15 2017, 22:21
Post #5155
sickentide



sexromancer
*******
Group: Catgirl Camarilla
Posts: 1,355
Joined: 31-August 10
Level 500 (Ponyslayer)


one more thing from the backlog: maximum player vitals, activated by the new maxVitals option Attached File  HentaiverseMonsterbation.1.2.1.1.user.js.zip ( 15.45k ) Number of downloads: 294


This post has been edited by sickentide: Sep 16 2017, 00:28
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Sep 15 2017, 23:37
Post #5156
Maharid



The Sleeper
*******
Group: Catgirl Camarilla
Posts: 2,369
Joined: 27-April 10
Level 500 (Ponyslayer)


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
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Sep 16 2017, 00:18
Post #5157
sickentide



sexromancer
*******
Group: Catgirl Camarilla
Posts: 1,355
Joined: 31-August 10
Level 500 (Ponyslayer)


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 Attached File  HentaiverseMonsterbation.1.2.1.1.user.js.zip ( 15.45k ) Number of downloads: 294

QUOTE(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
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Sep 16 2017, 06:13
Post #5158
Maharid



The Sleeper
*******
Group: Catgirl Camarilla
Posts: 2,369
Joined: 27-April 10
Level 500 (Ponyslayer)


Thanks, i'll try it.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Sep 16 2017, 08:27
Post #5159
Maharid



The Sleeper
*******
Group: Catgirl Camarilla
Posts: 2,369
Joined: 27-April 10
Level 500 (Ponyslayer)


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
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Sep 16 2017, 10:27
Post #5160
sickentide



sexromancer
*******
Group: Catgirl Camarilla
Posts: 1,355
Joined: 31-August 10
Level 500 (Ponyslayer)


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
User is offlineProfile CardPM
Go to the top of the page
+Quote Post


291 Pages V « < 256 257 258 259 260 > » 
Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 


Lo-Fi Version Time is now: 12th January 2025 - 04:44