rojo
rojo copied to clipboard
Sync arbitrary file extensions as plaintext
Rojo already has a way of syncing plaintext files in as StringValues
. A lot of programs (i.e. dialogue files, markdown) export into plaintext formats that could be with interpreted with a parser in-game. It'd be cool to define a list of file extensions that are resolved as if they were plain .txt
files.
This presents a real forwards compatibility hazard :(
Actually, I guess if it's an explicit list of extensions, then that could take priority.
I think a whitelist (maybe as an optional array in the top-level of .project.json
files) is the only way to go about it? I'm not sure how you'd implement this without it feeling too clunky; it almost crosses into the domain of Remodel as you're effectively processing the contents of files before they're synced in...
For now though, would it be considered adding some files (other than .txt
) that are imported like plaintext? I think .yarn
and .md
would be a good start? I think there is a good use case for external authoring tools, and I imagine as the Luau package ecosystem gets better we'll start seeing more parsing libraries for these formats.
Eventually Rojo plugins intend to fill the space you're talking about, but that's a pretty big architecture.
I feel like LISENCE
/LISENCE.md
should be sync in as plaintext
This is closed by #813, which will be available in Rojo 7.5.