SGS tutorial

is there a good Tutorial for the Sun Games Server over then the one which comes whith it and is realy weird

I have no idea wht you would consider “not wierd”.

There are the sample apps that come with it as well (battleboard, hack). AFAIK noone has written anything else yet.

perhaps the question is what do you think the Sun Game Server is?

the tutorial is weird not the sgs the tutorial is wierd becouse it dose not exmplain all of the code or wear to put it

I dont follow you.

Did you read the written tutorial? It steps through each obejct and explains what it has to in psuedo code and why. It is then follwoed by the real code to implement that example with heavy in line comments to help you understand how the psuedo-code is beiong implemented as real code.

Ocne you have that code compiled you need to deploy it in your server.

As per the read me in the SDK:

"Installation:

The SGS is packaged in ready-to-run form. Several example game apps are
included and set to load in the server configuration file. Server apps are
installed by editing the SGS-apps.conf file, which is read at SGS server
startup to determine which server apps to instantiate and run."

If you look in that file you will find that for each isntalled app it contains an app ID and a URL pointing to a deployment descriptor file.

The deployment decriptor in chattest (apps/chattest/deploy.xml) is fully commented.

If you ask more specific questions I suspect we can probably help you more.

what is the writen tutorial i just used the one that came whith the early acses download of the sdk can i have urls to other tutorials please ;D ???

err they are in the SGS download (as well as available seperatly in the front site I think). The Server API one looks at how to code for the server and there are a few client ones to explain each platform (J2SE etc). And a Jeff says they are quite detailed.

but it dose not explain wear the code goes or the entire code

Please re-read my post.

Then tell me what parts of it you dont understand.

Maybe this will help:
(0) COmpile all the SwordWorld Java files except the client into a single Jar called SwordWorld.jar. (You cna actually ptu the client in tehre too, it doesnt hurt anything, its just not needed on the server side.)

(1)Open SGS-apps.conf in an editor

(2)Add the following line:
105 file:apps/swordworld/deploy.xml

(3) make a new directory under apps called swordworld
(4) copy apps/chattest/deploy.xml apps/swordworld/deploy.xml
(5) edit the following lines in deploy.xml:
change to
change to
change to

(6)Put SwordWorld.jar in the apps/swordworld directory

i canot find the SwordWorld Java files can you tell me the location please :stuck_out_tongue:

Looking at the SDK it appears to me it did not get released in the exampels source (we’ll look into fixing that./)

In the mean time, the entire source, all the files, are in the end of the server tutorial so you can just cut and paste them in your favorite IDE or editor.

thanks