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

This Month's Specials

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

   







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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #4  
Old May 9th, 2007, 12:02 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: Problem: \'Failed to create temp directory\'

Wow, that was fast Ich.

For some reason dom3 doesn't give me any of that stuff back normally, and I couldn't work out where the temp directory was (although I use linux a lot there's a lot of things I don't know about it). Anyway, shortly after posting I remembered the debug switches, so I did dom3 -ddddd, which told me the location of the temp directory. Exactly why it was having a problem I don't know, but having deleted all the /tmp/dominions3_***** folders it's working again. Hurrah!

Sorry for solving it myself so quickly after posting - I'd actually already been stuck on it for quite a while. Anyway, hopefully this thread will be useful if anyone else has the same problem.

PS Actually, I can perhaps guess why it was having a problem. I think that the name of the temp folder is a random number using the system clock as a seed, but only to the nearest second (as it's the same if you run it multiple times in quick succession). If it uses the time but not the date for the seed, then running it at the same second on a following day would use the same folder name again. Since it doesn't delete the folders its created, this would cause a clash. Being as my server runs dominions at scheduled times, I guess it was hitting this problem.

What I'm going to do is make a 2-line script along the lines of

dom3 --someswitches
rm -r /tmp/dominions3_*

so it cleans up after itself. Windows users could do a similar thing with a .bat file.
__________________
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
 

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 07:46 PM.


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