> [Script] HVRed 1.0.2, A script for managing Random Encounters

 
post Sep 29 2017, 23:19
Post #1
f4tal



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


HVRed Script
(current version: 1.0.2., 27.10.2017)
(May contain glitches and bugs, report about them, please, in that thread or in PM


Inspired byScreenshots
Attached Image Attached Image Attached Image Attached Image Attached Image
Attached Image Attached Image Attached Image Attached Image Attached Image

Features
Works on (you can disable whatever you don't need in settings) Does not work when
  • You are not logged in;
  • You are solving CloudFlare captcha;
  • You are selecting colors in Post Edit screen;
  • You are browsing moderator's notes for you;
  • You are seeing attachments (does not matter pictures or code);
  • You are seeing member's display name history;
  • You are giving Karma to user;
Information box
  • Shows the time left until next Random Encounter ("Time");
  • Shows how many Random Encounters you did since last "Dawn of a New Day" ("Count");
  • Shows links to the Random Encounters you have triggered and their dates ("List");
  • Script displays "Time", "Counts", "List" in the box in the corner or in the center;
  • Said box has two styles: white for "Ambience" skin and black for "Fusion" skin of the forum;
  • Also, player can change the appearance of said box and make it smaller;
  • "List" is hidden by default, you can click on "List of REs" button to make them to appear them.
  • When "Time" counts to 0:0 - the link "Ready" would appear that can transfer you on the "Front Page" and start RE;
Notifications
  • Notifies with sound alarm or with popup when new Random Encounter is ready;
  • Notifies with sound alarm or with popup when there is XXX seconds left until next Random Encounter;
  • Once sound alarm started playing - you can disable it by clicking a "Turn off the Sound" link (aka "mute mode");
  • You can choose between playing sound alarm in a loop or playing it only once;
  • Script may inform you only from Front Page if you select this option in settings;
More features
  • Open links to Random Encounter in [alt.hentaiverse.org] alt-site;
  • Open links to Random Encounter in the same tab (without opening it in popup window);
  • Do not hide the Random Encounter Link after clicking it;
  • Aggregated and open CSS that you can freely modify for your needs;
Hotkeys
  • CTRL + SHIFT + l - to open the "List";
  • CTRL + SHIFT + z - to reset the "Time";
  • CTRL + SHIFT + x - to reset the "Count";
  • CTRL + SHIFT + c - to reset the "List";
  • CTRL + SHIFT + v - to reset all;
  • You can freely change "l", "z", "x", "c" and "v" buttons in settings;
Settings
  • styleSmall: false // If you don't like the default appearance of the box (it is too big for you), then change that option to "true";
  • useServerSideTimer: true // With that option turned on, script will use the server-side time to determinate when your next RE would be. If for some reasons you want to use player-side time (that may overcome the real server-side time), then change that option to "false" and configure "myTimerSec" below;
  • myTimerSec: 1802 // Configure that option if only you have set "useServerSideTimer" to "false".

  • showOnForum: true // Display the script on forum?;
  • showOnFrontPage: true // Display the script on Front Page (aka News Page)?;
  • showOnGalleries: true // Display the script in Galleries?;

  • resetTimeOnReadyClick: false // By default, the "Time" is reset whenever the HVRed script sees a new RE link. Here you can define that script should reset the "Time" after pressing the "Ready" link;
  • openREinSameTab: false // By default, game opens a RE link in the popup window. If you find that behavior inconvenient, change that option to "true";
  • openREinAltSite: false // By default game opens a RE link on regular HentaiVerse site. If you want to force the game open a RE link in alt-site, change that option to "true";
  • donotHideREafterClick: false // By default game hides the RE link after player clicked it. If you want to make to make the link visibly after clicking, change that option to "true";

  • showPopupWhenReady: false // Should the script show a popup when new RE is ready?;
  • playSoundWhenReady: true // Should the script play a sound file when new RE is ready?;

  • mySec: 30 // Your custom XXX seconds (see below);
  • showPopupWhenMySec: true // Should the script show a popup when there is XXX seconds left to next RE?;
  • playSoundWhenMySec: false // Should the script play a sound file when there is XXX seconds left to next RE?;

  • notifyOnFrontPageOnly: true // Should the script notify you with popup and sound from the Front Page only?;
  • notifyOnlyOnce: false // Should the script notify you with popup and sound only once per each RE? (In other word - script tells you that RE link is ready and will NOT notify you again until you visit Front Page)?;
  • notifySoundLoop: false // Should the script play the sound alarm in a loop?;

  • sound: "default" // Here you can put a link to custom sound file that should be played (in quotes). If you want script to play default sound, then type "default". Depending on browser and its version, various format might be (might not be) supported - check [en.wikipedia.org] this link for help. Also, mind that some browsers do not allow to play/read files from the device itself (local files) for security reasons. To bypass that restriction in Chrome, try [www.chrome-allow-file-access-from-file.com] this solution.;

  • buttonShowList: "l" // CTRL + SHIFT + this button to open the "List";
  • buttonResetTime: "z" // CTRL + SHIFT + this button to reset the "Time";
  • buttonResetCount: "x" // CTRL + SHIFT + this button to reset the "Count";
  • buttonResetList: "c" // CTRL + SHIFT + this button to reset the "List";
  • buttonResetAll: "v" // CTRL + SHIFT + this button to reset all;
FAQ

Q. Script works incorrectly, shows incorrect time, constantly shows "Ready" link, etc?
A. 1. Try to make a Timer reset (CTRL+SHIFT+Z by default).
2. If don't help, try full reset (CTRL+SHIFT+V by default).
3. If don't help, try to wait until RE link will appear and then.

Q. Why that script does not work on another dark site?
A. I have no idea what are talking about. My guess is that you can open the script and manually edit the following:
CODE
// @match        https://*.e-hentai.org/*
// @match        https://name of another site/*
// @start-at     document-end


Q. How does RE works server-side?
A. In short, link is generated every 30 minutes and lives for 30 minutes unless you saw that link, then it will live 30 minute longer.
Attached Image

Q. Why the script saves all RE links if I can visit only the last one? Is it more wise to save the last one and the last one only?
A. Your browser caches pages and its content - it is possible that browser may cache the Front Page that you have seen two hours ago with already expired link. Also, you can press the "back" button in the browser and visit these cached pages.
With this being said, you can accidentally, while pressing the "back" button, overwrite the last (active) RE link with cached, no-longer available link.

Q. How can I make two RE in one minute with that script?
A. 1. Wait until RE happen;
2. Visit the Front Page, but instead of pressing the link, reload the page;
[ibb.co] Demo 1
3. Wait until script notify you that there is certain amount of seconds left until next RE;
4. Visit the saved (archived) link;
5. Finish the RE
6. Wait for few seconds and visit the new RE link;
[ibb.co] Demo 2

Q. How can I make two RE in a row, one after another?
A. 1. Wait until RE happen;
2. Visit the Front Page, but instead of pressing the link, reload the page;
3. Wait until script notify you that there is certain amount of seconds left until next RE;
4. Visit the saved (archived) link;
5. DO NOT Finish the RE, but instead visit the new RE link WHILE being in the RE battle;
6. Finish the current RE battle and you immediately will be proceed to next RE battle;
[rgho.st] Demo

Q. Is it legal to use any of those two features? Would I be banned?
A.No, admin said it is okay.

Q. What the difference between this script and gianfrix94's script? Why some users prefer the latter?
A.That script auto-reloads the Front Page when new RE link is ready. Admin said that auto-reloading of Front Page is prohibited feature, so use that script on your risk.

Thanks
Thank the following people for bug reports, ideas, explanations, and and just good words:
  • Cryosite,
  • ALL_MIGHT,
  • End Of All Hope,
  • Draw99Gray,
  • sigo8,
  • Goldage,
  • Maharid,
  • and of course, Tenboro
Download
QUOTE
Attached File  HVRed__1.0.2_.user.js.txt ( 34.2k ) Number of downloads: 8024

Old versions:
  1. Not recommended to use, leaved here just for historic purpose and download counters:
  2. Attached File  HVRed__1.0.1_.user.js.txt ( 33.97k ) Number of downloads: 172
  3. Attached File  HVRed__0.9.7_.user.js.txt ( 9.85k ) Number of downloads: 102
  4. Attached File  HVRed__0.9.6_.user.js.txt ( 9.9k ) Number of downloads: 78
  5. Attached File  HVRed__0.9.5_.user.js.txt ( 9.61k ) Number of downloads: 95
  6. Attached File  HVRed__1.0.0_.user.js.txt ( 33.66k ) Number of downloads: 108
Installation
  1. If you never ever installed any scripts and do not what TamperMonkey & GreaseMonkey are, then first read that guide;
  2. Copypaste HVRed script in your TamperMonkey or GreaseMonkey;
  3. Configure script's settings as you wish;
  4. Save the script and pray it would work...
  5. Script is compatible with Default Font;
  6. Tested in Chrome 49 and Mozilla 45.


This post has been edited by f4tal: Oct 28 2017, 02:22


--------------------
DOs & DON'Ts - You are novice and need help with HentaiVerse? Read this.

Useful Links:
FAQ | Advice (for novices) | Advice Advanced (for proficient players) | Ask the Experts | Price check | Discuss your stats and build | Freeshop | Script guide | Script compendium

Useful scripts:
  • Smart Search - script for WTS/WTB. Helps you to bulk-scan various WTB/WTS thread, find items for cheaper price, do a search with * (wildcards) and Regex.
  • Monsterbation - script for battles. Greatly enhance your battle experience (drop tracker, turn counter, show current round, display information about monsters, so on) and allows you to attack enemies by hovering the cursor.
  • ToolBox - multi-purpose script. Allows multi-bazaar/shrine/salvage, helps create a shop, calculates price of shrined materials against bazaar price, provides lots of handy tweaks. Based on holy_demon's ItemManager and Superlatanium's Percentile Range scripts.
  • Red - script for Random Encounters. Gives you timer until next RE and notify you when RE is ready, shows list, links, counters, allows open RE link in alt-site, open in same tab.
Я говорю на русском языке. Если нужна помощь с игрой, а английский 'вери бэд', то пиши мне в личку, помогу чем смогу :)
User is offlineProfile CardPM
Report PostGo to the top of the page
+Quote Post

4 Pages V < 1 2 3 4 >  
Reply to this topicStart new topic
Replies(20 - 39)
 
post Oct 3 2017, 04:48
Post #21
Scremaz



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


with this script or without?


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

 
post Oct 3 2017, 04:50
Post #22
Draw99Gray



Playing FGO
*****
Group: Members
Posts: 723
Joined: 10-January 16
Level 443 (Dovahkiin)


i don't think it has to do with the script, the links expire server-side
so it's a new HV feature?


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

 
post Oct 3 2017, 05:12
Post #23
Scremaz



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


don't know. afaik until now if you were on RE and clicked on a second link you lost the second one. i'd like to know if it's a vanilla feature, at this point...


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

 
post Oct 3 2017, 05:56
Post #24
Draw99Gray



Playing FGO
*****
Group: Members
Posts: 723
Joined: 10-January 16
Level 443 (Dovahkiin)


i was going to test it and reached 24 daily REs
until 9 it will be


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

 
post Oct 3 2017, 06:19
Post #25
Juggernaut Santa



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


QUOTE(f4tal @ Oct 2 2017, 19:10) *

Script resets its 30 minute counter when it sees the RE link - it does not counts the time since you have clicked the "Ready" sign, or since you have actually made a RE.

This is probably not the right way since every pre existing script was able to tell the time even without seeing the link.

I can get dawn from my phone with my pc shut off, then wait 15 minutes, turn the pc on, open my browser and the script will show a time below 15 minutes.


--------------------
[WTS] My shop (Cheap Stuff) + Free Forge and Coupon Clipper Service + Monster Scan Bounty for Low Levels + My Legendary Drops History
[WTB] Any Scythe (unlimited) / Legendary * Scythe of Slaughter (1) @5M or exchange w/ PEERLESS Longsword / My Galleries (30) / My Bounties (0 Open)
Finding 2 Doujins - Bounty of 100k Each / Need Source of some image? Check this before asking anything to anyone :P
Weapons: {[ Rapier / Shield ] / [Waki] } / [ Axe / Club / Rapier ] / { Axe / [ Shortsword / Rapier ]} / [ Katana / Waki ] / Estoc / Longsword / Mace / Scythes
Power Set: [Helmet] / [Body] / [Hands] / [Legs] / [Feet] // Shielding Plate Set: [Helmet] / [Body] / [Hands] / [Legs] / [Feet]
Shade Set: [Helmet] / [Body] / [Hands] / [Legs] / [Feet] // Reinforced Leather of Deflection Set: [Helmet] / [Body] / [Hands] / [Legs] / [Feet]
Fire Mage Set: [ [Hot(ly) Rod] ] / [ [Torch] / [Pitchfork] ] / [Burning Hat] / [Fiery Cloak] / [Ignition Cloth Gloves] / [Butt on fire] / [Floor (that is lava)]
Adept Learner: MAX; Scavenger: 32/50; Luck of the Draw: 12/25; Quartermaster: 8/20; Archaeologist: 5/10; Forge: 126/50 (MAX); Monsters: 88 (34/95)
QUOTE(Uncle Stu @ Jul 7 2017, 01:45) *
I am uncle stu, you are a bad person, that is how the world is, just face it and dont pretend something you are not. ^_^
User is offlineProfile CardPM
Report PostGo to the top of the page
+Quote Post

 
post Oct 3 2017, 08:06
Post #26
sigo8



Clover Sprite
********
Group: Gold Star Club
Posts: 3,161
Joined: 9-November 11
Level 500 (Ponyslayer)


QUOTE(Scremaz @ Oct 2 2017, 15:12) *

don't know. afaik until now if you were on RE and clicked on a second link you lost the second one. i'd like to know if it's a vanilla feature, at this point...

You wouldn't lose is previously, you'd just need to refresh the page to get it, as the current URL would still be for the second one. But previously clicking the finish battle button would take you to a fixed URL, now it just refreshes the page.


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

 
post Oct 4 2017, 10:42
Post #27
Cryosite



Kind of a Big Deal
*****
Group: Members
Posts: 553
Joined: 30-August 17
Level 416 (Godslayer)


QUOTE(f4tal @ Oct 2 2017, 10:10) *

---
I think there is a little unclear about how RE works.
Let me clarify things a little.

tl:dr is below.


If this is how RE works, then the script should work roughly like this:
record time when Dawn event happens for player. Save this all day until next Dawn/half hour before dawn, whatever works best.

Then, whenever a new page loads in which the script is set to display a timer, it compares current time against currently saved dawn time. Calculate how long until the server will expire the current RE link. Make the timer it displays based off of that, not based on user activity. If I visit the news page at observe Dawn at 5 minutes late, then my timer should always be at X:05 and X:35.

Then, when it does see an RE link, it saves it to notepad as it currently does. If it can detect when an RE link has been used/visited, it would be nice to record that to let players know how close they are to hitting the 24 limit and/or just personal value of how many RE's they hit a day.

Since the Dawn event would be observed on the e-hentai.org domain, that part of the script should save the data. If the script is running on the forums.ehentaihip.com domain and can't directly access that data, then that sounds like it ought to somehow seek to acquire that information. Perhaps let it display a message "cannot determine Dawn time, please visit the news/frontpage to view Dawn.

If the data cannot be communicated programatically between domains, you could have the main part of the script (e-hentai.org) offer a button to display the time-data it is storing. Let the user copy that and paste it into the other parts of the script in other domains to sync them. You could have hvtoolbox recieve this pasted data too.

This post has been edited by Cryosite: Oct 4 2017, 10:45


--------------------
My WTB. Help me find upgrades, please.
My WTS. Gimme credits.
User is offlineProfile CardPM
Report PostGo to the top of the page
+Quote Post

 
post Oct 4 2017, 17:45
Post #28
f4tal



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


QUOTE(Draw99Gray @ Oct 2 2017, 23:36) *
It's the same feature you're talking about, yours has to be done manually and gianfrix94's do it automatically every 30 minutes
You wait 59 minutes, click the link before it expires, and then follow the next battle, hence the 2 REs in 1 minute.

Tenboro told me that "auto-reload the front page" feature of gianfrix94's script is illegal and we should feel bad for using it.
With this being said - it is unlikely I will implement auto-reloading in one way or another in the HVRed - player should click the "Ready" sign manually to pass admin's guidelines of legal scripts.

QUOTE(Draw99Gray @ Oct 2 2017, 23:41) *
The small reminder on top right meant that i like the reminder to be small, like this:

I see will create an option to make it smaller.

QUOTE(Draw99Gray @ Oct 2 2017, 23:41) *
On a side note, i don't know if any of you realized but if you click a RE with a RE battle ongoing, after finishing next round will take you to the RE you previously clicked
Never tried it for more than two battles.

Asked admin about it, haven't received answer yet. I would say it is exploit and nothing really bad. Very likely Tenboro will fix it silently or in next version, or just don't give a damn.

QUOTE(Draw99Gray @ Oct 2 2017, 23:50) *
i don't think it has to do with the script, the links expire server-side
so it's a new HV feature?

It is vanilla HV feature, has nothing to do with scripts. Looks like that feature was available for long-long time and not exclusive for current version of HV.

QUOTE(Cryosite @ Oct 4 2017, 05:42) *
Then, whenever a new page loads in which the script is set to display a timer, it compares current time against currently saved dawn time. Calculate how long until the server will expire the current RE link. Make the timer it displays based off of that, not based on user activity. If I visit the news page at observe Dawn at 5 minutes late, then my timer should always be at X:05 and X:35.

I thought about it and even tried - but that concept works bad with notifications and also counter-intuitive for non-hardcode players. Overly, I agree with you. maybe will return to that question lately?

QUOTE(Cryosite @ Oct 4 2017, 05:42) *
If it can detect when an RE link has been used/visited, it would be nice to record that to let players know how close they are to hitting the 24 limit and/or just personal value of how many RE's they hit a day.

To test if link is valid or not - script should actually FOLLOW it. Neither speaking it is auto-action and so it is bad, but it also automatically makes all links invalid, because script followed them.

QUOTE(Cryosite @ Oct 4 2017, 05:42) *
Since the Dawn event would be observed on the e-hentai.org domain, that part of the script should save the data. If the script is running on the forums.ehentaihip.com domain and can't directly access that data, then that sounds like it ought to somehow seek to acquire that information. Perhaps let it display a message "cannot determine Dawn time, please visit the news/frontpage to view Dawn.

The main problem - I am very doubt about parsing the front page's data without actually visiting it. Sounds fishy for me.

QUOTE(Cryosite @ Oct 4 2017, 05:42) *
You could have hvtoolbox recieve this pasted data too.

Already made it, haven't released yet.

Thanks for comments.

This post has been edited by f4tal: Oct 4 2017, 21:44


--------------------
DOs & DON'Ts - You are novice and need help with HentaiVerse? Read this.

Useful Links:
FAQ | Advice (for novices) | Advice Advanced (for proficient players) | Ask the Experts | Price check | Discuss your stats and build | Freeshop | Script guide | Script compendium

Useful scripts:
  • Smart Search - script for WTS/WTB. Helps you to bulk-scan various WTB/WTS thread, find items for cheaper price, do a search with * (wildcards) and Regex.
  • Monsterbation - script for battles. Greatly enhance your battle experience (drop tracker, turn counter, show current round, display information about monsters, so on) and allows you to attack enemies by hovering the cursor.
  • ToolBox - multi-purpose script. Allows multi-bazaar/shrine/salvage, helps create a shop, calculates price of shrined materials against bazaar price, provides lots of handy tweaks. Based on holy_demon's ItemManager and Superlatanium's Percentile Range scripts.
  • Red - script for Random Encounters. Gives you timer until next RE and notify you when RE is ready, shows list, links, counters, allows open RE link in alt-site, open in same tab.
Я говорю на русском языке. Если нужна помощь с игрой, а английский 'вери бэд', то пиши мне в личку, помогу чем смогу :)
User is offlineProfile CardPM
Report PostGo to the top of the page
+Quote Post

 
post Oct 4 2017, 21:42
Post #29
f4tal



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


