Author Topic: [lacks info] Hard to select building, barely unable to send units for mining  (Read 2007 times)

Lucien

  • Guest
Hello there,

I'm not sure whether this is a know 'error'. I've got a fully functional Linux Mint 14 Cinnamon working. Screen resolution 1280x960.

Yesterday I wanted to try out Megaglest and played the tutorial. Seems to me like a really fun and entertaining game.

But, now it seems that whatever I do, in the tutorials (or any of the scenarios, I've checked) I can't select buildings, while I can select units by clicking on them with the left mouse button. I can send mages for harvesting wood, or harvesting stone, but they won't go harvesting the gold. Only once or so I got one to do so. I select the unit, choose 'Mining', then click the gold and, if they react, they head straight for the stone, somewhere else in the scenario.

I can only run Megaglest in 800x600 resolution. May it be a resolution problem? Why can I still pretty accurately select the units, but not the buildings nor the gold?

-Archmage-

  • Moderator
  • Dragon
  • ********
  • Posts: 5,887
  • Make it so.
    • View Profile
    • My Website
My dad was trying to play MegaGlest on a Mint installation and it was completely acting up like this... I'm not at my dad's right now but when I get over there I'll check it out..
Egypt Remastered!

Proof: Owner of glest@mail.com

Lucien

  • Guest
Thanks for that. If I need to provide more information on this, please let me know. I would be happy to slay this little problem, or help others to do so!

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
We know about a selecting bug in ubuntu 12.10.
It  has to do with a buggy  gfx driver showing up with ATI cards (OpenSource driver )  and maybe intel too .

you can try this:
https://docs.megaglest.org/MG/FAQ#I_cannot_select_any_units_in_the_game

The selection method "Colorpicking" is not working very good in latest release( some flickering and a bit slow ) but if it works its better than nothing. In svn we already fixed this new selection method and it shoul work perfect.
« Last Edit: 18 June 2016, 18:38:14 by filux »
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Lucien: Can you let us know which video hardware and driver you are using?

If you don't know how to find out, please try these commands:
Code: [Select]
which lspci &>/dev/null && lspci -knnv | fgrep -A12 VGA
which glxinfo &>/dev/null && glxinfo | grep -E '^(name|display|server|client|GLX|OpenGL)'
[ -x ~/megaglest/megaglest ] && ~/megaglest/megaglest --opengl-info | grep '^   OpenGL'
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

Lucien

  • Guest
First I would like to thank all responses so far. I can even state that I was successful in playing one of the tutorials and the selection worked like a charm. I'm curious whether this solution will also work out for Archmage's father.

- In your file system, go to Home.
- If you use the graphical interface, make hidden files visible by simply pressing CTRL+H
- In .megaglest you'll find the file glestuser.ini.
- Open the file using gedit for example.
- Add this line

EnableColorPicking=true

to this file and save it
- MegaGlest will work like a charm and fill up your spare time with very much ease.

Will return with my system specifications, perhaps something can be said about the cause of it all? Perhaps something with the resolution after all? The windows on my screen *do* look a bit fat 'n fluffy.

Lucien

  • Guest
System specifications of a system where this problem occurred:

Code: [Select]
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GT216 [GeForce GT 220] [10de:0a20] (rev a2) (prog-if 00 [VGA controller])
Subsystem: Micro-Star International Co., Ltd. Device [1462:2022]
Flags: bus master, fast devsel, latency 0, IRQ 16
Memory at fd000000 (32-bit, non-prefetchable) [size=16M]
Memory at e0000000 (64-bit, prefetchable) [size=256M]
Memory at de000000 (64-bit, prefetchable) [size=32M]
I/O ports at cc00 [size=128]
Expansion ROM at fe900000 [disabled] [size=512K]
Capabilities: <access denied>
Kernel driver in use: nouveau
Kernel modules: nouveau, nvidiafb

01:00.1 Audio device [0403]: NVIDIA Corporation High Definition Audio Controller [10de:0be2] (rev a1)

Code: [Select]
|server|client|GLX|OpenGL)'
name of display: :0
display: :0  screen: 0
server glx vendor string: SGI
server glx version string: 1.4
server glx extensions:
client glx vendor string: Mesa Project and SGI
client glx version string: 1.4
client glx extensions:
GLX version: 1.4
GLX extensions:
OpenGL vendor string: nouveau
OpenGL renderer string: Gallium 0.4 on NVA5
OpenGL version string: 3.0 Mesa 9.0
OpenGL shading language version string: 1.30
OpenGL extensions:

If you need anything else to sort this out, let me know! The last given command did not return any results in the Terminal. I can't see anything in the result that worries me, though.

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
Oh Nvidia  :)
install the proprietary nvidia driver to play games! This will fix all your problems! It should be in your repository and everything is faster after doing so. Currently you are using the opensource nouvea driver which still has some problems especially with 3d .
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

Coldfusionstorm

  • Golem
  • ******
  • Posts: 868
    • View Profile
