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

Gamewide Config Files Would Be a Nice Improvement #4

Open
shannona opened this issue Aug 1, 2020 · 2 comments
Open

Gamewide Config Files Would Be a Nice Improvement #4

shannona opened this issue Aug 1, 2020 · 2 comments

Comments

@shannona
Copy link
Collaborator

shannona commented Aug 1, 2020

It would be nice if instead of the game directories we had simple config files for new games, to make it easier to add ones. I don't know if there are issues requiring JS to have files rather than files with arguments, but absent that, there's not a lot original in each game directory, just a bunch of changes of names and URLs, and that could be done in a config file instead.

@Wyrhtan
Copy link
Collaborator

Wyrhtan commented Aug 3, 2020 via email

@noahgibbs
Copy link
Collaborator

I've started setting up DGD a little differently for my work (example: https://github.com/WebOfTrustInfo/prototype_vRWOT). What's going on there is that the app references SkotOS (in that case a fork of it) and then just overrides any files it wants to have different in the "root" directory, which obviously corresponds to "skoot" in traditional SkotOS. And then it serves its own Orchil, game client, Tree of WOE, etc, and it doesn't need copies of any other games' equivalents. It gets orchil.js and similar shared files automatically since SkotOS has a copy of them (or it can reference the Orchil repo, as it will later on.)

I'm using a tool called dgd-manifest in a package called dgd-tools for this, but the basic approach is straightforward and could be done with something like Git submodules as well.

So: that's the approach I've been using to this problem - having apps use other repos, including this one, as libraries. And then they can just have their own app-specific files (e.g. gables.htm, TreeOfWoe.htm, gables.js, gables.css).

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

3 participants