Tenboro said that triggering two REs in one minute, as well triggering two REs one after another, are all okay.

This post has been edited by f4tal: Oct 4 2017, 21:45


--------------------
DOs & DON'Ts - You are novice and need help with HentaiVerse? Read this.

Useful Links:
FAQ | Advice (for novices) | Advice Advanced (for proficient players) | Ask the Experts | Price check | Discuss your stats and build | Freeshop | Script guide | Script compendium

Useful scripts:
  • Smart Search - script for WTS/WTB. Helps you to bulk-scan various WTB/WTS thread, find items for cheaper price, do a search with * (wildcards) and Regex.
  • Monsterbation - script for battles. Greatly enhance your battle experience (drop tracker, turn counter, show current round, display information about monsters, so on) and allows you to attack enemies by hovering the cursor.
  • ToolBox - multi-purpose script. Allows multi-bazaar/shrine/salvage, helps create a shop, calculates price of shrined materials against bazaar price, provides lots of handy tweaks. Based on holy_demon's ItemManager and Superlatanium's Percentile Range scripts.
  • Red - script for Random Encounters. Gives you timer until next RE and notify you when RE is ready, shows list, links, counters, allows open RE link in alt-site, open in same tab.
Я говорю на русском языке. Если нужна помощь с игрой, а английский 'вери бэд', то пиши мне в личку, помогу чем смогу :)
User is offlineProfile CardPM
Report PostGo to the top of the page
+Quote Post

 
post Oct 4 2017, 22:29
Post #30
Scremaz



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


