Java-Gaming.org Hi !
Featured games (81)
games approved by the League of Dukes
Games in Showcase (513)
Games in Android Showcase (119)
games submitted by our members
Games in WIP (576)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Chat updated to Flash/Ajax client  (Read 1763 times)
0 Members and 1 Guest are viewing this topic.
Offline tigeba

Junior Duke





« Posted 2007-04-05 04:31:10 »

it seems that some people had problems with the Applet, so I updated it to use a Flash/Ajax based client for web use.  I used a  library called AFLAX to do the client, as it can handle persistent connections with flash.  Please stop by and check it out, especially if you had problems with the Applet version!


Offline jankoM

Senior Newbie





« Reply #1 - Posted 2007-04-05 10:24:57 »

Very interesting. I connected one time but just stayed blank on few other attempts I made.

when it doesn't work it fails with this (firefox, win2k)

Error: __flash__argumentsToXML is not defined
Source File: http://www.darkstarusers.com/client/lib/AFLAX/aflax.js
Line: 42

Why are two connections from the same computer not allowed? Is this technical limitation or a design decision?

Offline Jeff

JGO Coder




Got any cats?


« Reply #2 - Posted 2007-04-05 14:11:31 »

Out of curiosity... how are you doing the FLASH client since we haven't released a FLASH client API?

Got a question about Java and game programming?  Just new to the Java Game Development Community?  Try my FAQ.  Its likely you'll learn something!

http://wiki.java.net/bin/view/Games/JeffFAQ
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline tigeba

Junior Duke





« Reply #3 - Posted 2007-04-05 14:46:01 »

Very interesting. I connected one time but just stayed blank on few other attempts I made.

when it doesn't work it fails with this (firefox, win2k)

Error: __flash__argumentsToXML is not defined
Source File: http://www.darkstarusers.com/client/lib/AFLAX/aflax.js
Line: 42

Why are two connections from the same computer not allowed? Is this technical limitation or a design decision?


Not sure about the errors. Perhaps the message I gave is a bit ambiguous.  All the client is saying is that someone with that name is already logged in.  The second attempt actually boots the person out and then you can reconnect.  So, it isn't multiple connections that are the problem, just  multiple users with the same name.

It does appear that the new client might not be timing people out  and removing them after a reasonable period of time, so I might throw in a little fix for that.

Offline tigeba

Junior Duke





« Reply #4 - Posted 2007-04-05 14:54:31 »

Out of curiosity... how are you doing the FLASH client since we haven't released a FLASH client API?

MuahahahahahahahahahahahahahahahahahhahaHAHhahahHahh!

Actually, I'm just using a socket from flash to basically tunnel over to a slightly tweaked version of the telnet client.

This is the general layout:

Telnet / Flash Client  -> Apache Mina on 4000/4001 -> SGS

Mina serves up a "shell" based on what port you connect on and the shell is what actually interacts with the real SGS Client. 

Offline Jeff

JGO Coder




Got any cats?


« Reply #5 - Posted 2007-04-05 16:21:02 »

Heh okay

I *would* like to see a real FLASH client someday.  Wuuld be a good community project *hint hint*

JK

Got a question about Java and game programming?  Just new to the Java Game Development Community?  Try my FAQ.  Its likely you'll learn something!

http://wiki.java.net/bin/view/Games/JeffFAQ
Offline tigeba

Junior Duke





« Reply #6 - Posted 2007-04-05 16:28:19 »

Heh okay

I *would* like to see a real FLASH client someday.  Wuuld be a good community project *hint hint*

JK

I'll add it to the list Smiley
Offline tigeba

Junior Duke





« Reply #7 - Posted 2007-04-05 19:27:55 »

Very interesting. I connected one time but just stayed blank on few other attempts I made.

when it doesn't work it fails with this (firefox, win2k)

Error: __flash__argumentsToXML is not defined
Source File: http://www.darkstarusers.com/client/lib/AFLAX/aflax.js
Line: 42

Why are two connections from the same computer not allowed? Is this technical limitation or a design decision?

I believe I fixed the timeout / not logging people out bug.  The multiple logins message is now more clear.  It allows as many connections as you want, you just have to select a username that isn't in use. 


Offline tigeba

Junior Duke





« Reply #8 - Posted 2007-04-06 15:41:33 »

Based on the suggestion of some of the users, I changed the command parsing to be a bit more intuitive. All commands are now prefixed with a ‘/’. To look around the room you would type /look. If you do not prefix your command with ‘/’, then whatever you type will be sent to your default command, which is /say. Of course, you can override this with the /defaultcommand command. The '#' prefix is still valid as the groovy interpreter binding.

The short version, typing will now default to chatting unless you do something special Smiley

Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

Longarmx (38 views)
2014-10-17 03:59:02

Norakomi (29 views)
2014-10-16 15:22:06

Norakomi (24 views)
2014-10-16 15:20:20

lcass (28 views)
2014-10-15 16:18:58

TehJavaDev (56 views)
2014-10-14 00:39:48

TehJavaDev (55 views)
2014-10-14 00:35:47

TehJavaDev (46 views)
2014-10-14 00:32:37

BurntPizza (64 views)
2014-10-11 23:24:42

BurntPizza (36 views)
2014-10-11 23:10:45

BurntPizza (78 views)
2014-10-11 22:30:10
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!