#12 Can not load its own config file

closed-fixed
nobody
None
3
2014-08-17
2012-06-10
No

foobillardplus can not load the default config file it creates on the first start.

Steps to reproduce (Revision 144)
Remove any trailing .foobillardrc
Checkout revision 144 (Start from a clean revision)
Compile and start foobillardplus
aclocal --force; autoconf -f; autoheader -f; automake -a -c -f; ./configure; make; src/foobillardplus

Quit from the game, to have it write its default config file
Start foobillardplus, so that it loads using config file
src/foobillardplus

[stdout]
Player variables initialized
/home/emeric/.foobillardrc
Base-Configuration initialized
processing option 0=human
src/foobillardplus: unrecognized option 'P�P��� Y@�▒'
processing option 63=(null)
Configuration processing
Language initialized
[/stdout]

Using attached patch, to continue parsing confg file after the first error encountered:

[stdout]
Player variables initialized
/home/emeric/.foobillardrc
Base-Configuration initialized
processing option 0=human
src/foobillardplus: unrecognized option 'з� �� YG�▒'
processing option 63=(null)
src/foobillardplus: unrecognized option '--nasrc/foobilla'
processing option 63=(null)
src/foobillardplus: unrecognized option '--posli'
processing option 63=(null)
processing option 19=--ai1P�]� YG�
src/foobillardplus: unrecognized option '-� ��� ���)��v'
processing option 63=(null)
processing option 23=off
processing option 25=m
processing option 26=--portnum=56341
src/foobillardplus: unrecognized option '--geometr����24x750'
processing option 63=(null)
processing option 30=firefox
processing option 31=1
src/foobillardplus: unrecognized option '--`DG� YG�tible=off'
processing option 63=(null)
src/foobillardplus: unrecognized option '--processing option 63=(null)

m=56341
28'
processing option 63=(null)
processing option 36=off
processing option 37=off
processing option 38=off
processing option 39=off
processing option 40=match
processing option 41=off
processing option 42=30.000000
processing option 43=on
processing option 44=on
processing option 45=on
processing option 46=2
processing option 47=on
processing option 48=on
processing option 49=on
processing option 50=10
processing option 51=90
processing option 52=10
processing option 53=off
processing option 54=off
processing option 55=0.000000
processing option 56=on
processing option 57=off
processing option 58=on
processing option 59=0
processing option 60=on
processing option 61=1
processing option 62=en
Configuration processing
Language initialized
[/stdout]

But at least it loads a good part of the config. This does not explain why the rest looks so corrupted.

Discussion

  • Émeric Dupont

    Émeric Dupont - 2012-06-10

    Load options after the first failure

     
  • Émeric Dupont

    Émeric Dupont - 2012-06-10
    • priority: 5 --> 3
     
  • Émeric Dupont

    Émeric Dupont - 2012-06-10

    The config file created pasted below

    emeric@dijkstra:~$ cat .foobillardrc
    player1=human
    player2=ai
    name1=emeric
    name2=
    8ball
    goldgreen
    tronmode=off
    tablesize=7.000000
    poslight
    vsync=on
    ai1err=0.000000
    ai2err=0.300000
    balldetail=v
    glassball=off
    rgaim=m
    hostaddr=--portnum=56341
    portnum=56341
    geometry=1024x750
    browser=firefox
    netspeed=1
    netcompatible=off
    freemove=off
    cuberef=on
    cuberes=128
    ballsphere=off
    bumpref=off
    bumpwood=off
    balltraces=off
    gamemode=match
    avatar=off
    tourfast=30.000000
    showbuttons=on
    jumpshots=on
    aliasing=on
    aliasmax=2
    statustext=on
    usesound=on
    usemusic=on
    musicvol=10
    soundvol=90
    pcarambol=10
    controlkind=off
    aibirdview=off
    anisotrop=0.000000
    mouseshoot=on
    oldmoving=off
    auto_freemove=on
    fsaa=0
    roomtexture=on
    furnituretex=1
    language=en

     
  • Holger Schäkel

    Holger Schäkel - 2012-06-12

    With Revision 149 in the SVN the error is solved. There is now a new function for processing command line arguments or lines in the config file. That's more portable.

    Be carefull. The new Revision have new improved code for OpenGL rendering.

    Please close this bug, if this solves the problem with the config file

     
  • Holger Schäkel

    Holger Schäkel - 2012-06-12
    • status: open --> open-fixed
     
  • Émeric Dupont

    Émeric Dupont - 2012-06-12
    • status: open-fixed --> closed-fixed
     
  • Émeric Dupont

    Émeric Dupont - 2012-06-12

    Verified in Revision 149. Closing.

    Thanks for the fast fix.

     
  • Nobody/Anonymous

    I simply got my Miu Miu Bags http://miumiubags.v5s7.com a short while ago, however they are quite possibly the most good Miu Miu Bags http://miumiubags.v5s7.com get get by chance used. The fur within just causes it to hence good. All my family and friends ask them to well, i needed a set way too. I really enjoy the simple fact there is the choice to deliver these folks down or up. Furthermore, you can easily deliver these for all kinds of things, not only on leggings along with lean denims, although All sorts of things!!!!!!!

     
  • Nobody/Anonymous

    Michael Kors Sale http://michaelkorssale.v5s7.com transaction sans problme - Faveur trs bien selon accident en compagnie de petits soucis

     
  • Nobody/Anonymous

    PaOB1F <a href="http://hcygfgkrjngg.com/">hcygfgkrjngg</a>, [url=http://kcvpulmsnmxo.com/]kcvpulmsnmxo[/url], [link=http://gkaqkogehoen.com/]gkaqkogehoen[/link], http://tulnjstuuczo.com/

     

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

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks