Facepunch / garrysmod-requests

Feature requests for Garry's Mod
86 stars 24 forks source link

Add .yml, .toml, .json to resource.AddSingleFile #2333

Closed smokingplaya closed 8 months ago

smokingplaya commented 8 months ago

Details

We love lua (partially), and we also love adding possible customization to our addons/scripts as it's good practice. But keeping all configs as lua is not very cool. So I propose to add YAML, JSON, TOML, XML type data saving languages to the allowed languages in resource.AddSingleFile.

robotboy655 commented 8 months ago

I don't see how resource.AddSingleFile and your target for customization relate in any way.

resource.AddSingleFile marks files to be downloaded from server to client, to the download/ folder, which is static.

What you want to do sounds to me like a job for the data/ folder and file.Write/Read instead, or better yet, just a menu on the client to configure whatever it is you want to the players to be able to configure.

smokingplaya commented 8 months ago

rubat, u r idiot obviously

garryspins commented 8 months ago

you can quite easily write a system for this yourself, or is it a skill issue🥱