Other user's assetsAll the assets in this file belong to the author, or are from free-to-use modder's resources
Upload permissionYou are not allowed to upload this file to other sites under any circumstances
Modification permissionYou must get permission from me before you are allowed to modify my files to improve it
Conversion permissionYou are not allowed to convert this file to work on other games under any circumstances
Asset use permissionYou must get permission from me before you are allowed to use any of the assets in this file
Asset use permission in mods/files that are being soldYou are not allowed to use assets from this file in any mods/files that are being sold, for money, on Steam Workshop or other platforms
Asset use permission in mods/files that earn donation pointsYou are not allowed to earn Donation Points for your mods if they use my assets
Author notes
This author has not provided any additional notes regarding file permissions
File credits
This author has not credited anyone else in this file
Add optional indent argument when using WriteJson().
WriteJson() will now format output as minified Json by default.
Version 0.5.0
Json read/write functions are now undefined when 'RedData.Json' is not present.
Add declaration of module 'RedFileSystem'.
Version 0.4.0
Add Json dependency with plugin RedData (v0.1.0).
Remove Json classes and implementations, now powered by RedData.
Version 0.3.0
Use a storage per mod to read/write files.
Move functions from FileSystem to FileSystemStorage.
Restrict all read/write operations within red4ext\plugins\RedFileSystem\storages\.
Revoke all operations of a storage when getting it multiple times.
Version 0.2.0
Test whether a file/directory exists or not.
Test whether a path points to a regular file.
Read text / lines / Json from a file.
Write text / lines / Json to a file (truncate or append).
Read / write / stringify Json data.
RED FILE SYSTEM
This plugin provides access to the file system using read/write operations. It supports UTF8 text and Json formats. It can be used with Redscript and CET. This is a dependency for modders.
PLAYERS This plugin only provide access to directories within "<Cyberpunk 2077>/red4ext/plugins/RedFileSystem/storages/". Modders cannot read/write files outside of this directory. This is a security measure to prevent modders from messing with your game's installation or even your computer. Remember, if someone really want to mess with your computer, they can do so without using RedFileSystem.
LATEST CHANGES - v0.6.0
Add optional indent argument when using WriteJson(). WriteJson() will now format output as minified Json by default. See README for usage.
1. Install requirements — RED4ext 1.24.0+ 2. Download the latest release here (or from GitHub) 3. Extract the archive into the Cyberpunk 2077 directory
You should have a "<Cyberpunk 2077>/red4ext/plugins/RedFileSystem" directory if done correctly.
If you need help with mod development using this plugin, please feel free to contact me on Discord. I prefer public discussions so that everyone can use shared knowledge.