Menu

Bug- pydarts (source 1.2.0 b 18) crashes when starting hoOne with more than 3 players- temporary fix

poukah
2021-03-02
2021-03-12
  • poukah

    poukah - 2021-03-02

    Hi,

    when I launch HoOne with more than 3 players pydarts closes ( I try pydarts 1.2.0 beta 18, on windows 10 and on raspberry pi, same results)
    The debug message:

    [DEBUG] Found these games : 321_Zlip/Bermuda_Triangle/By_Fives/Cricket/Football/Ho_One/Kapital/Killer/Kinito/Practice/Sample_game/Scram_Cricket/Shanghai
    [DEBUG] Waiting for game choice
    [DEBUG] Inserting image into cache images/321_Zlip.png
    [DEBUG] Input debug (pyGame) : (292, 308)
    [DEBUG] Clicked on select|5
    [DEBUG] Inserting image into cache images/Ho_One.png
    [DEBUG] Input debug (pyGame) : (839, 645)
    [DEBUG] Clicked on return
    [DEBUG] Working on section Ho_One of your config file.
    [DEBUG] Don't forget that you may create section named Ho_One to customize pyDarts
    [DEBUG] Waiting for game options
    [DEBUG] Input debug (pyGame) : (902, 640)
    [DEBUG] Clicked on return
    [DEBUG] Checking for handicaps!
    [FATAL] Error getting required config value startpercent. No command line, no config found, no default Abort
    Error in sys.excepthook:
    Original exception was:

    End error message.

    I might have found a temporary solution. I just added starpercent:0 in the pydarts.cfg in [sectionglobals] as it appears to have no default value.
    Anyone else having this issue?

    best regards,

    poukah

     
  • Reredede

    Reredede - 2021-03-03

    Hi,
    Have you tested with the value "startpercent:0.4" ?
    Regards

     
  • poukah

    poukah - 2021-03-09

    Hi,

    I tested with startpercent:0.4 but I didn't notice any change.
    I didn't see the "startpercent" key in CConfig.py in the last source. Maybe it's missing?

    cheers

     

    Last edit: poukah 2021-03-09
    • poilou

      poilou - 2021-03-09

      I've fixed this one. startpercent has nothing to do in SectionGlobals

      It must be starting from now in a [Ho_One] section of your config file
      or fallback to default 0.4 value.

      Cheers !

       
      • poilou

        poilou - 2021-03-10

        After a night of thinking (not all night be quiet), I changed my mind
        and I have done the following :

        Handicap Ratio is now expressed as a percentage, as a game option :
        default is 40 but can be setup in pydarts.cfg in the [Ho_One] section or
        directly in the game options.

        Handicap is calculated from this value (40 = 0.4).

        Hope this will solve your issues, please let me know !

        Cheers

         
  • poukah

    poukah - 2021-03-12

    Hi poilou, hi guys!
    I tested it quickly this morning without and with modification and I can confirm that
    your changes solved the issue, thanks a lot!

    cheers!

     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.