Closed anotheruselesaccount closed 1 month ago
This goes against the intentional design to sandbox the fileio. Also reading files won't work from the searchpaths as utils::io doesn't use the game's searchpaths (iwds for example); errm, I could add some sort of unsafe variants of these io functions, and have them enabled only optionally with a dvar.
This goes against the intentional design to sandbox the fileio. Also reading files won't work from the searchpaths as utils::io doesn't use the game's searchpaths (iwds for example); errm, I could add some sort of unsafe variants of these io functions, and have them enabled only optionally with a dvar.
When having more then one custom map on your plutonium server the sandbox is and issue since each map would have its own Bank/rank files or what ever is needed to save. Scriptdata folder was made inside each custom map folder.
This goes against the intentional design to sandbox the fileio. Also reading files won't work from the searchpaths as utils::io doesn't use the game's searchpaths (iwds for example); errm, I could add some sort of unsafe variants of these io functions, and have them enabled only optionally with a dvar.
When having more then one custom map on your plutonium server the sandbox is and issue since each map would have its own Bank/rank files or what ever is needed to save. Scriptdata folder was made inside each custom map folder.
I understand, I add recently added an optional arg use_global
to fs_remove, fs_fopen for writing.
This will no longer use the mod specific folder but the same folder for all maps
Since CoD4x fileio functions are limited to inside scriptdata folder here is io functions from t6 gsc utils.