.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

Reply
 
Thread Tools Display Modes
  #1  
Old March 30th, 2007, 10:54 AM

peterb12 peterb12 is offline
Private
 
Join Date: Feb 2007
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
peterb12 is on a distinguished road
Default 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
Reply With Quote
  #2  
Old March 31st, 2007, 12:22 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: 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.
__________________
http://www.illwinter.com
Reply With Quote
  #3  
Old April 28th, 2007, 05:01 PM

peterb12 peterb12 is offline
Private
 
Join Date: Feb 2007
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
peterb12 is on a distinguished road
Default 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.
Reply With Quote
  #4  
Old April 28th, 2007, 06:24 PM

Evil Dave Evil Dave is offline
Corporal
 
Join Date: Jan 2004
Location: Wilmington, Delaware, USA
Posts: 191
Thanks: 1
Thanked 13 Times in 2 Posts
Evil Dave is on a distinguished road
Default 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:

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'


and was then able to open an existing game. That seems to say that's the right variable.
__________________
No plan survives contact with the enemy.
--Helmut von Moltke

Have too may pretender files to keep track of? Use catgod to view them.
Reply With Quote
  #5  
Old April 28th, 2007, 06:35 PM
Gandalf Parker's Avatar

Gandalf Parker Gandalf Parker is offline
Shrapnel Fanatic
 
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
Gandalf Parker is on a distinguished road
Default 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.
__________________
-- DISCLAIMER:
This game is NOT suitable for students, interns, apprentices, or anyone else who is expected to pass tests on a regular basis. Do not think about strategies while operating heavy machinery. Before beginning this game make arrangements for someone to check on you daily. If you find that your game has continued for more than 36 hours straight then you should consult a physician immediately (Do NOT show him the game!)
Reply With Quote
  #6  
Old April 29th, 2007, 12:45 PM

peterb12 peterb12 is offline
Private
 
Join Date: Feb 2007
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
peterb12 is on a distinguished road
Default 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:
Code:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>DOM3_CONF</key>
<string>/Users/peterb/Library/Application Support/dominions3</string>
<key>DOM3_SAVE</key>
<string>/Users/peterb/Library/Application Support/dominions3/save</string>
</dict>
</plist>


(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.
Reply With Quote
  #7  
Old April 29th, 2007, 01:16 PM
Gandalf Parker's Avatar

Gandalf Parker Gandalf Parker is offline
Shrapnel Fanatic
 
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
Gandalf Parker is on a distinguished road
Default 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
__________________
-- DISCLAIMER:
This game is NOT suitable for students, interns, apprentices, or anyone else who is expected to pass tests on a regular basis. Do not think about strategies while operating heavy machinery. Before beginning this game make arrangements for someone to check on you daily. If you find that your game has continued for more than 36 hours straight then you should consult a physician immediately (Do NOT show him the game!)
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 09:52 PM.


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