Menu

Ho_One Master Out

Anonymous
2017-04-11
2017-04-28
1 2 > >> (Page 1 of 2)
  • Anonymous

    Anonymous - 2017-04-11

    Good Morning
    i have added Master Out to Ho_One

    GameOpts = {'startingat':'301','totalround':'20','double_in':'False','double_out':'False','master_out':'False'} # Dictionnay of options - will be used at the initial screen

      elif self.GameOpts['master_out']=='True' and subscore == 0 and (hit[:1] == 'D' or hit[:1] == 'T'):# Successed Master out !
         self.myDisplay.Sound4Touch(hit)
         return_code = 3 # There is a winner
         self.winner = actualplayer
         LSTPlayers[actualplayer].score = 0
      elif self.GameOpts['master_out']=='True' and subscore <= 1:# Master out failed, next player !
         return_code = 1 # Next player
         LSTPlayers[actualplayer].score = LSTPlayers[actualplayer].PrePlayScore
         self.myDisplay.PlaySound('whatamess')
    

    Then i have added this lines in the pydarts.po
    msgid "Ho_One-master_out"
    msgstr "Master-Out Einstellungen"

    But in the Startoptionscreen it shows always the string Ho_One-master_ou instead of Master-Out Einstellungen
    What i have to modify that the right text is shown.

    Cheers
    Chrigu

     
  • Andreas

    Andreas - 2017-04-11

    in which .po file? Only in en_GB, or de_DE?
    after start often the game fall back from de_DE to en_GB

     
  • Chrigu Wuethrich

    First i have changed only de_DE now i have changed all 4 files
    but it shows the old text (Ho_One-master_out)

     
  • Andreas

    Andreas - 2017-04-11

    i see no error, it is poilou's turn.

     
  • Chrigu Wuethrich

    Ich brauche nichts zu kompilieren oder?

     
  • Andreas

    Andreas - 2017-04-11

    Nein, ich glaube nicht, die Datei sollte bei jedem Start neu eingelesen werden.
    Python ist allerdings sehr zickig mit der Formatierung.
    Allerdings ist im /Script Ordner noch eine https://sourceforge.net/p/pydarts/source/ci/master/tree/scripts/pdcompile.bat

    müsste man mal probieren.

     

    Last edit: Andreas 2017-04-11
  • poilou

    poilou - 2017-04-11

    Hi mates !
    The .po files are compiled to .mo files by softwares like "poedit" (linux).
    But never mind, the software will work great even if translation has not been done.

    Chrigu, what's the matter of the "Master out" option ?

     
  • Chrigu Wuethrich

    Hi poilou,
    im not shure if i understand the question right
    When we play Dart we can close with double or tripple instead of only double out.
    Its not so nice that i can choose double and masterout because masterout will be ignored when also double-out is selected. But i have no plan how to implement this, i never used python before.
    Cheers
    Chrigu

     
    • poilou

      poilou - 2017-04-20

      Hi Chrigu !
      I inspired myself from your code to add the "Master In" and "Master Out" option to Ho One :)

      According to the following page, you can start/end with a double, a triple or a bull (simple or double) :

      http://www.radikaldarts.com/contenidos.php?seccionID=4&contenidoID=35

      I take benefit of that to simplify a bit the code. Note that if you enable both "Double_in" and "Master_In" the "Master_in" takes precedence, the same for "out".

      Hope you'll enjoy that !

      Cheers

       

      Last edit: poilou 2017-04-20
  • Chrigu Wuethrich

    hi poilou
    thx to add master in/out i will download the newest source but I still fight with the merge from my fork.
    i have changed some code to display the choosed options while playing and at the moment i have to sync all manually
    cheers
    chrigu

     
  • poilou

    poilou - 2017-04-21

    Hi Chrigu !
    There are very good ideas in your code. Next week I'll have time to integrate all that good ideas in main code.
    I still search a "clean" way of displaying game options since the problem becomes when there are several options (let say more than 6) activated.

    Regarding the black background, I plan to add an option in the colorset to give a background color instead of giving a blak image. That will be cleaner as well.

    I'll add an option in the colorset as well to give a specified color for the rects background. So it will be even more customizable :)

    I'll do this ASAP. Good luck for your work on git.

     
  • Chrigu Wuethrich

    hi poilou
    thank you for adding this features in the next few days
    the idea with the backgroundcolor is great then we can choose another color and must not create an image. About the Options, in my case i have only displayed the true/false options the rounds an startpoints are anyway displayed in the screen
    About git i will ask a colleague next week, i think this should be no problem for him.
    cheers
    chrigu

     
    • poilou

      poilou - 2017-04-25

      Hi Chrigu !

      I added the functionnality of Game Options display. I thought it was
      sufficiant to display "True" options and valued options, with a
      hardcoded filter only on "totalround".

      Could you have a look an give me your feedback ?

      Cheers !

      On 25/04/2017 15:52, Chrigu Wuethrich wrote:

      hi poilou
      thank you for adding this features in the next few days
      the idea with the backgroundcolor is great then we can choose another color and must not create an image. About the Options, in my case i have only displayed the true/false options the rounds an startpoints are anyway displayed in the screen
      About git i will ask a colleague next week, i think this should be no problem for him.
      cheers
      chrigu


      Ho_One Master Out


      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/pydarts/discussion/general/

      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

       
  • Chrigu Wuethrich

    Hi poilou,
    works fine for me
    perhaps i will change the text from the options and remove the "Einstellungen" and also "starte Spiel mit diesen Punkten" etc on my local installation it will be easyer to read
    i hope i'm able to compile the 'po' to 'mo'
    thanks a lot
    cheers
    chrigu

     
    • Chrigu Wuethrich

      i was able
      poedit is also available for windows

       
    • poilou

      poilou - 2017-04-26

      Hey Chrigu,

      I think about creating a "short translation" for each option, to display
      them easily during game play. However, this is more translation to
      maintain...

      Do you think you can shorten the options names so they can explain the
      option and be displayed correctly ?

      What do you think about that...?

       
      • Chrigu Wuethrich

        Hi poilou,
        i think in german this should not be the problem. When you have to choose the options your on the Optionpage and this is shown in header. So the Text Master-In etc should be enough.
        I will check the other games and update the german translation if you want.
        I think a short translation is not needed.
        cheers
        chrigu

         
    • poilou

      poilou - 2017-04-28

      Yep good idea.
      @Andreas maintain this translation with success, don't hesitate to contact him if you wish.

       
  • Andreas

    Andreas - 2017-04-28

    yep,
    i am there for improvments :)

     
    • poilou

      poilou - 2017-04-28

      Thanks @Andreas, and @Chrigu !

      I currently work on a new wiki , which will be more easy to translate, to maintain, and so on.

      Is there a volontary german for maintaining the german version of the wiki ?

       
      • Andreas

        Andreas - 2017-04-28

        @poilou do not know what you mean.
        BTW! pydarts domain name is free: pydarts.de .org . pydarts.fr also
        i would pay for pydarts.de 12€ a year.

        When it goes bigger, start Hosting :)

         
  • poilou

    poilou - 2017-04-28

    Click on this link

    it's self hosted new wiki "reloaded", right beside my other projects ;)
    You can translate wiki pages directly from the tool. Very convenient.

    Good idea for domain names, a pydarts.org would be the best solution for all countries ?

     
    • Andreas

      Andreas - 2017-04-28

      ah, i see.
      give me a Login, so i can create and can copy source to translate it :)

       
      • poilou

        poilou - 2017-04-28

        Did you receive something ?

        If not, give me an email address.

        Cheers !

         
        • Andreas

          Andreas - 2017-04-28

          Now i have data. i start when i find some free time :) Someone have time for me? :)

           

          Last edit: Andreas 2017-04-28
1 2 > >> (Page 1 of 2)

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.