QUOTE(f4tal @ Oct 4 2017, 15:42) *

Tenboro said that triggering two REs in one minute, as well triggering two REs one after another, are all okay.

a vanilla feature, as other users reported then, uh? well, alright. good to know.


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

 
post Oct 4 2017, 22:32
Post #31
f4tal



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


QUOTE(Scremaz @ Oct 4 2017, 17:29) *
a vanilla feature, as other users reported then, uh? well, alright. good to know.

Yes vanilla ~unexpected~(sic) feature. But it is okay - no problems should be.


--------------------
DOs & DON'Ts - You are novice and need help with HentaiVerse? Read this.

Useful Links:
FAQ | Advice (for novices) | Advice Advanced (for proficient players) | Ask the Experts | Price check | Discuss your stats and build | Freeshop | Script guide | Script compendium

Useful scripts:
  • Smart Search - script for WTS/WTB. Helps you to bulk-scan various WTB/WTS thread, find items for cheaper price, do a search with * (wildcards) and Regex.
  • Monsterbation - script for battles. Greatly enhance your battle experience (drop tracker, turn counter, show current round, display information about monsters, so on) and allows you to attack enemies by hovering the cursor.
  • ToolBox - multi-purpose script. Allows multi-bazaar/shrine/salvage, helps create a shop, calculates price of shrined materials against bazaar price, provides lots of handy tweaks. Based on holy_demon's ItemManager and Superlatanium's Percentile Range scripts.
  • Red - script for Random Encounters. Gives you timer until next RE and notify you when RE is ready, shows list, links, counters, allows open RE link in alt-site, open in same tab.
