 |
 |
 |
[Script] Monsterbation 1.4.1.2, A comprehensive hovering script for HentaiVerse and ISK. Including CrunkJuice 1.3.0, an out-of-battle script |
|
Nov 4 2018, 13:05
|
sickentide
Group: Catgirl Camarilla
Posts: 1,355
Joined: 31-August 10

|
QUOTE(balengooo @ Nov 4 2018, 12:41)  I tried to debug but it's far above my ability and don't even found where to read the code being executed, but if there is something I can do to help point out the problem, please ask.
i suspect that something crashes one of the functions called at the end of battle before the script gets to the local storage cleanup. i tested the settings you posted and they do not seem to be the issue, so my questions would be: 1. which browser are you using, and have you tried the latest versions of chrome or firefox (the officially supported browsers)? 2. when you updated the script, did you make sure that any newly introduced settings are set to a valid value?
|
|
|
|
 |
|
Nov 4 2018, 13:29
|
balengooo
Group: Gold Star Club
Posts: 359
Joined: 14-April 13

|
I think you already pointed out the problem: I run an olf version of firefox (56), because I use some plugins that are not compatible with the new ones..... (about point 2, yes, I usually take the new version of the script and update it comparing text and changing only the setting I want to keep).
So I have to disable tracking?
(As soon as possible I'm going to try to access HentaiVerse on another PC with FF up to date, to check if that solves the problem)
This post has been edited by balengooo: Nov 4 2018, 13:38
|
|
|
|
 |
|
Nov 4 2018, 13:54
|
sickentide
Group: Catgirl Camarilla
Posts: 1,355
Joined: 31-August 10

|
QUOTE(balengooo @ Nov 4 2018, 13:29)  So I have to disable tracking?
the likeliest culprits are the ShowDrops, ShowUsage and ShowDamage functions, so it may help to fiddle with the related settings, or try commenting out each function around line 543 and see if that fixes anything
|
|
|
Nov 4 2018, 14:23
|
balengooo
Group: Gold Star Club
Posts: 359
Joined: 14-April 13

|
ok, I'll make some attempts. I'll take some time because I'll have to wait for new RE....
When I'll have news I'll post.
thanks
|
|
|
Nov 4 2018, 17:37
|
balengooo
Group: Gold Star Club
Posts: 359
Joined: 14-April 13

|
The problem is into ShowDamage. If it is disabled the localsotrage is cleaned. The same if is set trackDamage = false.
I'll try to look into that function. OK, It's too complicated for me. I'll keep that function disabled. No big problem.
Thanks
This post has been edited by balengooo: Nov 4 2018, 18:08
|
|
|
|
 |
|
Nov 4 2018, 19:15
|
sickentide
Group: Catgirl Camarilla
Posts: 1,355
Joined: 31-August 10

|
QUOTE(balengooo @ Nov 4 2018, 17:37)  The problem is into ShowDamage.
all right, thanks for helping me pinpoint the cause. now to figure out which part of the function breaks compatibility. does the console give any useful error messages? could be declaring and invoking functions in one instruction. if you don't mind, i'd like you to take lines 1528-1529: CODE (combatlog.ptaken[type] + combatlog.mtaken[type]).toLocaleString() : '') + '</td>' : ''); }, total = { 'pdealt': Column('pdealt', ''), 'mdealt': Column('mdealt', ''), and replace them with: CODE (combatlog.ptaken[type] + combatlog.mtaken[type]).toLocaleString() : '') + '</td>' : ''); }; var total = { 'pdealt': Column('pdealt', ''), 'mdealt': Column('mdealt', ''),
|
|
|
|
 |
|
Nov 4 2018, 23:56
|
BlueWaterSplash
Group: Members
Posts: 3,418
Joined: 15-March 11

|
QUOTE(sickentide @ Oct 30 2018, 21:17)  this can happen when you enter battle in one browser and exit it in another. you can fix it by entering and exiting battle in the affected browser. i guess i could have it delete monster data whenever you're out of battle, but usage of more than one browser (if that is even the cause here and this isn't a new, undocumented bug) is a rather exotic case I've only ever had one browser running but I did have a multiple E-hentai forum windows open at the time. Usually the problem won't occur if I have only one E-hentai window open, however today it's happening consistently with only the one E-hentai window and one hentaiverse.org window open. I can still fix it by opening a new alt.hentaiverse.org window which will have the correct monster data. This might also be the result of having two script versions installed, although the old 1.2.2.4 has been turned off since I installed 1.2.4.1
|
|
|
|
 |
