.com.unity Forums

.com.unity Forums (http://forum.shrapnelgames.com/index.php)
-   Dominions 3: The Awakening (http://forum.shrapnelgames.com/forumdisplay.php?f=138)
-   -   Mac Question: moving save game/mod directory? (http://forum.shrapnelgames.com/showthread.php?t=34012)

peterb12 March 30th, 2007 10:54 AM

Mac Question: moving save game/mod directory?
 
Hi.

The Mac port of Dominions 3 puts a directory, "dominions3", directly in the user's home directory. This isn't super mac-like, and I don't love having it clutter up my user dir. The 'more proper' place for this directory to live would be in ~username/Library/Application Support. Is there any way to change the dominions3 configuration to look there, and if not, is it possible to get this fixed in a future patch?

Thanks!

-peterb

Johan K March 31st, 2007 12:22 PM

Re: Mac Question: moving save game/mod directory?
 
You can control that by setting this environment variable: DOM3_SAVE . Make it point to whatever directory you want your save files in.

peterb12 April 28th, 2007 05:01 PM

Re: Mac Question: moving save game/mod directory?
 
I tried this, but have had no luck: when I start the game after setting that environment variable, the game asks for my CD key, and then recreates the dominions3 directory in my home directory.

Evil Dave April 28th, 2007 06:24 PM

Re: Mac Question: moving save game/mod directory?
 
Try setting DOM3_CONF to where you want Dom3 to put its directory.

I ran the following test:
<tt>
evil> mv dominions3 foo
evil> setenv DOM3_CONF /Users/evil/foo/
evil> ./Dominions3 -dddd

-------------------------
----- DOMINIONS ---------
-------------------------

Version version 3.06 (306)dbglevel 4 m68k_endian
datapath='.'
confpath='/Users/evil/foo'
savepath='/Users/evil/foo/savedgames'
modpath='/Users/evil/foo/mods'
</tt>

and was then able to open an existing game. That seems to say that's the right variable.

Gandalf Parker April 28th, 2007 06:35 PM

Re: Mac Question: moving save game/mod directory?
 
Quote:

peterb12 said:
I tried this, but have had no luck: when I start the game after setting that environment variable, the game asks for my CD key, and then recreates the dominions3 directory in my home directory.

That sounds like the standard linux thing. As if Dom3 had been installed on a server for everyone to use, and individual users can create mini-versions to play from.

On my server if I start Dom3 into a new users directory then it creates a few directories (dominions3, dominions3/mods, dominions3/maps, dominions3/savedgames, dominions3/savedgames/newlords) and asks for a key.

The bulk of the files remain in the system-wide shared directory. And I can create my own maps and such. If I say to use a map it looks in my maps directory first then if its not there it looks in the systems map directory.

Even though you are one user and own both, it sounds like its doing it that way. Creating some personal use directories and making them the "first check" location.
Just guessing.

peterb12 April 29th, 2007 12:45 PM

Re: Mac Question: moving save game/mod directory?
 
OK, I have this figured out. Evil Dave is right that DOM3_CONF is the key. But there's a bit more than that for Mac users.

if you'll recall, Mac applications are actually bundles (a directory with various support files and the binary somewhere inside it). So setting the environment in your shell isn't going to help you when you double-click from the Finder, which is the common way to launch files.

I stand by my original claim that the game should be putting things in ~/Library/Application Support/dominion3 by default. But as a workaround, Mac users can do this:

(1) Before running the game for the first time, start Terminal.
(2) Type: mkdir ~/.MacOSX
(3) Create a file called "environment.plist" that contains the keys you need. The safest way to do this is with the Property List Editor which ships with the developer tools. But since most users don't have that, you can copy and paste the text below into your favorite text editor, and then save it as environment.plist in the ~/.MacOSX directory:
<font class="small">Code:</font><hr /><pre>
&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"&gt;
&lt;plist version="1.0"&gt;
&lt;dict&gt;
&lt;key&gt;DOM3_CONF&lt;/key&gt;
&lt;string&gt;/Users/peterb/Library/Application Support/dominions3&lt;/string&gt;
&lt;key&gt;DOM3_SAVE&lt;/key&gt;
&lt;string&gt;/Users/peterb/Library/Application Support/dominions3/save&lt;/string&gt;
&lt;/dict&gt;
&lt;/plist&gt;
</pre><hr />
(obviously, substitute your own username for "peterb". It's probably OK to leave off DOM3_SAVE -- I think it will just stick things in the DOM3_CONF/savegame directory, then. But I like the name 'save'.)
(4) Log out and log back in. Now when you double click, the app will find the directories in the right place.

Gandalf Parker April 29th, 2007 01:16 PM

Re: Mac Question: moving save game/mod directory?
 
Wow, good work!
That should be kept handy. Maybe in the FAQ file or the dominions wiki


All times are GMT -4. The time now is 07:20 AM.

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