Reducing the Client distribution size
31jul09 CmdrZin
25sep10

Working though the project to isolate the Client by removing excess Classes. This will make its distibution files smaller the speed up the download.

Currently, the Client needs the follwing jar archives to be run independently as with WebStart.
    sgs-client.jar
    sgs-server-api-0.9.9.jar
    sgs-shared-1.3.jar
    mina-core-1.1.0.jar
    slf4j-api-1.4.0.jar
    slf-jdk14-1.4.0.jar

Using the Safe Delete in NetBeans, pare down the basic packages to six.
    com.sun.sgs.darkmud
    com.sun.sgs.darkmud.chasm        (used by Mapper)
    com.sun.sgs.darkmud.client
    com.sun.sgs.darkmud.client.img
    com.sun.sgs.darkmud.core
    com.sun.sgs.darkmud.map            (used by Mapper)

First off, remove ALL logging references so the SLF4j.jar files will not be needed. The Client doesn't use the Logger.
then remove slf4j jars files..builds ok..try to run from command line..nope..somebody still needs the logger.
I think the PDS sgs distibution does..have to add both slf4j jars back in.
Try removing specific Classes..
    com.sun.sgs.darkmud.chasm.Altar
    com.sun.sgs.darkmud.map.WallMap

Bah, minor reduction..just use the six as is for build the Client for distribution.
25sep10
Updating the Client
Copy over the conf files from the Server project ZMUohMy.
  darkmudRedux.boot    - no changes
  logging.properties    - no changes
  MudMain.properties    - adds all the positions and dimensions stuff plus corrections
  ZMUohMy.boot    - new file
I don't think any of these are used, but they're were here. Fix this later.
Add new directories to the src in NetBeans. The core3d is a package and icons and models are folders. Try just copying the directories and let NetBeans detect the new files.
Copy over modified files
  core/Door.java
  core/Room.java
  client/MudClient.java    - be sure to set the hostname back to the IP address.
  client/ClientInfo.java    - add the jar files to the library also. (use NetBeans)
Bring in jar files from RDS release 0.10.1
  sgs-client.jar
  sgs-server-api-0.10.1.jar
  sgs-shared-1.7.jar
  mina-core-1.1.0.jar
  slf4j-jdk14-1.4.0.jar
  slf4j-api-1.4.0.jar
and Loader from Killer Game Programming book code.
  portfolio.jar
need to copy over the new message class that I had worked on also.
  messages/*.*
Test out the deploy Client with localhost..
Under Project Properties::Application::Web Start
  unselect Enable Web Start
  Set codebase to Local Execution
Startup the local server using the command line. Can log on..ok.
Under Project Properties::Application::Web Start
  select Enable Web Start
  Set codebase to User defined (e.g. HTTP deployment)
  Set Codebase Preview to host IP/directory (http://216.86.198.187/dist/ for my site.)
Change MudClient.java
//    private static final String SERVERNAME = "localhost";
    private static final String SERVERNAME = "216.86.198.187";
Build and copy to the Web site /dist directory for download.
  dist/launch.html
  dist/launch.jnlp
hmm..no jar file..
Turn off Web Start and Build Only (not Clean and Build). This generated the lib folder and jar file. Copy these into the Web site /dist folder also.
Copy the Server jar file and conf files to the host deployment directory. I use a home directory.