|
Nov 5 2018, 01:00
|
sickentide
Group: Catgirl Camarilla
Posts: 1,355
Joined: 31-August 10

|
it shouldn't be affected by e-hentai and if one script is turned off it shouldn't affect the other. do you get any console errors at the end of a battle prior to the problem occuring in the next? as a hotfix, you can go to line 1599 where it says CODE if ( document.getElementById('textlog') || document.getElementById('riddlemaster') || document.URL.indexOf('Battle') > -1 ) return; and replace it with this: CODE if ( document.getElementById('textlog') || document.getElementById('riddlemaster') ) return; localStorage.removeItem('HVmonsterData'); if ( document.URL.indexOf('Battle') > -1 ) return; This post has been edited by sickentide: Nov 5 2018, 01:07
|
|
|
|
 |
|
Nov 5 2018, 03:38
|
BlueWaterSplash
Group: Members
Posts: 3,418
Joined: 15-March 11

|
I don't know what a console error is, I don't think I get any notification of an error. I believe it may only affect random encounters, and only on some days for reasons I haven't been able to figure out. It's not a real problem since I could always fix it by opening a second alt.hentaiverse window which I usually do anyway.
|
|
|
Nov 5 2018, 09:10
|
sickentide
Group: Catgirl Camarilla
Posts: 1,355
Joined: 31-August 10

|
QUOTE(BlueWaterSplash @ Nov 5 2018, 02:38)  I don't know what a console error is, I don't think I get any notification of an error.
in most browsers you can right click > inspect to open developer tools. this includes a console that prints out javascript errors, among other things. to see what causes the error you encounter, it would be helpful to know if any such errors uccur at the beginning or end of battle
|
|
|
|
 |
|
Nov 8 2018, 23:50
|
BlueWaterSplash
Group: Members
Posts: 3,418
Joined: 15-March 11

|
I just figured out that I have to disable clickEverywhere to open the console. I didn't see any errors even when the bug occurred, at least not at the end of a previous battle. However it could be that I am not using it correctly or didn't have the console open at the crucial time. If the beginning of battle is a crucial time, the Random Encounter window is not yet open so neither is its console.
However I believe my alt.hentaiverse Arena window from the previous battle was left open when a messed up Random Encounter in a new hentaiverse.org window initiated and reported no console errors.
I've also encountered a few other monster server data related errors today. In some arenas the monster data would refuse to show up for the entire arena. The problem fixed itself after the arena was completed and a new one was started.
|
|
|
|
 |
|
Nov 9 2018, 17:28
|
sickentide
Group: Catgirl Camarilla
Posts: 1,355
Joined: 31-August 10

|
oof. you don't happen to switch between alt and main a lot, do you? local storage between the two is separate. there should probably be a FAQ of some sorts, and this should be in it
|
|
|
Dec 2 2018, 23:36
|
BlueWaterSplash
Group: Members
Posts: 3,418
Joined: 15-March 11

|
I usually play on alt, but whenever I click the link to start a Random Encounter it opens up a new main window, which I then close. Is there any other way to do it?
In any case, since a couple weeks ago the problem has gone away completely. I didn't change anything with the scripts and still have the old one installed but inactive. I did however delete certain things in the Firefox settings and fix some hardware bugs with my computer. Physically cleaned out the power supply and installed a new battery, since then this game runs a tiny bit faster.
|
|
|
|
 |
|
Dec 3 2018, 00:02
|
blue penguin
Group: Gold Star Club
Posts: 10,046
Joined: 24-March 12

|
QUOTE(BlueWaterSplash @ Dec 2 2018, 21:36)  I usually play on alt, but whenever I click the link to start a Random Encounter it opens up a new main window, which I then close. Is there any other way to do it?
In any case, since a couple weeks ago the problem has gone away completely. I didn't change anything with the scripts and still have the old one installed but inactive. I did however delete certain things in the Firefox settings and fix some hardware bugs with my computer. Physically cleaned out the power supply and installed a new battery, since then this game runs a tiny bit faster. JS cannot really know the window addressing of your graphical system. If you start an RE and then keep playing in that window, when you start a new RE *from the same gallery/front page* then it will fire in the same window. But that is the only corner case in which you can force an RE to use a specific window, this is because most browsers keep track of the windows each page opens. Anything else will always open a new window for an RE. P.S. There is a userscript somewhere to move REs into alt. But that still opens a new window.
|
|
|
|
 |
