Page 8 of 31

Re: A text Myst Online project

Posted: Tue Jul 09, 2013 5:17 am
by KathAveara
Christopher wrote:I planned an age for MOULa fopr a long time now, but never really found time to actually model it in 3ds Max. I would like to try to realize it (or small parts of it) in your project.
Same story here. And now, I finally can build all the Ages I want! Muwahahaha!

Re: A text Myst Online project

Posted: Tue Jul 09, 2013 5:59 am
by Christopher
I read somewhere, where I can submit bugs, but I forgot where... But I noticed that I can see "Mystler" at the Ferry Dock, though he isn't online since 20 hours.

Christopher

Re: A text Myst Online project

Posted: Tue Jul 09, 2013 6:50 am
by Pavitra
Christopher wrote:I read somewhere, where I can submit bugs, but I forgot where... But I noticed that I can see "Mystler" at the Ferry Dock, though he isn't online since 20 hours.
Could he have just left his browser open while he did something else? I get the impression there's some sort of idle timeout (I sometimes have to refresh the tab if I've been away for a while), but I'm not really clear on the details.

Re: A text Myst Online project

Posted: Tue Jul 09, 2013 9:39 am
by belford
I'm having some trouble with realm properties evaluating properly
Woo, another bug!

This is actually a problem with expressions that evaluate to text. [[location().foo]], [[realm.foo]], and [[text(foo)]] all go wrong.

You can probably handle this case by just writing [[foo]], because the realm property will be inherited by the location (as long as you have not overridden it with a location foo property). But the bug is clearly a bug.

Bug tracking is at https://github.com/erkyrath/tworld/issues . You'll notice I have a big list already, although they're *mostly* features-to-do rather than bugs...

Re: A text Myst Online project

Posted: Tue Jul 09, 2013 9:44 am
by belford
But I noticed that I can see "Mystler" at the Ferry Dock, though he isn't online since 20 hours.
The server links you out of the world after you've been disconnected for ten minutes.

EDIT-ADD: Sorry, misremembered my own code. It checks every three minutes, which means you will be linked out of the world 0-to-3 minutes after you disconnect. (I should make that a little more predictable.)

Mystler registers as still being connected. If you have a browser window/tab open, that keeps the connection open. In my experience, when you close the window/tab, that closes the connection -- but I'm not positive this is true of all browsers.

(If you leave the window open but find yourself disconnected, it's probably because I updated the software and restarted the server. I've been doing that every couple of days. You should see a warning first.)

Re: A text Myst Online project

Posted: Tue Jul 09, 2013 9:49 am
by belford
Long-term plans: I am still a muddled whirl of short-term plans. :/

Re: A text Myst Online project

Posted: Tue Jul 09, 2013 10:19 am
by Christopher
Three questions:
1. I tried to set a property in a timer. When the timer has finished I get the text from the eventloc, but the property hasnt changed.
the code from the timer, foo is set to "Value" with a default of 0:

Code: Select all

eventloc(locations.mylocation, "blabla")
foo=foo+1
2. Why is something like

Code: Select all

[[foo=0]]
some text
not allowed? I would like to reset a property back to 0 when a new player moves to this location. Is there another way of doing this?

3. Is it possible to move all player from one location to another location when one player triggers something?

I hope you can help me with these questions. I like this editor and my age is growing :)
Christopher

Re: A text Myst Online project

Posted: Tue Jul 09, 2013 10:33 am
by KathAveara
Success! The Age of Elahto has a moon that moves across the sky, and eclipses the sun! I've viewing the movement 1440 times faster in a test Age using otherwise identical code.

To answer your questions, Christopher, the values you see in the editor are the values for the default instance. All instances start with them. What your code is changing, however, are instance values. You can't see these, and they are unique to each instance. No, one player's actions cannot directly affect another player.

Re: A text Myst Online project

Posted: Tue Jul 09, 2013 10:50 am
by Christopher
KathAveara wrote:To answer your questions, Christopher, the values you see in the editor are the values for the default instance. All instances start with them. What your code is changing, however, are instance values. You can't see these, and they are unique to each instance.
I know that, but if I understand it correcly I am able to see the property if I print them with [[foo]]. And it seems it didn't change.

Christopher

Re: A text Myst Online project

Posted: Tue Jul 09, 2013 10:53 am
by KathAveara
Then I don't know why it isn't changing. I have a repeating timer in my Age which causes a value to cycle, which has a visible effect in the Age, in the form of the position of the moon. It works fine.