ChatTheatre / SkotOS

Open Source version of the SkotOS narrative prose library, using the DGD driver.
https://www.ChatTheatre.com
Other
24 stars 6 forks source link

Missing GAME_ROOT reference show_dgd_logs.sh #60

Closed saraht45 closed 3 years ago

saraht45 commented 3 years ago

Attempting to run this script from the command line gives me an error:

You must set a GAME_ROOT to run this setup script.

This script gets called from the start_server.sh script but would be nice to have the option to call it manually if needed.

noahgibbs commented 3 years ago

Ah, hey, I should have talked to you about this. You know the whole "SkotOS is the library, separate from the game" thing? I've been doing more of that, and there will only be more in the future.

So: try cloning https://github.com/ChatTheatre/gables_game and running the local setup script. That should give you a functional SkotOS game. It's possible to do this all with "just" SkotOS by setting GAME_ROOT, but the plan is for it to become impossible in the future.

(If you run the script from gables_game it should set GAME_ROOT for you automatically.)

saraht45 commented 3 years ago

Gotcha. I do remember reading that in the VPS setup guide. I'll give that a shot. Will this still allow me to make changes on my machine and submit those changes back to SkotOS (as I'm updating links as we previously discussed)?

noahgibbs commented 3 years ago

Oh, hey, that will complicate that a bit ("yes, but...").

So: the way the new game-and-library architecture works is that the game assembles a directory called ".root" under its own directory. That directory is made from the SkotOS library, with the game's own override files copied over. So: in the finished, running game the ".root" directory works like you're used to "skoot" working. So in gables_game, the stuff under the root directory (https://github.com/ChatTheatre/gables_game/tree/master/root) will override any file with the same name in SkotOS. That's how we handle things like the game getting its own Theatre object.

If you make changes to files under .root, that will be great for testing them. You can then copy the finished files, when they work, into the SkotOS repo under "skoot" and make a pull request. There are several other ways you can do it - let me know if this one isn't your favourite.

noahgibbs commented 3 years ago

Sounds like this is working better now that you're using gables_game. I'll close this.