MegaGlest Forum

Archives (read only) => Glest Advanced Engine => General discussion => Topic started by: lee on 31 July 2011, 12:44:01

Title: dialog boxes not adjusting to font sizes, crashing
Post by: lee on 31 July 2011, 12:44:01
Hi,

the dialog boxes (when playing the tutorial) and boxes/windows on the screen don't adjust to the size of the font. It's nice that the font is large, though it won't hurt if it was a little smaller --- or better, it should be adjustable. How do I attach a screenshot?

The game is crashing too frequently to play. It leaves a crash log like:

Code: [Select]
Crash
Version: Advanced Engine git-master (DB547F1) 0.3-823-gdb547f1
Built: Sa 30. Jul 13:13:39 CEST 2011
Time: Sat Jul 30 13:38:44 2011
Description: SIGABRT:
Address: 0x3e800003e6a
Backtrace:
source/game/glestadv(_ZN6Shared8Platform24PlatformExceptionHandler7handlerEiP7siginfoPv+0x2ab) [0x9e082f]
/lib/x86_64-linux-gnu/libc.so.6(+0x32480) [0x7f4318b02480]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0x35) [0x7f4318b02405]
/lib/x86_64-linux-gnu/libc.so.6(abort+0x180) [0x7f4318b05680]
/lib/x86_64-linux-gnu/libc.so.6(__assert_fail+0xf1) [0x7f4318afb5b1]
source/game/glestadv(_ZN6Shared8Platform5Input14getMouseButtonEi+0x32) [0x9e1f9d]
source/game/glestadv(_ZN6Shared8Platform6Window15handleMouseDownE9SDL_Event+0x1d) [0x9e1b3f]
source/game/glestadv(_ZN6Shared8Platform6Window11handleEventEv+0xde) [0x9e150a]
source/game/glestadv(_ZN5Glest4Main7Program4loopEv+0x4a4) [0x81def2]
source/game/glestadv(_ZN5Glest4Main9glestMainEiPPc+0x2eb) [0x817894]
source/game/glestadv(main+0x72) [0x817c65]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xfd) [0x7f4318aeeead]
source/game/glestadv() [0x720649]

=======================
Title: Re: dialog boxes not adjusting to font sizes, crashing
Post by: tomreyn on 31 July 2011, 23:13:54
On the MegaGlest forums, we only handle MegaGlest issues. Moving this thread to GAE...
Title: Re: dialog boxes not adjusting to font sizes, crashing
Post by: hailstone on 1 August 2011, 00:42:54
Hi lee,

Are you using a non-standard mouse? Which mouse button do you push for it to crash?

Here's the comment from the function that's failing an assertion:
Code: [Select]
static MouseButton getMouseButton(int nativeButton) {
// Fail an assertion for debug builds so we can add the new mouse button codes, otherwise
// send MouseButton::UNKNOWN.
Title: Re: dialog boxes not adjusting to font sizes, crashing
Post by: Omega on 1 August 2011, 04:41:03
How do I attach a screenshot?
Simply upload it to a site like Imageshack (http://imageshack.us/) (no account required) and post the forum BBCode here.

And the font size can be adjusted via the INI. The value RenderFontScaler will multiply the font size, so having 0.5 for the RenderFontScaler will half the font size, while 2.0 would double it, etc. This page (https://docs.megaglest.org/GAE/INI) here documents the INI, however, it is for the latest stable release, so the git-master version's new INI options aren't yet documented. We'll get to that later, closer to release.

Thanks for posting the bug report.