> HV Script Thread, Discuss your creations. Includes guidelines and infos for script creation (2020-02-28 upd)

 
post Apr 15 2012, 01:19
Post #1
varst



Peerless perverted long-hair-con of the Hentaiverse
***********
Group: Catgirl Camarilla
Posts: 11,561
Joined: 30-March 10
Level 476 (Godslayer)


This is the thread dedicated to scripts specifically written for HV.

Wiki Link

Also, please note the following guideline (upd 2020-02-28):

QUOTE

Players are free to make new HV scripts for purposes such as making modifications and additions to the UI or changing key mappings and controls in general.

Any scripts used to automate or semi-automate gameplay beyond a single "action" is strictly forbidden. Offenders will be banned from HV.

e.g. Targeting and hitting active monsters is beyond a single action.


In particular, this means that are explicitly banned while on-battle:
  • Things that automate actions or combine multiple actions.
    - Hovering attacks are allowed as exception
  • Things that parse the game state in order to, in any way, trigger or selectively present an action
    -> example: a generic "use the potion that would fix my current threshold trigger" button would not be allowed.
  • Things that stop hover-attack (or any other action) based on specific condition. Hovering can restart automatically though.
    - Only exceptions allowed are stop on HP/MP/SP thresholds and stop on buffs expiring.
    -> example: default hotkeys cannot be excluded in case of low health
  • Things that indiscriminately allow the player to solve a condition without having to understand what he is solving.
  • Things that automatically select a monster to attack based on whatever condition.
    -> example: an automated series of attacks to multiple monsters one after the other; auto-attacking the first monster
  • Things that help the player to solve a riddle of the riddle master
while off-battle:
  • Things that allows player to collect benefits from HV without requiring an input from the player are forbidden.
    -> example: automatic scanning/buying items from the HV item shop and automatic buying of lottery tickets.
  • Things that act under multi-threading principle, since they will occur in some sitewide protections and most likely cause people to be tempbanned
If a function (or even worse, the whole script) cannot comply with these instructions, then it will have to be excluded from the script.

If you find a possibly troublesome script, feel free to report it to a mod or to ask one of the coders here to check it. Same applies if you see people who are actively spreading said stuff. Your cooperation will be appreciated.

This post has been edited by Scremaz: Feb 28 2020, 23:11


--------------------
User is offlineProfile CardPM
Report PostGo to the top of the page
+Quote Post

290 Pages V « < 288 289 290  
Reply to this topicStart new topic
Replies(5780 - 5794)
 
post Jul 31 2022, 07:35
Post #5781
mathl33t



Regular Poster
*****
Group: Gold Star Club
Posts: 581
Joined: 9-April 19
Level 486 (Dovahkiin)


I made a forge optimizer spreadsheet (xlsx format) for mages. This tool helps you compare offensive and defensive value of your upgrades, as well as PAB distribution, by calculating contribution to arcane score and effective HP (a defense score) vs cost. Bug reports and feedback welcome.

Edit: Version 1.2 thanks to feedback from Scremaz fixes an evade bug, combines forge and stat pages, and includes an all-in-one page. Also added an Isekai toggle. I couldn't figure out how to get it to show recommended forging level, but the ballpark estimate is if worth >>> cost, upgrade lots, and if worth is only slightly bigger than cost, upgrade little.

Attached File  mathl33t_Forge_Optimizer_v1.2.xlsx.zip ( 81.25k ) Number of downloads: 14


This post has been edited by mathl33t: Aug 12 2022, 02:11


--------------------
User is offlineProfile CardPM
Report PostGo to the top of the page
+Quote Post

 
post Aug 4 2022, 21:44
Post #5782
oohmrparis



We are ping-pong player
****
Group: Gold Star Club
Posts: 469
Joined: 18-June 13
Level 500 (Ponyslayer)


Create alltab in The Market orders page.

[attachmentid=165320]
User is offlineProfile CardPM
Report PostGo to the top of the page
+Quote Post

 
post Aug 4 2022, 23:21
Post #5783
lololo16




********
Group: Gold Star Club
Posts: 2,697
Joined: 5-March 12
Level 500 (Ponyslayer)


QUOTE(oohmrparis @ Aug 4 2022, 10:44) *

Create alltab in The Market orders page.

[attachmentid=165320]

sometimes i can see the tab but most of the time can't sad.gif


thanks for the script, btw

