MegaGlest Forum

MegaGlest => Bug reports => Closed bug reports => Topic started by: megabrock on 1 January 2016, 18:39:27

Title: [No bug] "Load Game" and "Game Mods" buttons overlap on Main Menu
Post by: megabrock on 1 January 2016, 18:39:27
First let me start by saying thanks to everyone who develops and plays Megaglest. It's a great game and the community is wonderful!

...and Happy New Year!

Now on to the problem....

On the main menu the "load game" and "game mods" buttons overlap. When I click on the buttons the game loads the "load game" screen. Ideally I would like to fix the overlapping buttons problem and access to the "game mods" screen. Alternatively, some directions on how to install the mods without the "game mods" menus. I will attempt to attach a screen shot of the problem.

(http://www.whitehouseprop.com/uploads/3/1/8/9/3189498/7678918_orig.png)

Running Lenovo 300N200 with Pentium dual T2330, 4gb ram, a hard drive, xorg 1.11.3, intel 965gm crap graphics, mesa 8.0.4, linux mint maya 13, kernel: linux 3.2.0-23(x86_64), xfce 4, megaglest 3.11.1 upraded from the defaut mint maya version.

Initially upon installing maya and the default megaglest it worked fine and there were two buttons quite separate and I could click on each one and go to their respective places. I really can't say what happened to make the buttons overlap. I don't remember if I installed an update or something, but I likely did. Of course, I couldn't tell you what. I know I have been updating my maya system regularly. I know I have updated megaglest twice. I know that the second and third upgrade I experienced this problem. I don't remember if I did the first time I upgraded it. Currently, and using synaptic, I have uninstalled Megaglest and reinstalled from precise libraries. Of course the buttons still overlap.

I have tried megaglest 3.11.1 from the links on this site and from ppa.launchpad.net/s44/stable/ubuntu precise. Currently using the precise by way of synaptic.

....man, how do you attach a pic in this thing? :-[
OK I put the pic at http://www.whitehouseprop.com/uploads/3/1/8/9/3189498/7678918_orig.png (http://www.whitehouseprop.com/uploads/3/1/8/9/3189498/7678918_orig.png)

Edit (tomreyn): Embedded newly posted image to post
Title: Re: "Load Game" and "Game Mods" buttons overlap on Main Menu
Post by: kagu on 1 January 2016, 21:42:22
just post a link
Title: Re: "Load Game" and "Game Mods" buttons overlap on Main Menu
Post by: Omega on 2 January 2016, 01:31:00
....man, how do you attach a pic in this thing? :-[
Use an image host like Imgur.
Title: Re: "Load Game" and "Game Mods" buttons overlap on Main Menu
Post by: tomreyn on 2 January 2016, 23:00:26
He did - now this is strange indeed. Did you maybe edit glestuser.ini manually, or copy it from a different installation?

Another explanation might be that you accidentally hit the hotkey which dumps all configuration into glestuser.ini (I forgot which on that is actually) while running an older version of the game, and that we have since changed the positioning of these menu buttons.

Either way, you should be able to fix it by either removing, in ~/.megaglest/glestuser.ini, all the lines where the word left of the equals character contains "menu". Alternatively, you can just delete ~/.megaglest/glestuser.ini, but this way you will also loose any configurations you may have made (usually those are easily reconfigured, though).
Title: Re: "Load Game" and "Game Mods" buttons overlap on Main Menu SOLVED!
Post by: megabrock on 3 January 2016, 01:55:03
SOLVED!

Thanks, that fixed it!

I edited my glestuser.ini file accordingly:

MainMenu_buttonAbout_h=22
MainMenu_buttonAbout_w=150
MainMenu_buttonAbout_x=425
MainMenu_buttonAbout_y=265
MainMenu_buttonExit_h=22
MainMenu_buttonExit_w=150
MainMenu_buttonExit_x=425
MainMenu_buttonExit_y=225
MainMenu_buttonMods_h=22
MainMenu_buttonMods_w=150
#megabrock changed this buttonMods_x thingy from 426 to 625 to move the box a little to the right.
MainMenu_buttonMods_x=625
MainMenu_buttonMods_y=345
MainMenu_buttonNewGame_h=22
MainMenu_buttonNewGame_w=150
MainMenu_buttonNewGame_x=425
MainMenu_buttonNewGame_y=385
MainMenu_buttonOptions_h=22
MainMenu_buttonOptions_w=150
MainMenu_buttonOptions_x=425
MainMenu_buttonOptions_y=305
MainMenu_errorMessageBox_h=240
MainMenu_errorMessageBox_w=350
MainMenu_errorMessageBox_x=325
MainMenu_errorMessageBox_y=255
MainMenu_labelVersion_h=20
MainMenu_labelVersion_w=70
MainMenu_labelVersion_x=525
MainMenu_labelVersion_y=440
MainMenu_mainMessageBox_h=240
MainMenu_mainMessageBox_w=350
MainMenu_mainMessageBox_x=325
MainMenu_mainMessageBox_y=255

So, THANKS! It works!

Errata:

...Oh and no need for anyone to mention that it's ugly and I should be changing the y not the x. I don't know where to put the button anyway and I'm just happy that it works.

I don't really know what caused this. i assume it was because of all the upgrading and downgrading I was doing somehow caused the file to become mixed up or the wrong version. Or perhaps I found that secret hot key the gentlemen suggested. Certainly I never opened this file before.

Technically, this is not a bug, because the program is working correctly. This is a configuration error.
Title: Re: "Load Game" and "Game Mods" buttons overlap on Main Menu
Post by: tomreyn on 3 January 2016, 02:04:18
Glad it works for you now!

Just in case this was not clear from my previous post: removing all of these MainMenu_... entries off the file would give you the default buttons - the same buttons you have now (just with different positioning - all in one 'column'), plus you would not miss out in case the main menu will change in the future.