Create account / Log in

server persistence question

Topics related to the main Vassal engine.

Moderators: Tim M, uckelman

server persistence question

Postby hazmatt » May 24th, 2009, 11:46 pm

Hey - I'm guessing this has been discussed before, but I couldn't find a thread about it.

I want to setup and play a game that may take several months to complete - with 1-5 turns per day. I'd like to have the game 'hosted' on the VASSAL server so that players could login when it's their turn. So it would be like a PBEM except that we don't have to pass attached files around. Or if the data is not persistent on the main server (or if it's not reliable enough) I could host the game on a server that I have access to and control of it's firewall (i.e. I can open up ports if needed).

Are either of these option possible? Has anyone else set this up?

thanks! Matt
hazmatt
 
Posts: 5
Joined: May 24th, 2009, 11:19 pm

server persistence question

Postby uckelman » May 25th, 2009, 6:38 am

Thus spake "hazmatt":
Hey - I'm guessing this has been discussed before, but I couldn't find a thre
ad about it.

I want to setup and play a game that may take several months to complete - wi
th 1-5 turns per day. I'd like to have the game 'hosted' on the VASSAL serve
r so that players could login when it's their turn. So it would be like a PB
EM except that we don't have to pass attached files around. Or if the data i
s not persistent on the main server (or if it's not reliable enough) I could
host the game on a server that I have access to and control of it's firewall
(i.e. I can open up ports if needed).


Are either of these option possible? Has anyone else set this up?

The game server holds no information about games beyond the name of the
room and the names and IP addresses of the participants. Even if you were
able to run a game server yourself, for what you propose to work, all
of the players would have to remain connected to it continuously.

You're better off sending save files among the players.

--
J.

_______________________________________________
Messages mailing list
Messages@forums.vassalengine.org
http://forums.vassalengine.org/mailman/ ... engine.org

Post generated using Mail2Forum (http://www.mail2forum.com)
User avatar
uckelman
Site Admin
 
Posts: 8345
Joined: December 10th, 2007, 9:48 am
Location: Durham, England

Postby hazmatt » May 25th, 2009, 4:21 pm

Ok, thanks for the reply. That's too bad. I can understand why a constant connection is required.

Maybe next version :wink:
hazmatt
 
Posts: 5
Joined: May 24th, 2009, 11:19 pm

server persistence question

Postby Brent Easton » May 25th, 2009, 9:28 pm

Ok, thanks for the reply. That's too bad. I can understand why a
constant connection is required.

Maybe next version [Wink]

As Joel says, no data persists in the server,

However, the game data does persist within the clients of any players that stay connected and synchronized. Theoretically, if a player where to stay continuously connected to a server, then the game room would stay constantly active and the game be constantly available.


B.



_______________________________________________
Messages mailing list
Messages@forums.vassalengine.org
http://forums.vassalengine.org/mailman/ ... engine.org

Post generated using Mail2Forum (http://www.mail2forum.com)
User avatar
Brent Easton
 
Posts: 2836
Joined: December 21st, 2007, 3:06 am
Location: Berry, NSW, Australia

Postby hazmatt » May 29th, 2009, 3:39 pm

However, the game data does persist within the clients of any players that stay connected and synchronized. Theoretically, if a player where to stay continuously connected to a server, then the game room would stay constantly active and the game be constantly available.


So if I were to have an observer constantly connected to the game on the server, then all the other players could come and go? That might work. I still would worry about the server going down. It would suck to get 2 months into a game and then lose it.
hazmatt
 
Posts: 5
Joined: May 24th, 2009, 11:19 pm

server persistence question

Postby Tim M » May 29th, 2009, 4:12 pm

You could instruct the players to do a save before they leave, each time as they come and go. This way if the server did go down the last player that entered would have the latest game state which can be reloaded and put back up on server after a crash


From: hazmatt <messages@forums.vassalengine.org>
To: messages@forums.vassalengine.org
Sent: Friday, May 29, 2009 10:39:20 AM
Subject: [General Discussion]Re: server persistence question


However, the game data does persist within the clients of any players that stay connected and synchronized. Theoretically, if a player where to stay continuously connected to a server, then the game room would stay constantly active and the game be constantly available.


So if I were to have an observer constantly connected to the game on the server, then all the other players could come and go? That might work. I still would worry about the server going down. It would suck to get 2 months into a game and then lose it.







_______________________________________________
Messages mailing list
Messages@forums.vassalengine.org (Messages@forums.vassalengine.org)
http://forums.vassalengine.org/mailman/ ... engine.org

Post generated using Mail2Forum (http://www.mail2forum.com)
Tim,
Vassal Uber Geek/Guru

Problems? post your OS, Physical Mem, version of Vassal and Java plus the Module in question.
No developer can help with out that info, thx!
User avatar
Tim M
 
Posts: 1797
Joined: December 8th, 2007, 12:22 pm
Location: Earth

server persistence question

Postby uckelman » May 29th, 2009, 5:36 pm

Thus spake "hazmatt":
However, the game data does persist within the clients of any players that
stay connected and synchronized. Theoretically, if a player where to stay con
tinuously connected to a server, then the game room would stay constantly act
ive and the game be constantly available.


So if I were to have an observer constantly connected to the game on the serv
er, then all the other players could come and go? That might work. I still
would worry about the server going down. It would suck to get 2 months into
a game and then lose it.


You can't lose your game as a result of the server going down---the server
doesn't have your game data. If the server went down while you were
connected, what you'd have to do is save your game, reconnect, and then have
the other players sync back with the saved game.

Also, I can guarantee that you wouldn't be able to remain connected to the
game server for 2 months straight: There's a bug which causes it to die
every few days right now, and even if that were fixed, it's unlikely that
there would be a two-month stretch where I wouldn't need to reboot the
machine for a kernel update.

--
J.

_______________________________________________
Messages mailing list
Messages@forums.vassalengine.org
http://forums.vassalengine.org/mailman/ ... engine.org

Post generated using Mail2Forum (http://www.mail2forum.com)
User avatar
uckelman
Site Admin
 
Posts: 8345
Joined: December 10th, 2007, 9:48 am
Location: Durham, England


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 4 guests