|  | 
| 
 
 
 
 
 
 
 
 
    
    
 |  | 
 
 
	
		|  |  
	
	
		
	
	
	| 
			
			 
			
				August 6th, 2008, 02:45 PM
			
			
			
		 |  
	| 
		
			|  | 
 Shrapnel Fanatic |  | 
					Join Date: Oct 2003 Location: Vacaville, CA, USA 
						Posts: 13,736
					 Thanks: 341 
		
			
				Thanked 479 Times in 326 Posts
			
		
	      |  |  
    
	| 
				 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.
 
				__________________-- 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!)
 |  
	
		
	
	
	| 
			
			 
			
				August 6th, 2008, 03:28 PM
			
			
			
		 |  
	| 
		
			|  | 
 Corporal |  | 
					Join Date: Jun 2008 Location: Germany 
						Posts: 105
					 Thanks: 8 
		
			
				Thanked 3 Times in 3 Posts
			
		
	      |  |  
    
	| 
				 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
 |  
	
		
	
	
	| 
			
			 
			
				August 6th, 2008, 07:39 PM
			
			
			
		 |  
	| 
		
			|  | 
 General |  | 
					Join Date: Mar 2007 Location: Japan 
						Posts: 3,691
					 Thanks: 269 
		
			
				Thanked 397 Times in 200 Posts
			
		
	      |  |  
    
	| 
				 Re: Linux question 
 The environment variables are actually:
 DOM3_DATA
 DOM3_TEMP
 DOM3_CONF
 DOM3_SAVE
 DOM3_MAPS
 DOM3_LOCALMAPS
 DOM3_MODS
 
				__________________Whether he submitted the post, or whether he did not, made no difference. The Thought Police would get him just the same. He had committed— would still have committed, even if he had never set pen to paper— the essential crime that contained all others in itself. Thoughtcrime, they called it. Thoughtcrime was not a thing that could be concealed forever.
http://z7.invisionfree.com/Dom3mods/index.php? |  
	
		
			| The Following User Says Thank You to vfb For This Useful Post: |  |  |  
	
		
	
	
	| 
			
			 
			
				August 6th, 2008, 08:17 PM
			
			
			
		 |  
	| 
		
			|  | 
 Shrapnel Fanatic |  | 
					Join Date: Oct 2003 Location: Vacaville, CA, USA 
						Posts: 13,736
					 Thanks: 341 
		
			
				Thanked 479 Times in 326 Posts
			
		
	      |  |  
    
	| 
				 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.
 
				__________________-- 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!)
 |  
	
		
	
	
	| 
			
			 
			
				August 6th, 2008, 08:50 PM
			
			
			
		 |  
	| 
		
			|  | 
 General |  | 
					Join Date: Mar 2007 Location: Japan 
						Posts: 3,691
					 Thanks: 269 
		
			
				Thanked 397 Times in 200 Posts
			
		
	      |  |  
    
	| 
				 Re: Linux question 
 Well, not only that, the debug message gives the variable a pretty different name. DATAPATH won't work either.  
				__________________Whether he submitted the post, or whether he did not, made no difference. The Thought Police would get him just the same. He had committed— would still have committed, even if he had never set pen to paper— the essential crime that contained all others in itself. Thoughtcrime, they called it. Thoughtcrime was not a thing that could be concealed forever.
http://z7.invisionfree.com/Dom3mods/index.php? |  
	
		
	
	
	| 
			
			 
			
				August 7th, 2008, 06:11 PM
			
			
			
		 |  
	| 
		
			|  | 
 Shrapnel Fanatic |  | 
					Join Date: Oct 2003 Location: Vacaville, CA, USA 
						Posts: 13,736
					 Thanks: 341 
		
			
				Thanked 479 Times in 326 Posts
			
		
	      |  |  
    
	| 
				 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.
 
				__________________-- 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!)
 |  
	
		
	
	
	
	
	
	
	| 
	|  Posting Rules |  
	| 
		
		You may not post new threads You may not post replies You may not post attachments You may not edit your posts 
 HTML code is On 
 |  |  |  |  |