Coinhive plugin

Yes, let's ban knife sales because they can be used to kill people.

Or, more closer analogy, let's ban paysafecard, Western Union transfers, etc. because they may be used by criminals.

Listen up: Technology is neither good or evil, it's how you're using it that matters. As for transparency, I plan to have the following in the big, bold, red letters on the game's itchio page:

This game contains a cryptominer software in order to generate revenue. It uses only 10% of your total computing power and runs only while the game is running. Don't like it? Feel free to play another game

This would solve any and all possible misunderstandings. As for the technicals, it would be only put in the desktop release. Also you're making mistake it'd be huge dip every 10 seconds. It would be a very small dip every millisecond as to not even be noticeable. Moreover, why do I even explain myself to someone who can't even be bothered to think of an original name and just put a bunch of question marks there?
@Rave : Please do not use red in your posts. That is reserved for moderators only. I removed it for you. You can use any color but red or blue for emphasis.
@Rave Just fyi, that's not someone who's too unoriginal to come up with a better name than ? marks. He had used special characters on the last iteration of forum software that this software cannot read and interpreted it as ? marks.

That is actually a well-known RM coder who has contributed many scripts and plugins to the community and therefore does have a bit of knowledge regarding things.
Small dip every milisecond?
Modern CPUS surely are powerful. However, you mustn't forget that for example an octa-core CPU means one core is equal to 12.5% of a CPU's whole power. So let's do a simple math.
From what I understand, you want to use 2 threads and total 10% cpu. That's 5% for one thread.
One core in a dual-core CPU is 50% of CPU power. 50% - 5% is not much loss for the player, because they still have 45% power left. The loss has been only 10%.
Quad-core means one core is 25% of max CPU power. 25% - 5% is 20%. Horrifyingly enough, the CPU core lost a fifth of its power.
A six-core CPU means one core is approximately 17.65% of CPU power. Subtract 5% from that and you're at 12.65%. Which also means the core lost almost 33% of its computational abilities.
An octa-core CPU means one core is 12.5% of total CPU power. After subtracting 5% you're at 7.5%, meaning you've lost almost half power.
Now with Intel i9 and AMD Ryzen 7 there are also 12 core CPUs, which is are 8,3% of total CPU power per thread. After subtraction of 5% you've lost more than 50% of the processing power for the game. That's not going to be small drops.

If you don't understand, here's the explanation:
Javascript is single threaded. Therefore all operations run on one logical thread. Meaning you have only one logical thread's power to run the game, not the power of the whole CPU. If you have 2 GHz per core, you just have 2 GHz of power. It also means that more CPU cores are going to suffer more, because one core is only a portion of total CPU power. For example quad core CPU means one core is 25% of the CPU's power. Which means if you subtract 10% of power of whole CPU and separate it to just 2 threads, you're going to harm each thread significantly (the second one is used by NW.js, so no big deal there, but the first one is very important, because it handles your game logic).

My 1.6 GHz quad core CPU computer runs a stock fresh game at 60 FPS with lag spikes at 54 FPS. Dedicating 20% of the core's power will definitely cause way more than just milliseconds of unnoticeable stutters. In fact dropping FPS by 12 is not unnoticeable.

And I am not alone. If we take a look at AMD Ryzen 5 CPUs, they are going to suffer big time due to being clocked at 3.2 GHz, but having 8 logical threads. AMD Ryzen 7 has 12 threads, each clocked at 3.6 GHz. Subtract 50% from this and you have 1.8 GHz, in other words only 200 MHz more than my CPU has and I already have lag spikes at 54 FPS.
Of course Intel CPUs won't suffer as much, because they offer more power per core and smaller amount of logical threads. But as you can see, unless you can figure out a way to dynamically designate threads based on CPU threads, the results are not going to be pleasant.
Why you don't do microtransaction?
Why you don't do microtransaction?
Because I'm not EA.
Because I'm not EA.
There's nothing wrong with microtransaction when use in the right way, avoiding microtransaction to block the user experience (example cut entire storylines) example in a positive way: Microtransaction in customization of some item or character.
@Rave Its time for you to listen up, young whippersnapper...

You ask why you should take advice from someone else. Is that not what a forum is for? To have a discussion with people about a topic and gain further insight into the topic? The fact that you are trying to mock my forum name, is just flat out childish. Like, seriously, are you even old enough to use these forums?? You should ALWAYS be willing to accept feedback or insight into your ideas. Both positive and constructive feedback is highly important in the continuous development of any idea! If you cannot even do that, then you will never truly progress as a person, or as a developer...

