#178 FO won't run after changing resolution

closed-fixed
nobody
None
5
2005-12-03
2005-11-24
No

When I change the resolution from Options menu, exit FO
and try to start it I get:

[wolverine@wolverine ~]$ freeorion
main() caught exception(std::runtime_error):
OptionsDB::SetFromXMLRecursive() : the following
exception was caught whenattemptimg to set option
"app-height": bad lexical cast: source type value could
not be interpreted as targetUsage:
--UI.chat-edit-history
The number of outgoing messages to keep in the
chat edit box history.
Default: 50

--UI.chat-hide-interval
Time interval, in seconds, after which the
multiplayer chat window will
disappear if nothing is added to it. A value of 0
indicates that the window
should never disappear. | Default: 10

--UI.ctrl-border-color
Sets UI control border color. | Default:
(124,124,124,255)

--UI.ctrl-color
Sets UI control color. | Default: (30,30,30,255)

--UI.edit-hilite
Sets the color of hilighting in edit controls. |
Default: (43,81,102,255)

--UI.edit-interior
Sets the interior color in edit controls. |
Default: (0,0,0,255)

--UI.fleet-autoselect
Auto-select the top fleet when a fleet window is
opened. Consider using
this flag if you use UI.multiple-fleet-windows. |
Default: 1

--UI.font
Sets UI font resource file. | Default:
/usr/share/freeorion/Vera.ttf

--UI.font-bold
Sets UI bold font resource file.
Default: /usr/share/freeorion/VeraBd.ttf

--UI.font-size
Sets UI font size. | Default: 12

--UI.known-tech
Sets color of known techs in the tech tree. |
Default: (72,72,72,255)

--UI.known-tech-border
Sets text and border color of known techs in the
tech tree.
Default: (164,164,164,255)

--UI.main-menu.x
Position of the center of the intro screen main
menu, as a portion of the
application's total width. | Default: 0.75

--UI.main-menu.y
Position of the center of the intro screen main
menu, as a portion of the
application's total height. | Default: 0.35

--UI.multiple-fleet-windows
If true, clicks on multiple fleet buttons will
open multiple fleet windows
at the same time. Otherwise, opening a fleet
window will close any
currently-open fleet window. | Default: 0

--UI.researchable-tech
Sets color of researchable techs in the tech tree.
Default: (48,48,48,255)

--UI.researchable-tech-border
Sets text and border color of researchable techs
in the tech tree.
Default: (164,164,164,255)

--UI.sound.alert
The sound file played when an error or illegal
action occurs.
Default: alert.wav

--UI.sound.balanced-focus
The sound file played when a balanced focus button
is clicked.
Default: balanced_select.wav

--UI.sound.button-click
The sound file played when a button is clicked.
Default: button_click.wav

--UI.sound.button-rollover
The sound file played when the mouse moves over a
button.
Default: button_rollover.wav

--UI.sound.enabled
Toggles UI sound effects on or off. | Default: 1

--UI.sound.farming-focus
The sound file played when a farming focus button
is clicked.
Default: farm_select.wav

--UI.sound.fleet-button-click
The sound file played when a fleet button is clicked.
Default: fleet_button_click.wav

--UI.sound.fleet-button-rollover
The sound file played when mouse moves over a
fleet button.
Default: fleet_button_rollover.wav

--UI.sound.industry-focus
The sound file played when an industry focus
button is clicked.
Default: industry_select.wav

--UI.sound.item-drop
The sound file played when an item is dropped into
a listbox.
Default: item_drop.wav

--UI.sound.list-pulldown
The sound file played when the list is opened in a
drop-down list.
Default: list_pulldown.wav

--UI.sound.list-select
The sound file played when a listbox or drop-down
list item is selected.
Default: list_select.wav

--UI.sound.mining-focus
The sound file played when a mining focus button
is clicked.
Default: mining_select.wav

--UI.sound.planet-button-click
The sound file played when a planet button is clicked.
Default: button_click.wav

--UI.sound.research-focus
The sound file played when a research focus button
is clicked.
Default: research_select.wav