This post has been edited by lololo16: Aug 4 2022, 23:22
User is offlineProfile CardPM
Report PostGo to the top of the page
+Quote Post

 
post Aug 4 2022, 23:29
Post #5784
oohmrparis



We are ping-pong player
****
Group: Gold Star Club
Posts: 469
Joined: 18-June 13
Level 500 (Ponyslayer)


QUOTE(lololo16 @ Aug 4 2022, 17:21) *

sometimes i can see the tab but most of the time can't sad.gif
thanks for the script, btw


If the tabs do not appear, check the message in the browser console.
There may be something to help you solve the problem.
User is offlineProfile CardPM
Report PostGo to the top of the page
+Quote Post

 
post Aug 5 2022, 00:25
Post #5785
lololo16




********
Group: Gold Star Club
Posts: 2,697
Joined: 5-March 12
Level 500 (Ponyslayer)


it looks like this

[attachmentid=165323]



This post has been edited by lololo16: Aug 5 2022, 00:59
User is offlineProfile CardPM
Report PostGo to the top of the page
+Quote Post

 
post Aug 5 2022, 00:39
Post #5786
what_is_name



Regular Poster
*****
Group: Gold Star Club
Posts: 554
Joined: 5-May 19
Level 500 (Ponyslayer)


QUOTE(oohmrparis @ Aug 4 2022, 21:44) *

Create alltab in The Market orders page.

[attachmentid=165320]


Thanks for work.
It not work for me in TamperMonkey, but work in Violentmonkey. @grant unsafeWindow can make it work for me.
I guess it's due to the TamperMonkey can't make sure inject script in exact time point, in the non-sandbox mode it's possible that miss the load event
BTW the mutithread is not allowed iirc, so better make a request queue function to fetch the tabs
User is offlineProfile CardPM
Report PostGo to the top of the page
+Quote Post

 
post Aug 5 2022, 00:55
Post #5787
lololo16




********
Group: Gold Star Club
Posts: 2,697
Joined: 5-March 12
Level 500 (Ponyslayer)


It works with Violentmonkey

QUOTE(what_is_name @ Aug 4 2022, 13:39) *

BTW the mutithread is not allowed iirc, so better make a request queue function to fetch the tabs

So should i use it? unsure.gif
User is offlineProfile CardPM
Report PostGo to the top of the page
+Quote Post

 
post Aug 5 2022, 01:13
Post #5788
oohmrparis



We are ping-pong player
****
Group: Gold Star Club
Posts: 469
Joined: 18-June 13
Level 500 (Ponyslayer)


QUOTE(lololo16 @ Aug 4 2022, 18:25) *

it looks like this

[attachmentid=165323]


Thanks for uploading smile.gif
I can't figure out the cause by looking at the gifs. heh.gif
Maybe your browser version is old?
I am running on firefox ver 103 + TamperMonkey and Iron ver 73.

QUOTE(what_is_name @ Aug 4 2022, 18:39) *

Thanks for work.
It not work for me in TamperMonkey, but work in Violentmonkey. @grant unsafeWindow can make it work for me.
I guess it's due to the TamperMonkey can't make sure inject script in exact time point, in the non-sandbox mode it's possible that miss the load event
BTW the mutithread is not allowed iirc, so better make a request queue function to fetch the tabs


Thanks for the verification.
TamperMonkey was working, but there was a warning.
There may be a problem here.
I'll remove the multi-posting thing as well.
I'll try to make a new version.
User is offlineProfile CardPM
Report PostGo to the top of the page
+Quote Post

 
post Aug 5 2022, 04:27
Post #5789
oohmrparis



We are ping-pong player
****
Group: Gold Star Club
Posts: 469
Joined: 18-June 13
Level 500 (Ponyslayer)


Create alltab in The Market orders page.

[attachmentid=165325]

TamperMonkey bug fixed? unsure.gif
User is offlineProfile CardPM
Report PostGo to the top of the page
+Quote Post

 
post Aug 5 2022, 07:55
Post #5790
lololo16




********
Group: Gold Star Club
Posts: 2,697
Joined: 5-March 12
Level 500 (Ponyslayer)


it works, but "All" isn't the default tab :c

[attachmentid=165331]

thanks
User is offlineProfile CardPM
Report PostGo to the top of the page
+Quote Post

 
post Aug 5 2022, 10:59
Post #5791
oohmrparis



We are ping-pong player
****
Group: Gold Star Club
Posts: 469
Joined: 18-June 13
Level 500 (Ponyslayer)


