Editing MG/INI

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 2: Line 2:
  
 
==Location of the INI==
 
==Location of the INI==
Since the user data folder is very variable, the INI can be located in a variety of locations. The <tt>glest.ini</tt> file tells where it is in the <tt>UserData_Root</tt> value, and it can be changed by modifying that string. By default, locations include:
+
Since the user data folder is very variable, the INI can be located in a variety of locations. The <tt>glestuser.ini</tt> (and <tt>glest.ini</tt>) file tells where it is in the <tt>UserData_Root</tt> value, and it can be changed by adding/modifying that string to/in <tt>glestuser.ini</tt>. By default, locations include:
  
{| class="wikitable"
+
{| class="wikitable" style="empty-cells: show;"
 
!Operating System
 
!Operating System
 
!Location
 
!Location
 
|-
 
|-
 
|Windows XP
 
|Windows XP
|<tt>C:\Documents and Settings\[User name]\Application Data\megaglest</tt>
+
|C:\Documents and Settings\'''Your Name'''\Application Data\megaglest
 
|-
 
|-
|Windows Vista/7/10
+
|Windows Vista/7
|<tt>C:\Users\[User name]\appdata\roaming\megaglest</tt>
+
|C:\Users\'''Your Name'''\appdata\roaming\megaglest
 
|-
 
|-
 
|Linux
 
|Linux
|<tt>/home/[User name]/.megaglest</tt>
+
|~/.megaglest <!-- THIS COULD BE TOTALLY WRONG, PLEASE VERIFY AND CHANGE IF NECESSARY -->
|-
 
|Mac OSX
 
|
 
<tt>/Users/[User name]/.megaglest</tt>
 
 
 
Possibly also:
 
 
 
<tt>/Users/[User name]/Library/Application Support/MegaGlest</tt>
 
 
|}
 
|}
  
==INI documentation ( Properties )==
+
==INI documentation==
 
