JezuzLizard / T4SP-Server-Plugin

A plugin that has code that hopefully compiles and the game will load it to do things. Stability not guaranteed.
GNU Affero General Public License v3.0
4 stars 2 forks source link

Add T6 gsc utils file io functions #213

Closed anotheruselesaccount closed 1 month ago

anotheruselesaccount commented 4 months ago

Since CoD4x fileio functions are limited to inside scriptdata folder here is io functions from t6 gsc utils.

ineedbots commented 4 months 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.

anotheruselesaccount commented 3 months 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.

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.

ineedbots commented 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.

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