Welcome Guest ( Log In | Register )

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

 
post Aug 29 2017, 00:19
Post #5061
f4tal



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


Guys and ladies (hope we have some here) I remember, there is have been a script that automatically sends Id/keys of equipment to Jenga's database. Tried to find it, but found nothing. Can someone share a link? Gracias!
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Aug 29 2017, 00:23
Post #5062
piyin



Reasons to love the IRS.
***********
Group: Gold Star Club
Posts: 10,794
Joined: 4-February 09
Level 500 (Ponyslayer)


QUOTE(decondelite @ Aug 28 2017, 23:53) *

Frankly, chosing between Chrome and Firefox became like choosing between plague and cholera.


Im sorry... but those cant be compared.
One is the result stupidity (plague), the other is a serious fast progresing and contagious disease (Cholera).

Anyway... Chrome will have his fails, but so far they can be (kinda) fixed... but FF... well just telling you: i prefer to deal with the massive resource consume Chrome does than have to reinstall every week FF just because some script just broke it.

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

 
post Aug 29 2017, 00:23
Post #5063
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 @ Aug 29 2017, 00:19) *

Guys and ladies (hope we have some here) I remember, there is have been a script that automatically sends Id/keys of equipment to Jenga's database. Tried to find it, but found nothing. Can someone share a link? Gracias!

he's reworking it. he should publish a new version soon, i guess.



btw, discussion is derailing a bit. i wanted to know what this switch to webextension may have led to.
discussing about which browser is good is another matter. and coders here should still make scripts under the assumption that both firefox and chrome users use them, so...

This post has been edited by Scremaz: Aug 29 2017, 00:27
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Aug 29 2017, 00:30
Post #5064
sickentide



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


speaking of which, the monster database search interface is pretty much ready to launch, i'm just waiting to hear from jenga on some final tweaks. took me long enough, but i started taking greek language lessons and they take up a lot of time and energy. ω τι είναι η μαλακία μου
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Aug 29 2017, 00:49
Post #5065
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(sickentide @ Aug 29 2017, 00:30) *

speaking of which, the monster database search interface is pretty much ready to launch, i'm just waiting to hear from jenga on some final tweaks. took me long enough, but i started taking greek language lessons and they take up a lot of time and energy. ω τι είναι η μαλακία μου

good. i have news as well. if we exclude an oddity at lv1, i may now reverse-calculate base rolls starting from forged rolls at whatever level with a 0.01 (out of a 48 roll) error. all of this while keeping a simple algorythm.

tried on cmos's dark staff MDB. tomorrow i'll try with other stats. but for now, (IMG:[invalid] style_emoticons/default/cool2.gif) (IMG:[invalid] style_emoticons/default/cool2.gif)
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Aug 29 2017, 01:50
Post #5066
Superlatanium



Dreaming of optimizing the system
**********
Group: Gold Star Club
Posts: 7,573
Joined: 27-November 13
Level 500 (Godslayer)


QUOTE(f4tal @ Aug 28 2017, 22:19) *
Guys and ladies (hope we have some here) I remember, there is have been a script that automatically sends Id/keys of equipment to Jenga's database. Tried to find it, but found nothing. Can someone share a link? Gracias!
Something like
CODE
var rangesToSend = [];

rangesToSend.push({ 'eid' : item.eid, 'key' : item.key }); // looped

function sendRanges(){
  if (rangesToSend.length === 0)
    return;
  var exists = new XMLHttpRequest();
  var data = new FormData();
  data.append('action', 'store');
  data.append('equipment', JSON.stringify(rangesToSend));
  exists.open("POST","https://hvitems.niblseed.com/",false);
  exists.send( data );
}

The full script used to be here
https://forums.e-hentai.org/index.php?showtopic=53281
but it seems to have been deleted. The server-side part still works, as far as I know
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Aug 29 2017, 02:18
Post #5067
RoadShoe



Press any key to continue... Where's the any key?
********
Group: Catgirl Camarilla
Posts: 3,241
Joined: 9-August 15
Level 500 (Godslayer)


QUOTE(sickentide @ Aug 28 2017, 15:30) *

i started taking greek language lessons and they take up a lot of time and energy. ω τι είναι η μαλακία μου


Switch to Mandarin.

I heard rumors the Greeks were closing up shop and being assimilated.

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

 
post Aug 29 2017, 02:35
Post #5068
sickentide



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


fixed the thing where ajaxRound = true keeps riddleanswer from gaining focus Attached File  HentaiverseMonsterbation.1.2.0.6.user.js.zip ( 14.93k ) Number of downloads: 149

QUOTE(RoadShoe @ Aug 29 2017, 03:18) *

Switch to Mandarin.

I heard rumors the Greeks were closing up shop and being assimilated.

