Welcome Guest ( Log In | Register )

1214 Pages V « < 956 957 958 959 960 > »   
Reply to this topicStart new topic
> Ask the Experts!, Ask anything about hentaiverse. Hints for beginners

 
post Nov 22 2022, 18:15
Post #19141
Basara Nekki



A poor man with a star.
**********
Group: Gold Star Club
Posts: 7,714
Joined: 13-September 12
Level 500 (Ponyslayer)


QUOTE(Thiaguinho-sama @ Nov 22 2022, 11:58) *

also, does Tokenizer actually makes much difference?
been wondering if I should get Tokenizer 1 to unlock monsters faster
also so I can start upgrading them for higher gift factor


I think it makes a difference, depending on how much you play.

In my case, when I purchased Tokenizer 1 (08/07/2017) I had already opened 44 slots (since 2014 or 2015, I don't remember exactly). I purchased Tokenizer 2 on 04/08/2017, and had 46 slots. Since then I opened the other 54 slots until 01/01/2019 (less than a year and a half since I purchased Tokenizer). So I believe this hath perk helped me release the slots faster.

I only purchased Tokenizer 3 in 17/01/2020.

And I do not recommend you to increase the gift factor of your monsters now, but only after you release all slots. For monsters with low PL the gift factor does not make much difference. This only starts to make any difference if the PL is greater than 1500, when monsters start to appear more often in battles.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Nov 22 2022, 18:19
Post #19142
Thiaguinho-sama



Newcomer
**
Group: Members
Posts: 97
Joined: 31-March 13
Level 379 (Dovahkiin)


QUOTE(jantch @ Nov 22 2022, 12:31) *

CODE
https://hentaiverse.org/
is the default

CODE
http://alt.hentaiverse.org/
is the alt site

You can start a battle on one and continue it on the other.

thanks, I'll try that next time it starts lagging
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Nov 22 2022, 18:26
Post #19143
rinruririn



Freelance Translator
*******
Group: Gold Star Club
Posts: 1,152
Joined: 23-April 12
Level 455 (Dovahkiin)


QUOTE(Darkhuel @ Nov 19 2022, 16:56) *

Question for the experts:


Does the damage from Spike Shield scale with Elemental Proficiency? e.g. the augmented Protection spell.

Would like to know if I am wasting time and resources during battles, casting elemental spells as a melee persona, raising the proficiency, to potentially increase the damage dealt when monsters connect.


If you're melee, I think the only good reason to cast elemental spells in combat would be to raise proficiency along the way (at the cost of mana) for an eventual switch to a mage build.

But Spike Shield is a passive ability that adds an additional effect to the Protection spell. If you're already keeping the Protection spell up during combat, there's no additional cost other than spending skill points to get the Spike Shield ability. Even if the damage is negligible, Spike Shield can cause status effects depending on the element of the shield.

You can look at this table to see the effects:
https://ehwiki.org/wiki/Spells#Status_Effects

My own question is which element is the best for Spike Shield for 1H style? And other combat styles.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Nov 22 2022, 18:30
Post #19144
Thiaguinho-sama



Newcomer
**
Group: Members
Posts: 97
Joined: 31-March 13
Level 379 (Dovahkiin)


QUOTE(Basara Nekki @ Nov 22 2022, 13:15) *

I think it makes a difference, depending on how much you play.

In my case, when I purchased Tokenizer 1 (08/07/2017) I had already opened 44 slots (since 2014 or 2015, I don't remember exactly). I purchased Tokenizer 2 on 04/08/2017, and had 46 slots. Since then I opened the other 54 slots until 01/01/2019 (less than a year and a half since I purchased Tokenizer). So I believe this hath perk helped me release the slots faster.

I only purchased Tokenizer 3 in 17/01/2020.

And I do not recommend you to increase the gift factor of your monsters now, but only after you release all slots. For monsters with low PL the gift factor does not make much difference. This only starts to make any difference if the PL is greater than 1500, when monsters start to appear more often in battles.

huuuuum
I see
well so far i've been playing daily, for now
in the long run I'm thinking of maybe saving Credits to create bounties
see if some stuff I want gets translated lol
so I'm probably gonna keep playing more or less daily
reason I'm wondering about Tokenizer is because most Perks seem kinda meh
with it at least I would unlock monster slots slightly faster
and yeah, I would first unlock all before upgrading them

should I level up my monsters after unlocking all?
level 500, which is when they start dropping high grade material costs around 94k
level 750, which is when they stop dropping low grade material costs around 360k
ideal would be level 1500 since it gives only high grade material, but that seems to cost like 7.6m lol
if my math isn't wrong of course

I also thought about start upgrading and level up them when i unlocked around 50
to maybe try get more gifts
though I'm just at 17 monsters so far lol

This post has been edited by Thiaguinho-sama: Nov 22 2022, 18:33
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Nov 22 2022, 20:38
Post #19145
Basara Nekki



A poor man with a star.
**********
Group: Gold Star Club
Posts: 7,714
Joined: 13-September 12
Level 500 (Ponyslayer)


QUOTE(Thiaguinho-sama @ Nov 22 2022, 13:30) *

should I level up my monsters after unlocking all?


In my case, I gave crystals to the monsters just enough to fill the morale bar (when the bar was under half). At first, only the crystals I won playing were enough (without Crystarium). Then I started buying a few crystal packs. And when that started to get expensive, I started using Happy Pills (with Extra Strength Formula hath perk).

I started to invest in increasing monsters PL only when my financial situation improved. (IMG:[invalid] style_emoticons/default/heh.gif)
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Nov 22 2022, 21:32
Post #19146
Thiaguinho-sama



Newcomer
**
Group: Members
Posts: 97
Joined: 31-March 13
Level 379 (Dovahkiin)


QUOTE(Basara Nekki @ Nov 22 2022, 15:38) *

In my case, I gave crystals to the monsters just enough to fill the morale bar (when the bar was under half). At first, only the crystals I won playing were enough (without Crystarium). Then I started buying a few crystal packs. And when that started to get expensive, I started using Happy Pills (with Extra Strength Formula hath perk).

I started to invest in increasing monsters PL only when my financial situation improved. (IMG:[invalid] style_emoticons/default/heh.gif)

huuuuuuuuuuum, I see, thanks
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Nov 23 2022, 00:02
Post #19147
Basara Nekki



A poor man with a star.
**********
Group: Gold Star Club
Posts: 7,714
Joined: 13-September 12
Level 500 (Ponyslayer)


QUOTE(Thiaguinho-sama @ Nov 22 2022, 16:32) *

huuuuuuuuuuum, I see, thanks


About your question (sent by MM), unfortunately I do not have data comparing the amount of gifts between a PL 500 monster with another of low PL. The impression I have is that, over time, the difference is minimal (not to say that it is almost none). What changes is the relationship between Low/Mid/High Grade Material. But as material prices are currently low (compared to the values of years ago), I think right now is not worth the investment in Crystal Packs.

What you can do is invest in just 1 monster, and compare the results with your other monsters. If you realize that the results were good then you apply to others.

At the moment I think it's more advantageous for you to invest in hath perks (Tokenizer, Dæmon Duality, EXP perks) and trainings (Adept Learner, Scavenger, Quartermaster, Luck of the Draw, Archaeologist).

Oh, and I decided to post the answer here so that other people, who may have the same doubt as you, can read my comment.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Nov 23 2022, 03:59
Post #19148
Thiaguinho-sama



Newcomer
**
Group: Members
Posts: 97
Joined: 31-March 13
Level 379 (Dovahkiin)


QUOTE(Basara Nekki @ Nov 22 2022, 19:02) *

About your question (sent by MM), unfortunately I do not have data comparing the amount of gifts between a PL 500 monster with another of low PL. The impression I have is that, over time, the difference is minimal (not to say that it is almost none). What changes is the relationship between Low/Mid/High Grade Material. But as material prices are currently low (compared to the values of years ago), I think right now is not worth the investment in Crystal Packs.

What you can do is invest in just 1 monster, and compare the results with your other monsters. If you realize that the results were good then you apply to others.

At the moment I think it's more advantageous for you to invest in hath perks (Tokenizer, Dæmon Duality, EXP perks) and trainings (Adept Learner, Scavenger, Quartermaster, Luck of the Draw, Archaeologist).

Oh, and I decided to post the answer here so that other people, who may have the same doubt as you, can read my comment.

hum, I see, I'll leave level up monsters for when I finish everything else then
at least max the most important trainings first I guess
I'm still unsure on what I'll do about the monsters
it kinda of annoys me leave them all at low level
but it's such a money sink lol

as for replying here, it's okay so don't worry
I got distracted when messaging some people in MM and mixed up where I had to reply you lol
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Nov 23 2022, 09:11
Post #19149
a6080160801



Newcomer
*
Group: Members
Posts: 36
Joined: 4-September 22
Level 388 (Dovahkiin)


I want to know how to use HV Utils to set the equipment data like the link below.

https://forums.e-hentai.org/index.php?showt...p;#entry5917970

As you can see, he can set the specific "word" to specific "color".
And he can set different rarity with different color.
He also can set some value 50%~74% orange color and 75%~100% red color.
I want to know how to edit HV Utils code to like that.

===========================11/24====================

It seems that he manually posts those value.
So maybe there is no way to post those value color automatically now?

This post has been edited by a6080160801: Nov 24 2022, 05:20
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Nov 25 2022, 20:28
Post #19150
Hinoka



Active Poster
*******
Group: Catgirl Camarilla
Posts: 2,033
Joined: 28-April 13
Level 500 (Ponyslayer)


I have an error in my Monsterbation script. The Monsterbation Configuration Linter says the error is here. Could anyone help me out I'm not that savvy with code. Thanks a lot!


// key bindings
bind: "\
Bind(KEY_SPACE, Any, Strongest([Cast('Cure'), HoverAction(Cast('Cure'), true)]));\
Bind(KEY_Z, Any, ToggleHover);\
Bind(KEY_S, Any, Impulse(Toggle('Spirit')));\
Bind(KEY_A, Strongest([Use(4), Cast('Full-Cure'), Cast('Cure')]));\
Bind(KEY_A, Shift, Strongest([Use(7), Use(4), Cast('Full-Cure'), Cast('Cure')]));\
Bind(KEY_A, Ctrl, Strongest([Use(7), Use(4), Cast('Full-Cure'), Cast('Cure')]));\
Bind(KEY_A, Alt, Strongest([Use(7), Use(4), Cast('Full-Cure'), Cast('Cure')]));\
Bind(KEY_X, Strongest([Use('s1'), Use('s4'), Use('s2'), Use(2), Use(1)]));\
Bind(KEY_X, Shift, Strongest([Use('s1'), Use('s4'), Use('s2'), Use('n6'), Use(2), Use(1)]));\
Bind(KEY_X, Ctrl, Strongest([Use('s1'), Use('s4'), Use('s2'), Use('n5'), Use(2), Use(1)]));\
Bind(KEY_X, Alt, Strongest([Use('s1'), Use('s4'), Use('s2'), Use('n1'), Use(2), Use(1)]));\
Bind(KEY_C, Any, Cast('Regen'));\
Bind(KEY_V, Any, Cast(damage));\
Bind(KEY_Q, Impulse(Use(5)));\
Bind(KEY_Q, Shift, Impulse(Strongest([Use(8), Use(5)])));\
Bind(KEY_Q, Ctrl, Impulse(Strongest([Use(8), Use(5)])));\
Bind(KEY_Q, Alt, Impulse(Strongest([Use(8), Use(5)])));\
Bind(KEY_W, Any, Impulse(Use(3)));\
Bind(KEY_E, Impulse(Use(6)));\
Bind(KEY_E, Shift, Impulse(Strongest([Use(9), Use(6)])));\
Bind(KEY_E, Ctrl, Impulse(Strongest([Use(9), Use(6)])));\
Bind(KEY_E, Alt, Impulse(Strongest([Use(9), Use(6)])));\
Bind(KEY_P, Settings);\
Bind(KEY_1, Any, Strongest([TargetMonster(1), Cast('Imperil')]));\
Bind(KEY_2, Any, Strongest([TargetMonster(4), Cast('Imperil')]));\
Bind(KEY_3, Any, Strongest([TargetMonster(7), Cast('Imperil')]));\
",
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Nov 25 2022, 20:32
Post #19151
Noni



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


QUOTE(Hinoka @ Nov 25 2022, 19:28) *

I have an error in my Monsterbation script. The Monsterbation Configuration Linter says the error is here. Could anyone help me out I'm not that savvy with code. Thanks a lot!
// key bindings
bind: "\
Bind(KEY_SPACE, Any, Strongest([Cast('Cure'), HoverAction(Cast('Cure'), true)]));\
Bind(KEY_Z, Any, ToggleHover);\
Bind(KEY_S, Any, Impulse(Toggle('Spirit')));\
Bind(KEY_A, Strongest([Use(4), Cast('Full-Cure'), Cast('Cure')]));\
Bind(KEY_A, Shift, Strongest([Use(7), Use(4), Cast('Full-Cure'), Cast('Cure')]));\
Bind(KEY_A, Ctrl, Strongest([Use(7), Use(4), Cast('Full-Cure'), Cast('Cure')]));\
Bind(KEY_A, Alt, Strongest([Use(7), Use(4), Cast('Full-Cure'), Cast('Cure')]));\
Bind(KEY_X, Strongest([Use('s1'), Use('s4'), Use('s2'), Use(2), Use(1)]));\
Bind(KEY_X, Shift, Strongest([Use('s1'), Use('s4'), Use('s2'), Use('n6'), Use(2), Use(1)]));\
Bind(KEY_X, Ctrl, Strongest([Use('s1'), Use('s4'), Use('s2'), Use('n5'), Use(2), Use(1)]));\
Bind(KEY_X, Alt, Strongest([Use('s1'), Use('s4'), Use('s2'), Use('n1'), Use(2), Use(1)]));\
Bind(KEY_C, Any, Cast('Regen'));\
Bind(KEY_V, Any, Cast(damage));\
Bind(KEY_Q, Impulse(Use(5)));\
Bind(KEY_Q, Shift, Impulse(Strongest([Use(8), Use(5)])));\
Bind(KEY_Q, Ctrl, Impulse(Strongest([Use(8), Use(5)])));\
Bind(KEY_Q, Alt, Impulse(Strongest([Use(8), Use(5)])));\
Bind(KEY_W, Any, Impulse(Use(3)));\
Bind(KEY_E, Impulse(Use(6)));\
Bind(KEY_E, Shift, Impulse(Strongest([Use(9), Use(6)])));\
Bind(KEY_E, Ctrl, Impulse(Strongest([Use(9), Use(6)])));\
Bind(KEY_E, Alt, Impulse(Strongest([Use(9), Use(6)])));\
Bind(KEY_P, Settings);\
Bind(KEY_1, Any, Strongest([TargetMonster(1), Cast('Imperil')]));\
Bind(KEY_2, Any, Strongest([TargetMonster(4), Cast('Imperil')]));\
Bind(KEY_3, Any, Strongest([TargetMonster(7), Cast('Imperil')]));\
",


No there is no error in this section. Linter can't handle the quotes, only the settings

Do you use the In-Game-Menu for settings as well? Because what you're showing us is from the script itself. MB has that, but it gets overwritten by the settings that you make through that neat GUI form in the game. If your error is there, you need to fix it there.


This post has been edited by Noni: Nov 25 2022, 20:34
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Nov 25 2022, 20:34
Post #19152
Shank



Roll for Initiative
**********
Group: Global Mods
Posts: 9,458
Joined: 19-May 12
Level 500 (Ponyslayer)


Does it fail when you use it? I think (I could be wrong) the linter only checks the code format used in monsterbation settings, and you are editing the script directly

Specifically it doesn't seem to know what
CODE
bind: "\
(line 2) and
CODE
",
(last line) are, since they aren't input in the UI (but are when modifying the script)
User is online!Profile CardPM
Go to the top of the page
+Quote Post

 
post Nov 25 2022, 22:03
Post #19153
Hinoka



Active Poster
*******
Group: Catgirl Camarilla
Posts: 2,033
Joined: 28-April 13
Level 500 (Ponyslayer)


Well I'm not sure what happened. It just stopped working again like last time after making a new persona. I fixed it since then and yeaterday I switched personas to switch staffs and it happened again. Thanks for your help I'll figure out I'll keep reinstalling and changing the settings in game. Now it appears in isekai but not persistent which is similar to last time. Earlier it wasn't showing up in isekai so that's good. Thanks again.

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

 
post Nov 26 2022, 00:31
Post #19154
Lady_Slayer



Member of the Bal'masqué
*********
Group: Catgirl Camarilla
Posts: 5,564
Joined: 20-December 16
Level 500 (Ponyslayer)


QUOTE(Hinoka @ Nov 25 2022, 12:28) *

I have an error in my Monsterbation script. The Monsterbation Configuration Linter says the error is here. Could anyone help me out I'm not that savvy with code. Thanks a lot!
// key bindings
bind: "\
Bind(KEY_SPACE, Any, Strongest([Cast('Cure'), HoverAction(Cast('Cure'), true)]));\
Bind(KEY_Z, Any, ToggleHover);\
Bind(KEY_S, Any, Impulse(Toggle('Spirit')));\
Bind(KEY_A, Strongest([Use(4), Cast('Full-Cure'), Cast('Cure')]));\
Bind(KEY_A, Shift, Strongest([Use(7), Use(4), Cast('Full-Cure'), Cast('Cure')]));\
Bind(KEY_A, Ctrl, Strongest([Use(7), Use(4), Cast('Full-Cure'), Cast('Cure')]));\
Bind(KEY_A, Alt, Strongest([Use(7), Use(4), Cast('Full-Cure'), Cast('Cure')]));\
Bind(KEY_X, Strongest([Use('s1'), Use('s4'), Use('s2'), Use(2), Use(1)]));\
Bind(KEY_X, Shift, Strongest([Use('s1'), Use('s4'), Use('s2'), Use('n6'), Use(2), Use(1)]));\
Bind(KEY_X, Ctrl, Strongest([Use('s1'), Use('s4'), Use('s2'), Use('n5'), Use(2), Use(1)]));\
Bind(KEY_X, Alt, Strongest([Use('s1'), Use('s4'), Use('s2'), Use('n1'), Use(2), Use(1)]));\
Bind(KEY_C, Any, Cast('Regen'));\
Bind(KEY_V, Any, Cast(damage));\
Bind(KEY_Q, Impulse(Use(5)));\
Bind(KEY_Q, Shift, Impulse(Strongest([Use(8), Use(5)])));\
Bind(KEY_Q, Ctrl, Impulse(Strongest([Use(8), Use(5)])));\
Bind(KEY_Q, Alt, Impulse(Strongest([Use(8), Use(5)])));\
Bind(KEY_W, Any, Impulse(Use(3)));\
Bind(KEY_E, Impulse(Use(6)));\
Bind(KEY_E, Shift, Impulse(Strongest([Use(9), Use(6)])));\
Bind(KEY_E, Ctrl, Impulse(Strongest([Use(9), Use(6)])));\
Bind(KEY_E, Alt, Impulse(Strongest([Use(9), Use(6)])));\
Bind(KEY_P, Settings);\
Bind(KEY_1, Any, Strongest([TargetMonster(1), Cast('Imperil')]));\
Bind(KEY_2, Any, Strongest([TargetMonster(4), Cast('Imperil')]));\
Bind(KEY_3, Any, Strongest([TargetMonster(7), Cast('Imperil')]));\
",


I think maybe simply remove all the backslashes. Semicolons are enough to define each key-binding.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Nov 26 2022, 10:50
Post #19155
Strykarkatt



Casual Poster
****
Group: Gold Star Club
Posts: 345
Joined: 12-December 09
Level 494 (Dovahkiin)


Does anyone know what the "Follower of Snowflake" perk actually does? (IMG:[invalid] style_emoticons/default/huh.gif)
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Nov 26 2022, 11:25
Post #19156
Noni



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


QUOTE(Strykarkatt @ Nov 26 2022, 09:50) *

Does anyone know what the "Follower of Snowflake" perk actually does? (IMG:[invalid] style_emoticons/default/huh.gif)

yes:
it gives you one Peerless Voucher for every 10m of Shrine Value that you have offered to Snowflake.

Peerless Voucher? Shrine value? See https://ehwiki.org/wiki/Items#Trophies

This post has been edited by Noni: Nov 26 2022, 11:26
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Nov 26 2022, 11:35
Post #19157
kotitonttu



Custom member title
*****
Group: Members
Posts: 739
Joined: 11-April 16
Level 343 (Dovahkiin)


I'm looking for a way to have the items listed under the spells/skills with similar buttons. Or any way where I could use them without going into another menu first.

I browsed through the scripts subforum, but everything seemed like a major overhaul. I'd preferably only change this one little thing, with as few other changes as possible.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Nov 26 2022, 11:46
Post #19158
Noni



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


QUOTE(kotitonttu @ Nov 26 2022, 10:35) *

I'm looking for a way to have the items listed under the spells/skills with similar buttons. Or any way where I could use them without going into another menu first.

I browsed through the scripts subforum, but everything seemed like a major overhaul. I'd preferably only change this one little thing, with as few other changes as possible.

Easiest way to do this is install Monsterbation. It has that function without any tweaking, but if you want you can totally customize the order etc. It is a complex and comprehensive script, but it's the only in-battle script that we have formal approval for - so you won't get banned it you use it. You can create a simpler script that does what you want, but as Monsterbation already has that, noboday has created a separate script so far.

If you need help setting up Monsterbation, or if you want to disable some of its functions, just post here and we can help.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Nov 26 2022, 12:22
Post #19159
what_is_name



Active Poster
*******
Group: Gold Star Club
Posts: 1,048
Joined: 5-May 19
Level 500 (Ponyslayer)


theoretically you can use Monsterbation and only enable the extend spell bar with items and disable all other functions, but yes it look complex.
and maybe you can use the build-in default hotkey (F1~F12) to use the items if you don't want to use Monsterbation, I use the default hotkey all the time even after I use Monsterbation

This post has been edited by what_is_name: Nov 26 2022, 12:24
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Nov 28 2022, 17:07
Post #19160
OnceForAll



Fluffy Tail Fox
*******
Group: Catgirl Camarilla
Posts: 1,636
Joined: 3-January 21
Level 500 (Ponyslayer)


QUOTE(Hinoka @ Nov 26 2022, 02:28) *
I have an error in my Monsterbation script. The Monsterbation Configuration Linter says the error is here. Could anyone help me out? I'm not that savvy with code. Thanks a lot!
(Redacted)


Hi, the author of the Monsterbation Configuration Linter here~
You only have to paste your configuration without "binds:" and leading/trailing quotes, as both Noni and Shank have answered. I have paste the main configuration into the linter:

(IMG:[pic.skk.moe] https://pic.skk.moe/eh/99.png)

As you can see, there are actually no errors at all in your configuration!

------------------------------

For those Geeks or JavaScript nuts who are interested in the original error "Unterminated string constants", lemme explain the technical details behind it.

Monsterbation Keybinds configurations are actually JavaScript. So Monsterbation is basically asking players (most of them are not programmers) to write JavaScript. That's why people make so many errors and mistakes, and that's why I make the linter in the first place. So in order to understand this strange error "Unterminated string constants", we have to go back in the history of JavaScript.

JavaScript has its own specification (ECMA 262), which is maintained by a working group called TC39. The JavaScript spec ECMA 262 contains information about how a JavaScript engine (Chrome's V8, Firefox's SpiderMonkey, Safari's JavaScriptCore, etc.) should parse and evaluate JavaScript, and which features the engine has to implement in order to be spec complaint.

JavaScript Spec (ECMA 262) doesn't officially support multi-line strings until the year 2015 when ECMAScript 2015 Spec is released. ECMAScript 2015 introduces a JavaScript syntax called "string literal templates". But back in 2001, IE 6 brought up its own syntax for multi-line string support using backslash ("\"). By the time modern browsers like Chrome and Firefox appear, there were already many websites using this unofficial backslash syntax. So Chrome and Firefox have no choice but to also support this old, unofficial, and now obsolete backslash syntax.

Monsterbation is first introduced in 2017 when the official multi-line strings syntax "string literal templates" has been released for years, it is still a successor of many previous battle-enhancing scripts (RiddleMaster Limiter, HV Monster letters to numbers CSS, MouseMagelee, HV Mouse Bindings, HVKeybindsHover, etc.) that were created many many years ago. I guess that's why the Monsterbation still contains this obsolete syntax. And I believe sickentide will not change this anytime soon. Otherwise, it will break many, many, many existing players.

I build the Monsterbation Configuration Linter on top of a tool called ESLint ( [eslint.org] https://eslint.org ). ESLint parses the JavaScript code and analyzes it without actually evaluating/executing it (this is called "static analyze"), and then it can identify JavaScript Syntax Errors if there are any.

Although nowadays almost all browsers support this obsolete "backslash" syntax (so that they are still able to open those old websites created before 2015), the ESLint doesn't support and recognize the "backslash" syntax (it can only recognize the official "string literal templates"). So ESLint throws a Syntax Error "Unterminated string constants".

We can't blame ESLint for this. This syntax is created by IE 6 back in 2001, it is never official and never makes itself into the official JavaScript Spec ECMA 262. I have tried to mitigate this issue by ignoring the backslash at the end of each line. You can check the source code here: [github.com] https://github.com/SukkaW/monsterbation-lin...ter.tsx#L24-L29 ). So when you paste this to the linter:
CODE
Bind(KEY_SPACE, Any, Strongest([Cast('Cure'), HoverAction(Cast('Cure'), true)]));\

The Linter is actually receiving this:
CODE
Bind(KEY_SPACE, Any, Strongest([Cast('Cure'), HoverAction(Cast('Cure'), true)]));

If I don't ignore the trailing backslashes, ESLint will throw a different error:
(IMG:[pic.skk.moe] https://pic.skk.moe/eh/98.png)
(The screenshot is taken from ESLint official REPL)

If you are interested in more details about how Monsterbation Configuration Linter is made, you can find its source code at GitHub: [github.com] https://github.com/SukkaW/monsterbation-linter

This post has been edited by OnceForAll: Nov 28 2022, 17:11
User is offlineProfile CardPM
Go to the top of the page
+Quote Post


1214 Pages V « < 956 957 958 959 960 > » 
Reply to this topicStart new topic
2 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
1 Members: pir3sbruno

 


Lo-Fi Version Time is now: 30th July 2025 - 00:04