?
brad's life [entries|archive|friends|userinfo]
Brad Fitzpatrick

[ website | bradfitz.com ]
[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

NBGS status [Mar. 30th, 2001|12:12 am]
Brad Fitzpatrick
[Tags|, ]

It feels so good to get away from perl, databases, server loads, and general chaos every so often. I love Java... such a beautiful language. Everything is so easy and clean.

Status on Networked Board Game System (NBGS) ... can launch with "./nbgs -server" and have it go into server mode. The client (not written, testing using telnet) can connect and disconnect (either cleanly or forcefully) and the server will maintain its count of connected clients and who's connected. Each client is a separate thread that reads the response from the remote user, parses it, and calls handleClientResponse on the Server class, passing itself and a class representing the parsed response. The communication between client and server is line-based, with key/value pairs encoded URL-style. For big data structures (like, say, ScrabbleTurn) which would contain a ton of data and arrays and other stuff, we'll just serialize the class to a string, and send that encoded. The cool thing about doing turn-based games is that it doesn't really matter how much crap we put over the network, and there will never be more than thousand bytes anyway.

Have the start of the client, kinda ... it brings up a top-level window. Infrastructure stuff is more fun, and more important. I'm writing this as an application first, but keeping it mind that it must run as an applet later too (for convenience for users), so I'm keeping things flexible.

It took more time getting jdk1.2.x working under Debian than it did to write what I have so far. Pretty easy once I read the Debian Java documentation and realized that Sun sucks and what the licensing problems were, though. Just installed the blackdown stuff manually, since Debian can't legally package it. I need to learn the Debian alternatives system better... I understand it in abstract, but need to learn how to use it. I ended up just symlinking /usr/bin/{java,javac,jar} to /usr/local/sun/jdk1.1.2/bin/{...} Not the nice Debian way to do it, but all I could get working.

I should sleep. Tomorrow will be fun.

Update, 1:06 am: Chatting works between connected (telnet) clients now. There will be a public meeting area where people talk and create games, join games, start games, and then once you're in a game, the public room will go away and you'll be able to chat in your game. (ala Starcraft, which I always see Scott playing).

Now I really sleep.
LinkReply

Comments:
[User Picture]From: idigital
2001-03-30 05:52 am (UTC)
i currently own an old 68k macintosh (soon to be replaced by a linux box running caldera openlinux). i also have access to many windows nt workstation 4 sp6 machines at school too. if i could be of any help to you, could you add me to the lj_dev community please? i would really like to help you guys.
(Reply) (Thread)
[User Picture]From: twistah
2001-03-30 12:45 pm (UTC)
What do you mean, replaced? Who throws away hardware? Or do you not have room?

An old 68k Mac is a good excuse to run NetBSD, IMHO ;)

(Reply) (Parent) (Thread)
[User Picture]From: idigital
2001-04-02 07:34 am (UTC)
uhh it's a performa 630

the processor is the only 68k processor not supported by NetBSD - the 68LC040 (Low Cost/No FPU)

dammit

i also had a look at linux m68k. it's slow, crap and doesn't support the floppy drive, ppp, the macintosh networking cabling is not supported...it's crap

i'm selling my mac so that i can buy a pc. i have no money =P
(Reply) (Parent) (Thread)
[User Picture]From: bradfitz
2001-03-31 01:31 am (UTC)

Re:

It's an open community.... just go join and then introduce yourself.
(Reply) (Parent) (Thread)
[User Picture]From: idigital
2001-04-02 07:34 am (UTC)
hehe, thanks
(Reply) (Parent) (Thread)
[User Picture]From: yizhe
2001-03-30 06:51 am (UTC)
Brad, do you need beta testing? If yes, I will be glad to be the test =) Free games..!!
(Reply) (Thread)
[User Picture]From: whitaker
2001-03-30 12:18 pm (UTC)
This sounds like a really interesting/practical/fun project.
(Reply) (Thread)
[User Picture]From: segue
2001-03-30 01:26 pm (UTC)

NGSB

(Dammit - repost #2)

If that works like I think it does, I need it. I'll even pay for it, or...steal a book from the library and torture myself by learning it, again, and again.
(Reply) (Thread)
[User Picture]From: bradfitz
2001-03-30 02:13 pm (UTC)

Re: NGSB

what exactly do you need so bad? a game/chat server? i'm confused.
(Reply) (Parent) (Thread)
[User Picture]From: dethbunny
2001-03-30 02:32 pm (UTC)

Re: NGSB

sanity.
(Reply) (Parent) (Thread)
[User Picture]From: yizhe
2001-03-30 05:11 pm (UTC)

Re: NGSB

Is he as insane as hitler?
(Reply) (Parent) (Thread)
[User Picture]From: way2tired
2001-03-30 08:09 pm (UTC)

Re: NGSB

dude was stark raving mad, wasn't he?
(Reply) (Parent) (Thread)
[User Picture]From: segue
2001-04-02 11:26 am (UTC)

Re: NGSB

Game.
Actually, I have the game, I just need something to run it.
(Reply) (Parent) (Thread)