Я говорю на русском языке. Если нужна помощь с игрой, а английский 'вери бэд', то пиши мне в личку, помогу чем смогу :)
User is offlineProfile CardPM
Report PostGo to the top of the page
+Quote Post

 
post Oct 5 2017, 02:01
Post #32
Cryosite



Kind of a Big Deal
*****
Group: Members
Posts: 553
Joined: 30-August 17
Level 416 (Godslayer)


QUOTE(f4tal @ Oct 4 2017, 02:45) *
To test if link is valid or not - script should actually FOLLOW it. Neither speaking it is auto-action and so it is bad, but it also automatically makes all links invalid, because script followed them.

I am not saying it should test if an RE link is valid. I am saying it should be watching. If a player visits an RE through their own click, can the script not see that in some way and count it?

"Total RE" at this point seems to be counted based on how often the script saves a link. It assumes the player never makes mistakes and visits every link saved before they expire. This does work for most cases I imagine, but I think my suggestion is a little more accurate.

QUOTE(f4tal @ Oct 4 2017, 02:45) *
The main problem - I am very doubt about parsing the front page's data without actually visiting it. Sounds fishy for me.


Again, not suggesting automation. If it is after 5pm (my time zone) then a new Dawn event is available. The script can remind me to go to the news page to view it. The script waits for me to do so, and when I do, it records the time to allow it to know the timing of every other notification.


