Author Topic: dialog boxes not adjusting to font sizes, crashing  (Read 1380 times)

lee

  • Guest
dialog boxes not adjusting to font sizes, crashing
« 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]

=======================

tomreyn

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: dialog boxes not adjusting to font sizes, crashing
« Reply #1 on: 31 July 2011, 23:13:54 »
On the MegaGlest forums, we only handle MegaGlest issues. Moving this thread to GAE...
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 · · ·

hailstone

  • Local Moderator
  • Battle Machine
  • ********
  • Posts: 1,568
    • View Profile
Re: dialog boxes not adjusting to font sizes, crashing
« Reply #2 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.
Glest Advanced Engine - Admin/Programmer
https://sourceforge.net/projects/glestae/

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: dialog boxes not adjusting to font sizes, crashing
« Reply #3 on: 1 August 2011, 04:41:03 »
How do I attach a screenshot?
Simply upload it to a site like Imageshack (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 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.
« Last Edit: 18 June 2016, 13:02:51 by filux »
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

 

anything