Page 6 of 31

Re: A text Myst Online project

Posted: Sat Jul 06, 2013 7:12 pm
by Pavitra
Deledrius wrote:
KathAveara wrote:Could we have the option to change the font to something else, if we so choose? Some fonts are easier for some people to read than other fonts.
Fortunately that's something most browsers let the user override, for precisely this reason. At least for now...
I'd suggest Stylish.

Re: A text Myst Online project

Posted: Sat Jul 06, 2013 7:31 pm
by Deledrius
I meant built-in, but that works too. :) It's good to know what your options are if you find things on the web not tailored to your needs, while we still have a web.

Re: A text Myst Online project

Posted: Sat Jul 06, 2013 9:29 pm
by belford
There's now a bookshelf in the gallery area where anybody can add books.

I've also put out the "Basic Library" age, which has three bookshelves. These are publicly readable, but only editable by the instance owner.

It's still not possible to put books or bookshelves in your own worlds. That will require a fair amount of work on the editor; the database structure for books is more complicated than that for text, events, etc. However, you can use your Basic Library instance as a substitute for the moment.

(Note that a shelf can contain links for multiple instances of a world. So it makes perfect sense for two people to add their Basic Library instances to the Seltani gallery shelf. The display is a little confusing; see the bottom pane in the right-hand column to figure out which instance the current linking book links to.)

Re: A text Myst Online project

Posted: Sat Jul 06, 2013 10:12 pm
by Pavitra
It's happening~!

By the way, I managed to get the github version running. Here's a quick overview of what I did, in the hope that it may be helpful to others:
After installing the requirements listed in README, edit tworld.conf with appropriate values.

Run the setup script:
python3 twsetup.py --config=tworld.conf

Start the tworld and tweb processes (in separate shells):
python3 tworld.py --config=tworld.conf
python3 tweb.py --config=tworld.conf

Finally, connect to localhost (or wherever you're running tworld and tweb) on port 4000 (or whichever port you set in tworld.conf).
I haven't yet figured out how to log in as Admin (am I supposed to use the not-yet-implemented password recovery feature?), or to set the builder flag (possibly I need to learn how to use mongo).

Re: A text Myst Online project

Posted: Sun Jul 07, 2013 4:43 am
by KathAveara
Deledrius wrote:
KathAveara wrote:Could we have the option to change the font to something else, if we so choose? Some fonts are easier for some people to read than other fonts.
Fortunately that's something most browsers let the user override, for precisely this reason. At least for now...
Well, my browser overrides pretty much every site, except for Seltani.

Re: A text Myst Online project

Posted: Sun Jul 07, 2013 6:20 am
by KathAveara
Belford, is it possible to make text display only in a specific instance, or to a certain person?

Re: A text Myst Online project

Posted: Sun Jul 07, 2013 7:14 pm
by KathAveara
Y'know what's a lot of fun? Playing out a story in your Age with guests. For example, I had two people visiting my Age, and I wrote in a load of Bah'ro. They managed to make friends, and they left behind a telescope to look at the Age's sun as a reward.

Re: A text Myst Online project

Posted: Sun Jul 07, 2013 8:46 pm
by belford
Pavitra -- you're right, the only way to get into the admin account is to use a bunch of mongodb shell commands. It's all completely undocumented. I apologize, but that documentation and setup procedure is a low priority.

The email recovery feature will help, and I intend to get to that... um, *pretty* soon -- but I'm focussing on in-world features for the next few weeks.
Belford, is it possible to make text display only in a specific instance, or to a certain person?
All these things should be possible but aren't yet.

Tomorrow's upgrade will have minimal support for checking the player's identity.

Re: A text Myst Online project

Posted: Sun Jul 07, 2013 8:51 pm
by belford
Playing out a story in your Age with guests.
Cool!

(BTW, I've added Pavitra's notes to the README file, since they're correct. :)

Re: A text Myst Online project

Posted: Sun Jul 07, 2013 10:19 pm
by belford
Server updated. There is now a font preference.

New functions:

players.count(location): number of players in a location.
players.count(realm): number of players in the entire instance.
player.list(...): same thing, but returns a list of player objects. This is not useful because there's no way to iterate through the list yet.

ObjectId(...): returns the database key of a player or location. You can now say "if player == ObjectId('51abfd22689e9d40c33a4b38'): ..." to check the active player's identity against a constant. To see your database key, type "/playstate". (This is exactly analogous to a Ki number, only it's 24 digits of hex.)