The other domains may not be able to get this information from storage. They should still notice if they don't have this Dawn information they need. If you can't pass the information automatically, you can let the player do it with a copy/paste. Or just let them manually store "5:01 PM PST" so that when it is running on the forums, it still accurately displays useful time. Or within the game in HVtoolbox.

QUOTE(f4tal @ Oct 4 2017, 02:45) *

I thought about it and even tried - but that concept works bad with notifications and also counter-intuitive for non-hardcode players. Overly, I agree with you. maybe will return to that question lately?


I don't know what would cause this to work badly with notifications. I also don't see how it isn't intuitive: it directly models what is actually going on with REs and informs the player more precisely.

Your current model just creates a 30-minute kitchen timer that the player can reset. If the player is super hardcore about this, then they can keep their timer in-line with the expiration of links. But if they are slightly late in clicking "ready" then their time drifts away. There is also no easy way to sync the timer back up if you notice it has drifted.

Think of it like a real clock. If you had to go to your clock and turn off the chime every hour, and then it started counting the next hour once you had turned off the chime, how happy would you be with that clock? Would you expect it to tell you when it was dinner time, knowing that every hour you were maybe 5-10 seconds late in turning off the chime? Think of what kinds of changes to behavior you would need to make if clocks worked this way.

I don't think making a clock work more like a real clock is less intuitive.

