Poryg

Dark Lord of the Castle of Javascreeps
Veteran
Joined
Mar 23, 2017
Messages
4,228
Reaction score
11,234
First Language
Czech
Primarily Uses
RMMV
To be honest, I didn't expect it to be so quick either. So I guess for once I will go with the dark magic. :D
 

TheAM-Dol

Randomly Generated User Name
Veteran
Joined
Feb 26, 2022
Messages
643
Reaction score
980
First Language
English
Primarily Uses
RMMV
Hey there, just joined the forums to share a problem I had and the solution to it.

Originally I was looking for any form of light encryption (just enough to keep the honest people honest), but had errors spit up with standard RMMV encryption. Which lead me to your plugin. Unfortunately, I had similar errors spit up upon completion of encryption. These errors would state missing assets, such as missing audio files or missing image files. Googling didn't help.
Finally after about an hour of troubleshooting, I just played my game and dismissed the errors, and realized: not all of the sound and image files were giving errors. That's when I realized that the files giving error are files that contained spaces in their name. For example, one file named similar to "Battle Music For Boss" wouldn't work. To solve this situation, I needed to rename all files to contain no spaces, so I changed the previous aforementioned example to something like "Battle-Music-For-Boss" or "BattleMusicForBoss".
It took so long for me to realize this as the problem because some of the first sounds (such as menu music, and UI sounds) all contained spaces in their name, so of course at first launch it appeared to me that all audio files were borked. It wasn't until deciding to proceed with playing the game and ignoring the errors that I realized not every sound file was borked.
It may seem like a pretty obvious problem to most people, but I wasn't aware that the encryption would have problems with spaces in the name. Also, upon further consideration, this was the same problem I faced with the vanilla RMMV encryption, and likely means that both this plugin and vanilla encryption require no spaces in the file name.

TLDR; Ensure there are no spaces in the file name. Doing this at an early stage in development will lead to less headache later having to track down every call of a sound effect and reassigning it to the renamed file.
 

Moxy

Veteran
Veteran
Joined
Jan 21, 2018
Messages
35
Reaction score
8
First Language
English
Primarily Uses
RMMV
Hey there, just joined the forums to share a problem I had and the solution to it.

Originally I was looking for any form of light encryption (just enough to keep the honest people honest), but had errors spit up with standard RMMV encryption. Which lead me to your plugin. Unfortunately, I had similar errors spit up upon completion of encryption. These errors would state missing assets, such as missing audio files or missing image files. Googling didn't help.
Finally after about an hour of troubleshooting, I just played my game and dismissed the errors, and realized: not all of the sound and image files were giving errors. That's when I realized that the files giving error are files that contained spaces in their name. For example, one file named similar to "Battle Music For Boss" wouldn't work. To solve this situation, I needed to rename all files to contain no spaces, so I changed the previous aforementioned example to something like "Battle-Music-For-Boss" or "BattleMusicForBoss".
It took so long for me to realize this as the problem because some of the first sounds (such as menu music, and UI sounds) all contained spaces in their name, so of course at first launch it appeared to me that all audio files were borked. It wasn't until deciding to proceed with playing the game and ignoring the errors that I realized not every sound file was borked.
It may seem like a pretty obvious problem to most people, but I wasn't aware that the encryption would have problems with spaces in the name. Also, upon further consideration, this was the same problem I faced with the vanilla RMMV encryption, and likely means that both this plugin and vanilla encryption require no spaces in the file name.

