Picon

Re: Problem testing TictacToe

Is the JID with the TicTacToe parlor in volity.net?

-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
Jason McIntosh | 1 May 01:56
Picon

Re: Problem testing TictacToe

On 4/30/06, Javier Diaz-Reinoso <javier_diaz_r <at> mac.com> wrote:
> Is the JID with the TicTacToe parlor in volity.net?

I'm not sure what you're asking? There is currently no "official"
parlor running at volity.net; the intent with the Perl test stuff, at
least, was that you'd plug in whatever Jabber ID you wanted into the
config file, and it would work (assuming that that JID actually
existed, and you also provided the right password).

Sorry I haven't gotten back to you about the problems you were having
a couple of days ago. I intend to look at that shortly.

--
Jason McIntosh
zendonut <at> gmail.com
Jabber: jmac <at> volity.net
AIM: zendonut
http://jmac.org

-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642
Andrew Plotkin | 1 May 21:21

UIs accepting keystroke events

I filed a note months and months ago (to myself) that UIs were going to 
want to react to keystrokes. UI developers are now saying the same thing.

You can do this already:

<circle cx="25" cy="40" r="25" onkeypress="func(evt)" />

This calls your function with a DOMKeyEvent argument; you can call 
evt.getCharCode() to get the Unicode code point.

(Currently, you can't prevent Batik from reacting to arrow keys by 
scrolling the SVG viewing area. I will yank that behavior out of Gamut 
real soon now.)

My question is: is this sufficient?

Two conditions must be satisfied for the event to occur: the input focus 
must be on the game pane, and the mouse must be inside the object which 
has the onkeypress attribute.

I think we're stuck with the first one: you can type to the UI or you can 
type to the chat pane, and the distinction is the input focus. I think 
this will lead to complaints; it already has, really. (If the UI *doesn't* 
accept keystrokes, why not route them all to the chat window? Because then 
it's inconsistent, that's why.)

You can ease the second condition by putting the onkeypress attribute on 
the top-level SVG object; but the cursor still has to be inside the game 
pane. (Yes, even if the drawn SVG area extends outside that. I tried that. 
:) But it's still inconsistent with the behavior of the chat pane; if the 
(Continue reading)

Phil Bordelon | 1 May 22:07

Re: UIs accepting keystroke events

[Sorry about this going off-list.  Evil, evil reply-to.]

Andrew Plotkin wrote:
> On Mon, 1 May 2006, Phil Bordelon wrote:
> 
>> Andrew Plotkin wrote:
>>
>>> So should we drop the idea of cursor-focussed key events, and just 
>>> deliver all key events to the same place (when the input focus is in 
>>> the game pane)? If so, where?
>>
>>
>> Cursor-focused key events are ugly.  It's not intuitive that I have to 
>> mouse
>> into the board area so that my keystrokes work.
> 
> 
> Ok. I feel the same way.
> 
>> Is there anyway that keystrokes, when the input focus is in the game 
>> pane,
>> can be sent "like an RPC," such that it just triggers some commonly-named
>> function in the ES code, like ui.keypress(key) or the like?
> 
> 
> That's what I was asking. Would ui.keypress() be a reasonable place? We 
> don't currently have a ui object. Is info.keypress() reasonable, or do 
> you expect info to be a bunch of readonly fields? What if you called a 
> function named addKeyEventListener() and passed in your own function?

(Continue reading)

Andrew Plotkin | 1 May 23:24

Re: Other problem with Barsoom

On Fri, 28 Apr 2006, Javier Diaz-Reinoso wrote:

> Attach is two logs, one before de timeout and one after.
>
> I set the Debug option but nothing is printed

Gamut doesn't seem to be joining the table, but I can't see why.

Is it possible for you to run your parlor and bookkeeper for a day, and 
let me try to connect and test them?

Alternatively, I could build a copy of Gamut that prints a lot of 
debugging information, and you could try connecting with it.

--Z

--

-- 
"And Aholibamah bare Jeush, and Jaalam, and Korah: these were the borogoves..."
*
You don't become a tyrrany by committing torture. If you plan for torture,
argue in favor of torture, set up legal justifications for torturing
someday, then the moral rot has *already* set in.

-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
Andrew Plotkin | 2 May 03:55

Re: Sketched Card Game RPC: Whist

On Sun, 30 Apr 2006, Phil Bordelon wrote:

> This is an attempt to sketch out the sort of RPCs that I was thinking of
> in terms of a potential framework.  They are used here to implement
> Whist, but (as was implied by my previous messages) are intended to be
> fairly generic in terms of what sorts of card games they can service.
> Indeed, some of the stuff (especially the way cards are represented) is
> intended to be generic across /many/ card games.

Okay, having finally had a chance to look at this...

The object format makes sense, and I intend to use something like it in 
the card-deck ruleset. (Although with hyphens instead of "|" signs, 
because "3-club" is easier to type.)

The RPC set still strikes me as a clever thing which does not solve a
problem that we have. A ruleset, in a certain pragmatic sense, is what you 
have before you've started to do any work.

Now, if you can write a UI which *generically* implements all of your RPCs 
-- and can therefore be used for any of those games -- you have solved a 
very impressive problem indeed. A slightly lesser (but still valuable) 
solution would be an ECMAScript library which implemented those 
capabilities, which could be used (in a customized form) to create those 
games.

However, in both cases the RPCs are going to be the tail on the dog. If 
you want to offer the RPCs *on their own* to game authors, you're going to 
need to explain what it buys them to learn and follow them, and I don't 
see the answer to that.
(Continue reading)

Phil Bordelon | 2 May 04:29

Re: Sketched Card Game RPC: Whist

Andrew Plotkin wrote:

> Okay, having finally had a chance to look at this...
> 
> The object format makes sense, and I intend to use something like it in 
> the card-deck ruleset. (Although with hyphens instead of "|" signs, 
> because "3-club" is easier to type.)

Hyphens makes sense.  I just wanted a character that no one's going to
miss when they can't put it in the suit or rank of the card.

> The RPC set still strikes me as a clever thing which does not solve a
> problem that we have. A ruleset, in a certain pragmatic sense, is what 
> you have before you've started to do any work.
> 
> Now, if you can write a UI which *generically* implements all of your 
> RPCs -- and can therefore be used for any of those games -- you have 
> solved a very impressive problem indeed. A slightly lesser (but still 
> valuable) solution would be an ECMAScript library which implemented 
> those capabilities, which could be used (in a customized form) to create 
> those games.

I think that it's definitely possible to implement, if not all, than
most of those games with the same UI.  That said ...

> However, in both cases the RPCs are going to be the tail on the dog. If 
> you want to offer the RPCs *on their own* to game authors, you're going 
> to need to explain what it buys them to learn and follow them, and I 
> don't see the answer to that.

(Continue reading)

Andrew Plotkin | 3 May 19:36

Help with Mac Java URLs

I am going somewhat insane trying to figure out how to receive URLs 
(clicked in an external browser) in a Mac Java app (that is, Gamut.app).

Jmac has figured out how to set up the Info.plist so that Gamut is 
launched when the URL is clicked. However, the information then falls on 
the floor; Gamut can't get to it.

(I know how to catch an open-document apple event. The URL, unfortunately, 
is not one of those.)

The closest thing we can find is a class in limewire which uses native C 
code. There is a Cocoa way to do it, but I'm not sure it will work without 
making the whole app a Cocoa app. (Am I wrong?) Does anyone know a better 
answer?

--Z

--

-- 
"And Aholibamah bare Jeush, and Jaalam, and Korah: these were the borogoves..."
*
9/11 did change everything. Since 9/12, the biggest threat to American
society has been the American president. I'd call that a change.

-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
Andrew Plotkin | 4 May 23:40

Gamut build change: new version of Flying Saucer

We are bumping up the version of Flying Saucer (the XHTML widget) to 
R6-pre1, which is the current version.

There is a tiny API change involved in this change, so if you build Gamut 
from source, you will want to grab the new libraries. I have put the two 
updated files in <http://volity.org/projects/gamut/buildlib/>. You want 
core-renderer.jar and cssparser-0-9-4-fs.jar.

--Z

--

-- 
"And Aholibamah bare Jeush, and Jaalam, and Korah: these were the borogoves..."
*
It's a nice distinction to tell American soldiers (and Iraqis) to die in
Iraq for the sake of democracy (ignoring the question of whether it's
*working*) and then whine that "The Constitution is not a suicide pact."

-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
Andrew Plotkin | 5 May 05:42

Card deck resource

I meant to get around to this months ago... I have thrown up the 
definition of a deck-of-cards resource:

<http://www.volity.org/resources/carddeck/poker.html>

It is not as encompassing as Phil's proposal; it only handles a 52-card 
deck of the standard suits (plus card-back and one joker). But the general 
schema can be extended for other kinds of decks (which will get their own 
resource URIs.)

And it can be extended compatibly. When I set up the Tarot resource 
format, it'll be a superset of this one (so a Tarot deck can be used in 
regular card games).

--Z

--

-- 
"And Aholibamah bare Jeush, and Jaalam, and Korah: these were the borogoves..."
*
If the Bush administration hasn't thrown you in military prison
without trial, it's for one reason: they don't feel like it. Not
because of the Fifth Amendment.

-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

Gmane