This post has been edited by Cryosite: Oct 5 2017, 02:07


--------------------
My WTB. Help me find upgrades, please.
My WTS. Gimme credits.
User is offlineProfile CardPM
Report PostGo to the top of the page
+Quote Post

 
post Oct 5 2017, 02:34
Post #33
f4tal



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


QUOTE(Cryosite @ Oct 4 2017, 21:01) *
Your current model just creates a 30-minute kitchen timer that the player can reset. If the player is super hardcore about this, then they can keep their timer in-line with the expiration of links. But if they are slightly late in clicking "ready" then their time drifts away. There is also no easy way to sync the timer back up if you notice it has drifted.

Valid point. When I started to make that script I haven't know much about how RE actually works. Now, after learning more about it and about server-side business, ~probably~ I will re-write to make it more actual to server-side counters.

Thanks for comment smile.gif

This post has been edited by f4tal: Oct 5 2017, 02:35


--------------------
DOs & DON'Ts - You are novice and need help with HentaiVerse? Read this.

Useful Links:
FAQ | Advice (for novices) | Advice Advanced (for proficient players) | Ask the Experts | Price check | Discuss your stats and build | Freeshop | Script guide | Script compendium

Useful scripts:
  • Smart Search - script for WTS/WTB. Helps you to bulk-scan various WTB/WTS thread, find items for cheaper price, do a search with * (wildcards) and Regex.
  • Monsterbation - script for battles. Greatly enhance your battle experience (drop tracker, turn counter, show current round, display information about monsters, so on) and allows you to attack enemies by hovering the cursor.
  • ToolBox - multi-purpose script. Allows multi-bazaar/shrine/salvage, helps create a shop, calculates price of shrined materials against bazaar price, provides lots of handy tweaks. Based on holy_demon's ItemManager and Superlatanium's Percentile Range scripts.
  • Red - script for Random Encounters. Gives you timer until next RE and notify you when RE is ready, shows list, links, counters, allows open RE link in alt-site, open in same tab.
Я говорю на русском языке. Если нужна помощь с игрой, а английский 'вери бэд', то пиши мне в личку, помогу чем смогу :)
User is offlineProfile CardPM
Report PostGo to the top of the page
+Quote Post

 
post Oct 5 2017, 02:51
Post #34
sigo8



Clover Sprite
********
Group: Gold Star Club
Posts: 3,161
Joined: 9-November 11
Level 500 (Ponyslayer)


QUOTE(Cryosite @ Oct 4 2017, 12:01) *

Your current model just creates a 30-minute kitchen timer that the player can reset. If the player is super hardcore about this, then they can keep their timer in-line with the expiration of links. But if they are slightly late in clicking "ready" then their time drifts away. There is also no easy way to sync the timer back up if you notice it has drifted.


The server side timer works the exact same way. If the player clicks the link 5 mins late then the next RE will be 5 mins late too. You have to wait a full 30 min from the time you visited the homepage for the next RE, the time the Dawn happened is only relevant for the very first RE.

