|
|
|
HV Script Thread, Discuss your creations. Includes guidelines and infos for script creation (2020-02-28 upd) |
|
Aug 29 2017, 00:19
|
f4tal
Group: Members
Posts: 2,662
Joined: 10-January 13
|
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!
|
|
|
Aug 29 2017, 00:23
|
piyin
Group: Gold Star Club
Posts: 10,794
Joined: 4-February 09
|
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.
|
|
|
|
|
|
Aug 29 2017, 00:23
|
Scremaz
Group: Gold Star Club
Posts: 24,304
Joined: 18-January 07
|
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
|
|
|
|
|
|
Aug 29 2017, 00:30
|
sickentide
Group: Catgirl Camarilla
Posts: 1,355
Joined: 31-August 10
|
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. ω τι είναι η μαλακία μου
|
|
|
|
|
|
Aug 29 2017, 00:49
|
Scremaz
Group: Gold Star Club
Posts: 24,304
Joined: 18-January 07
|
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)
|
|
|
|
|
|
Aug 29 2017, 01:50
|
Superlatanium
Group: Gold Star Club
Posts: 7,573
Joined: 27-November 13
|
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=53281but it seems to have been deleted. The server-side part still works, as far as I know
|
|
|
|
|
|
Aug 29 2017, 02:18
|
RoadShoe
Group: Catgirl Camarilla
Posts: 3,241
Joined: 9-August 15
|
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.
|
|
|
Aug 29 2017, 02:35
|
sickentide
Group: Catgirl Camarilla
Posts: 1,355
Joined: 31-August 10
|
fixed the thing where ajaxRound = true keeps riddleanswer from gaining focus
HentaiverseMonsterbation.1.2.0.6.user.js.zip ( 14.93k )
Number of downloads: 149QUOTE(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?
|
|
|
Aug 29 2017, 11:20
|
BMXArena
Group: Members
Posts: 123
Joined: 1-December 10
|
QUOTE(sickentide @ Aug 29 2017, 09:35) fixed the thing where ajaxRound = true keeps riddleanswer from gaining focus
HentaiverseMonsterbation.1.2.0.6.user.js.zip ( 14.93k )
Number of downloads: 149all right, how do you say "polymalaka" in mandarin? Switch to Japanese! マンガなどを読めるし~
|
|
|
|
|
|
Aug 29 2017, 11:48
|
Scremaz
Group: Gold Star Club
Posts: 24,304
Joined: 18-January 07
|
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
|
|
|
|
|
|
Aug 29 2017, 13:02
|
diamondg
Newcomer
Group: Gold Star Club
Posts: 32
Joined: 14-February 16
|
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.)
|
|
|
|
|
|
Aug 29 2017, 13:34
|
Scremaz
Group: Gold Star Club
Posts: 24,304
Joined: 18-January 07
|
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?
|
|
|
|
|
|
Aug 29 2017, 13:37
|
sickentide
Group: Catgirl Camarilla
Posts: 1,355
Joined: 31-August 10
|
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
|
|
|
|
|
|
Aug 29 2017, 14:10
|
Noni
Group: Catgirl Camarilla
Posts: 12,924
Joined: 19-February 16
|
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
|
|
|
|
|
|
Aug 29 2017, 14:18
|
Scremaz
Group: Gold Star Club
Posts: 24,304
Joined: 18-January 07
|
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.
|
|
|
|
|
|
Aug 29 2017, 16:21
|
Sapo84
Group: Gold Star Club
Posts: 3,332
Joined: 14-June 09
|
QUOTE(sickentide @ Aug 29 2017, 02:35) fixed the thing where ajaxRound = true keeps riddleanswer from gaining focus
HentaiverseMonsterbation.1.2.0.6.user.js.zip ( 14.93k )
Number of downloads: 149Just 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
|
|
|
|
|
|
Aug 29 2017, 20:13
|
KitsuneAbby
Group: Catgirl Camarilla
Posts: 7,566
Joined: 12-July 14
|
QUOTE(sickentide @ Aug 29 2017, 02:35) fixed the thing where ajaxRound = true keeps riddleanswer from gaining focus
HentaiverseMonsterbation.1.2.0.6.user.js.zip ( 14.93k )
Number of downloads: 149all right, how do you say "polymalaka" in mandarin? No setting added/modified I hope? It's really my bane between the updates.
|
|
|
|
|
|
Aug 29 2017, 22:35
|
Scremaz
Group: Gold Star Club
Posts: 24,304
Joined: 18-January 07
|
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
Forge_optimizer___1H_Power_1.20.zip ( 289.98k )
Number of downloads: 288
Forge_optimizer___DW_Shade_1.20.zip ( 368.37k )
Number of downloads: 155
Forge_optimizer___Mage_1.20.zip ( 272.28k )
Number of downloads: 252 This post has been edited by Scremaz: Aug 29 2017, 22:36
|
|
|
|
|
|
Aug 29 2017, 23:43
|
Uncle Stu
Group: Gold Star Club
Posts: 9,899
Joined: 4-February 12
|
1.20? Is this a newer version of the one i use?
|
|
|
Aug 29 2017, 23:49
|
Scremaz
Group: Gold Star Club
Posts: 24,304
Joined: 18-January 07
|
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.
|
|
|
3 User(s) are reading this topic (3 Guests and 0 Anonymous Users)
0 Members:
|
|
|
|
|