A text Myst Online project

General debates and discussion about the Guild of Writers and Age creation
Acorn
Posts: 724
Joined: Sun Feb 26, 2012 9:56 am

Re: A text Myst Online project

Post by Acorn »

KathAveara wrote:I have finally got a lunar cycle working in Elahto! If all is working right, there'll be an eclipse tomorrow.
Just visited - did I miss it - or will it happen later today?
Image
User avatar
Pavitra
Posts: 226
Joined: Mon Apr 05, 2010 7:11 pm
MOULa KI#: 0

Re: A text Myst Online project

Post by Pavitra »

I think it should be in about 45 minutes an hour and 15 minutes ???

Belford, would you be willing to make the number of active logged-in players visible without logging in?
Have Ages, and link to them without bindings. [Words 1:13]
Seltani
KathAveara
Posts: 79
Joined: Mon Jun 10, 2013 2:29 am

Re: A text Myst Online project

Post by KathAveara »

If all goes to plan, which /eval suggests it will, head down anytime in the nest 25 hours. Better sooner than later.
Moula KI: 17967159
DI KI: 00205116
deviantART: kathaveara
tumblr: kaththedragon

Grand Master of the Guild of Linguists
belford
Posts: 344
Joined: Sat Sep 29, 2007 7:18 pm
MOULa KI#: 0
Contact:

Re: A text Myst Online project

Post by belford »

Active meaning "idle less than five minutes"? (Which is the definition on the signed-in page.)

Yeah, I could add that.
User avatar
Pavitra
Posts: 226
Joined: Mon Apr 05, 2010 7:11 pm
MOULa KI#: 0

Re: A text Myst Online project

Post by Pavitra »

I wasn't aware of the exact definition you were using for "active", but yes I was thinking it would match the signed-in page.
Have Ages, and link to them without bindings. [Words 1:13]
Seltani
belford
Posts: 344
Joined: Sat Sep 29, 2007 7:18 pm
MOULa KI#: 0
Contact:

Re: A text Myst Online project

Post by belford »

Okay, that's done. Front page will mention the number of idle players (if any) as well as the total number of players signed in.

New feature: if you add an "instancepane" text property at the realm level, it will appear as an Age-specific booklet page. A new Age, Caelios, demonstrates this.

The Caelios page only appears in your personal instance, but that's because I set up its instancepane property with that restriction. The property looks like:

Code: Select all

[$if access.level(level=access.MEMBER)]
[...]
[$end]
The contents are empty for visitors, so the booklet page doesn't appear. If you don't use a trick like this, an instancepane property will appear for all players.
KathAveara
Posts: 79
Joined: Mon Jun 10, 2013 2:29 am

Re: A text Myst Online project

Post by KathAveara »

We've just had moonset here in Elahto, but for some reason the desc didn't auto-update to hide the moon. I had to refresh to make it update. Is there anyway to make it auto-update?
Moula KI: 17967159
DI KI: 00205116
deviantART: kathaveara
tumblr: kaththedragon

Grand Master of the Guild of Linguists
belford
Posts: 344
Joined: Sat Sep 29, 2007 7:18 pm
MOULa KI#: 0
Contact:

Re: A text Myst Online project

Post by belford »

A displayed description should always update whenever a property inside that description changes. If your time cycle is based on timer code that sets properties, it should always work.

If your descriptions are based on text like [$if datetime.now < foo], that will not auto-update. Is that what you did?

(The system can't recompute a property based on datetime.now changing, because datetime.now is *always* changing -- it would have to refresh the description literally a thousand times per second.)
KathAveara
Posts: 79
Joined: Mon Jun 10, 2013 2:29 am

Re: A text Myst Online project

Post by KathAveara »

Kinda a mix of both. The datetime.now is a property which is used by another property to calculate which of 10 states it can be (and changes about every day), which is what is used in the text. My problem with using timers is that I need a cycle that is independent of whether or not someone's in the Age to keep a timer running.
Moula KI: 17967159
DI KI: 00205116
deviantART: kathaveara
tumblr: kaththedragon

Grand Master of the Guild of Linguists
User avatar
Pavitra
Posts: 226
Joined: Mon Apr 05, 2010 7:11 pm
MOULa KI#: 0

Re: A text Myst Online project

Post by Pavitra »

In on_wake, use datetime.now to calibrate and start the timer.

(Strictly speaking, you don't actually need the timer to run while the instance is asleep, since there are no players there to see the wrong state. Rather, you need the waking timer to behave as though the timer had been running while asleep.)

(I don't think datetime.now is a "property" in the relevant sense -- that is, it doesn't correspond to a database entry. But I might be wrong about what Belford meant.)
Have Ages, and link to them without bindings. [Words 1:13]
Seltani
Post Reply

Return to “General Discussion”