Author Topic: [windows] wrong place for files *.log in glest-2.0  (Read 3350 times)

wolvverine

  • Guest
[windows] wrong place for files *.log in glest-2.0
« on: 22 March 2007, 22:59:42 »
%APPDATA%/glest-2.0 is good place for log files.
 %PROGRAMFILES%/Glest_2.0 is very wrong place, and crash program if user have not administrators privileges.
« Last Edit: 1 January 1970, 00:00:00 by wolvverine »

docgonzo

  • Guest
(No subject)
« Reply #1 on: 2 September 2007, 19:15:35 »
Yes, I have that exact problem. Where can I set this path?
« Last Edit: 1 January 1970, 00:00:00 by docgonzo »

jbr

  • Guest
(No subject)
« Reply #2 on: 3 September 2007, 13:21:06 »
Hmmm... I never even think to look for log files anywhere but the program's directory... I hate it when computers (windows or linux) lock up directories...

You could install glest w/out administrative abilities?
« Last Edit: 1 January 1970, 00:00:00 by jbr »

docgonzo

  • Guest
(No subject)
« Reply #3 on: 3 September 2007, 15:30:37 »
Nope
« Last Edit: 1 January 1970, 00:00:00 by docgonzo »

hailstone

  • GAE Team
  • Battle Machine
  • ********
  • Posts: 1,568
    • View Profile
(No subject)
« Reply #4 on: 3 September 2007, 21:15:22 »
I don't think there is any place to set this path but it shouldn't be too hard to program one in.

Here is what I think could be done:
    In glest.ini add 'UserDir' or 'UserHomeDir' or 'UserHome'
    Then in glest_game/facilities/logger.cpp add to the logger constructor:
Code: [Select]
filename = config.getStr("UserDir");
filename += "log.txt";
[/list]

Something like that should work.
« Last Edit: 1 January 1970, 00:00:00 by hailstone »
Glest Advanced Engine - Admin/Programmer
https://sourceforge.net/projects/glestae/