QUOTE(lololo16 @ Aug 5 2022, 01:55) *

it works, but "All" isn't the default tab :c

[attachmentid=165331]

thanks


That’s' great. smile.gif
I removed it because I thought perhaps that function would fall under "mutithread ".
It’s a pity. cry.gif
User is offlineProfile CardPM
Report PostGo to the top of the page
+Quote Post

 
post Aug 5 2022, 11:50
Post #5792
what_is_name



Regular Poster
*****
Group: Gold Star Club
Posts: 554
Joined: 5-May 19
Level 500 (Ponyslayer)


it work now. the warning in TM editor are just eslint problem, the really problem that it somethings not work with TM is the script inject time point, so just remove the @run-at and directly run the main function will solve it, or @grant something then it will run in sandbox with no problem.
a simple solution for request queue if you need it, to avoid multithread
CODE

  function submitRequest(url) {
    //const request = URLlist.map(page => createRequest(`${url}&filter=${page}`));
    let queue = Promise.resolve();
    const request = URLlist.map(page => (queue = queue.then(()=>createRequest(`${url}&filter=${page}`))));
    completeRequest(request);
  }
User is offlineProfile CardPM
Report PostGo to the top of the page
+Quote Post

 
post Aug 5 2022, 17:42
Post #5793
oohmrparis



We are ping-pong player
****
Group: Gold Star Club
Posts: 469
Joined: 18-June 13
Level 500 (Ponyslayer)


QUOTE(what_is_name @ Aug 5 2022, 05:50) *

it work now. the warning in TM editor are just eslint problem, the really problem that it somethings not work with TM is the script inject time point, so just remove the @run-at and directly run the main function will solve it, or @grant something then it will run in sandbox with no problem.
a simple solution for request queue if you need it, to avoid multithread
CODE

  function submitRequest(url) {
    //const request = URLlist.map(page => createRequest(`${url}&filter=${page}`));
    let queue = Promise.resolve();
    const request = URLlist.map(page => (queue = queue.then(()=>createRequest(`${url}&filter=${page}`))));
    completeRequest(request);
  }



So multithread means multiple simultaneous requests.
I had mistaken it for automation. faint.gif
Thanks to your help, I finished it.
User is offlineProfile CardPM
Report PostGo to the top of the page
+Quote Post

 
post Aug 5 2022, 17:43
Post #5794
oohmrparis



We are ping-pong player
****
Group: Gold Star Club
Posts: 469
Joined: 18-June 13
Level 500 (Ponyslayer)


Create alltab in The Market orders page.

Attached File  Create_Alltab_In_Orders_Page.user.zip ( 1.68k ) Number of downloads: 13


This post has been edited by oohmrparis: Aug 6 2022, 07:28
User is offlineProfile CardPM
Report PostGo to the top of the page
+Quote Post

 
post Aug 10 2022, 22:22
Post #5795
uareader



Critter
*********
Group: Catgirl Camarilla
Posts: 5,230
Joined: 1-September 14
Level 500 (Ponyslayer)


Recently, out of curiosity, I tried switching around the bars images used for various progress bars.
Those are the ones I found since it's not possible to browse the "y" folder:
CODE
/y/bar.gif (possibly same as bar_blue)
/y/bar_blue.png
/y/bar_red.png
/y/bar_green.png
/y/bar_dgreen.png
/y/bar_orange.png
/y/bar_yellow.png
/y/bar_silver.png

What I was wondering about is if there was a list somewhere of this kind of resources for those that make UI changes?
Spoiler text - Highlight to read...
If it's not in https://ehwiki.org/wiki/Scripts_&_Tools or behind a link on that page or on the talk page, I don't know where to look


edit: oh right, it's possible to get a (mostly) transparent bar if the filename/path is invalid.

edit2: ninja-edit to add dark green. Maybe I should experiment later with that now that I know how a dark color may be named (I tried "dark_COLORNAME" and "darkCOLORNAME" before)

This post has been edited by uareader: Aug 10 2022, 22:41


--------------------
*******/O\*******
/*** My fighting style ***\
O ** Equipment gallery ** O
\***** Karma link *****/
*******\O/*******

( only)My thoughts as I watch anime
User is offlineProfile CardPM
Report PostGo to the top of the page
+Quote Post


290 Pages V « < 288 289 290
Fast ReplyReply to this topicStart new topic
2 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
1 Members: k999k99

 


Lo-Fi Version Time is now: 27th September 2022 - 17:50