 |
 |
 |
HV Script Thread, Discuss your creations. Includes guidelines and infos for script creation (2020-02-28 upd) |
|
May 5 2016, 09:37
|
NerfThis
Group: Catgirl Camarilla
Posts: 2,467
Joined: 3-February 14

|
QUOTE(anon079 @ May 5 2016, 15:53)  I did more testing In http://hentaiverse.org/?s=Character&ss=eq : T Y I O P = Nothing happen (no EC Loading, nothing in the console) F H R B E Q U W = "EC Loading" briefly and in the console i see 2 lines appearing http://hentaiverse.org/?s=Character&ss=eq http://hentaiverse.org/pages/showequip.php...;key=58b35fd5abThe second line is always the last item equipped on the current set. Even tho it appears in the console there is no popup or anything changing beside the EC loading message. N gives me the date message box C gives popup window If i open a popup with C : N opens date message box C does nothing Every other keybind gives "EC loading" and the 2 same lines as before in the console QUOTE(Superlatanium @ May 5 2016, 16:07)  I don't remember, does Equip Compare require disabling the default HV font?
It might, try that if you haven't already.
Yes, It require custom font. I had clearly forgotten hv have default font. (IMG:[ invalid] style_emoticons/default/heh.gif) Go to Settings - Use Custom Font
|
|
|
|
 |
|
May 5 2016, 10:30
|
anon079
Lurker
Group: Recruits
Posts: 7
Joined: 30-April 16

|
Custom font fixed it, thanks everyone.
|
|
|
May 5 2016, 11:16
|
f4tal
Group: Members
Posts: 2,662
Joined: 10-January 13

|
QUOTE I don't remember, does Equip Compare require disabling the default HV font? Give the medal to this guy! (IMG:[ invalid] style_emoticons/default/happy.gif)
|
|
|
May 5 2016, 11:25
|
LazyShd
Group: Gold Star Club
Posts: 768
Joined: 5-May 13

|
QUOTE(f4tal @ May 4 2016, 21:00)  EDIT: by the way, why people use Vanilla Reloader, but not Reloader 1.3.3b? Speed improvement?
Yes. And i must say that it is really big speed improvement for me. This post has been edited by LazyShd: May 5 2016, 11:26
|
|
|
|
 |
|
May 5 2016, 12:27
|
Noni
Group: Catgirl Camarilla
Posts: 13,433
Joined: 19-February 16