TLDR; Ensure there are no spaces in the file name. Doing this at an early stage in development will lead to less headache later having to track down every call of a sound effect and reassigning it to the renamed file.
That's good to know. I'll have to double check all of my files (there's a lot) to make sure none of Amy spaces. Thanks for sharing!
 

Poryg

Dark Lord of the Castle of Javascreeps
Veteran
Joined
Mar 23, 2017
Messages
4,228
Reaction score
11,234
First Language
Czech
Primarily Uses
RMMV
Asset encrypter and decoder have been updated once again!

Found two critical errors within the plugin. One error - weakness occured when there were empty byte sequences within the file. This would essentially leave files unencrypted, just with some shifted bytes. And that is not good. To rectify this I increased the default fbx to 2500 and default lbx to 3500 and I'm thinking about adding further checks to check if the bytes are empty. It can be increased pretty much anywhere as long as there are enough bytes to cover it.

Another critical error was when the fbx and lbx were too high. If they were higher than the filesize of the file, this would cause bytes to get essentially overwritten with 0's during encryption. If the numbers were too high, this would inevitably corrupt the files, because there would be data loss. The new version rectifies this issue by correcting the boundaries when the file is too small.

Other small fixes include:
Opening the dev tools so you can see stuff is happening (although the console logs don't show in time :()
A smarter file format searching. Now you won't have oggoo, oggooo and further files in your data folders anymore!
 

Moxy

Veteran
Veteran
Joined
Jan 21, 2018
Messages
35
Reaction score
8
First Language
English
Primarily Uses
RMMV
Thank you so much for your continued support! It's much appreciated!
 

userx

Goodwill Ambassador
Veteran
Joined
Jul 6, 2021
Messages
104
Reaction score
47
First Language
Bahasa
Primarily Uses
RMMZ
hi there, can this plugin work for rmmz?
 

Poryg

Dark Lord of the Castle of Javascreeps
Veteran
Joined
Mar 23, 2017
Messages
4,228
Reaction score
11,234
First Language
Czech
Primarily Uses
RMMV
I don't have a clue to be honest. Don't own MZ.
 

AnneLaurant

Veteran
Veteran
Joined
Dec 23, 2021
Messages
31
Reaction score
67
First Language
Filipino
Primarily Uses
RMMV
Hello! Thank you for your work. I used them for my project and things are looking great!

I've just got a mini "problem". The encrypted battlers show a small green line on the lower right. Is there any chance this can be fixed? Thank you!

encryptionhelp.PNG
 

BK-tdm

Waifumancer
Veteran
Joined
Jun 21, 2018
Messages
532
Reaction score
1,622
First Language
English
Primarily Uses
RMMV
I dont know if this plugin is still supported but i tried it anywas, Its not working, as in im not seeing any encrypted files at all

1. added both plugin files to the plugin folder
2. set both to ON on the plugin manager
3.started game playtest
4. deployed while game playtest was running (which its what i understood must be done)

deployed folder has normal unencrypted assets, no special files or anything else, are the ecrypted files in the img/audio folder or somewhere else?
 

Poryg

Dark Lord of the Castle of Javascreeps
Veteran
Joined
Mar 23, 2017
Messages
4,228
Reaction score
11,234
First Language
Czech
Primarily Uses
RMMV
@BK-tdm The plugin saves the encrypted files directly next to the original files. Since the plugin is made to crawl through folders & all files, read them all and save them, I don't see a single mistake I have made in the code. However, I have to admit that the encrytion plugin lives its own life and works very inconsistently despite the code being straightforward.

The only thing I can say is that if you don't have permission to save files, the plugin's save function will fail 100% of the time. Such thing can happen if you for instance store the project inside the windows' Program files folder, because you require admin privileges to save there. And since windows 7, by default all apps are launched with user privileges, incapable of saving data into ProgramFiles.
 

BK-tdm

Waifumancer
Veteran
Joined
Jun 21, 2018
Messages
532
Reaction score
1,622
First Language
English
Primarily Uses
RMMV
The project is on a documents folder, pretty far from any programs folder so its not a writing issue that i know of.
I added the plugin to the project, modded the value you rwcommended and ran test mode, let it idle but no new files showed up whatsoever so im a bit lost :kaoswt:
 

alphawiz

Veteran
Veteran
Joined
Feb 8, 2017
Messages
137
Reaction score
26
First Language
English
Primarily Uses
RMMV
Plugin that serves to fight pesky resource stealers. Encrypt your game assets if you don't want to be relying on MV's default encryption.
The encrypter can be used once and then removed, provided that you use it right before releasing the game. The decoder, however, naturally needs to stay with the game.
The algorithm for encryption/decryption is very basic. Simply change values of some bytes. Since Javascript is an open-file language, it makes no sense to make anything overly complex as non-programmers will be discouraged by it and programmers can read code.
If you want to implement a custom encryption algorithm, feel free to. Or let me know in the PMs. However, if you want to use some uber mecha advanced ones, I recommend you to also make sure nobody can read the .js files, otherwise it will be pointless.

Compatible with my database encoder/decoder plugins.
Compatible with plugins as long as they properly save audio in audio and images in img
No compatibility guaranteed with plugins that change loading of pictures
No compatibility with plugins that include their own file formats, although compatibility patches for them might not always be difficult
Incompatible with MV's default encryption as I'm using different file formats. No compatibility intended due to pointlessness.
Does it work if you also encrypt files with the default MV encryption or is it to be used INSTEAD OF it? I'm thinking twice as much protection is better if both can be used.

Or would that just crash the game?
 

Poryg

Dark Lord of the Castle of Javascreeps
Veteran
Joined
Mar 23, 2017
Messages
4,228
Reaction score
11,234
First Language
Czech
Primarily Uses
RMMV
As I have said in the post: no compatibility between this and MV's default encryption due to pointlessness. MV's default encryption is very weak, so I didn't bother to make the two compatible.
 

Latest Threads

Latest Posts

Latest Profile Posts

oneOfUs.jpg
Streaming more Poppet Quest game even in about 12 minutes.
Some dog owners really impress me. I'm pushing 2-3 metric tons of garbage containers that destroy everything they hit. What do you think is going to happen to your tiny dog when I run it over? And why are you crossing my path to argue with me? Have you never been hit by 200kgs of garbage?

Lesson for you folks. Never mess with an angry garbage container. Or its driver.
I didn't dispose of a file properly and now my whole game won't start: I get a script error in the Scene Manager stage of game launch. What to do? Transfer it all to a new project? That's going to be tedious. Fortunately I am only nine workdays into it.

Forum statistics

Threads
131,680
Messages
1,222,171
Members
173,426
Latest member
sleepykitsune
Top