The only way the script timer becomes desynced from the server timer (assuming f4tal script works link mine) is if you trigger a RE outside the script or if there unusual latency fetching the homepage (in which case the script's time will be a few seconds fast).

This post has been edited by sigo8: Oct 5 2017, 02:51


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

 
post Oct 5 2017, 03:09
Post #35
f4tal



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


QUOTE(sigo8 @ Oct 4 2017, 21:51) *
The server side timer works the exact same way. If the player clicks the link 5 mins late then the next RE will be 5 mins late too. You have to wait a full 30 min from the time you visited the homepage for the next RE, the time the Dawn happened is only relevant for the very first RE.

Thanks. I forgot to mention that part in my explanations above. I assumed it, but haven't mentioned. Will fix

QUOTE(sigo8 @ Oct 4 2017, 21:51) *
The only way the script timer becomes desynced from the server timer (assuming f4tal script works link mine) is if you trigger a RE outside the script or if there unusual latency fetching the homepage (in which case the script's time will be a few seconds fast).

For some reasons sometimes it requires 30 min +2-3 seconds to get new RE link. Maybe it is part of "unusual latency fetching the homepage"? I had it like 1 out of 8 times, but most times - yes, exactly second in second.


--------------------
DOs & DON'Ts - You are novice and need help with HentaiVerse? Read this.

Useful Links:
FAQ | Advice (for novices) | Advice Advanced (for proficient players) | Ask the Experts | Price check | Discuss your stats and build | Freeshop | Script guide | Script compendium

Useful scripts:
  • Smart Search - script for WTS/WTB. Helps you to bulk-scan various WTB/WTS thread, find items for cheaper price, do a search with * (wildcards) and Regex.
  • Monsterbation - script for battles. Greatly enhance your battle experience (drop tracker, turn counter, show current round, display information about monsters, so on) and allows you to attack enemies by hovering the cursor.
  • ToolBox - multi-purpose script. Allows multi-bazaar/shrine/salvage, helps create a shop, calculates price of shrined materials against bazaar price, provides lots of handy tweaks. Based on holy_demon's ItemManager and Superlatanium's Percentile Range scripts.
  • Red - script for Random Encounters. Gives you timer until next RE and notify you when RE is ready, shows list, links, counters, allows open RE link in alt-site, open in same tab.
Я говорю на русском языке. Если нужна помощь с игрой, а английский 'вери бэд', то пиши мне в личку, помогу чем смогу :)
User is offlineProfile CardPM
Report PostGo to the top of the page
+Quote Post

 
post Oct 6 2017, 02:24
Post #36
Cryosite



Kind of a Big Deal
*****
Group: Members
Posts: 553
Joined: 30-August 17
Level 416 (Godslayer)


First pic: Attached Image

Link available 10:43AM Did not click "ready" to retrieve it. Should expire at 11:13AM if the link is generated solely based on Dawn event as I was under the impression. (I am not defending this position, this is the control I am testing against to disprove.

Second pic: Attached Image

Clicked ready and received RE link #10 at 10:53AM. If my hypothesis is correct, I am now about ten minutes synchronized from my actual RE window. This RE should expire at 11:13AM still. If I am wrong, it will expire at 11:23AM. So I need to run the encounter before 11:13AM, then attempt to get another link after it, but before 11:23AM.

Completed the RE at 10:58AM. Should not impact the test other than it having been completed before the necessary time. So now I wait until 11:14AM-11:22AM to see if I can get RE link #11. Since the script will tell me to wait until 11:23AM, I am temporarily disabling it.

Third pic: Attached Image

Alright. I reloaded the news page at 11:16AM and did not get a new RE. So I guess that does confirm the "server-side egg timer" theory and disprove mine. Looks like I'll have to wait until 11:23AM for my new RE.

Fourth pic: Attached Image

So, there we go. Well, my idea wouldn't work at all then. Seems the current script design is correct.


--------------------
My WTB. Help me find upgrades, please.
My WTS. Gimme credits.
User is offlineProfile CardPM
Report PostGo to the top of the page
+Quote Post

 
post Oct 9 2017, 01:42
Post #37
f4tal



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


New version (1.0.0) has been released
  • Now you can select between "default" style and "small" style of the box, if don't like the default big box
  • Now you can select between server-side Timer and player-side Timer. Server-side is default and preferred. Server-side Timer uses real date (real current hours and minutes) to tell you when next RE would be. Player-side Timer uses relative date (some point in time + xxx time) to find when next RE would be.
  • If you are using player-side Timer, you can set the amount of time between each REs to count.
  • Now you can make the script reload the Timer after pressing on "Ready" link. By default script reloads Timer after seeing the new RE link.
  • Now you can make the script to always show the RE link even after clicking the one.
  • Now you use seconds instead of minutes to determinate when script should notify you about soon RE.
  • Now you can use "notify once mode" and then script will notify you only once about RE and will not do it again until you visit Front Page. Even when you are browsing between pages - script will not notify you anymore.
  • If you don't like that fact that sound alarm is playing in loop and you should manually turn it off - you can disable the loop now.
  • Now you have more options for shortcuts. You can freely change the buttons and also have three more shortcuts.
  • Now script remembers and shows dates of the RE links.
  • Now sound alarm is in-coded in script instead of being a separate resource on the another site.
  • Few CSS changes.
  • Script no longer will show itself when you are giving the karma to another player;

// ohh, and once again - I will not implement auto-reload in anyway in that script (as in gianfrix94's script), because Tenboro told me that this feature is illegal.
Also updated the first post.

This post has been edited by f4tal: Oct 9 2017, 01:59


--------------------
DOs & DON'Ts - You are novice and need help with HentaiVerse? Read this.

Useful Links:
FAQ | Advice (for novices) | Advice Advanced (for proficient players) | Ask the Experts | Price check | Discuss your stats and build | Freeshop | Script guide | Script compendium

Useful scripts:
  • Smart Search - script for WTS/WTB. Helps you to bulk-scan various WTB/WTS thread, find items for cheaper price, do a search with * (wildcards) and Regex.
  • Monsterbation - script for battles. Greatly enhance your battle experience (drop tracker, turn counter, show current round, display information about monsters, so on) and allows you to attack enemies by hovering the cursor.
  • ToolBox - multi-purpose script. Allows multi-bazaar/shrine/salvage, helps create a shop, calculates price of shrined materials against bazaar price, provides lots of handy tweaks. Based on holy_demon's ItemManager and Superlatanium's Percentile Range scripts.
  • Red - script for Random Encounters. Gives you timer until next RE and notify you when RE is ready, shows list, links, counters, allows open RE link in alt-site, open in same tab.
Я говорю на русском языке. Если нужна помощь с игрой, а английский 'вери бэд', то пиши мне в личку, помогу чем смогу :)
User is offlineProfile CardPM
Report PostGo to the top of the page
+Quote Post

 
post Oct 10 2017, 11:15
Post #38
Draw99Gray



Playing FGO
*****
Group: Members
Posts: 723
Joined: 10-January 16
Level 443 (Dovahkiin)


Now this is a version I can use.
I'll miss the auto-reload, but your script has way more advantages
Thanks!

This post has been edited by Draw99Gray: Oct 10 2017, 11:19


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

 
post Oct 10 2017, 18:56
Post #39
f4tal



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


QUOTE(Draw99Gray @ Oct 10 2017, 06:15) *
Now this is a version I can use.
I'll miss the auto-reload, but your script has way more advantages
Thanks!

Thanks happy.gif

Want to share following interesting thing I have discovered.

Every 30minutes game gives you a link to RE that looks like this:
CODE
http://alt.hentaiverse.org/?s=Battle&ss=ba&encounter=MTIzNzQ5MC0xNTA3NjMyMzU3LTI0YTEzNDdhMTU0ZGFiY2Q0OTgxM2U1YWQ1Y2VlZjU5NmZlMzQxNGU=

One can use any BASE64-decoded to find out that the ending part of the link (after "&encounter=") is BASE64 string that represents the following: player's ID + timestamp of current time (for some reasons with timeshift of 2 minutes) + unique hash-code.
CODE
http://alt.hentaiverse.org/?s=Battle&ss=ba&encounter=1237490-1507632357-24a1347a154dabcd49813e5ad5ceef596fe3414e


Now you know a little bit more smile.gif


--------------------
DOs & DON'Ts - You are novice and need help with HentaiVerse? Read this.

Useful Links:
FAQ | Advice (for novices) | Advice Advanced (for proficient players) | Ask the Experts | Price check | Discuss your stats and build | Freeshop | Script guide | Script compendium

Useful scripts:
  • Smart Search - script for WTS/WTB. Helps you to bulk-scan various WTB/WTS thread, find items for cheaper price, do a search with * (wildcards) and Regex.
  • Monsterbation - script for battles. Greatly enhance your battle experience (drop tracker, turn counter, show current round, display information about monsters, so on) and allows you to attack enemies by hovering the cursor.
  • ToolBox - multi-purpose script. Allows multi-bazaar/shrine/salvage, helps create a shop, calculates price of shrined materials against bazaar price, provides lots of handy tweaks. Based on holy_demon's ItemManager and Superlatanium's Percentile Range scripts.
  • Red - script for Random Encounters. Gives you timer until next RE and notify you when RE is ready, shows list, links, counters, allows open RE link in alt-site, open in same tab.
Я говорю на русском языке. Если нужна помощь с игрой, а английский 'вери бэд', то пиши мне в личку, помогу чем смогу :)
User is offlineProfile CardPM
Report PostGo to the top of the page
+Quote Post

 
post Oct 13 2017, 12:08
Post #40
sigo8