all right, how do you say "polymalaka" in mandarin?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Aug 29 2017, 11:20
Post #5069
BMXArena



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


QUOTE(sickentide @ Aug 29 2017, 09:35) *

fixed the thing where ajaxRound = true keeps riddleanswer from gaining focus Attached File  HentaiverseMonsterbation.1.2.0.6.user.js.zip ( 14.93k ) Number of downloads: 149


all right, how do you say "polymalaka" in mandarin?


Switch to Japanese! マンガなどを読めるし~
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Aug 29 2017, 11:48
Post #5070
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)


let's say i have a trend curve on an excel graph. it's a log one, so it's in the form

y = A * ln(x) + B

now, i need a way (a function) to retrieve those A and B parameters and assign them to cells. doing it without a graph but starting from the vector of datas may be fine as well, as well as i have those values into cells.

[edit]: oh, and no macros, just in case

[edit2]: oh, and a way to conditional formatting a cell containing numbers (0 or 2 decimal digits, for example) depending on the value of a certain other cell

This post has been edited by Scremaz: Aug 29 2017, 12:16
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Aug 29 2017, 13:02
Post #5071
diamondg



Newcomer
*
Group: Gold Star Club
Posts: 32
Joined: 14-February 16
Level 453 (Godslayer)


QUOTE(sickentide @ Aug 28 2017, 21:59) *

yes, and from what i understand, reading and modifying XPI code isn't completely impossible, but when it comes to convenience of use and ease of customisation, i'd say JS has the upper hand

By JS, you probably mean UserScripts, JavaScript per se is a programming language which is used by both UserScripts and browser extensions.

XPI is just a ZIP archive with javascript code inside and a couple of special files. Literally. So reading XPI code is as easy as launching any archiver understanding ZIP format. Moving to WebExtensions will change some details, but not the generic principle.

Modifying XPI is indeed much more troublesome because one of those special files contains a digital signature for the others. Stable versions of Firefox refuse to load unsigned extensions, so one need a special version of FF (either Developers Edition or Nightly) and a special setting to be able to mess with javascript code. Which basically puts an end to any source-level customizations for the end user. The extension will need to provide some sort of configuration mechanism that would not require messing with source code.

(Unlike "legacy" extensions, unsigned WebExtensions can be loaded temporarily to stable Firefox. But they would live only until browser restart, so it is purely debugging mechanism for developers, not a solution for end users.)

Still, ease-of-customization of UserScripts comes with a price. The browser still runs an extension, only in this case, this is UserScript manager (Tampermonkey/whatever), which has its own overhead. HVStat was once an UserScript, but then migrated to an extension due to speed and stability issues. (Good luck trying to implement configuration GUI in UserScript with jQuery UI without significantly slowing down initialization of the entire script.)
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Aug 29 2017, 13:34
Post #5072
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(diamondg @ Aug 29 2017, 13:02) *

By JS, you probably mean UserScripts, JavaScript per se is a programming language which is used by both UserScripts and browser extensions.

yep. my knowledge is limited but i still need to be know certain things. please bear with me (IMG:[invalid] style_emoticons/default/heh.gif)

QUOTE(diamondg @ Aug 29 2017, 13:02) *

XPI is just a ZIP archive with javascript code inside and a couple of special files. Literally. So reading XPI code is as easy as launching any archiver understanding ZIP format. Moving to WebExtensions will change some details, but not the generic principle.

pretty interesting. i didn't know it so i didn't even try. but yep, i can see those file

QUOTE(diamondg @ Aug 29 2017, 13:02) *

The extension will need to provide some sort of configuration mechanism that would not require messing with source code.

a configuration panel, yep. it's one of those questions i asked before. in case something will be developed as XPI, i guess such a thing will be needed.

QUOTE(diamondg @ Aug 29 2017, 13:02) *

Still, ease-of-customization of UserScripts comes with a price. The browser still runs an extension, only in this case, this is UserScript manager (Tampermonkey/whatever), which has its own overhead. HVStat was once an UserScript, but then migrated to an extension due to speed and stability issues. (Good luck trying to implement configuration GUI in UserScript with jQuery UI without significantly slowing down initialization of the entire script.)

hmm... this also means that if scripts start to behave strangely because of monkeys, we should all wait for an official (and external) solution, while XPI could be less or more easily be fixed within the community, uh?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Aug 29 2017, 13:37
Post #5073
sickentide



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


QUOTE(BMXArena @ Aug 29 2017, 12:20) *

Switch to Japanese! マンガなどを読めるし~

ええ、東方Projectの同人誌を日本語で読む。漢字を分からないとkanji.sljfaq.orgで書く。 it's not very efficient in real time but it's a very efficient use of my time
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Aug 29 2017, 14:10
Post #5074
Noni



