MV A noob question about editing a plugin

Hi there!

I purchased some plugins from yanfly's site (Octopack by FallenAngelOlivia) and now I want to change some things according to the needs of my game, as permitted by purchase conditions.
However,
The main code line, the last one, is just one huge line of code with everything seemingly jumbled and almost impossible to make heads or tails of. As mentioned, I'm a JS noob and have no idea what I'm looking at. Is there a way to translate it into a normal readable code fit for editing? I've tried to reach the plugin creator but I couldn't find any contact information on either the yanfly's site or their itch.io page where I made the purchase. Help!

Clipboard-1.png
Hi there!

I purchased some plugins from yanfly's site (Octopack by FallenAngelOlivia) and now I want to change some things according to the needs of my game, as permitted by purchase conditions.
However,
The main code line, the last one, is just one huge line of code with everything seemingly jumbled and almost impossible to make heads or tails of. As mentioned, I'm a JS noob and have no idea what I'm looking at. Is there a way to translate it into a normal readable code fit for editing? I've tried to reach the plugin creator but I couldn't find any contact information on either the yanfly's site or their itch.io page where I made the purchase. Help!

View attachment 217283
Im a JS noob as well but i think in this case, editor is not the best tool to open JS codes...
Try Visual Studio Code, its free.
I've looked into that code a good while back and it has been obfuscated, there will be no way to modify any of the code to change anything the way they have it. And good luck asking for help as the only people who can make changes are the people who have the cipher key for reverting the encryption :/

I let a Bank Security software engineer friend of mine run the code through his Python decryptor and it took ages for it to spit something out in the end, and he said the level of encryption on that file is absurd, so the author's really don't want people seeing the code... sadly


Edit: @Spaske looks like he is using Notepad++, and its great for editing code. It's what I use and have made and/or edited hundreds of plugins for fixes or compatibility 😀
This is called "obfuscation" and is done to make it harder for people to steal code.

Obfuscation is typically done by:
  • removing all comments.
  • writing everything in a single line instead of writing code over multiple lines.
  • replacing variable and function names with random names to hide the intent behind the variable or function.
  • rewriting strings using unicode escape characters instead of the actual character; e.g. instead of writing "hello world", you write "\u0068\u0065\u006c\u006c\u006f\u0020\u0077\u006f\u0072\u006c\u0064"
  • using more complicated ways to do something more simple; e.g. instead of simply calling "hello world".split(" "); you do var _ax3d = ["map", "toString", "split"]; "hello world"[_ax3d[2]](" ");
  • often a combination of all the above
  • and more...
If you know enough JavaScript, you can try and reverse this process somewhat ("de-obfuscation"), though this can take a lot of time and effort, and the result depends on how well you understand the code and the intent behind the code.

You might find a JavaScript "de-obfuscator" somewhere, though the results are obviously not as good as if a human did the de-obfuscation (though it's a lot faster and works very well for certain cases, like the unicode escape character, for example).
I've looked into that code a good while back and it has been obfuscated, there will be no way to modify any of the code to change anything the way they have it. And good luck asking for help as the only people who can make changes are the people who have the cipher key for reverting the encryption :/

I let a Bank Security software engineer friend of mine run the code through his Python decryptor and it took ages for it to spit something out in the end, and he said the level of encryption on that file is absurd, so the author's really don't want people seeing the code... sadly


Edit: @Spaske looks like he is using Notepad++, and its great for editing code. It's what I use and have made and/or edited hundreds of plugins for fixes or compatibility 😀
Damn... that seems really hostile to me. Paranoid even.
I must say I feel rather annoyed if not cheated. I would never purchase a plugin that I cannot edit as that renders it practically useless for my needs. The implication in the terms of purchase is quite clear - I am free to edit it hence the assumption that it is not obfuscated. Grmpf.
If only I could contact the creator but I can't find any way to. Anyone knows how to reach Fallen Angel Olivia?
That is part of the reason I stopped even looking into Fallen Angel Olivia's work and I think even some of the Visustella stuff after a certain point. If I cannot make edits to make it fit my needs exactly I will not use it, and if you have to buy it before you can even see the code? Nope. Hard pass.

I can understand why people do it, too many code poachers the past few years. But if I can trial and error my way to a solution to what I'm looking for instead of being limited by obfuscation or a pay wall, I'll write the plugin myself in the end, I just would prefer using some other peoples plugins in the end to help support them if at all possible and give said plugins more visibility.

But the possible method for connecting with her MIGHT be the discord on her itch.io page (RPG Maker Portal), but I'm not 100% certain.
I've looked into that code a good while back and it has been obfuscated, there will be no way to modify any of the code to change anything the way they have it. And good luck asking for help as the only people who can make changes are the people who have the cipher key for reverting the encryption :/

I let a Bank Security software engineer friend of mine run the code through his Python decryptor and it took ages for it to spit something out in the end, and he said the level of encryption on that file is absurd, so the author's really don't want people seeing the code... sadly


Edit: @Spaske looks like he is using Notepad++, and its great for editing code. It's what I use and have made and/or edited hundreds of plugins for fixes or compatibility 😀
Yeah, thought its the normal notepad / editor. 😀
I saw similar things long time ago when i tried to open codes in editor and they looked similar, thats why i thought it may be the same case, tbh never would i have guessed its made so people cant edit their code and whats even more ty is how they advertise it as its free to edit but then give you this crap... 😀
I think the bit about being able to edit the code may be a leftover from a time when it wasn't obfuscated, if there ever was one. After that whole debacle from some time back, things changed.

@Ahuramazda Visual Studio Code is better depending on preference. I think a lot of coders might recommend it, but Notepad++ is still perfectly fine.
I don't know anything about Itch's policies, but personally I would contact them and contest the purchase, asking for a refund. To me, the plugin page giving you permission to edit the plugins and then delivering them in an un-editable format is fradulent.

You can try, but my experience is you won't get anywhere trying to contact Olivia/Yanfly/VisuStella - I have attempted multiple times.

For what it's worth, any of the plugins actually written by Yanfly are in regular code.
paying for plugins that are good is okey, but it should be editable or
the creator MUST be active or a way to contact in my opinion.

you could give the plugin free obfuscated or limited options to use
and full featured plugin, un-obfuscated as paid like alot do as well.

otherwise, how would they make patches if they cannot read the code?
or add something they need in a seperate plugin if you cannot see the
function(s) to do so?

I would not buy it if its obfuscated either, unless you could edit them.
otherwise, they shouldn't make the TOU if you are permitted to edit
and not able too!
Damn... that seems really hostile to me. Paranoid even.
I must say I feel rather annoyed if not cheated. I would never purchase a plugin that I cannot edit as that renders it practically useless for my needs. The implication in the terms of purchase is quite clear - I am free to edit it hence the assumption that it is not obfuscated. Grmpf.
If only I could contact the creator but I can't find any way to. Anyone knows how to reach Fallen Angel Olivia?
Yea, I encountered the same exact as you with my Octopath/Olivia purchase last year. I was able to deobfuscate like half of it, but I must've missed something cuz I was getting errors after the deobfuscation, so I just gave up... 😔

Original thread: https://forums.rpgmakerweb.com/threads/a-noob-question-about-editing-a-plugin.145195/