{| class="wikitable sortable" style="empty-cells: show;"
 
{| class="wikitable sortable" style="empty-cells: show;"
 
!INI Value
 
!INI Value
Line 53: Line 45:
 
|-
 
|-
 
|AnnouncementURL
 
|AnnouncementURL
|[http://master.megaglest.org/files/announcement.txt http://master.megaglest.org/<br />files/announcement.txt]
+
|http://master.megaglest.org/files/announcement.txt
 
|Game related announcements are loaded from the given location and displayed next to the server list.
 
|Game related announcements are loaded from the given location and displayed next to the server list.
 
|-
 
|-
Line 67: Line 59:
 
|true
 
|true
 
|Check for a compatible OpenGL version.
 
|Check for a compatible OpenGL version.
|-
 
|ColorBits
 
|16
 
|Number of bits used for the color buffer (also known as the pixel buffer). This determines the number of colors available.
 
 
|-
 
|-
 
|ConsoleMaxLines
 
|ConsoleMaxLines
Line 83: Line 71:
 
|20
 
|20
 
|Number of seconds before text disappears from the console.
 
|Number of seconds before text disappears from the console.
|-
 
|CustomPropertiesSaveAllowed
 
|false
 
|Controls if saving custom menu setups is allowed via hotkey ( only useful for modders ).
 
|-
 
|CustomPropertiesUsageAllowed
 
|false
 
|Controls custom menu setups ( only used in full mods ).
 
|-
 
|DataPath
 
|
 
|Path to the folder where all the game data will be stored (eg: [[Techtrees]]).
 
 
|-
 
|-
 
|DayTime
 
|DayTime
Line 135: Line 111:
 
|10
 
|10
 
|This is the number of seconds before HTTP requests will timeout.
 
|This is the number of seconds before HTTP requests will timeout.
 +
|-
 +
|ColorBits
 +
|16
 +
|Number of bits used for the color buffer (also known as the pixel buffer). This determines the number of colors available.
 
|-
 
|-
 
|DepthBits
 
|DepthBits
 
|16
 
|16
|Number of bits used for the depth buffer (also known as the Z-buffer). This determines the distances from the camera objects are and influences shadows.
+
|Number of bits used for the depth buffer (also known as the Z-buffer). This determines the distances from the camera objects are and influences shadows.  
 
|-
 
|-
 
|DisableBattleEndColorCoding
 
|DisableBattleEndColorCoding
Line 159: Line 139:
 
|false
 
|false
 
|True tells the game to '''not''' play water sounds when units walk in water.
 
|True tells the game to '''not''' play water sounds when units walk in water.
|-
 
|EnableColorPicking
 
|false
 
|True enables selection using color picking. This is slower but needed sometimes for buggy gfx drivers ( AMD open source or VMs ).
 
 
|-
 
|-
 
|EnableFTPServer
 
|EnableFTPServer
Line 191: Line 167:
 
|false
 
|false
 
|True tells the game to attempt using GPU texture compression for less memory use and better performance.
 
|True tells the game to attempt using GPU texture compression for less memory use and better performance.
|-
 
|EnableVideos
 
|true
 
|True tells the game to display videos where available.
 
 
|-
 
|-
 
|EnableVSynch
 
|EnableVSynch
Line 331: Line 303:
 
|false
 
|false
 
|When true this enables OpenGL fullscreen anti-aliasing.
 
|When true this enables OpenGL fullscreen anti-aliasing.
|-
 
|GammaValue
 
|1
 
|A multiplier to control the gamma value of the display. This affects the brightness and contrast. For example, if nights appear too dark, you could turn the gamma value up to brighten them. A float value of 0.0 to 3.0.
 
 
|-
 
|-
 
|HardwareAcceleration
 
|HardwareAcceleration
 
|false
 
|false
 
|When true this enables OpenGL hardware acceleration.
 
|When true this enables OpenGL hardware acceleration.
|-
 
|InternetGamesAllowed
 
|1
 
|When 1 you are allowed to play online.
 
|-
 
|IRCChannel
 
|#megaglest-lobby
 
|The channel on the IRC server used by the in-game chat.
 
|-
 
|IRCServer
 
|irc.freenode.net
 
|The IRC server used by the in-game chat.
 
 
|-
 
|-
 
|Lang
 
|Lang
 
|english
 
|english
|Language files that will be used for language strings. Will use the language file of the same name in the lang data folder with the *.lng extension.
+
|Language files that will be used for language strings. Will use the language file of the same name in the lang data folder with the *.lng extension.  
|-
 
|LogPath
 
|
 
|Path to the folder where all log files will be stored (eg: debug log).
 
|-
 
|MainMenu_buttonMods_visible
 
|true
 
|Whether or not the mod button in the main menu should be visible.
 
 
|-
 
|-
 
|MapPreview
 
|MapPreview
Line 368: Line 316:
 
|True tells the game to display a preview of the selected map in the game lobby.
 
|True tells the game to display a preview of the selected map in the game lobby.
 
|-
 
|-
|Masterserver
+
|MasterServerExternalPortList
|http://master.megaglest.org/
+
|61357, 61358, 61359, 61360, 61000, 80, 1080, 8000, 8080, 443, 21, 22, 25, 110, 143, 587, 993, 995
|This is the master server location.
+
|This is a comma seperated list of allowed External Network ports supported.
 
|-
 
|-
 
|MaxClientLagTimeAllowed
 
|MaxClientLagTimeAllowed
 
|20
 
|20
 
|This is the maximum number seconds that a client is allowed to fall behind before action is taken.
 
|This is the maximum number seconds that a client is allowed to fall behind before action is taken.
 +
|-
 +
|Masterserver
 +
|http://master.megaglest.org/
 +
|This is the master server location.
 
|-
 
|-
 
|MaxExploredCellsLookupItemCache
 
|MaxExploredCellsLookupItemCache
Line 393: Line 345:
 
|-
 
|-
 
|MaxUnitSelectCount
 
|MaxUnitSelectCount
|36
+
|16
|This is the maximum number of units that can be selected at one time. Note that this '''CANNOT''' be greater than 36, or else MegaGlest can crash.
+
|This is the maximum number of units that can be selected at one time.
 
|-
 
|-
 
|NetPlayerName
 
|NetPlayerName
Line 407: Line 359:
 
|20
 
|20
 
|This is the number of frames that commands are sent out for network games.
 
|This is the number of frames that commands are sent out for network games.
|-
 
|NewGame_buttonScenario_visible
 
|false
 
|Whether or not the scenario button in the new game menu is visible.
 
|-
 
|NewGame_buttonTutorial_visible
 
|false
 
|Whether or not the tutorial button in the new game menu is visible.
 
 
|-
 
|-
 
|No2DMouseRendering
 
|No2DMouseRendering
Line 427: Line 371:
 
|true
 
|true
 
|When true it enforces the same version to be used for all platforms for network play.
 
|When true it enforces the same version to be used for all platforms for network play.
|-
 
|PortList
 
|61357,61367,61377,61387,61397
 
|This is a comma separated list of your Internet modem/router ports clients should connect to (to get port forwarded to the respective port on your computer).
 
|-
 
|PortServer
 
|61357
 
|The port the game will bind to when hosting a game on your computer.
 
 
|-
 
|-
 
|PreCacheCRCThread
 
|PreCacheCRCThread
Line 447: Line 383:
 
|75
 
|75
 
|Times to fresh the display per second (hertz).
 
|Times to fresh the display per second (hertz).
|-
 
|SaveGameScreenshotHeight
 
|600
 
|Height of the save game screenshot, in pixels.
 
|-
 
|SaveGameScreenshotWidth
 
|800
 
|Width of the save game screenshot, in pixels.
 
 
|-
 
|-
 
|ScreenHeight
 
|ScreenHeight
Line 471: Line 399:
 
|
 
|
 
|The last server IP address that you connected to.
 
|The last server IP address that you connected to.
 +
|-
 +
|ServerPort
 +
|61357
 +
|The port to use when hosting games.
 
|-
 
|-
 
|ShadowAlpha
 
|ShadowAlpha
Line 529: Line 461:
 
|-
 
|-
 
|UserData_Root
 
|UserData_Root
|''[[#Location of the INI|See above]]''
+
|'''[[#Location of the INI|See above]]'''
|This is the folder where user created [[maps]], [[tilesets]], [[techtrees]], [[scenarios]], tutorials, and user INIs are to be stored.
+
|This is the folder where user created [[maps]], [[tilesets]], [[techtrees]], [[scenarios]], [[tutorials]], and user INIs are to be stored.
 
|-
 
|-
 
|VersionURL
 
|VersionURL
 
|http://master.megaglest.org/files/versions/
 
|http://master.megaglest.org/files/versions/
 
|Information regarding the currently run game version is loaded from the given location and displayed next to the server list.
 
|Information regarding the currently run game version is loaded from the given location and displayed next to the server list.
|-
 
|VisibleHud
 
|1
 
|If true, mod-added custom HUD backgrounds will be displayed. If set to false, the custom HUD backgrounds will be hidden.
 
 
|-
 
|-
 
|WarnFrameCountLagPercent
 
|WarnFrameCountLagPercent

Please note that all contributions to MegaGlest are considered to be released under the Creative Commons Attribution Share Alike (see MegaGlest:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)