.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $6.00

   







Go Back   .com.unity Forums > Illwinter Game Design > Dominions 3: The Awakening

Reply
 
Thread Tools Display Modes
  #1  
Old August 6th, 2008, 02:45 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 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!)
Reply With Quote
  #2  
Old August 6th, 2008, 03:28 PM
mighty_scoop's Avatar

mighty_scoop mighty_scoop is offline
Corporal
 
Join Date: Jun 2008
Location: Germany
Posts: 105
Thanks: 8
Thanked 3 Times in 3 Posts
mighty_scoop is on a distinguished road
Default 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
Reply With Quote
  #3  
Old August 6th, 2008, 07:39 PM
vfb's Avatar

vfb vfb is offline
General
 
Join Date: Mar 2007
Location: Japan
Posts: 3,691
Thanks: 269
Thanked 397 Times in 200 Posts
vfb is on a distinguished road
Default 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?
Reply With Quote
The Following User Says Thank You to vfb For This Useful Post:
  #4  
Old August 6th, 2008, 08:17 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: 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!)
Reply With Quote
  #5  
Old August 6th, 2008, 08:50 PM
vfb's Avatar

vfb vfb is offline
General
 
Join Date: Mar 2007
Location: Japan
Posts: 3,691
Thanks: 269
Thanked 397 Times in 200 Posts
vfb is on a distinguished road
Default 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?
Reply With Quote
  #6  
Old August 7th, 2008, 06:11 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: 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!)
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 01:14 AM.


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