Really, If you want/have to see some reasons why you should maybe give a second thought to the things im telling you. Perhaps look at the countless plugins I had written for mv BEFORE it was even released. This included an online highscores system - something that took years to come to vx ace. Or maybe you want to look into the hundreds upon hundreds of vx ace scripts i had wrote (including online highscores, input systems, cheat code inputs, full keyboard access, custom exe's and game launchers, game updaters...)

I mean, I dont even need to go into the math for why it would impact your games performance as it seems you have already been advised of this. The fact is, it WILL impact your games performance. And keep in mind, people have a huge variance in the machine they use to game. some people have a 3rd gen i3 laptop, others have an 8th gen i9 and 1080ti graphics. Ill give you a clue tho - the people with 1080ti's (an $800+ graphics card) arent playing rm games... Use your head! If you had spent over 800 bucks on something to process high end graphics, you really think you would be playing a 2d pokemon style final fantasy rip off?? Like not. Its more likely you would be playing something with 3d graphics at least - fortnite, cod, need for speed, whatever.

At the end of the day, put crypto-miners in your game, hide them for all i care. Its not gonna impact me. Your behavior/attitude has already put me off the idea of even looking into any of your work - it could be fantastic, but here is one customer you already lost.

Last point - why did you, within your own analogy, liken yourself to a criminal?.. That's some dumb shizznizzle right there. Unless of course, you are actually aware that what your wanting to do is morally grey - to say the least.
Just out of curiosity, I did a short test.
With my 8 core cpu at 70%, I managed to earn about 0.03$ in 10 hours (I let you figure out what it'd be for a few hours with a 2 core cpu at 10%). Unless your game is thousands of hours long, you'd obviously be better off selling it for 1 or 2 $. Additionnaly it can be blocked out by some security programs or even by cuting internet connection. Using a miner won't give you much in any case. It will most certainly not help your game distribution and may even hurt further more RM games reputation.
And that is why I said a few posts ago you'd be better off putting it on Steam. Even at $0.99 a copy, if you sell even 250 copies you make more (even after you remove the $100 Steam fee from your earnings) than you would with this plug-in. As it is, if an 8 core CPU at 70% earns $0.03 after 10 hours...even if you somehow got 1,000 people playing your game at...let's just say 8 core CPU at 10% for 10 hours to make the math easier...1000 * 0.03 / 7 (as 1/7 of the CPU usage they did) = $4.29 earned. And since most don't have 8 core CPU's, you will actually get less than that.

So $4.29 per 1000 copies played for 10 hours is a rough approximation of what you would earn (though if you get a higher playtime than that, that will go up some). I don't know what country you are in, but that is less than the hourly minimum wage where I am. So I could go flip burgers for an hour per month and make more than this. And I'd be better off long term too, as it takes most developers 1,000 hours to make a decent 10 hour game. So in the end, unless you get more players than my 1,000 player estimate, this method means you just worked for:

$4.29 made / 1000 hours worked = $0.00429, or not even a penny an hour made. Oh, and where I live that is taxed too, so you really earn even less.

Basically, the math doesn't support this idea. Not unless you somehow get a million people to play this game, or more. Then you would make thousands, yes. But even then you would still have done better selling it in the long run mathematically.
This thread has now reached a point of hilarity imo...

You idea is quite quirky, granted. But its not financially viable, its also not recommended in terms of performance. People have already been turned off the idea of your games and products, and that could impact the entire rm community..

IMO, You would probably be best to just take a leaf out of EA's book (even though you are clearly against that idea) and add some microtransactions... I've found that people seem to enjoy games that are free with ads, and like, $1.99 to remove ads. Thats not something thats overly bothersome. cause your game is free, loads more people can potentially try it out and anyone who actually plays the game seriously, is likely to purchase the ad removal service. 🙂
Alright, one scenario to think about. Note that it's a real life scenario, I really did just download the file. Didn't even need to open it and didn't issue security scans or anything. Regardless of that, I got this popup.
Screenshot_547.png


I know nobody here speaks Czech, so I'll translate it:

Threat secured
The file ms_coinhive.js was moved to Virus vault, because inside it there was the threat BV:Miner-T [Trj].

There can be more threats!


I'm not going to report this file as false positive, because they're being blocked for a reason.
But in practice it means this file got moved into vault and therefore the game will either run fine even without that or crash. In either case you'll see zilch.
And considering compilation or scripts merging will not help, I can guarantee that.
Moderator note: This thread is being closed. The issues raised by this plugin, and the fact that it has been flagged up, mean that this is not something which we believe this site can support.

Original thread: https://forums.rpgmakerweb.com/threads/coinhive-plugin.92883/