--UI.sound.sidepanel-open
The sound file played when the system side-panel
is opened.
Default: sidepanel_open.wav

--UI.sound.text-typing
The sound file played when the user types text. |
Default: text_typing.wav

--UI.sound.turn-button-click
The sound file played when the turn button is clicked.
Default: turn_button_click.wav

--UI.sound.volume
The volume (0 to 255) at which UI sound effects
should be played.
Default: 255

--UI.sound.window-close
The sound file played when a window is closed. |
Default: window_close.wav

--UI.sound.window-maximize
The sound file played when a window is maximized.
Default: window_maximize.wav

--UI.sound.window-minimize
The sound file played when a window is minimized.
Default: window_minimize.wav

--UI.tech-category-1
Sets color of the first category of techs defined
in techs.xml.
Default: (93,155,246,255)

--UI.tech-category-2
Sets color of the second category of techs defined
in techs.xml.
Default: (116,225,107,255)

--UI.tech-category-3
Sets color of the third category of techs defined
in techs.xml.
Default: (240,106,106,255)

--UI.tech-category-4
Sets color of the fourth category of techs defined
in techs.xml.
Default: (241,233,87,255)

--UI.tech-category-5
Sets color of the fifth category of techs defined
in techs.xml.
Default: (255,112,247,255)

--UI.tech-layout-horz-spacing
The horizontal spacing to be placed between techs
in the tech screen, in
multiples of the width of a single theory tech. |
Default: 0.75

--UI.tech-layout-vert-spacing
The vertical spacing to be placed between techs in
the tech screen, in
multiples of the height of a single theory tech. |
Default: 1

--UI.tech-progress
Sets color of progress bars in the tech tree. |
Default: (40,40,40,255)

--UI.tech-progress-background
Sets background color of progress bars in the tech
tree.
Default: (72,72,72,255)

--UI.text-color
Sets UI text color. | Default: (255,255,255,255)

--UI.title-font
Sets UI title font resource file. | Default:
/usr/share/freeorion/Vera.ttf

--UI.title-font-size
Sets UI title font size. | Default: 12

--UI.tooltip-delay
Sets UI tooltip popup delay, in ms. | Default: 1000

--UI.unresearchable-tech
Sets color of unresearchable techs in the tech tree.
Default: (30,30,30,255)

--UI.unresearchable-tech-border
Sets text and border color of unresearchable techs
in the tech tree.
Default: (86,86,86,255)

--UI.window-quickclose
Close open windows such as fleet windows and the
system-view side panel
when you right-click on the main map. | Default: 1

--UI.wnd-border-color
Sets UI border color. | Default: (0,0,0,255)

--UI.wnd-color
Sets UI window color. | Default: (0,0,0,210)

--UI.wnd-inner-border-color
Sets UI inner border color. | Default:
(255,255,255,255)

--UI.wnd-outer-border-color
Sets UI outer border color. | Default: (64,64,64,255)

--app-height
Sets vertical app resolution. | Default: 768

--app-width
Sets horizontal app resolution. | Default: 1024

--art-dir
Sets UI art resource directory.
Default: /usr/share/freeorion/default/data/art

--autosave.multiplayer
If true, autosaves will occur during multiplayer
games. | Default: 0

--autosave.saves
Sets the number of autosaved games that should be
kept. | Default: 10

--autosave.single-player
If true, autosaves will occur during single-player
games. | Default: 0

--autosave.turns
Sets the number of turns that should elapse
between autosaves.
Default: 5

--bg-music
Sets the background track to play
Default:
/usr/share/freeorion/artificial_intelligence_v3.ogg

-c, --color-depth
Sets screen color depth, in bits per pixel. |
Default: 32

--enable-sdl-event-thread
Enables creation of a thread dedicated to handling
incoming SDL messages.
This may make FreeOrion more or less responsive,
depending on your system.
Default: 0

--force-external-server
Force the client not to start a server, even when
hosting a game on
localhost, playing single player, etc.

-f, --fullscreen
Start the game in fullscreen

-g, --generate-config-xml
Uses all the settings from any existing config.xml
file and those given on
the command line to generate a config.xml file.
This will overwrite the
current config.xml file, if it exists.

-h, --help
Print this help message.

--log-level
Sets the level at or above which log messages will
be output (levels in
order of decreasing verbosity: DEBUG, INFO,
NOTICE, WARN, ERROR, CRIT,
ALERT, FATAL, EMERG | Default: WARN

-m, --music-off
Disables music in the game

--music-volume
The volume (0 to 255) at which music should be
played. | Default: 255

-S, --save-dir
The directory in which saved games are saved and
from which they are
loaded. Directory names are taken to be relative
to the location of the
executable. | Default: /home/wolverine/.freeorion/save

--settings-dir
Sets the root directory for the settings and data
files.
Default: /usr/share/freeorion/default

--sound-dir
Sets UI sound and music resource directory.
Default: /usr/share/freeorion/default/data/sound

--stringtable-filename
Sets the language-specific string table filename.
Default: eng_stringtable.txt

Discussion

  • Dennis Brakhane

    Dennis Brakhane - 2005-11-24

    Logged In: YES
    user_id=26932

    Could you attach the .freeorion/config.xml please?

     
  • Dennis Brakhane

    Dennis Brakhane - 2005-11-24
    • status: open --> pending
     
  • Karol Tomala

    Karol Tomala - 2005-11-24

    Logged In: YES
    user_id=926790

    AS you wish :)

     
  • Karol Tomala

    Karol Tomala - 2005-11-24
    • status: pending --> open
     
  • Karol Tomala

    Karol Tomala - 2005-11-24

    Config.xml

     
  • Karol Tomala

    Karol Tomala - 2005-11-24

    Logged In: YES
    user_id=926790

    Oops. It didn't attach file.

     
  • Zach Laine

    Zach Laine - 2005-11-28

    Logged In: YES
    user_id=729903

    I cannot reproduce this with the given config.xml file. The
    program not only loads the file and runs ok, but the value
    for app-height is 480. It is not possible for the string
    "480" not to be convertable to the integer 480. Check your
    path and /or run strace make sure that the file that is
    being loaded is the one you expect.

     
  • Zach Laine

    Zach Laine - 2005-11-28

    Logged In: YES
    user_id=729903

    I cannot reproduce this with the given config.xml file. The
    program not only loads the file and runs ok, but the value
    for app-height is 480. It is not possible for the string
    "480" not to be convertable to the integer 480. Check your
    path and /or run strace make sure that the file that is
    being loaded is the one you expect.

     
  • Karol Tomala

    Karol Tomala - 2005-11-29

    Screens

     
  • Karol Tomala

    Karol Tomala - 2005-11-29

    Logged In: YES
    user_id=926790

    The bug is resolved in current CVS. However changing
    resolution still doesn't work.

     
  • Karol Tomala

    Karol Tomala - 2005-11-29

    Screens part 2

     
  • Geoff Topping

    Geoff Topping - 2005-12-02

    Logged In: YES
    user_id=913462

    In WinXP, FO defaults to 1024x768.

    I get a crash if I open up the options screen, change the
    resolution to something other than 1024x768, then
    immediately change it back to 1024x768 (without exiting the
    options screen in the interim), then clicking done and
    quitting FO. When starting FO again, it crashes, spewing
    the command line options to the console, after the error
    message:

    main() caught exception(std::runtime_error):
    OptionsDB::SetFromXMLRecursive() :
    the following exception was caught when attemptimg to set
    option "app-height": b
    ad lexical cast: source type value could not be interpreted
    as targetUsage:

    (then the command line options)

    After deleting config.xml, the game runs fine, as in
    default. If I then go to options and change resolution to
    1280x1024, quit, then restart, I end up in 800x600, while
    the options screen says 1024x768. Switching to 1600x1200,
    quitting, restarting puts me back into 1024x768 (which is
    still what the UI says). Switching to anything other than
    1024x768, clicking Done, then reopening the options screen
    leaves 1024x768 showing in the resolution picker.

     
  • Zach Laine

    Zach Laine - 2005-12-03
    • status: open --> closed-fixed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks