Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FoxNapRPG should automatically detect and use spec files #20

Open
OpenBagTwo opened this issue Dec 4, 2022 · 0 comments
Open

FoxNapRPG should automatically detect and use spec files #20

OpenBagTwo opened this issue Dec 4, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@OpenBagTwo
Copy link
Owner

If the FoxNapRPG executable is run in the same directory as a spec file (see notes), it should automatically attempt to parse and load it (if it can't be parsed, the executable should emit a warning--which for most users won't be seen).

Notes

  • The file should be named "FoxNapRPG"...
  • ... with any of the supported extensions:
    - INI (.ini, .cfg, .config, .conf)
    - JSON (.json)
    - CSV (.csv, .tsv)
    - This method will attempt to read files ending in no extension or .txt as INI.
  • The filename should be case-insensitive
  • In the event that multiple matching files are present:
    • FoxNapRPG should emit a warning (again, will mostly not be seen)
    • FoxNapRPG should attempt to parse each, one by one, until one is parsed successfully (warn again on each failed parse)
    • The canonical CamelCased "FoxNapRPG" file name should be preferred ahead of all-lowercase. Beyond that, the ordering need only be deterministic (python sorted is fine)

While I meant to include this in the original design, I still think use of spec files is going to be a niche use-case, and the docs don't even include example configs. That is all to say: this need not be part of the initial release.

@OpenBagTwo OpenBagTwo added the enhancement New feature or request label Dec 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant