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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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 ?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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...?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
View and moderate all "General Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
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
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
in which .po file? Only in en_GB, or de_DE?
after start often the game fall back from de_DE to en_GB
First i have changed only de_DE now i have changed all 4 files
but it shows the old text (Ho_One-master_out)
i see no error, it is poilou's turn.
Ich brauche nichts zu kompilieren oder?
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
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 ?
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
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
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
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.
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
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,
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
i was able
poedit is also available for windows
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...?
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
Yep good idea.
@Andreas maintain this translation with success, don't hesitate to contact him if you wish.
yep,
i am there for improvments :)
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 ?
@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 :)
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 ?
ah, i see.
give me a Login, so i can create and can copy source to translate it :)
Did you receive something ?
If not, give me an email address.
Cheers !
Now i have data. i start when i find some free time :) Someone have time for me? :)
Last edit: Andreas 2017-04-28