Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

(RGSS) Set file permission?

Hi guys, I need help with this RGSS script.
There are files in my game folder, which I don't want players to mess with.
(save files + .rxdata files my scripts use)
I want only RMXP to have permission, so a player doing a copy/paste will get 'you have no permission for this file'.
Is this possible? or, can I make the file 'hidden' ?
 
Even if you set the file to read only, tech savvy players will still find ways to mess with them, if they really want to. As to hiding the files, that's pretty easy to reverse, as even people who are mostly computer illiterate often know how to reveal hidden files. As to what you could do, I'm not entirely certain. Short of creating a program that contantly uses the files so that they can't be modified, there really isn't much that can be done. (And, that would be considered malicious software by most) Do you really need to do something like that? The standard encryption used by the program is good enough for most people.
 

Taylor

Sponsor

I think silver wind is more referring to not being able to copy/paste save files as backups or similar than encrypting them. To me though this seems more of a hassle than anything.
 

Zeriab

Sponsor

Including root-kits can help you, but I would advice against that due to legal issues. (If discovered we would also ban you from this site)
I would rather recommend you just accept that people can mess with the files.
You can of course encrypt them and alter the scripts for the .rxdata files outside the .rgssad so they can be read from inside the encrypted archive.

*hugs*
- Zeriab
 
Illegal stuff is not for me, so no need to ban . :)
I don't need encryption, for files or for the game. So I don't get what you're saying.

I just don't want players to back up their save files and other rxdata files.. Is there a way to use Winrar, as in creating/reading these password-protected files using a script?
 

Taylor

Sponsor

Zeriab":rm3hqwqy said:
You can of course encrypt them and alter the scripts for the .rxdata files outside the .rgssad so they can be read from inside the encrypted archive.

That... sounds awesome. Can that be done with the Audio directory too? Though I'm betting that if it could - without corruption - it would already be a default.
 

Zeriab

Sponsor

In theory yes, but the engine does not support playing music from the encrypted archive so it practical in terms of speed.
On a related note I have seen scripts encrypting the audio. The audio is still separate from the encrypted archive, but cannot be played before decryption. I don't remember where though.

@silver wind:
You practically have two options:
  • Accept that users can mess around with the files
  • Developing or using malicious software

*hugs*
- Zeriab
 
Or, use a new approach. :)
I'll try to discourage players from cheating, by
1. Setting a minimal price for traded item/actors. ie: rare item costs 100,000$ or a party member at max level.
So, when player A sends his rare item to player B, player B must send him 100,000$ to get the item. player A
receive the cash, but then restores his old file. So player A didn't get the item for free- he payed. Not only
player B did the trade for free, he "lost" 100,000.
2. Use my "player score" feature to determine if a player can use a rare item/party member.
So, player B will get a useless item/party member. Those will transform into a Glitch item & a Glitch actor I'm
just dying to put into use (They do not glitch the game, and can be used in cool ways. Their goal is
to add interest to the game.)
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top