If you just want to start testing my latest game server, the easiest way is to run a local copy. Download the executable jar and double click it.
(In Windows) all you will see is a javaw process running like so:
Ways to see the source
If you are just curious
Poke around the 1.4m server or the client code.
Easiest compilable source
These are the major releases, and will allow you to set breakpoints and follow along. If you are new to Java, pick this route before diving deeper.
Just download my zip files of the ready made projects at fireleg.com
Getting the latest source
If you are familiar with Java and want to keep up with the latest builds, I will show you how to download the source from the google repository into a working project.
Trust me, this setup isn't one of those configuration nightmares, it's just a couple of steps that I document very thoroughly so you can see exactly what I did. Expert users can breeze through this in minutes.
Install Subversion (SVN)
First, let's go get Subversion (aka svn). Download from this link on this page http://downloads.open.collab.net/collabnet-subversion.html
Just double click the download -- the installer does a really nice job of adding 'svn' to your command line.
Now you have two main options for getting the source. The first is to use an IDE like Netbeans 6.0 (or any other IDE) and pull a copy of the project visually. The other way is to just use 'svn' on the command line. I'll go over the svn command line way first, then get into the visual way.
Either way, the google repository page is here http://code.google.com/p/fireleg/source/checkout.
Mainly this page lets you know that the svn command to pull the whole trunk is:
svn checkout http://fireleg.googlecode.com/svn/trunk/
So, to use the command line svn do this:
Start -> Run -> cmd
Type a DOS prompt command ('cmd') like so:
Test that svn works by typing "svn --version" (without the quotes) like this:
From that command prompt, navigate using 'cd' (change directory) command to the main folder that will store the source code.
Then just type:
svn checkout http://fireleg.googlecode.com/svn/trunk/jags_server1.4m/ and it will download all the source code.
Netbeans 6.0 IDE
Once you have installed subversion, you can follow along this path to visually pull the project. You may want to restart Netbeans since you just installed subversion.
In Netbeans, go to the Versioning -> Subversion -> Checkout menu.
The first time you try this, Netbeans will ask where subversion is installed. Just browse to the folder you put subversion in. Mine looks like this (I shortened the install name and picked my own folder):
Now fill out what svn repository you want to pull from:
Leave the user / password blank so you can pull anonymously. This just means you won't be able to check code back in, but you can always mail me your code suggestions or ask to get write access from me (email travis_somerville2000 ~at~ yahoo.com).
Next, tell it what folders you want to check out. Browse and select just the jags_server1.4m folder like so:
Your screen should look like this (or something similar):
Now you should see a fully working project called "jags_server1.4m". I recommend making it your main project before hitting run, just so you know it's running the right project.
To make it the main project, right click the project like this:
We're so close! Just run the thing and your server is ready for Actionscript 3.0 games!
Hit the run button.
When you see the statement "listening on port 81" in the Netbeans Output window, you know it's ready.
Pat yourself on the back! Set breakpoints, go crazy.
The client code
From here, just get the Actionscript client going (listed above) and make contact with the server.
As mentioned above, the source for the client code is here .
In another post, I will detail how to talk to the server from the client's perspective. For now, I'd better go eat some dinner.
No comments:
Post a Comment