Poryg

Dark Lord of the Castle of Javascreeps
Veteran
Joined
Mar 23, 2017
Messages
4,178
Reaction score
10,800
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

Villager
Member
Joined
Feb 26, 2022
Messages
18
Reaction score
10
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
7
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,178
Reaction score
10,800
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
7
First Language
English
Primarily Uses
RMMV
Thank you so much for your continued support! It's much appreciated!
 

zotezha

Goodwill Ambassador
Veteran
Joined
Jul 6, 2021
Messages
49
Reaction score
21
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,178
Reaction score
10,800
First Language
Czech
Primarily Uses
RMMV
I don't have a clue to be honest. Don't own MZ.
 

Latest Threads

Latest Posts

Latest Profile Posts

Test game. Find something broken. Fix. Re-test game. Broken thing fixed but new thing broken that wasn't before. What?!?! Uhg! :kaoangry:
I watched this youtube video of this reporter that went to a Flat Earth Conference. And there was just a whole lot of stupid in one room.
What?! You want 2 more hours of a playthrough? Well you got it! Come hang out with us while we dive even deeper into the awesome game Kindred Novel by BirdBunch! :LZSjoy:
Well, shoot. I didn't mean for the title screen to be there in my previous post.
Can everyone here just forget about that until I'm actually ready to formally announce it?

Forum statistics

Threads
122,071
Messages
1,146,281
Members
160,351
Latest member
Carretera_Viapol
Top