A text Myst Online project

General debates and discussion about the Guild of Writers and Age creation

Re: A text Myst Online project

Postby KathAveara » Wed Jul 10, 2013 9:04 am

There appear to be some problems with the moon in Elahto, so the eclipse may not happen until after I get back from Australia... Anyway, the eclipse will be set back by at least one day...

Edit: I am removing that piece of code as it is not working. The moon will be static until I can get around the problem. I think it's the sched() misbehaving...
Moula KI: 17967159
DI KI: 00205116
deviantART: kathaveara
tumblr: kaththedragon

Grand Master of the Guild of Linguists
KathAveara
 
Posts: 79
Joined: Mon Jun 10, 2013 2:29 am

Re: A text Myst Online project

Postby Christopher » Wed Jul 10, 2013 11:10 am

It would be nice if "[Exception: Properties may only be set in action code]" could tell me where this happens. I can't find a location in my code where I set a property...

Christopher
User avatar
Christopher
 
Posts: 276
Joined: Mon Jul 19, 2010 3:25 am

Re: A text Myst Online project

Postby belford » Wed Jul 10, 2013 11:37 am

I've updated the docs to talk more about repeating events, and the on_wake and on_sleep properties. These are important if you're trying to set up weather or long-term cyclical events.

I still don't have an example of the (rather complicated) code I wrote to make Goldspring's fuel cans work. Because the system shuts down uninhabited instances, you have to keep track of how long you've been asleep, which means using datetime and timedelta objects in unobvious ways.
belford
 
Posts: 344
Joined: Sat Sep 29, 2007 7:18 pm

Re: A text Myst Online project

Postby belford » Wed Jul 10, 2013 11:41 am

Would it make sense to colonize a corner of the GoW wiki for documentation and examples?
belford
 
Posts: 344
Joined: Sat Sep 29, 2007 7:18 pm

Re: A text Myst Online project

Postby KathAveara » Wed Jul 10, 2013 1:21 pm

Quite possibly.

I am now at the airport!
Moula KI: 17967159
DI KI: 00205116
deviantART: kathaveara
tumblr: kaththedragon

Grand Master of the Guild of Linguists
KathAveara
 
Posts: 79
Joined: Mon Jun 10, 2013 2:29 am

Re: A text Myst Online project

Postby Acorn » Wed Jul 10, 2013 1:34 pm

KathAveara wrote:
I am now at the airport!


bon voyage! :lol:
Image
Acorn
 
Posts: 724
Joined: Sun Feb 26, 2012 9:56 am

Re: A text Myst Online project

Postby Christopher » Wed Jul 10, 2013 2:09 pm

Ok, I found my problem. I wrote [$elif foo = 1] instead of [$elif foo == 1], but I see you already opend an issue for this on github :) I am looking forward to future additions. You seem to have a big issue list.

Christopher
User avatar
Christopher
 
Posts: 276
Joined: Mon Jul 19, 2010 3:25 am

Re: A text Myst Online project

Postby Pavitra » Wed Jul 10, 2013 7:58 pm

I'd like to get clearer documentation on what parts of the datetime module are available. Based on the current documentation, there appears to be no way to programmatically interact with the output of datetime.now.

Edit: Experimentation has yielded the following:
  • The difference of two datetime.datetime objects is a datetime.timedelta object.
  • Two datetime.timedelta objects can be added or subtracted.
  • Two datetime.datetime objects can be compared (>).
  • Two datetime.timedelta objects can be compared (>).
  • A datetime.datetime object plus or minus a datetime.timedelta object works as expected.

This should be enough to create the effect of a long-running timer.
Have Ages, and link to them without bindings. [Words 1:13]
Seltani
User avatar
Pavitra
 
Posts: 226
Joined: Mon Apr 05, 2010 7:11 pm

Re: A text Myst Online project

Postby belford » Wed Jul 10, 2013 8:47 pm

Your list is correct. It's the minimum I had to implement to make Goldspring work right. :)
belford
 
Posts: 344
Joined: Sat Sep 29, 2007 7:18 pm

Re: A text Myst Online project

Postby Pavitra » Wed Jul 10, 2013 9:05 pm

In order to more easily show each other implementation techniques, it might be useful to have a communally-accessible account, so that one person can write code using the code-demonstration account and others can then log in to that same account to view the code. Belford, if you think this is a good idea, then please set the builder flag on player 'Demo' (password 'demodemo').

Edit: Also, the modulus (%) and quotient (/) of one timedelta by another work correctly. That is incredibly useful.
Have Ages, and link to them without bindings. [Words 1:13]
Seltani
User avatar
Pavitra
 
Posts: 226
Joined: Mon Apr 05, 2010 7:11 pm

PreviousNext

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 2 guests