|
|
|
|
|
February 4th, 2008, 06:17 AM
|
National Security Advisor
|
|
Join Date: Nov 2006
Location: Oxford, UK
Posts: 5,921
Thanks: 194
Thanked 855 Times in 291 Posts
|
|
Re: I am getting really fed up... server problems.
In my experience the server stuff is at least a little bit crazy. Definitely best in future to take your turns offline I think.
Sorry for your misery though.
|
February 4th, 2008, 03:52 PM
|
|
General
|
|
Join Date: Feb 2007
Location: R'lyeh
Posts: 3,861
Thanks: 144
Thanked 403 Times in 176 Posts
|
|
Re: I am getting really fed up... server problems.
Now I understand what you are talking about, using two copies of the game and your own server - you are trying to set up a network game on a single computer, playing it locally, yes?
I am not surprised to see that this runs into problems. You should play a local game, not networked, if you want to play and host at the same time.
If you still want to do both on the same computer, then just to avoid strange things like those that you are experiencing, you should set the savepath's of server and client to be different directories when you start them up. Dominions uses these environmental variables when starting:
DOM3_DATA
DOM3_TEMP
DOM3_CONF
DOM3_SAVE
DOM3_MAPS
DOM3_LOCALMAPS
DOM3_MODS
You should use different values of DOM3_SAVE for your server and client, with a batch file / shell script for example. Using different directories for the game files doesn't do anything, as the save directory should depend on the user running the game, not the game installation. You can run with one installation, so long as you change the savepaths.
|
February 4th, 2008, 04:07 PM
|
|
General
|
|
Join Date: Feb 2007
Location: R'lyeh
Posts: 3,861
Thanks: 144
Thanked 403 Times in 176 Posts
|
|
Re: I am getting really fed up... server problems.
Quote:
Argitoth said:
I log in to my nation, none of my actions were saved. This happened twice now and I am just so freaking pissed off right now on how much time I spent thinking of all the things I need to do.
|
Quite a predicament: CLIENT wants to upload the 2h file. SERVER accepts the connection and awaits the data from CLIENT. CLIENT starts sending the data, which SERVER writes to its savegame directory. But uhoh, the file that CLIENT wants to send and SERVER wants to overwrite are the same! In case the file is read in chunks one can see that this easily leads to trouble, I don't know how it looks it in reality. If the client would read the whole contents out of the file before sending it over then it might work. I think that for the trn file the client never actually asks the server to download it, since they're the same, so it's always at the latest version and the client doesn't bother to download it.
Quote:
Argitoth said:
Edit: Oh great, now that I deleted c'tis 2h and trn files it looks like I can no longer take my turn alltogether. Any help?
|
No wonder. Those files are essential for your game. The 2h file for your orders - deleting this will let you stale. The trn file is the game state - deleting this will let you stale aswell, I'd expect. If you deleted them then you'll have to host the game so that the server generates new ones.
|
February 4th, 2008, 08:52 PM
|
|
Lieutenant Colonel
|
|
Join Date: Oct 2003
Location: Gilbert, AZ
Posts: 1,375
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
Re: I am getting really fed up... server problems.
Yep, thanks for your replys Ich. One thing I just discovered though is that there's no difference between logging into your own server and hitting the "play existing game" button. When you end your turn offline, since the game is in the same folder, it registers on the server.
Get what I'm saying? So I'm just going to "play existing game" instead of connect to my own server via "network."
|
February 4th, 2008, 09:11 PM
|
National Security Advisor
|
|
Join Date: Nov 2006
Location: Oxford, UK
Posts: 5,921
Thanks: 194
Thanked 855 Times in 291 Posts
|
|
Re: I am getting really fed up... server problems.
Oh, is the server on the same computer? Using the same Dominions directory?
If so, I suspect you can avoid this issue just by having another copy of dominions (simply copy the whole directory), and call it "Dom3Server" or something. Then always run the server from that directory, and play your games from the original one. I think it will then show normal behaviour.
|
February 5th, 2008, 01:14 AM
|
|
Lieutenant Colonel
|
|
Join Date: Oct 2003
Location: Gilbert, AZ
Posts: 1,375
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
Re: I am getting really fed up... server problems.
Llamabeast, you came a bit late into the discussion and have come to a wrong conclusion. The original problem was because I was using two different directories. Thus your suggestion would actually cause the problem again.
|
February 5th, 2008, 01:43 AM
|
|
General
|
|
Join Date: Mar 2007
Location: Japan
Posts: 3,691
Thanks: 269
Thanked 397 Times in 200 Posts
|
|
Re: I am getting really fed up... server problems.
Quote:
Argitoth said:
Yep, thanks for your replys Ich. One thing I just discovered though is that there's no difference between logging into your own server and hitting the "play existing game" button. When you end your turn offline, since the game is in the same folder, it registers on the server.
Get what I'm saying? So I'm just going to "play existing game" instead of connect to my own server via "network."
|
Make sure you turn off quickhost when you do your turn though.
If you save your game on the server with your turn halfway done (even without clicking 'end turn') and all other players have submitted their turn, and it's on quickhost, then the game will host.
__________________
Whether he submitted the post, or whether he did not, made no difference. The Thought Police would get him just the same. He had committed— would still have committed, even if he had never set pen to paper— the essential crime that contained all others in itself. Thoughtcrime, they called it. Thoughtcrime was not a thing that could be concealed forever.
http://z7.invisionfree.com/Dom3mods/index.php?
|
February 5th, 2008, 12:29 PM
|
|
General
|
|
Join Date: Feb 2007
Location: R'lyeh
Posts: 3,861
Thanks: 144
Thanked 403 Times in 176 Posts
|
|
Re: I am getting really fed up... server problems.
Quote:
Argitoth said:
One thing I just discovered though is that there's no difference between logging into your own server and hitting the "play existing game" button. When you end your turn offline, since the game is in the same folder, it registers on the server.
Get what I'm saying? So I'm just going to "play existing game" instead of connect to my own server via "network."
|
Yes, that was what I meant when I said you should "play your game locally". I didn't have the game window nearby when I wrote that so I didn't know what the correct name for it was, but "Play existing game" is exactly what you should do.
|
February 5th, 2008, 12:38 PM
|
National Security Advisor
|
|
Join Date: Nov 2006
Location: Oxford, UK
Posts: 5,921
Thanks: 194
Thanked 855 Times in 291 Posts
|
|
Re: I am getting really fed up... server problems.
Ah, apologies for that, I skim-read.
|
Thread Tools |
|
Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is On
|
|
|
|
|