Titi, Don't blame Nvidia, Most linux distrubutions decided to FORCE Neuvau or whatever it's called down on it's users, it's allmost impossible to install the Nvidia Driver now. Because you need to remove the Neuvau Driver entirely before you can install.

So don't go all "ooh you Nvidia".
Nvidias Driver is as easy to install on linux as it is on windows, So they did a good job, that linux devs decide to ruin this work, that's not Nvidias fault.
WiP Game developer.
I do danish translations.
"i break stuff"

Lucien

  • Guest
I already noticed I couldn't install proprietary packages anymore, through this useful link. I just installed Nvidia-current-update through Synaptic. So now I should remove this other package? Or now that everything works okay, should I not worry?

Coldfusionstorm

  • Golem
  • ******
  • Posts: 868
    • View Profile
Re: Hard to select building, barely unable to send units for mining gold
« Reply #10 on: 16 January 2013, 11:54:04 »
If it works, i wouldn't play around with it.

You can tinker way more with linux than with windows, But you can certainly also ruin more.
WiP Game developer.
I do danish translations.
"i break stuff"

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: Hard to select building, barely unable to send units for mining gold
« Reply #11 on: 16 January 2013, 12:25:34 »
While my recommendation for proprietary drivers wouldn't be as strong as Titi's, I do agree that they give, to date, at least for people playing games, a better experience than nouveau does. That's in terms of performance (FPS amongst several other factors) especially. Upgrading the drivers or parts of the operating system when you have proprietary drivers installed can be more troublesome, though (it just means more fiddling around, but is almost always solveable when you don't run the very latest stuff as in Gentoo or Arch Linux or similar).

My understanding now is that the issues you ran into can be due to either a bug in Mesa, or due to MegaGlest relying on a deprecated OpenGL feature, or both. For MegaGlest this should be fixed in the latest development snapshots (refer to the sticky threads on main MegaGlest forum for download locations) - for now you need to also set EnableColorPicking=1 in ~/.megaglest/glestuser.ini, though.
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

Lucien

  • Guest
Re: Hard to select building, barely unable to send units for mining gold
« Reply #12 on: 16 January 2013, 21:27:43 »
I was running Megaglest successfully last night, on a PC that I temporary used. Now I'm back on my own machine, downloaded and installed Megaglest again and I seem to have similar problems with aforementioned. BUT, it's a bit more complicated. This machine runs on a Radeon video card (see below) and not a nVidia based card (as was with the other machine). And adding the line EnableColorPicking=true to the ini-file doesn't solve the problem completely.

Without adding the line

Code: [Select]
EnableColorPicking=true
to glestuser.ini (see above), I can easily select units and buildings, but I can't make them harvesting for gold. I haven't tested during combat.

When I add the line to glestuser.ini, I can only select units or buildings by drawing a retangular. If I click on anything, it doesn't select it. I'm still able to select individual units, though (but only using the 'rectangular method, not by clicking)
I can select more units to start constructing a building. But once construction takes places, I can't let other units/workers join in. They will simply walk into the building site, whatever I click, in or outside the building site. I suppose I can't make workers/initiates/whatever do any repairing either.

During combat, I can't make my soldiers (or whatever fighting thingies) fight appointed enemies. If I click anywhere, they walk to that location but won't be fighting the unit there (until they reach that certain spot). Killing for your fun.

Let's have  a look at my video card specifications. What could be the case? I'm running 64 bit Linux Mint 14 Cinnamon 1.6 again. Just like the other day.

Code: [Select]
02:00.0 VGA compatible controller [0300]: Advanced Micro Devices [AMD] nee ATI Redwood [Radeon HD 5670] [1002:68d8] (prog-if 00 [VGA controller])
Subsystem: Hightech Information System Ltd. Device [1787:2294]
Flags: bus master, fast devsel, latency 0, IRQ 24
Memory at d0000000 (64-bit, prefetchable) [size=256M]
Memory at fbcc0000 (64-bit, non-prefetchable) [size=128K]
I/O ports at c000 [size=256]
Expansion ROM at fbca0000 [disabled] [size=128K]
Capabilities: <access denied>
Kernel driver in use: radeon
Kernel modules: radeon

02:00.1 Audio device [0403]: Advanced Micro Devices [AMD] nee ATI Redwood HDMI Audio [Radeon HD 5000 Series] [1002:aa60]
Subsystem: Hightech Information System Ltd. Device [1787:aa60]

Code: [Select]
play|server|client|GLX|OpenGL)'
name of display: :0
display: :0  screen: 0
server glx vendor string: SGI
server glx version string: 1.4
server glx extensions:
client glx vendor string: Mesa Project and SGI
client glx version string: 1.4
client glx extensions:
GLX version: 1.4
GLX extensions:
OpenGL vendor string: X.Org
OpenGL renderer string: Gallium 0.4 on AMD REDWOOD
OpenGL version string: 2.1 Mesa 9.0
OpenGL shading language version string: 1.30
OpenGL extensions:

Any clues??

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: Hard to select building, barely unable to send units for mining gold
« Reply #13 on: 17 January 2013, 00:12:14 »
Please try the latest svn binary as it improves color picking functionality.

 

anything