Page 19 of 31
Re: A text Myst Online project
Posted: Tue Jul 30, 2013 9:54 am
by Pavitra
KathAveara wrote:I got around that problem by not having the EdtStr directly display its contents: you must first click another link which moves the comments of the EdtStr to another property which is displayed, and also fires any other arbitrary code.
Clever. I don't think it quite works for my specific use case, but it's definitely a good idea.
Re: A text Myst Online project
Posted: Tue Jul 30, 2013 11:20 am
by Pavitra
I vaguely remember there being a debug command to list all currently-set instance properties, but I can't find it again now. Does this actually exist, or did I imagine it?
Re: A text Myst Online project
Posted: Tue Jul 30, 2013 5:23 pm
by belford
You must have imagined it, I'm afraid.
Re: A text Myst Online project
Posted: Sat Aug 03, 2013 10:21 pm
by KathAveara
Another way to fire code when an EdtStr is changed its to compare the current value to an old value on a clock signal. If they are the same, do nothing, else fire arbitrary code and set the updated value as the new 'old value'.
Re: A text Myst Online project
Posted: Sun Aug 04, 2013 12:03 am
by KathAveara
Question: how do I get the number of days from a datetime.timedelta?
Re: A text Myst Online project
Posted: Sun Aug 04, 2013 12:46 am
by Acorn
I visited yesterday, the first time for a while, and enjoyed my visit to lots of different ages. (Saw Pavitra but she didn't see me!) I had commented a while back that it hadn't been intuitive to find the fan ages - "write your own" wasn't a helpful instruction for non-writers - so I was pleased to see that the directions to the non-belford ages were now a lot clearer. Good job!

Re: A text Myst Online project
Posted: Sun Aug 04, 2013 12:51 am
by KathAveara
I'm going to launch a new Age when I get home. This one will contain various animals that move around and you can interact with them. The first specimen will be a simple Terran snake. Note: unlike other zoos, this one has no closing time, because the sun never sets. It's another tidally locked planet, same as Elahto. The animals will sleep for a while at various times, though.
Re: A text Myst Online project
Posted: Sun Aug 04, 2013 3:06 am
by Acorn
sounds interesting, Kath!

Re: A text Myst Online project
Posted: Sun Aug 04, 2013 3:52 am
by KathAveara
Hopefully, I'll be able to have multiple animals per enclosure, and maybe a breeding programme in place. That will probably take a lot of hard work. And, if the logistics work out, you'll be able to have animals from your Ages there too!
Re: A text Myst Online project
Posted: Sun Aug 04, 2013 11:14 am
by Pavitra
KathAveara wrote:Question: how do I get the number of days from a datetime.timedelta?
This might work (untested):
Code: Select all
int(myTimedelta/datetime.timedelta(1))