Editing MG/FAQ

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 74: Line 74:
 
And play with:
 
And play with:
  
  ./start_megaglest
+
  ./megaglest
  
 
Next time you want to play, you just need to:
 
Next time you want to play, you just need to:
  
 
  cd ~/megaglest-3.5.1
 
  cd ~/megaglest-3.5.1
  ./start_megaglest
+
  ./megaglest
  
 
You can, of course, also create a shortcut on your favourite window manager so that you just need to point and click to start the game in the future, thus eliminating the necessity of using the terminal window each time.
 
You can, of course, also create a shortcut on your favourite window manager so that you just need to point and click to start the game in the future, thus eliminating the necessity of using the terminal window each time.
Line 103: Line 103:
  
 
====Linux====
 
====Linux====
Error may looks like this: "... error while loading shared libraries ...".
+
Be sure that you have downloaded the correct installer (32 bits or 64 bits). See below to know how to find your linux type.
 
 
 
 
1. Be sure that you have downloaded the correct installer (32 bits or 64 bits), especially if you see in the error message something also like this: "... wrong ELF class ...". See below to know how to find your linux type.
 
  
 
If <tt>uname -m</tt> returns <tt>x86_64</tt>, you need the 64 bits version. If it returns <tt>i686</tt>, you need the 32 bit version.
 
If <tt>uname -m</tt> returns <tt>x86_64</tt>, you need the 64 bits version. If it returns <tt>i686</tt>, you need the 32 bit version.
  
 
+
Be sure that you have installed all requirements. If it still does not work then, you may try running these commands from your MegaGlest root folder (probably something like /home/yourname/megaglest).
2. Be sure that you are launching game in the recommended way. In general e.g. if exist starting script "start_megaglest" then you should launch this script e.g. by <tt>./start_megaglest</tt> instead of game directly by plain <tt>./megaglest</tt>.
 
 
 
Starting scripts are very helpful in case when you are using game with binaries compiled by upstream (MegaGlest team), so for example if you are using installer "MegaGlest-Installer...linux.run".
 
 
 
If you are using binaries compiled by someone else, e.g. by linux distribution or by yourself from source then in 99% cases you don't need to use those scripts. 
 
 
 
 
 
3. Be sure that you have read the output produced e.g. by "start_megaglest" script because there you will see some hints what you can do and what you should do.
 
 
 
 
 
4. If game still does not work and you are trying to use some old game version like up to v.3.9.1 (with newer game version this method will not help) then, you may try running these commands from your MegaGlest root folder (probably something like /home/yourname/megaglest).
 
  
 
  mkdir lib_bkp
 
  mkdir lib_bkp
Line 133: Line 119:
  
 
===I get an error stating MegaGlest needs an OpenGL version of at least 1.3 to work===
 
===I get an error stating MegaGlest needs an OpenGL version of at least 1.3 to work===
The most likely cause of this message is that you have selected a resolution and color combination that your video driver does not support. In this case, you should be able to get MegaGlest to start fine by either deleting your [[MG/INI|configuration file]] or by playing with different values in this line on a command prompt:
+
You likely need either updated video drivers or your video card. It could also be that your hardware is just too old or you bought hardware which is badly supported on your operating system by its manufacturer. But don't give up just yet, read the [[#Where can I get newer video drivers?]] section below.
megaglest --resolution=1024x768 --colorbits=32 --depthbits=24 --fullscreen=false
 
If this doesn't seem to help, the second most likely cause of this message is an unstable or outdated video driver. Try updating it from the chip, card, or laptop vendor / manufacturers' website. You must reboot after switching drivers, even if it doesn't say so. If they do not provide drivers which work with MegaGlest then read the [[#Where can I get newer video drivers?|Where can I get newer video drivers?]] section below
 
 
 
The next best cause for this message is that 3D acceleration on the video card you bought is badly supported on your operating system. i.e. its manufacturer is not actually providing proper drivers for this operating system (version). Buying this hardware may have been a bad choice then.
 
 
 
The least likely cause is that your video card / chipset simply does not support OpenGL v1.3 at all (in terms of hardware). This can be so if you are trying to run MegaGlest on a mobile device, such as a tablet, mobile phone, or ultra cheap laptop with non-Intel / non-AMD CPU.
 
  
 
