.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $6.00

   







Go Back   .com.unity Forums > Illwinter Game Design > Dominions 3: The Awakening

Reply
 
Thread Tools Display Modes
  #11  
Old February 4th, 2008, 06:17 AM

llamabeast llamabeast is offline
National Security Advisor
 
Join Date: Nov 2006
Location: Oxford, UK
Posts: 5,921
Thanks: 194
Thanked 855 Times in 291 Posts
llamabeast will become famous soon enoughllamabeast will become famous soon enough
Default 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.
__________________
www.llamaserver.net
LlamaServer FAQ
My mod nations: Tomb Kings and Vampire Counts
A compilation of high quality mod nations: Expanded Nations Packs
Reply With Quote
  #12  
Old February 4th, 2008, 03:52 PM
lch's Avatar

lch lch is offline
General
 
Join Date: Feb 2007
Location: R'lyeh
Posts: 3,861
Thanks: 144
Thanked 403 Times in 176 Posts
lch is on a distinguished road
Default 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.
__________________
Come to the Dom3 Wiki and help us to build the biggest Dominions-centered knowledge base on the net.
Visit my personal user page there, too!
Pretender file password recovery
Emergency comic relief
Reply With Quote
  #13  
Old February 4th, 2008, 04:07 PM
lch's Avatar

lch lch is offline
General
 
Join Date: Feb 2007
Location: R'lyeh
Posts: 3,861
Thanks: 144
Thanked 403 Times in 176 Posts
lch is on a distinguished road
Default 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.
__________________
Come to the Dom3 Wiki and help us to build the biggest Dominions-centered knowledge base on the net.
Visit my personal user page there, too!
Pretender file password recovery
Emergency comic relief
Reply With Quote
  #14  
Old February 4th, 2008, 08:52 PM
Argitoth's Avatar

Argitoth Argitoth is offline
Lieutenant Colonel
 
Join Date: Oct 2003
Location: Gilbert, AZ
Posts: 1,375
Thanks: 1
Thanked 0 Times in 0 Posts
Argitoth is on a distinguished road
Default 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."
__________________
Composer, Sound Designer, www.elanhickler.com
Reply With Quote
  #15  
Old February 4th, 2008, 09:11 PM

llamabeast llamabeast is offline
National Security Advisor
 
Join Date: Nov 2006
Location: Oxford, UK
Posts: 5,921
Thanks: 194
Thanked 855 Times in 291 Posts
llamabeast will become famous soon enoughllamabeast will become famous soon enough
Default 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.
__________________
www.llamaserver.net
LlamaServer FAQ
My mod nations: Tomb Kings and Vampire Counts
A compilation of high quality mod nations: Expanded Nations Packs
Reply With Quote
  #16  
Old February 5th, 2008, 01:14 AM
Argitoth's Avatar

Argitoth Argitoth is offline
Lieutenant Colonel
 
Join Date: Oct 2003
Location: Gilbert, AZ
Posts: 1,375
Thanks: 1
Thanked 0 Times in 0 Posts
Argitoth is on a distinguished road
Default 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.
__________________
Composer, Sound Designer, www.elanhickler.com
Reply With Quote
  #17  
Old February 5th, 2008, 01:43 AM
vfb's Avatar

vfb vfb is offline
General
 
Join Date: Mar 2007
Location: Japan
Posts: 3,691
Thanks: 269
Thanked 397 Times in 200 Posts
vfb is on a distinguished road
Default 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?
Reply With Quote
  #18  
Old February 5th, 2008, 12:29 PM
lch's Avatar

lch lch is offline
General
 
Join Date: Feb 2007
Location: R'lyeh
Posts: 3,861
Thanks: 144
Thanked 403 Times in 176 Posts
lch is on a distinguished road
Default 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.
__________________
Come to the Dom3 Wiki and help us to build the biggest Dominions-centered knowledge base on the net.
Visit my personal user page there, too!
Pretender file password recovery
Emergency comic relief
Reply With Quote
  #19  
Old February 5th, 2008, 12:38 PM

llamabeast llamabeast is offline
National Security Advisor
 
Join Date: Nov 2006
Location: Oxford, UK
Posts: 5,921
Thanks: 194
Thanked 855 Times in 291 Posts
llamabeast will become famous soon enoughllamabeast will become famous soon enough
Default Re: I am getting really fed up... server problems.

Ah, apologies for that, I skim-read.
__________________
www.llamaserver.net
LlamaServer FAQ
My mod nations: Tomb Kings and Vampire Counts
A compilation of high quality mod nations: Expanded Nations Packs
Reply With Quote
Reply

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 03:19 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2024, Shrapnel Games, Inc. - All Rights Reserved.