|
is there a script that troggles Spirit on and of at a specific Overcharge level?
When fighting in DWD and ED I like to use OFC to blast all non-schoolgirls, then build up spirit until next round. But then when overcharge is full and the girls aren't defeated yet, I turn on Spirit. But at 210 I turn it off, to keep OFC ready.
There is spirit troggling in CracklingCast, but that one doesn't work for me - does too much. I prefer Reloader 1.3.3b, because I understand what it does.
Is there a separate script for just Spirit Stance, or should I use the bits of script from CracklingCast:
if (oc >= Settings.limits.oc && document.getElementsByClassName('btp')[0].innerHTML.indexOf('"http://ehgt.org/v/battle/spirit_a.png"') === -1) { placeDisplay(Icons.SpiritStance, 'width: 28px; height: 28px; border: 1px solid grey', function () { cast('Spirit Stance', 0);
|
|
|
|
 |
|
|
 |
|
May 5 2016, 15:45
|
NerfThis
Group: Catgirl Camarilla
Posts: 2,467
Joined: 3-February 14

|
QUOTE(DJNoni @ May 5 2016, 19:27)  is there a script that troggles Spirit on and of at a specific Overcharge level?
When fighting in DWD and ED I like to use OFC to blast all non-schoolgirls, then build up spirit until next round. But then when overcharge is full and the girls aren't defeated yet, I turn on Spirit. But at 210 I turn it off, to keep OFC ready.
There is spirit troggling in CracklingCast, but that one doesn't work for me - does too much. I prefer Reloader 1.3.3b, because I understand what it does.
Is there a separate script for just Spirit Stance, or should I use the bits of script from CracklingCast:
if (oc >= Settings.limits.oc && document.getElementsByClassName('btp')[0].innerHTML.indexOf('"http://ehgt.org/v/battle/spirit_a.png"') === -1) { placeDisplay(Icons.SpiritStance, 'width: 28px; height: 28px; border: 1px solid grey', function () { cast('Spirit Stance', 0);
ehgt.org not work in hv v0.84. document.getElementsByClassName('btp')[0].innerHTML.indexOf('"http://ehgt.org/v/battle/spirit_a.png"') === -1 This code always true. So if overcharge > oc, always spirit stance icon visible. Draughts and inactive SoL when Cloak of the Fallen have same problem too. CODE if (oc >= Settings.limits.oc && document.getElementsByClassName('btp')[0].innerHTML.indexOf('spirit_a.png') === -1) { placeDisplay(Icons.SpiritStance, 'width: 28px; height: 28px; border: 1px solid grey', function () { cast('Spirit Stance', 0); }); }
This post has been edited by hansvar92: May 5 2016, 15:46
|
|
|
|
 |
|
May 5 2016, 16:23
|
Noni
Group: Catgirl Camarilla
Posts: 13,433
Joined: 19-February 16

|
I've never coded Javascripts in my life (a lot of VBA, though), so... am I correct that this bit of code will turn off Spirit Stance below 210? [code] QUOTE function loadSettings() { Settings = { limits : { // Limits are percentage based. i.e. 0.8 = 80% oc : 210 / 250 // Use Spirit Stance at or below (If > 1, never use spirit stance) } }; }
(function SpiritTroggleFunctionThing() { 'use strict';
if (oc >= Settings.limits.oc && document.getElementsByClassName('btp')[0].innerHTML.indexOf('spirit_a.png') === -1) { placeDisplay(Icons.SpiritStance, 'width: 28px; height: 28px; border: 1px solid grey', function () { cast('Spirit Stance', 0); }); } })(); This post has been edited by DJNoni: May 5 2016, 16:26
|
|
|
|
 |
|
May 5 2016, 16:40
|
Sapo84
Group: Gold Star Club
Posts: 3,332
Joined: 14-June 09

|
I actually think that such code could be a reason for ban. Forbidden ActionsAny script used to do ANY of the following inside the HentaiVerse is strictly forbidden. Offenders will be banned. - Any automation or semi-automation of gameplay beyond a single "action".
- Anything that automates actions without direct player input.
- Any parsing of live data to decide on actions.
- Anything that has the function of picking a target automatically, regardless of the actual method.
- Anything that interprets the page in any way to pick a target or action.
It seems pretty obvious that automatic toggling on and off spirit stance is in clear violation of the rules. From my point of view even selecting an action at round start is in violation of the rules because you're deciding on actions after intepreting that is the first turn of the round. This post has been edited by Sapo84: May 5 2016, 16:42
|
|
|
|
 |
|
May 5 2016, 17:12
|
Noni
Group: Catgirl Camarilla
Posts: 13,433
Joined: 19-February 16

|
QUOTE(Sapo84 @ May 5 2016, 16:40)  I actually think that such code could be a reason for ban. Forbidden ActionsAny script used to do ANY of the following inside the HentaiVerse is strictly forbidden. Offenders will be banned. - Any automation or semi-automation of gameplay beyond a single "action".
- Anything that automates actions without direct player input.
- Any parsing of live data to decide on actions.
- Anything that has the function of picking a target automatically, regardless of the actual method.
- Anything that interprets the page in any way to pick a target or action.
It seems pretty obvious that automatic toggling on and off spirit stance is in clear violation of the rules. From my point of view even selecting an action at round start is in violation of the rules because you're deciding on actions after intepreting that is the first turn of the round. Thanks for the warning! I won't use this one, then. I wander if CracklingCast is 'legal' if you put it like that? Have users been banned for CracklingCast?
|
|
|
|
 |
|
May 5 2016, 17:26
|
Sapo84
Group: Gold Star Club
Posts: 3,332
Joined: 14-June 09

|
QUOTE(DJNoni @ May 5 2016, 17:12)  then. I wander if CracklingCast is 'legal' if you put it like that? Have users been banned for CracklingCast?
I think that part has already been done in the past and is probably safe (at least it seems unlikely that it will be punished with the ban now). Spirit stance toggling is much worse because it directly parse page data to decide what to do, it's like parsing health and auto-curing (>3t/s for mage and game balance completely broken). It can be done and it's probably impossible to be discovered, but at least it should not be posted here I think (IMG:[ invalid] style_emoticons/default/heh.gif) (IMG:[ invalid] style_emoticons/default/heh.gif)
|
|
|
|
 |
|
May 5 2016, 17:40
|
f4tal
Group: Members
Posts: 2,662
Joined: 10-January 13

|
Have read discussion here and want to share my opinion...
Toggle spirit on and off is 100% illegal Launching OFC at the beginning of the round is 10% illegal
This opinion comes from this ideas: When you use this OFC stuff - what script do? It analyses if this is beginning of the round, then check can you launch OFC and push the atomic button. This works only once and only in the beginning of round. Yes, it parse data and so automatic decision and it harms rules, but do it slightly in not-so-hard-way
With auto spirit toggling on and off - what you will get? Every round script will check your current OC and will do one of the specific decision - switch it on or off when you have specific amount of OC. Compare to OFC - this feature launch every turn and will do two automatic stuff. It will violate rules in more depressed and obscure way compare to OFC.
To be fair, I don't think auto-OFC at the beginning is so bad thing, compare to auto-toggle... Debatable? Yes. Violate rules? Yes, but slightly. It is not auto-clicker, auto-caster and auto-cure after all ^_~
...
We need to do rearrange and compile all fixes for CrackingCast - for now it looks messy for me. All this multiply fixes, second-hand solutions and workaround on last five pages are so hard to orientate. Can someone post all-ways-fixed and working version of CracklingCast and named solid like "version 1.0.4" (if simrock87 don't mind?) or "version 1.0.3omega"? So I will put it in Compendium at the end of the week?
Thanks, scripters for work ^^"
This post has been edited by f4tal: May 5 2016, 17:52
|
|
|
|
 |
|
May 5 2016, 18:40
|
NerfThis
Group: Catgirl Camarilla
Posts: 2,467
Joined: 3-February 14

|
QUOTE(DJNoni @ May 5 2016, 23:23)  I've never coded Javascripts in my life (a lot of VBA, though), so... am I correct that this bit of code will turn off Spirit Stance below 210?
Mmm...... find 2 code snippet. CODE limits : { ...... oc : 220 / 250 // Use Spirit Stance at or below (If > 1, never use spirit stance) oc_off : 210 / 250 // Off Spirit Stance at or below (If < 0, never off spirit stance) },
......
if ( (oc >= Settings.limits.oc && document.getElementsByClassName('btp')[0].innerHTML.indexOf('spirit_a.png') === -1) || (oc <= Settings.limits.oc_off && document.getElementsByClassName('btp')[0].innerHTML.indexOf('spirit_n.png') === -1) ) { placeDisplay(Icons.SpiritStance, 'width: 28px; height: 28px; border: 1px solid grey', function () { cast('Spirit Stance', 0); }); }
Above CracklingCast code only show icon (not toggle spirit stance). My English is bad, but I understood he want only show icon. "There is spirit troggling in CracklingCast" - CracklingCast didn't auto toggle spirit stance, so he want only show icon. "but that one doesn't work for me - does too much" - always show icon when over oc, reason of img src. QUOTE(Sapo84 @ May 5 2016, 23:40)  I actually think that such code could be a reason for ban. Forbidden ActionsAny script used to do ANY of the following inside the HentaiVerse is strictly forbidden. Offenders will be banned. - Any automation or semi-automation of gameplay beyond a single "action".
- Anything that automates actions without direct player input.
- Any parsing of live data to decide on actions.
- Anything that has the function of picking a target automatically, regardless of the actual method.
- Anything that interprets the page in any way to pick a target or action.
It seems pretty obvious that automatic toggling on and off spirit stance is in clear violation of the rules. From my point of view even selecting an action at round start is in violation of the rules because you're deciding on actions after intepreting that is the first turn of the round. QUOTE(f4tal @ May 6 2016, 00:40)  Have read discussion here and want to share my opinion...
Toggle spirit on and off is 100% illegal Launching OFC at the beginning of the round is 10% illegal
This opinion comes from this ideas: When you use this OFC stuff - what script do? It analyses if this is beginning of the round, then check can you launch OFC and push the atomic button. This works only once and only in the beginning of round. Yes, it parse data and so automatic decision and it harms rules, but do it slightly in not-so-hard-way
With auto spirit toggling on and off - what you will get? Every round script will check your current OC and will do one of the specific decision - switch it on or off when you have specific amount of OC. Compare to OFC - this feature launch every turn and will do two automatic stuff. It will violate rules in more depressed and obscure way compare to OFC.
To be fair, I don't think auto-OFC at the beginning is so bad thing, compare to auto-toggle... Debatable? Yes. Violate rules? Yes, but slightly. It is not auto-clicker, auto-caster and auto-cure after all ^_~
...
We need to do rearrange and compile all fixes for CrackingCast - for now it looks messy for me. All this multiply fixes, second-hand solutions and workaround on last five pages are so hard to orientate. Can someone post all-ways-fixed and working version of CracklingCast and named solid like "version 1.0.4" (if simrock87 don't mind?) or "version 1.0.3omega"? So I will put it in Compendium at the end of the week?
Thanks, scripters for work ^^"
Sometimes I'm confused by that rule. Even script only show or gather data, that's use parsing, but not action. Rotate spell, begin of round T3 spell/OFC or somethings use parsing and action. In this case, I agree Sapo84 and f4tal (if strictly rule, I think it's violate). Basically, I modify based on old scripts. I guess, if scripts used long time and still alive, scripts are safe (not official, just IMHO). HoverPlay have begin of round spell option. So, maybe remove decide to begin of round option? And some scripts I think fairly violate, but it's not removed (like Suicider, but this script have pretty dangerous name) (IMG:[ invalid] style_emoticons/default/smile.gif) This post has been edited by hansvar92: May 5 2016, 18:49
|
|
|
|
 |
|
May 5 2016, 18:53
|
f4tal
Group: Members
Posts: 2,662
Joined: 10-January 13

|
QUOTE I guess, if scripts used long time and still alive, scripts are safe (not official, just IMHO). HoverPlay have begin of round spell option. In jurisprudence we have doctrine of "custom of business turnover" - if some action repeats over and over and noone have complain about it - it should be consider as a rule for everyone. So, if we have script which have function we used so long and Tenboro didn't switch it off - we should consider it as "speak-less approve". Another example - Mousemelee script had (long-long ago) a function to auto-remove dead monsters from monster pan and sooner scripters realized via Tenboro's speak that this behavior is forbidden. In ideal way, we as good users, should ask Tenboro about this OFC/T3 auto-use to prevent any misunderstanding. I can mail him, but better do this someone with better english and scriprt-work knowledge. =P
|
|
|
|
 |
|
May 5 2016, 19:13
|
Noni
Group: Catgirl Camarilla
Posts: 13,433
Joined: 19-February 16

|
QUOTE(hansvar92 @ May 5 2016, 18:40) 
Above CracklingCast code only show icon (not toggle spirit stance). My English is bad, but I understood he want only show icon. "There is spirit troggling in CracklingCast" - CracklingCast didn't auto toggle spirit stance, so he want only show icon.
Ah, Thanks Hansvar92, now I understand what this bit of script does. Only shows icon. But I wanted more! I wanted Automatic On, Automatic Off. But I won't do that - don't want the HV-Police after me!
|
|
|
May 6 2016, 14:17
|
Usagi =
Group: Gold Star Club
Posts: 2,923
Joined: 29-October 13

|
Just want to point out that Battle Stats Ex doesn't support alt.hentaiverse and it also kind of prevents me from clicking the "apply changes" in the settings page.
|
|
|
May 6 2016, 18:47
|
f4tal
Group: Members
Posts: 2,662
Joined: 10-January 13

|
QUOTE Just want to point out that Battle Stats Ex doesn't support alt.hentaiverse I think you can fix this issue in this script (and in any other script) by this workaround: QUOTE Open script and add this line "//@match http://*.hentaiverse.org/*" into "==UserScript=="-block QUOTE and it also kind of prevents me from clicking the "apply changes" in the settings page. wow o_o Tried it now - yes it is same for me. Very strange... Thanks for info (IMG:[ invalid] style_emoticons/default/happy.gif) This post has been edited by f4tal: May 6 2016, 18:47
|
|
|
May 7 2016, 11:20
|
Usagi =
Group: Gold Star Club
Posts: 2,923
Joined: 29-October 13

|
Hi, can anyone show me the code to sync localstorage objects between hentaiverse and alt.hentaiverse?
I try doing it with iframe and message passing but I can't seem to change the iframe localstorage.
I'm using chrome 48 without tampermonekey.
|
|
|
|
 |
|
May 7 2016, 11:48
|
Superlatanium
Group: Gold Star Club
Posts: 7,631
Joined: 27-November 13

|
QUOTE(LOL50015 @ May 7 2016, 09:20)  Hi, can anyone show me the code to sync localstorage objects between hentaiverse and alt.hentaiverse?
I try doing it with iframe and message passing but I can't seem to change the iframe localstorage.
I'm using chrome 48 without tampermonekey. This is the snippet of code I use for my Tag Check script, to sync g.e-hentai.org localStorage with [??]hentai.org localStorage. It uses window.open() instead of iframes though. (maybe I should have used iframes... they'd probably be a more elegant solution, but I haven't worked with them before...)
savedTags.txt ( 2.29k )
Number of downloads: 45The base script runs on g.e, opens a window to a broken link on the other domain, posts a message to that other domain, the other domain recognizes the message, parses its localStorage, and sends it back in another message. Then on g.e, the eventListener picks it up and sends the object to a sync function. (you also have to include the other domain in the script obviously, eg my script has both CODE // @include http://g.e-hentai.org/g/* // @include http://[??]hentai.org/fakepage Disclaimer: I have absolutely no idea what [??] stands for. In the script, you would have to replace [??] with the characters that should be there instead.
|
|
|
|
 |
|
May 7 2016, 16:11
|
Usagi =
Group: Gold Star Club
Posts: 2,923
Joined: 29-October 13

|
QUOTE(Superlatanium @ May 7 2016, 17:48)  This is the snippet of code I use for my Tag Check script, to sync g.e-hentai.org localStorage with [??]hentai.org localStorage. It uses window.open() instead of iframes though. (maybe I should have used iframes... they'd probably be a more elegant solution, but I haven't worked with them before...)
savedTags.txt ( 2.29k )
Number of downloads: 45The base script runs on g.e, opens a window to a broken link on the other domain, posts a message to that other domain, the other domain recognizes the message, parses its localStorage, and sends it back in another message. Then on g.e, the eventListener picks it up and sends the object to a sync function. (you also have to include the other domain in the script obviously, eg my script has both CODE // @include http://g.e-hentai.org/g/* // @include http://[??]hentai.org/fakepage Disclaimer: I have absolutely no idea what [??] stands for. In the script, you would have to replace [??] with the characters that should be there instead. Thanks! Your script will be a good reference for me.
|
|
|
|
 |
|
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
|
 |
 |
 |
|