|
Dec 3 2018, 01:43
|
sickentide
Group: Catgirl Camarilla
Posts: 1,355
Joined: 31-August 10

|
QUOTE(BlueWaterSplash @ Dec 2 2018, 22:36)  I usually play on alt, but whenever I click the link to start a Random Encounter it opens up a new main window, which I then close. Is there any other way to do it?
QUOTE(blue penguin @ Dec 2 2018, 23:02)  P.S. There is a userscript somewhere to move REs into alt. But that still opens a new window.
there are several, including the RE timer system included in crunk juice (which also avoids opening a new window) - if you want to give it a try, there aren't that many settings to set up and everything you don't need can be disabled. opening a new window is not a problem as long as they navigate to the same domain i should also mention that simply starting the battle on a different domain should not break the script, but if you perform one action and switch domains afterwards, the data needed to set up the monster info will no longer load This post has been edited by sickentide: Dec 3 2018, 03:34
|
|
|
|
 |
|
Dec 5 2018, 18:00
|
我叫木头
Group: Gold Star Club
Posts: 371
Joined: 31-December 14

|
Hi monster HP will be covered by monster info, how could HP and info be both displayed without covered ? could you please provide some support ? thanks
|
|
|
Dec 5 2018, 19:58
|
sickentide
Group: Catgirl Camarilla
Posts: 1,355
Joined: 31-August 10

|
QUOTE(我叫木头 @ Dec 5 2018, 17:00)  monster HP will be covered by monster info, how could HP and info be both displayed without covered ?
HP should appear above the monster info. if they overlap for you, you can try changing the monster info's font size by going to line 487: CODE '.minfo { display: table; position: absolute; left: 1067px; min-width: 170px; text-align: left; font-size: 9px;' + and changing it to a different value until it fits: CODE '.minfo { display: table; position: absolute; left: 1067px; min-width: 170px; text-align: left; font-size: 8px;' +
|
|
|
|
 |
|
Dec 6 2018, 08:22
|
我叫木头
Group: Gold Star Club
Posts: 371
Joined: 31-December 14

|
QUOTE(sickentide @ Dec 5 2018, 19:58)  HP should appear above the monster info. if they overlap for you, you can try changing the monster info's font size by going to line 487: CODE '.minfo { display: table; position: absolute; left: 1067px; min-width: 170px; text-align: left; font-size: 9px;' + and changing it to a different value until it fits: CODE '.minfo { display: table; position: absolute; left: 1067px; min-width: 170px; text-align: left; font-size: 8px;' + I changed the font-size to 7 then I can see HP. Thank You!
|
|
|
|
 |
|
Dec 10 2018, 14:48
|
KitsuneAbby
Group: Catgirl Camarilla
Posts: 7,572
Joined: 12-July 14

|
Sicken, the Jenga's database API has moved. It is now hosted at [ api.niblseed.com] http://api.niblseed.com:8080. You need to update Monsterbation in accordance with that. (IMG:[ invalid] style_emoticons/default/wink.gif) For those who want to scan monsters and update the database, find the following lines: QUOTE request = 'https://api.nibl.co.uk:8080/hentaiverse/monsters/' + monsterData.id[0]; (somwhere around line 700) QUOTE xmlhttp.open('PUT', 'https://api.nibl.co.uk:8080/hentaiverse/monster', true); (somwhere around line 1000) With: QUOTE request = 'http://api.niblseed.com:8080/hentaiverse/monsters/' + monsterData.id[0]; QUOTE xmlhttp.open('PUT', 'http://api.niblseed.com:8080/hentaiverse/monster', true); Yes I know, it's not https anymore, but unfortunately I have compatibility issues to enable that. The monster list page still uses https though. (IMG:[ invalid] style_emoticons/default/smile.gif) This post has been edited by decondelite: Dec 15 2018, 23:03
|
|
|
|
 |
|
Dec 16 2018, 13:08
|
sickentide
Group: Catgirl Camarilla
Posts: 1,355
Joined: 31-August 10

|
QUOTE(decondelite @ Dec 10 2018, 13:48)  Yes I know, it's not https anymore, but unfortunately I have compatibility issues to enable that.
do you see any hope to change this? chrome and firefox block insecure requests by default when accessing HV over https, and i would prefer not forcing users to change those settings
|
|
|
8 User(s) are reading this topic (4 Guests and 0 Anonymous Users)
|
 |
 |
 |
|