===Where can I get newer video drivers?===
 
===Where can I get newer video drivers?===
Line 152: Line 132:
 
===My video performance is bad, what can I do?===
 
===My video performance is bad, what can I do?===
 
If you are a Linux user turn off 3D/openGL effects in your [https://en.wikipedia.org/wiki/Compositing_window_manager compositing window manager] (Compiz/Mutter/KWin), as It can drop frames per second (FPS) for 3D games from 500FPS to 70FPS.
 
If you are a Linux user turn off 3D/openGL effects in your [https://en.wikipedia.org/wiki/Compositing_window_manager compositing window manager] (Compiz/Mutter/KWin), as It can drop frames per second (FPS) for 3D games from 500FPS to 70FPS.
 
If you are a Windows user , open ''Performance Information and Tools'' by clicking the ''Start'' button, and then clicking ''Control Panel''. In the ''search box'', type ''Performance Information and Tools'', and then, in the list of results, click ''Performance Information and Tools''. Click ''Adjust visual effects'', then click the ''Visual Effects'' tab, click ''Adjust for best performance''.
 
  
 
Whichever platform your are on, try to disable synchronizing to the [https://en.wikipedia.org/wiki/Vertical_blanking_interval vertical blanking interval] (also known as ''sync to vblank''), if your video driver supports it (most do) and the side effects it introduces (tearing) are not noticeable or acceptable to you.
 
Whichever platform your are on, try to disable synchronizing to the [https://en.wikipedia.org/wiki/Vertical_blanking_interval vertical blanking interval] (also known as ''sync to vblank''), if your video driver supports it (most do) and the side effects it introduces (tearing) are not noticeable or acceptable to you.
  
Here is a screenshot thats shows how to setup MegaGlests graphics options to get better performance running the game:
+
You can also tweak your configuration by placing the following settings in ''glestuser.ini'' (see [[INI|the page describing the MegaGlest configuration files]] to learn where it is located on your system):
 
 
[[File:mg_performance_11.jpg|Main Menu -> Video]]
 
 
 
You can also tweak your configuration by placing the following settings in ''glestuser.ini''. Be sure to overwrite existing options with the same identifier, i.e. do not just add the following lines to ''glestuser.ini'' but make sure each of these options occurs once only. To learn where on your computer the ''glestuser.ini'' file is located, see [[MG/INI|the page describing the MegaGlest configuration files]]. Do '''not''' edit a file named ''glest.ini'' instead, this is a different file which works differently.
 
  
AnimatedTilesetObjects=0
 
 
  ColorBits=8
 
  ColorBits=8
 
  DepthBits=16
 
  DepthBits=16
  EnableVideos=0
+
  DisableVBO=true
  FactionPreview=0
+
  EnableTextureCompression=1
 
  FactorySound=None
 
  FactorySound=None
 
  Filter=Bilinear
 
  Filter=Bilinear
Line 173: Line 146:
 
  FogOfWarSmoothing=false
 
  FogOfWarSmoothing=false
 
  FogOfWarSmoothingFrameSkip=5
 
  FogOfWarSmoothingFrameSkip=5
GammaValue=1.000000
+
  MaxLights=1
  MaxLights=0
 
No2DMouseRendering=1
 
 
  RainEffect=0
 
  RainEffect=0
RainEffectMenu=0
 
 
  ScreenHeight=600
 
  ScreenHeight=600
 
  ScreenWidth=800
 
  ScreenWidth=800
 
  Shadows=Disabled
 
  Shadows=Disabled
 
  ShadowTextureSize=256
 
  ShadowTextureSize=256
ShadowIntensity=1.000000
 
 
  StencilBits=0
 
  StencilBits=0
 
  Textures3D=false
 
  Textures3D=false
  TilesetParticles=0
+
  TilesetParticles=false
TimeDisplay=0
 
 
  UnitParticles=false
 
  UnitParticles=false
 
  Windowed=0
 
  Windowed=0
  
The following settings in ''glestuser.ini'' are also worth a try, but may or may not work for you, depending on your hardware and driver:
+
If drawing selection boxes around units is slow for you, you may also want to try this setting which can make it slower or faster, depending on your video hardware and drivers:
EnableTextureCompression=1
+
EnableColorPicking=true
DisableVBO=true
 
 
 
If drawing selection boxes around units is slow or does not work reliably, give the '''Unit Selection Type''' setting in the options menu a try. Changing this setting can make it better or worse, depending on your video hardware and drivers.
 
  
 
===My mouse seems to move sluggish, too slow or too fast===
 
===My mouse seems to move sluggish, too slow or too fast===
Line 200: Line 165:
  
 
  No2DMouseRendering=true
 
  No2DMouseRendering=true
 
===I cannot select any units in the game===
 
This is caused by a driver bug (Mesa) and mainly affects people using Ubuntu 12.10 and AMD cards.
 
 
For a workaround, edit ''glestuser.ini'' and add this entry (or change it if it already exists but is currently set to "false" or "0"):
 
 
EnableColorPicking=true
 
  
 
==Network gaming==
 
==Network gaming==
===I can not connect to the server and I see a note about an "Incompatible Version", why is this?===
+
===I can not connect to any server, why is this?===
When you see a red note: "Incompatible Version" as part of the description of some server(s) then it mean that your local game version is different than server's game version.
 
You should check and compare both version numbers.
 
 
 
Server's game version you can see on the left of the server's description in the game lobby.
 
 
 
Your local game version you can check in the main menu (under the game logo) or in the "About" screen.
 
 
 
Recommended game version to play in the multiplayer is always the latest stable release available from [http://megaglest.org/download megaglest.org/download].
 
 
 
===I can not connect to any [[MG/Dedicated_Server|server]], why is this?===
 
 
This is usually caused by badly configured (possibly so by default) personal firewalls or "Internet security suites".
 
This is usually caused by badly configured (possibly so by default) personal firewalls or "Internet security suites".
  
Line 247: Line 195:
 
Users should therefore configure their router/firewall to "Port Forward" the external port they will use (as displayed in the Custom Game Menu, default is 61357) to their internal port (configured in ''glest.ini'' or ''glestusers.ini'', default is 61357).
 
Users should therefore configure their router/firewall to "Port Forward" the external port they will use (as displayed in the Custom Game Menu, default is 61357) to their internal port (configured in ''glest.ini'' or ''glestusers.ini'', default is 61357).
  
===How can I host a MegaGlest game on my own computer?===
+
===How can I host a MegaGlest game?===
 
Most domestic (read: home user) Internet connections are setup to require ''port forwarding'' to make a service, such as MegaGlest, available on the Internet. Port forwarding is usually configured on your Internet modem / router. MegaGlest allows for using UPnP, making configuration much easier. See the [[MG/Port Forwarding|Port Forwarding page]] for further instructions.
 
Most domestic (read: home user) Internet connections are setup to require ''port forwarding'' to make a service, such as MegaGlest, available on the Internet. Port forwarding is usually configured on your Internet modem / router. MegaGlest allows for using UPnP, making configuration much easier. See the [[MG/Port Forwarding|Port Forwarding page]] for further instructions.
  
Line 276: Line 224:
 
===I cannot connect to a server that is hosting a game on my LAN on Windows===
 
===I cannot connect to a server that is hosting a game on my LAN on Windows===
 
*This may be caused by the Windows Firewall be turned on for Private Networks. Disable the Windows firewall for private networks and you should be able to click "Find Games" to find a hosted server on your LAN.
 
*This may be caused by the Windows Firewall be turned on for Private Networks. Disable the Windows firewall for private networks and you should be able to click "Find Games" to find a hosted server on your LAN.
*If you know the IP of the computer hosting you can directly connect to the game, also in most cases if you can ping a host of a game you will very likely also be able to connect to the game.
+
*If you know the IP of the computer hosting you can dirrectly connect to the game, also in most cases if you can ping a host of a game you will very likely also be able to connect to the game.
  
 
===Can I play MegaGlest with friends who run a different operating system?===
 
===Can I play MegaGlest with friends who run a different operating system?===
Yes, you can. All supported variants of MegaGlest should work for playing online games together, as long as everyone runs the same or compatible versions of the game.
+
Yes, you can. All supported variants of MegaGlest should work for playing online games together.
  
 
==Advanced topics==
 
==Advanced topics==
Line 310: Line 258:
 
Now compress the log files using a free compression format (such as 7-zip, infozip, xz, gzip or bzip) and upload them to a [https://secure.wikimedia.org/wikipedia/en/wiki/Comparison_of_file_hosting_services file hosting service] which allows for '''direct access''' (please do not make us solve CAPTCHAS or wait for nag screens to disappear!), or to your personal shared web space (Internet service providers often give you some for free). Anything goes, as long as we can download from there without any interruption and the download uses a standard and open protocol (such as HTTP, FTP, SFTP, rsync, bittorrent etc.).
 
Now compress the log files using a free compression format (such as 7-zip, infozip, xz, gzip or bzip) and upload them to a [https://secure.wikimedia.org/wikipedia/en/wiki/Comparison_of_file_hosting_services file hosting service] which allows for '''direct access''' (please do not make us solve CAPTCHAS or wait for nag screens to disappear!), or to your personal shared web space (Internet service providers often give you some for free). Anything goes, as long as we can download from there without any interruption and the download uses a standard and open protocol (such as HTTP, FTP, SFTP, rsync, bittorrent etc.).
  
Now submit a [http://glest.org/glest_board/index.php?topic=5332 proper bug report] to [http://forums.megaglest.org%7Cthe forums] or send us an e-mail. Don't forget to add the URL to your log files and to provide a concise description of your issue.
+
Now submit a [http://glest.org/glest_board/index.php?topic=5332 proper bug report] to [http://forums.megaglest.org|the forums] or send us an e-mail. Don't forget to add the URL to your log files and to provide a concise description of your issue.
 
===How can I run the game from a shell / command line and capture the verbose output?===
 
===How can I run the game from a shell / command line and capture the verbose output?===
 
====Linux====
 
====Linux====
Line 345: Line 293:
 
Notes on security: This utility does not make any changes to your system. it really only gathers some information on your system. You are not supposed to run it as root/with sudo, running it as a normal/restricted user is fully sufficient.
 
Notes on security: This utility does not make any changes to your system. it really only gathers some information on your system. You are not supposed to run it as root/with sudo, running it as a normal/restricted user is fully sufficient.
 
====Linux System Report====
 
====Linux System Report====
Running the Linux variant is pretty straight forward, all you need to do is open a terminal window and paste those commands:
+
Running the Linux variant is pretty straight forward, all you need to do is open a terminal window and paste this:
 
 
  cd /tmp
 
 
 
  curl -L -# -o system_report https://raw.githubusercontent.com/MegaGlest/megaglest-source/develop/source/tools/support/linux/system_report
 
 
 
  chmod +x system_report && ./system_report
 
  
This should also work on Mac OS.
+
cd /tmp && wget 'http://megaglest.svn.sourceforge.net/svnroot/megaglest/trunk/source/tools/support/linux/system_report' && chmod +x system_report && ./system_report
  
 +
This may also work on OS X, but due to lack of such hardware, we can't really tell.
 
====Windows System Report====
 
====Windows System Report====
 
A Windows variant does currently exist, but may be added in the future.
 
A Windows variant does currently exist, but may be added in the future.
Line 417: Line 360:
  
 
''Disclaimer: Please note that this summary was written by someone who takes part in MegaGlest development and which may thus seem subjective to others. As always, you are encouraged to develop your own point of view. ''
 
''Disclaimer: Please note that this summary was written by someone who takes part in MegaGlest development and which may thus seem subjective to others. As always, you are encouraged to develop your own point of view. ''
 +
[[Category:MG]]
  
 
==See Also==
 
==See Also==
 
*[[MegaGlest]]
 
*[[MegaGlest]]
 
*[[Troubleshooting]]
 
*[[Troubleshooting]]
*[[MG/INI|Ini-files and properties description]]
 
 
[[Category:MG]]
 
[[Category:MG]]
[[Category:HOW-TOs]]
 
[[Category:Multiplayer]]
 

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)

Templates used on this page: