.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 2: The Ascension Wars

Reply
 
Thread Tools Display Modes
  #1  
Old June 16th, 2004, 03:57 PM

mlepinski mlepinski is offline
Private
 
Join Date: Feb 2004
Posts: 49
Thanks: 0
Thanked 0 Times in 0 Posts
mlepinski is on a distinguished road
Default Network Hosting Problem - Cannot Creat File

I've been having the following problem hosting network games:

I'm running the server on a Windows XP machine and also playing from the same machine using the "Quick Host" option. Everything seems to work fine as long as I'm the Last one to submit my turn and it quick hosts immediately after I play my turn. However, when I play my turn and then minimize Dominons to do something else on the computer (or walk away from the computer), then when the server tries to host it crashes with the error message "Cannot create file: C:\Docume~1\Matt\Local~1\Temp/dom16882/tmp_fl".

This crash is very consisitant (it's happened at least 20 times in the past week or so) and yet I have no idea why it can create the file when Dominions is "actively" in use, but cannot create the file otherwise. Has anyone else had this problem?

Thanks a lot,
- Matt Lepinski :->
Reply With Quote
  #2  
Old June 16th, 2004, 06:44 PM
Johan K's Avatar

Johan K Johan K is offline
Brigadier General
 
Join Date: Aug 2003
Location: Mictlan
Posts: 1,767
Thanks: 12
Thanked 165 Times in 22 Posts
Johan K is on a distinguished road
Default Re: Network Hosting Problem - Cannot Creat File

Are you using Version 2.12? Several bugs that could cause something like that has been corrected with the patches.
__________________
http://www.illwinter.com
Reply With Quote
  #3  
Old June 18th, 2004, 08:50 PM

Ironhawk Ironhawk is offline
General
 
Join Date: May 2004
Location: Seattle, WA
Posts: 3,011
Thanks: 0
Thanked 45 Times in 35 Posts
Ironhawk is on a distinguished road
Default Re: Network Hosting Problem - Cannot Creat File

This is a bug in dominions. I thought it was going to be corrected in 2.12, but sadly it was not.

Both the server process and your client process both use this temp file "dom16882/tmp_fl" and when either of them exits, it deletes that file. So, what is happening to you is this:

You start your server up and it makes the tmp_fl. You start your client up and it actually deletes and immediately recreates the tmp_fl so you dont notice any interruptions. Then when you exit your client cause your turn is done, the client erases the file. SO, when the server gets around to processing the turn after all players are in, it looks for the file and - uh oh - no file there anymore! CRASH.

Which is also why it will turn properly if your client is connected. In that case the file will not have been deleted, you see?

Anyway, I wrote a little program to get around this and I just run it alongside my server process. My server has been up for like 2-3 weeks now straight. I could possibly tailor the program for you if you like. Or alternately, you could just create the tmp_fl manually every time you exit your client
Reply With Quote
  #4  
Old June 21st, 2004, 03:08 AM
Unwise's Avatar

Unwise Unwise is offline
Corporal
 
Join Date: Jan 2004
Location: Virginia
Posts: 98
Thanks: 0
Thanked 0 Times in 0 Posts
Unwise is on a distinguished road
Default Re: Network Hosting Problem - Cannot Creat File

This can also be more nefarious under 2.12. Occasionally, it'll erase the file and the crash the game at startup. In such a case, you have to find and delete the dom16882 folder under your temp directory.

Most annoying when you are running a server and playing the client on the same box.

[ June 21, 2004, 02:08: Message edited by: Unwise ]
Reply With Quote
  #5  
Old June 24th, 2004, 03:21 PM

mlepinski mlepinski is offline
Private
 
Join Date: Feb 2004
Posts: 49
Thanks: 0
Thanked 0 Times in 0 Posts
mlepinski is on a distinguished road
Default Re: Network Hosting Problem - Cannot Creat File

Johan - I'm using the most recent (2.12) Version

Iron Hawk - Thanks a lot for the explanation.

- Matt Lepinski :->
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 11:51 AM.


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