Author Topic: Request: Config dir also in the INI  (Read 1079 times)

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Request: Config dir also in the INI
« on: 20 November 2010, 01:02:51 »
GAE 0.3 introduced the config directory, a location for addons and the like for users who may not have access to the normal directories of Glest. Currently, this can only be set as a parameter when running the program (from a shortcut).

I propose (and, to be honest, beg) that the INI can have the same setting, as well as a setting for the "start in" directory (the reason why a shortcut has to be used. Not sure if this was fixed or not). What would happen is the INI would also have a setting, which, by default, would not exist, but can be created, which will have the relative path to the config directory. The purpose of this is to facilitate mods that require changes to the config directory. If the program was started with an attribute for the config directory being passed in, it will use that one over the INI setting, but if nothing was passed to the program on startup, it would use the INI setting, thus, people who don't have access to the install directory can still set a config directory by changing it by passing the parameter to the program (such as with a shortcut or command line).

There are no cons to this, as it will not change the default distribution. It is also a very minor change, but one that will solve a LOT of problems for me with cross platform distribution, and that will carry on to making it easier to install cross platform-wise.

Relatedly, if the "run in" shortcut parameter (windows, unsure of linux equivalent) could also be moved to the INI, that would ensure we would no longer HAVE to use shortcuts to run the game.

EDIT:// I forgot that the INI is stored in the config dir, so there'd also have to be a generic INI available in the install directory itself for the initial run.
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

hailstone

  • Local Moderator
  • Battle Machine
  • ********
  • Posts: 1,568
    • View Profile
Re: Request: Config dir also in the INI
« Reply #1 on: 20 November 2010, 09:27:44 »
I think this is what I had suggested earlier at https://forum.megaglest.org/index.php?topic=4658.0 but the other devs preferred a command line/shortcut parameter solution.
Glest Advanced Engine - Admin/Programmer
https://sourceforge.net/projects/glestae/

Yggdrasil

  • Local Moderator
  • Ornithopter
  • ********
  • Posts: 408
    • View Profile
Re: Request: Config dir also in the INI
« Reply #2 on: 20 November 2010, 16:54:25 »
I'm curious. Why do you require changes to the config directory?

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: Request: Config dir also in the INI
« Reply #3 on: 21 November 2010, 06:45:54 »
I'm curious. Why do you require changes to the config directory?
Well, the PRIMARY reason is for easier release of full conversion mods like Military on differing operating systems. This method will prevent me have having to use baaaaad shortcuts. In fact, it doesn't have to be anything like this. As long as we don't have to use a shortcut to start Glest and set the config dirs, I'm happy. Now, I don't want two "separate" programs to share the same settings, especially since the latest version of GAE crashed if you still had the config dir of the last version available... Also, I tweak the "last scenario", etc so that tutorials are the first choice, as well as a few INI defaults that better suit Military. For this, I need to be able to change the INI, and thus, must be able to have the INI in a location that is constant, namely by setting the config dir to the Glest folder itself.
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

 

anything