Clover Sprite
********
Group: Gold Star Club
Posts: 3,161
Joined: 9-November 11
Level 500 (Ponyslayer)


QUOTE(f4tal @ Oct 10 2017, 04:56) *

Thanks happy.gif

Want to share following interesting thing I have discovered.

Every 30minutes game gives you a link to RE that looks like this:
CODE
http://alt.hentaiverse.org/?s=Battle&ss=ba&encounter=MTIzNzQ5MC0xNTA3NjMyMzU3LTI0YTEzNDdhMTU0ZGFiY2Q0OTgxM2U1YWQ1Y2VlZjU5NmZlMzQxNGU=

One can use any BASE64-decoded to find out that the ending part of the link (after "&encounter=") is BASE64 string that represents the following: player's ID + timestamp of current time (for some reasons with timeshift of 2 minutes) + unique hash-code.
CODE
http://alt.hentaiverse.org/?s=Battle&ss=ba&encounter=1237490-1507632357-24a1347a154dabcd49813e5ad5ceef596fe3414e


Now you know a little bit more smile.gif

Wow, I noticed that the token look like base64, but never thought to try decoding it.
But I didn't see a 2 min timeshift when I decoded it, it matched the time on my computer down to the second. Maybe your clock is off?


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


4 Pages V < 1 2 3 4 >
Fast ReplyReply to this topicStart new topic
1 User(s) are reading this topic (0 Guests and 0 Anonymous Users)
1 Members: k999k99

 


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