![]() |
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. |
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 |
Re: Linux question
The environment variables are actually:
DOM3_DATA DOM3_TEMP DOM3_CONF DOM3_SAVE DOM3_MAPS DOM3_LOCALMAPS DOM3_MODS |
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. |
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
|
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.