ok i have 2 computers (or two running SGS). if i close one of them everyone gets dissconnected from the game, isnt the other server supposed to take over? i have tryed running the other instance as in Discovery mode not much change here. should my Client try and reconnect when things fallOver (seems to be trying to by itself anyway). A thing i did note when i did change something in the game the other Discovery instances do get updated- so i guess somthing is trying to work here… how do i setup a game grid, so if the one server goes down the others take over without the player seeing any change?
I believe the EA1 release is limited to one slice - so it might well be restricted from failing over to the next.
Kev
Correct Kev, just one slice. No fail over to a second system on the free development SDK.
-Chris
shame- how do we know what will happen if a slice goes down?
does this development version only work over localhost? i put the game on another
computer and pointed the ip to my computer to see if it would connect and i always
get an error.
Once you get to the point where what you have is scaling and fault
esting, you move to either the Playground or a commerical
host.
This is a purposeful limit to keep the unscrupulous from trying to run servcies of of the free-ware.
Nope it works just fine networked. Its what we acually used at the show and what we have runnign on our networked alpha-server
that we use internally. Did you change your deployment XML files? If so are you using “real” discovery or the FakeDsicovery.xml file? If the latter, did you chnage it, too?
well one slice is cool with me- just wanted to see it working still when one of the servers poped; hay np leaming it with one for now…
discovery: in my document i put:
<?xml version="1.0" encoding="UTF-8"?>
<DISCOVERY>
<GAME id="2049" name="Flayer">
<USERMANAGER clientclass="com.sun.gi.comm.users.client.impl.TCPIPUserManagerClient">
<PARAMETER tag="host" value="192.168.13.195" />
<PARAMETER tag="port" value="2049" />
</USERMANAGER>
</GAME>
</DISCOVERY>
the ip being the address of the location of the server. on the server i didnt change anything. do i need to change things there also? i do have a discovery.xml, but theres nothing in that file but the root tags. i even opened the port 2049 across the whole network here- just to see if it was that :P… i must be missing something?
I assume you mram the client side FakeDiscovery.xml (or whatever you called your own copy if you renamed it.).
You need to reset the server-side deployment XML file. In fact, ina real back end thats all you would change as the disovery manager would create the client-side doc for you from the server side info.
If you waited about 90 seconds and the discovery.xml created byu the DiscoveryManager ahs ntohign but root tags then you dont have anything actually installed into your server.
Loo kat the SGS-apps.conf file. It points to an XML deployment descriptor for each app tht is installed. Those need to be changed to reflect the actual port you want to receieve conenctions on.
If you chnage those, start everything up, and wait about 90 seconds you SHOULD get a discovery.xml generated that shows all your apps. (The same as the FakeDiscovery.xml, ifyou did your FakeDiscovery.xml right).
ta dude… but still nothing
my ‘sgs-ea1\release\server\SGS-apps.conf’ looks like this:
# Configure the games to be run on this SGS backend.
#
#Game ID URL to XML deployment descriptor
#------- --------------------------------
#1 file:apps/timer_test/deploy.xml
#2 file:apps/trivial_boot/deploy.xml
101 file:apps/chattest/deploy.xml
102 file:apps/battleboard/deploy.xml
103 file:apps/matchmaker/deploy.xml
104 file:apps/hack/deploy.xml
#200 file:apps/jnwn/deploy.xml
#210 file:apps/stomping-grounds/deploy.xml
#220 file:apps/cosmic-birdie/deploy.xml
in my ‘server\apps\chattest\deploy.xml’ the deploy looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<GAMEAPP gamename="ChatTest">
<GLEAPP bootclass="com.sun.gi.apps.chattest.ChatTestBoot"
classpathURL="file:ChatTest.jar" />
<USERMANAGER serverclass="com.sun.gi.comm.users.server.impl.TCPIPUserManager"
reconnect_key_ttl="30">
<PARAMETER tag="host" value="127.0.0.1" />
<PARAMETER tag="port" value="1150" />
<VALIDATOR moduleclass="com.sun.gi.comm.users.validation.impl.FlatFileUserValidator">
<PARAMETER tag="password_file_url" value="file:passwd.txt" />
</VALIDATOR>
</USERMANAGER>
</GAMEAPP>
but every time i start up and leave it all running my ‘sgs-ea1\release\server\discovery.xml’ allways just has:
<?xml version="1.0" encoding="UTF-8"?>
<DISCOVERY>
</DISCOVERY>
and my edited ‘sgs-ea1\release\clients\FakeDiscovery.xml’ looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<DISCOVERY>
<GAME id="2049" name="ChatTest">
<USERMANAGER clientclass="com.sun.gi.comm.users.client.impl.TCPIPUserManagerClient">
<PARAMETER tag="host" value="198.125.13.168" />
<PARAMETER tag="port" value="1150" />
</USERMANAGER>
</GAME>
</DISCOVERY>
for the host- i put my the ip address of the server… im useing the ChatTest as my test code now- just in case theres somthing wrong with my code test, the servers ‘sgs-ea1\release\server\discovery.xml’ file always looks empty even after waiting 20-30mins. im running on windowsxp (hope its not that). localhost connections work ok
(1) My guiess is you didnt start the dioscovery manager. Theres a seperate shell script.
And this is wrong:
PARAMETER tag="host" value="127.0.0.1" />
That says your user manager is listening on the local loop-back. You need to replace 127.0.0.1 with your actual ip.
cheers jeff dude…
I assume that means it works now?
Sorry, I speak American and just a trace of English