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

allow subdirectories in lich/scripts/ #23

Open
robbintt opened this issue Feb 6, 2019 · 0 comments
Open

allow subdirectories in lich/scripts/ #23

robbintt opened this issue Feb 6, 2019 · 0 comments

Comments

@robbintt
Copy link

robbintt commented Feb 6, 2019

Concept

give players some namespace to work with and the ability to use source control w/ scripts by traversing 1 subdirectory deep when searching for scripts.

Use case:

clone a git repo of scripts into the lich/scripts/ folder. Script search then traverses 1 sudirectory deep when trying to find a script.

Issues

  • Problem: Priority needs resolved between the /lich/scripts/, its subdirectories, and between subdirectories.
  • Solution: Main scripts path is searched last and gets priority. Subdirectory priority is alphabetical based on Ruby letter ordering rules (for characters not in english a-z). Probably inherited from ascii or unicode value.

Alternatives options:

  1. give the player a simple method for specifying a directory, e.g. ;mydirectory/myscript
    • Drawback: longer, players prefer shorter directories
    • maybe alternative character for /. This creates potential filename conflicts unless the character is illegal in lich filenames.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant