.com.unity Forums

.com.unity Forums (http://forum.shrapnelgames.com/index.php)
-   Dominions 2: The Ascension Wars (http://forum.shrapnelgames.com/forumdisplay.php?f=55)
-   -   Confusion about game saving (http://forum.shrapnelgames.com/showthread.php?t=16930)

Raen November 27th, 2003 05:20 PM

Confusion about game saving
 
I have both the full game and the demo. The full game was installed after the demo was.

I've been trying to sell a friend on how good the game is and he got the demo and we played a demo game together. But this morning I'm surprised to discover that our demo game was saved in my main (full) dominions directory. Are you consulting the registry to determine where to save games?

Does this mean there will be a problem with multiple installations of Dom? Suppose I want to host a game and don't want submitted pretenders to overwrite mine?

Or did I accidentally start the full Version when I played him and not the demo? http://forum.shrapnelgames.com/images/icons/icon10.gif

Confused....

Raen November 27th, 2003 07:29 PM

Re: Confusion about game saving
 
Ok, I just tested this and I'm a bit concerned. Both saved games and gods created with the demo are getting saved in my main dominions directory.

I also don't see any way to specify directories in the command line switches, but hopefully I'm missing something.

As I say, losing all my gods because I'm hosting a PBEM is a rather unpleasant concept.

Saber Cherry November 27th, 2003 07:50 PM

Re: Confusion about game saving
 
Quote:

Originally posted by Raen:
Ok, I just tested this and I'm a bit concerned. Both saved games and gods created with the demo are getting saved in my main dominions directory.

I also don't see any way to specify directories in the command line switches, but hopefully I'm missing something.

As I say, losing all my gods because I'm hosting a PBEM is a rather unpleasant concept.

<font size="2" face="sans-serif, arial, verdana">Very interesting. There needs to be an "Other People's Gods" directory, and ideally, support for multiple gods per nation. I didn't know other peoples gods overwrote your own.

[ November 27, 2003, 17:51: Message edited by: Saber Cherry ]

Johan K November 28th, 2003 02:13 AM

Re: Confusion about game saving
 
Quote:

I also don't see any way to specify directories in the command line switches, but hopefully I'm missing something.
<font size="2" face="sans-serif, arial, verdana">The save directory can be specified by setting the DOM2_SAVE enivornment variable. It is possible to set data and temp directory too if you really want to.

Catquiet November 28th, 2003 10:51 PM

Re: Confusion about game saving
 
Quote:

Originally posted by Saber Cherry:
Very interesting. There needs to be an "Other People's Gods" directory, and ideally, support for multiple gods per nation.
<font size="2" face="sans-serif, arial, verdana">Definitely.

I have been reduced to manually making a copy of my god file whenever I manage to get a decent set of titles.

Raen November 29th, 2003 02:27 AM

Re: Confusion about game saving
 
Quote:

Originally posted by Johan K:
</font><blockquote><font size="1" face="sans-serif, arial, verdana">quote:</font><hr /><font size="2" face="sans-serif, arial, verdana">I also don't see any way to specify directories in the command line switches, but hopefully I'm missing something.

<font size="2" face="sans-serif, arial, verdana">The save directory can be specified by setting the DOM2_SAVE enivornment variable. It is possible to set data and temp directory too if you really want to. </font><hr /></blockquote><font size="2" face="sans-serif, arial, verdana">But not \newlords, which is really where the problem lies?

Is there some reason that the registry entry was chosen over curdir? Multiple copies of Dom seems to me the most logical way to go....

Johan K November 29th, 2003 02:44 AM

Re: Confusion about game saving
 
The newlords directory is always located inside the saved games directory.

The registry is not used that I know of. The installer creates an entry for installater and unistaller use, but that's it.

So why should it be better with two games than setting this variable before you start the game. It can be done in a .bat file if you don't want to type it every time. This way you also save yourself a lot of disk space.

Raen November 29th, 2003 02:59 AM

Re: Confusion about game saving
 
Quote:

Originally posted by Johan K:
The newlords directory is always located inside the saved games directory.
<font size="2" face="sans-serif, arial, verdana">Not on my computer, Johan. The newlords directory is on the same level as all of my saved games, i.e., directly underneath the Dom2 directory. I run Win98SE, if that's pertinent.

Quote:

The registry is not used that I know of. The installer creates an entry for installater and unistaller use, but that's it.

So why should it be better with two games than setting this variable before you start the game. It can be done in a .bat file if you don't want to type it every time. This way you also save yourself a lot of disk space.
<font size="2" face="sans-serif, arial, verdana">If the registry isn't being used, why then does a game I saved running the dom2demo.exe not being saved in the dom2demo directory, but rather in my main dom2 directory?

I've double-checked this, I assure you it happens.

Gandalf Parker November 29th, 2003 04:12 AM

Re: Confusion about game saving
 
Quote:

Originally posted by Johan K:
</font><blockquote><font size="1" face="sans-serif, arial, verdana">quote:</font><hr /><font size="2" face="sans-serif, arial, verdana">I also don't see any way to specify directories in the command line switches, but hopefully I'm missing something.

<font size="2" face="sans-serif, arial, verdana">The save directory can be specified by setting the DOM2_SAVE enivornment variable. It is possible to set data and temp directory too if you really want to. </font><hr /></blockquote><font size="2" face="sans-serif, arial, verdana">Very nice. By "data" do you mean the home directory? That seems to be where Dom2 keeps its data. That way newlords and maps can both be off of that. Does this work with Linux also? This would be very handy in setting up multiple games off of a server.

Johan K November 29th, 2003 12:14 PM

Re: Confusion about game saving
 
To clear some confusion, here are the env variables, their default value and what they are used for.

DOM2_SAVE default="." Save directories and the newlords directory are created here. You need write permissions here.

DOM2_DATA default="." Data files, the maps folder and the rawsound folder must be found here. You only need read permissions here.

And Raen your problem with two game using the same save directory seems strange. Maybe one of your shortcuts doesn't set the current directory and thus the old one is still used.

Raen November 29th, 2003 01:09 PM

Re: Confusion about game saving
 
Ok, I'm probably doing something wrong, but I tried the following 2-line .bat file (executed from within the Dominions2 directory) and I got "cannot create config file":

set dom2_save=".\test"
dom2 --window --res 1000 725

What did I do wrong? (I created the test directory before running the .bat)

Johan K November 29th, 2003 01:49 PM

Re: Confusion about game saving
 
Try specifying the complete path like c:\games\dominions2\test or something like that.

Edit: Dominions2 doesn't want the "", I only added those to make the dot clearer. So I think you should do set DOM2_SAVE=./test, unless the set command really requires those "". I seldom use dos. http://forum.shrapnelgames.com/image...s/rolleyes.gif

[ November 29, 2003, 12:02: Message edited by: Johan K ]

Gandalf Parker November 29th, 2003 04:04 PM

Re: Confusion about game saving
 
Quote:

Originally posted by Raen:
A minor annoyance is that you have to enter the CD key again, but I can live with that.

<font size="2" face="sans-serif, arial, verdana">I havent tested but it looks like the key is saved as a simple text file. Check for the latest file created in that dir. You should be able to copy it to where you need it.

Raen November 30th, 2003 02:30 AM

Re: Confusion about game saving
 
Yeah I tried taking out the quotes before I came here and saw your edit http://forum.shrapnelgames.com/images/icons/icon7.gif It's working now.

A minor annoyance is that you have to enter the CD key again, but I can live with that.

Thanks for your help.


All times are GMT -4. The time now is 12:44 PM.

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