Hataraku Noni-sama
***********
Group: Catgirl Camarilla
Posts: 12,924
Joined: 19-February 16
Level 500 (Ponyslayer)


QUOTE(Scremaz @ Aug 29 2017, 11:48) *

let's say i have a trend curve on an excel graph. it's a log one, so it's in the form

y = A * ln(x) + B

now, i need a way (a function) to retrieve those A and B parameters and assign them to cells. doing it without a graph but starting from the vector of datas may be fine as well, as well as i have those values into cells.

[edit]: oh, and no macros, just in case

[edit2]: oh, and a way to conditional formatting a cell containing numbers (0 or 2 decimal digits, for example) depending on the value of a certain other cell

Make 2columns 1 with X value other with y value.
Make a scatter X/y plot graph.
Select data points and right click add trendline.
Make trendline logarithmic.
Select trendline and right click options
Add formula.
Use formula to make new table with X and calculated y.

For conditional formatting: just try a bit. You can add formula
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Aug 29 2017, 14:18
Post #5075
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(DJNoni @ Aug 29 2017, 14:10) *

Make 2columns 1 with X value other with y value.
Make a scatter X/y plot graph.
Select data points and right click add trendline.
Make trendline logarithmic.
Select trendline and right click options
Add formula.
Use formula to make new table with X and calculated y.

there's a chance it won't matter anymore. i'll lose a bit of precision, but at least i won't need a train of datas.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Aug 29 2017, 16:21
Post #5076
Sapo84



Deus lo vult
********
Group: Gold Star Club
Posts: 3,332
Joined: 14-June 09
Level 500 (Ponyslayer)


QUOTE(sickentide @ Aug 29 2017, 02:35) *

fixed the thing where ajaxRound = true keeps riddleanswer from gaining focus Attached File  HentaiverseMonsterbation.1.2.0.6.user.js.zip ( 14.93k ) Number of downloads: 149


Just curious, what is the reasoning behind
CODE
for ( var i = setTimeout(function(){}, 0); i > 0; i-- ) window.clearInterval(i);


I'm asking because I did a quick test and in my browser window opened 7 hours ago the result of setTimeout(function(){}, 0) is over 90,000, and the whole function takes ~20ms (on a pretty fast pc).
If you don't really need to clear all existing timeouts you should probably put a hard limit on the number of iterations, to prevent corner cases like browser window opened by 10+ hours.

This post has been edited by Sapo84: Aug 29 2017, 16:21
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Aug 29 2017, 20:13
Post #5077
KitsuneAbby



Curse God of the Hentai Shrine
**********
Group: Catgirl Camarilla
Posts: 7,566
Joined: 12-July 14
Level 500 (Ponyslayer)


QUOTE(sickentide @ Aug 29 2017, 02:35) *

fixed the thing where ajaxRound = true keeps riddleanswer from gaining focus Attached File  HentaiverseMonsterbation.1.2.0.6.user.js.zip ( 14.93k ) Number of downloads: 149


all right, how do you say "polymalaka" in mandarin?


No setting added/modified I hope? It's really my bane between the updates.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Aug 29 2017, 22:35
Post #5078
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)


i updated my optimizers. relevant changes:
  • a Base spreadsheet to show base values for your gears
  • a bugfix for the Base algorythm: now it should calculate base values with a way higher precision. tested with blackjac's rapier and it gave me a 0.04 error (previously it was 0.4, so 10 times less). waiting feedbacks, since it's the same algorythm that could be used for equip comparison
  • some minor graphic changes here and there. mostly on the mage sheet.

here they are:

QUOTE
Attached File  Forge_optimizer___1H_Power_1.20.zip ( 289.98k ) Number of downloads: 288

Attached File  Forge_optimizer___DW_Shade_1.20.zip ( 368.37k ) Number of downloads: 155

Attached File  Forge_optimizer___Mage_1.20.zip ( 272.28k ) Number of downloads: 252


This post has been edited by Scremaz: Aug 29 2017, 22:36
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Aug 29 2017, 23:43
Post #5079
Uncle Stu



The new barely sober barely sane but fully grumpy edition
**********
Group: Gold Star Club
Posts: 9,899
Joined: 4-February 12
Level 500 (Ponyslayer)


1.20? Is this a newer version of the one i use?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Aug 29 2017, 23:49
Post #5080
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(Uncle Stu @ Aug 29 2017, 23:43) *

1.20? Is this a newer version of the one i use?

yep. yours was a prototype. you'd better upgrade as well.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post


291 Pages V « < 252 253 254 255 256 > » 
Reply to this topicStart new topic
3 User(s) are reading this topic (3 Guests and 0 Anonymous Users)
0 Members:

 


Lo-Fi Version Time is now: 12th January 2025 - 10:17