Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (513)
Games in Android Showcase (120)
games submitted by our members
Games in WIP (577)
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  
  Darkstar based chat now online!  (Read 1963 times)
0 Members and 1 Guest are viewing this topic.
Offline tigeba

Junior Duke





« Posted 2007-03-30 15:51:56 »


Some of the details can be found here: http://www.darkstarusers.com/news/2007/03/30/darkstaruserscom-project-darkstar-sun-game-server-based-chat-now-online/

In a nutshell, it is running on the current 0.9 release and is vaguely MUD/MUSH/MOO/M**-ish.  Aside from chatting, you can create/destroy inspect objects and interact in a limited way (dropping or taking items).  I believe there are a total of about 15 commands currently.  It uses the database custom authentication I posted here last week, so you can see that in action. 

I have almost finished adding scripting , and when I get that working, I will be posting a tutorial on how to integrate that with SGS as well.  I hope you all check it out, and hopefully hang around!

Oh, one other note, I probably spent more time this week deciding how to write the client than working on the actual engine.  I tried various web based techniques with AJAX and such, but I could never really avoid having to do polling, which I felt was kind of gross.  I ended up just writing a simple java applet.    In a fit of nostalgia, I also wrote a pure telnet gateway which is what I will probably use most of the time.

Offline Jeff

JGO Coder




Got any cats?


« Reply #1 - Posted 2007-03-30 16:11:43 »

Some of the details can be found here: http://www.darkstarusers.com/news/2007/03/30/darkstaruserscom-project-darkstar-sun-game-server-based-chat-now-online/

In a nutshell, it is running on the current 0.9 release and is vaguely MUD/MUSH/MOO/M**-ish.  Aside from chatting, you can create/destroy inspect objects and interact in a limited way (dropping or taking items).  I believe there are a total of about 15 commands currently.  It uses the database custom authentication I posted here last week, so you can see that in action. 

I have almost finished adding scripting , and when I get that working, I will be posting a tutorial on how to integrate that with SGS as well.  I hope you all check it out, and hopefully hang around!

Oh, one other note, I probably spent more time this week deciding how to write the client than working on the actual engine.  I tried various web based techniques with AJAX and such, but I could never really avoid having to do polling, which I felt was kind of gross.  I ended up just writing a simple java applet.    In a fit of nostalgia, I also wrote a pure telnet gateway which is what I will probably use most of the time.



Cool.  How are you doing scripting, all in the ManagedObjects?

I've had on my back burner to do a scripting service, maybe around Groovy.
Course if YOU want to do that once the extension manual is released, all the better!

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 #2 - Posted 2007-03-30 16:38:37 »

Cool.  How are you doing scripting, all in the ManagedObjects?

I've had on my back burner to do a scripting service, maybe around Groovy.
Course if YOU want to do that once the extension manual is released, all the better!


Heck yeah!

I'm using groovy right now, mostly because I wanted an excuse to use it since I never have.  Basically you can interact with managed objects on the command line.  In my simulation, everything is based on a SimObject (extremely original I know) so you can look them up by id, bind them to a variable and kinda play with them.  In theory I could bind a script to the object right now, but I have not yet added any sort of events to cause the scripting to fire.





Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Jeff

JGO Coder




Got any cats?


« Reply #3 - Posted 2007-03-30 17:32:35 »

Hmm.
Getting a security error trying to connect.  are you serving that page from the same machine the server is on?

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 #4 - Posted 2007-03-30 17:49:26 »

Hmm..  Yes the page is served by the same server that the chat instance is living on.  I tested it on Firefox and IE7.  I imagine there could be a problem if you cannot  directly connect to the port that the Applet is requesting (ie, if you are behind a proxy of some sort).

Alternately you can telnet to darkstarusers.com 4000 for an incredibly old-school experience.  I don't really have any decent terminal emulation implemented, but it does work.
Offline tigeba

Junior Duke





« Reply #5 - Posted 2007-03-30 18:07:08 »

I bounced the server, the process may have died when I logged out and failed to nohup the process.  I am able to hit it remotely via the Applet.
Offline Jeff

JGO Coder




Got any cats?


« Reply #6 - Posted 2007-03-30 18:17:38 »

Maybe my sun firewall is screwing it up.  Ill try it tonight from home!

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 #7 - Posted 2007-03-30 18:18:50 »

Bummer!  I see a ChrisM in here but he is not very talkative Smiley
Offline tigeba

Junior Duke





« Reply #8 - Posted 2007-04-02 04:18:02 »

Some folks seem to have been having problems with the authentication not working properly.  It is disabled at the moment, so just make up any user/pass combo and it should work.  I have my first round of scripting support completed and it should be up and available to play with in the morning!


Offline purpleguitar

Junior Duke





« Reply #9 - Posted 2007-04-02 11:30:00 »

I was able to connect.  I am eager to hear about scripting support.  I hope to build a similar system that supports client-generated scripting, but this would be much easier if someone else provided tips regarding security issues.  Looking forward to the next version!
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline tigeba

Junior Duke





« Reply #10 - Posted 2007-04-02 17:20:46 »

I was able to connect.  I am eager to hear about scripting support.  I hope to build a similar system that supports client-generated scripting, but this would be much easier if someone else provided tips regarding security issues.  Looking forward to the next version!

That is a pretty good point.  Right now the answer is I'm not exactly sure how to reconcile the javax.scripting stuff and the way Groovy handles the security manager.  In the case of interpreting a script that does not come from a file, The native groovy interpreter allows you to pass in a namespace for the script to execute under, so you can set the normal SecurityManager restrictions.  With the javax.script stuff, it does not appear you can do that, so I'm not exactly sure how to handle this case.  ( I just spent last evening converting the thing to use the javax.script instead of the native Groovy interface).

HMMMmmmm!
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 (52 views)
2014-10-17 03:59:02

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

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

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

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

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

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

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

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

BurntPizza (86 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!