Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (489)
Games in Android Showcase (112)
games submitted by our members
Games in WIP (555)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  griding it up  (Read 2800 times)
0 Members and 1 Guest are viewing this topic.
Offline aNt

Senior Member




AFK


« Posted 2006-04-04 10:41:54 »

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?
Offline kevglass

JGO Kernel


Medals: 159
Projects: 23
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #1 - Posted 2006-04-04 14:23:40 »

I believe the EA1 release is limited to one slice - so it might well be restricted from failing over to the next.

Kev

Offline ChrisM

JGO Coder


Medals: 1
Projects: 1


END OF LINE.


« Reply #2 - Posted 2006-04-04 14:54:44 »

Correct Kev, just one slice.  No fail over to a second system on the free development SDK.

-Chris

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline aNt

Senior Member




AFK


« Reply #3 - Posted 2006-04-04 17:16:15 »

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.
Offline Jeff

JGO Coder




Got any cats?


« Reply #4 - Posted 2006-04-04 21:19:16 »

shame- how do we know what will happen if a slice goes down?

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.

Quote
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.

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?


Got a question about Java and game programming?  Just new to the Java Game Development Community?  Try my FAQ.  Its likely you'll learn something!

http://wiki.java.net/bin/view/Games/JeffFAQ
Offline aNt

Senior Member




AFK


« Reply #5 - Posted 2006-04-04 22:23:29 »

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:

1  
2  
3  
4  
5  
6  
7  
8  
9  
<?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 <discovery> tags. i even opened the port 2049 across the whole network here- just to see if it was that Tongue... i must be missing something?
Offline Jeff

JGO Coder




Got any cats?


« Reply #6 - Posted 2006-04-04 23:47:30 »

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:
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.

Quote
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 <discovery> tags. i even opened the port 2049 across the whole network here- just to see if it was that Tongue... i must be missing something?

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).

Got a question about Java and game programming?  Just new to the Java Game Development Community?  Try my FAQ.  Its likely you'll learn something!

http://wiki.java.net/bin/view/Games/JeffFAQ
Offline aNt

Senior Member




AFK


« Reply #7 - Posted 2006-04-05 08:16:15 »

ta dude... but still nothing Sad

my 'sgs-ea1\release\server\SGS-apps.conf' looks like this:

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
# 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:

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
<?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:

1  
2  
3  
<?xml version="1.0" encoding="UTF-8"?>
<DISCOVERY>
</DISCOVERY>


and my edited 'sgs-ea1\release\clients\FakeDiscovery.xml' looks like this:

1  
2  
3  
4  
5  
6  
7  
8  
9  
<?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
Offline Jeff

JGO Coder




Got any cats?


« Reply #8 - Posted 2006-04-05 20:40:38 »

(1) My guiess is you didnt start the dioscovery manager.  Theres a seperate shell script.

And this is wrong:

1  
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.

Got a question about Java and game programming?  Just new to the Java Game Development Community?  Try my FAQ.  Its likely you'll learn something!

http://wiki.java.net/bin/view/Games/JeffFAQ
Offline aNt

Senior Member




AFK


« Reply #9 - Posted 2006-04-06 10:13:15 »

cheers jeff dude...
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Jeff

JGO Coder




Got any cats?


« Reply #10 - Posted 2006-04-06 18:11:45 »

cheers jeff dude...

I assume that means it works now?  Smiley

Sorry, I speak American and just a trace of English Wink

Got a question about Java and game programming?  Just new to the Java Game Development Community?  Try my FAQ.  Its likely you'll learn something!

http://wiki.java.net/bin/view/Games/JeffFAQ
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

Nickropheliac (9 views)
2014-08-31 22:59:12

TehJavaDev (23 views)
2014-08-28 18:26:30

CopyableCougar4 (27 views)
2014-08-22 19:31:30

atombrot (40 views)
2014-08-19 09:29:53

Tekkerue (38 views)
2014-08-16 06:45:27

Tekkerue (34 views)
2014-08-16 06:22:17

Tekkerue (24 views)
2014-08-16 06:20:21

Tekkerue (34 views)
2014-08-16 06:12:11

Rayexar (72 views)
2014-08-11 02:49:23

BurntPizza (47 views)
2014-08-09 21:09:32
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!