.com.unity Forums

.com.unity Forums (http://forum.shrapnelgames.com/index.php)
-   Dominions 3: The Awakening (http://forum.shrapnelgames.com/forumdisplay.php?f=138)
-   -   Linux question (http://forum.shrapnelgames.com/showthread.php?t=39979)

Gandalf Parker August 6th, 2008 02:45 PM

Linux question
 
Has anyone messed with setting the paths from a script?
I have this in the script...
mappath="$DIR"
localmappath="$DIR"
temppath="$DIR"
export mappath="$DIR"
export localmappath="$DIR"
export temppath="$DIR"
env > env.txt

and the env.txt does show this...
mappath=/home/domgames/dominions3/savedgames/bl_gutted
localmappath=/home/domgames/dominions3/savedgames/bl_gutted
temppath=/home/domgames/dominions3/savedgames/bl_gutted

But the log file shows this....
Version version 3.17 (317)dbglevel 1 pc_endian
datapath='/usr/local/games/dominions3'
confpath='/home/domgames/dominions3'
savepath='/home/domgames/dominions3/savedgames'
modpath='/home/domgames/dominions3/mods'
mappath='/usr/local/games/dominions3/maps'
localmappath='/home/domgames/dominions3/maps'
temppath='/tmp/dominions3_38122'

And the game blows up saying it cant find the map.

mighty_scoop August 6th, 2008 03:28 PM

Re: Linux question
 
Hi Gandalf,

the linux stuff is right but i don't think that the env variable mappath correspond to the dominions variable mappath ... they are two different thing so you can't change the dom mappath using a linux env variable.

Greetings

vfb August 6th, 2008 07:39 PM

Re: Linux question
 
The environment variables are actually:

DOM3_DATA
DOM3_TEMP
DOM3_CONF
DOM3_SAVE
DOM3_MAPS
DOM3_LOCALMAPS
DOM3_MODS

Gandalf Parker August 6th, 2008 08:17 PM

Re: Linux question
 
Interesting.
Linux is picky about upper and lower case. Strange that the dom3 program records it in lower case. But that would explain why I was not getting the result I expected.

vfb August 6th, 2008 08:50 PM

Re: Linux question
 
Well, not only that, the debug message gives the variable a pretty different name. DATAPATH won't work either. http://forum.shrapnelgames.com/images/smilies/happy.gif

Gandalf Parker August 7th, 2008 06:11 PM

Re: Linux question
 
OK for future reference:
while it seemed like a good idea for every blitz to keep its random-generated map and the temp files all in the savedgames directory (easier cleanup), it looks like I wont be doing that.

Setting the environmental variables seems to ruin some sort of good neighbor sharing code in the game. The CPU load climbed and climbed. Trying to do it for many blitz games crashed the (older) server. So Im going to set this aside as a successful test but no thanks.


All times are GMT -4. The time now is 11:15 PM.

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