[3.2][3.3][DEV] Hangman - Resurrected

A place for Extension Authors to post and receive feedback on Extensions still in development. No Extensions within this forum should be used within a live environment!
Anti-Spam Guide
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: Extensions Development rules

IMPORTANT FOR NEEDED EVENTS!!!
If you need an event for your extension please read this for the steps to follow to request the event(s)
User avatar
Mike-on-Tour
Registered User
Posts: 558
Joined: Wed Jan 15, 2020 3:51 pm
Location: Germany
Name: Michael

Re: [3.2][3.3][DEV] Hangman - Resurrected

Post by Mike-on-Tour »

I tested this on two boards with a different number of terms available and got the same result: Out of a million tries every term is called roughly the same number of times which means (at least to me) that the array_rand() function which selects a term is working as randomly as it possibly could.

Since it may be possible that the usage of another PHP version and/or phpBB version may make a difference would you please tell me what versions of PHP and phpBB you are using?
Watz fo lunch?
If you like my extensions or my support please consider a donation: Image
User avatar
paulie
Registered User
Posts: 120
Joined: Thu Mar 30, 2017 3:41 pm
Location: Hull, East Yorkshire.

Re: [3.2][3.3][DEV] Hangman - Resurrected

Post by paulie »

Mike-on-Tour wrote: Tue Apr 16, 2024 5:18 pm I tested this on two boards with a different number of terms available and got the same result: Out of a million tries every term is called roughly the same number of times which means (at least to me) that the array_rand() function which selects a term is working as randomly as it possibly could.

Since it may be possible that the usage of another PHP version and/or phpBB version may make a difference would you please tell me what versions of PHP and phpBB you are using?
No problem: Using phpBB 3.3.11 with PHP version 8.2.17, Database Server MySQL(i) 8.0.32
'Life in the Air Age isn't all the brochures say ...'
User avatar
Mike-on-Tour
Registered User
Posts: 558
Joined: Wed Jan 15, 2020 3:51 pm
Location: Germany
Name: Michael

Re: [3.2][3.3][DEV] Hangman - Resurrected

Post by Mike-on-Tour »

One of the boards (phpBB 3.3.11) runs on PHP 8.2.12 but there should not be any unduly differences so at the moment I have no idea why the random selection of a term behaves so strange on your board.

If you are willing to try it I can PM you the file with the test Hangman main controller so I can take a look at the numbers of your board.
Watz fo lunch?
If you like my extensions or my support please consider a donation: Image
User avatar
paulie
Registered User
Posts: 120
Joined: Thu Mar 30, 2017 3:41 pm
Location: Hull, East Yorkshire.

Re: [3.2][3.3][DEV] Hangman - Resurrected

Post by paulie »

Mike-on-Tour wrote: Tue Apr 16, 2024 9:03 pm One of the boards (phpBB 3.3.11) runs on PHP 8.2.12 but there should not be any unduly differences so at the moment I have no idea why the random selection of a term behaves so strange on your board.

If you are willing to try it I can PM you the file with the test Hangman main controller so I can take a look at the numbers of your board.
I have no idea what that means! :lol:

But fine, if you want to PM me with the details of what's involved, I'll certainly have a think about it, thanks.
'Life in the Air Age isn't all the brochures say ...'
User avatar
SpIdErPiGgY
Registered User
Posts: 320
Joined: Sun May 02, 2021 2:11 pm
Location: Erpe-Mere, Aalst, BE
Name: Andy Dm

Re: [3.2][3.3][DEV] Hangman - Resurrected

Post by SpIdErPiGgY »

At the moment, I've created a Dutch .xml file with 1022 word, proverbs and sayings.

https://www.myarea51secrets.com/viewtopic.php?t=87
Image
User avatar
Mike-on-Tour
Registered User
Posts: 558
Joined: Wed Jan 15, 2020 3:51 pm
Location: Germany
Name: Michael

Re: [3.2][3.3][DEV] Hangman - Resurrected

Post by Mike-on-Tour »

ver 0.11.0 is available as of now, the download link in the starting post has been changed accordingly.
This version contains the following new features or changes:
  • Implemented the necessary functionality to add points to the UP system including awarding rewards, the award period is selectable (daily, weekly, monthly, yearly)
  • Changed the maximum PHP version to 8.4.x
  • Code improvements within the PHP and HTML scripts
Watz fo lunch?
If you like my extensions or my support please consider a donation: Image
User avatar
SpIdErPiGgY
Registered User
Posts: 320
Joined: Sun May 02, 2021 2:11 pm
Location: Erpe-Mere, Aalst, BE
Name: Andy Dm

Re: [3.2][3.3][DEV] Hangman - Resurrected

Post by SpIdErPiGgY »

Image
mzperiksz
Registered User
Posts: 5
Joined: Fri Oct 27, 2023 5:06 pm

Re: [3.2][3.3][DEV] Hangman - Resurrected

Post by mzperiksz »

HI,
If the word contains the letter 'ő', then the game uses the letter 'Q' instead, even though the word is stored with 'ő' in the database. Can you give me a tip on what the problem might be?
Thanks!

mod:
It also uses q instead of ű
User avatar
Mike-on-Tour
Registered User
Posts: 558
Joined: Wed Jan 15, 2020 3:51 pm
Location: Germany
Name: Michael

Re: [3.2][3.3][DEV] Hangman - Resurrected

Post by Mike-on-Tour »

What language are those two letters from? And what language do you use with the board in question? Do you have a Hangman language pack for that language?
Watz fo lunch?
If you like my extensions or my support please consider a donation: Image
mzperiksz
Registered User
Posts: 5
Joined: Fri Oct 27, 2023 5:06 pm

Re: [3.2][3.3][DEV] Hangman - Resurrected

Post by mzperiksz »

Hungarian accented characters and I use the forum in hungarian language.
I started translating the language php files, a large part is already done but I haven't finished yet
Thank you!
Mike-on-Tour wrote: Tue Dec 17, 2024 6:41 am What language are those two letters from? And what language do you use with the board in question? Do you have a Hangman language pack for that language?
User avatar
Mike-on-Tour
Registered User
Posts: 558
Joined: Wed Jan 15, 2020 3:51 pm
Location: Germany
Name: Michael

Re: [3.2][3.3][DEV] Hangman - Resurrected

Post by Mike-on-Tour »

What you need to do is translating the common.php language file and define the letters you want to use in line 70 of that file.
If you haven't done that so far then phpBB uses the EN language file with the letters defined there and that is the reason why you get a "Q" or "q" instead of your desired letter.
Watz fo lunch?
If you like my extensions or my support please consider a donation: Image
User avatar
Mike-on-Tour
Registered User
Posts: 558
Joined: Wed Jan 15, 2020 3:51 pm
Location: Germany
Name: Michael

Re: [3.2][3.3][DEV] Hangman - Resurrected

Post by Mike-on-Tour »

ver 0.11.2 is available as of now, the download link in the starting post has been changed accordingly.
This version contains the following new features or changes:
  • Fixed a bug within controller/main.php in connection with styles/prosilver/template/hangman_congrat.html which led to an "undefined variable" warning if the UP system is activated and the user gains one or more ranks with entering a new search term
  • Changed the maximum value for the reward points from 500 to 2000 in adm/style/acp_hangman_settings.html
  • Fixed a bug within controller/main.php which led to multiple entries for a single user in the Hall of Fame current month table
Watz fo lunch?
If you like my extensions or my support please consider a donation: Image
User avatar
eunaumtenhoid
Registered User
Posts: 1103
Joined: Wed Jun 03, 2009 12:46 am
Location: ????

Re: [3.2][3.3][DEV] Hangman - Resurrected

Post by eunaumtenhoid »

excellent extension, thank you!

Could you make this and sudoku and fot compatible with the points system?
My translations of the extensions for Brazilian Portuguese
https://github.com/phpBBTraducoes
User avatar
SpIdErPiGgY
Registered User
Posts: 320
Joined: Sun May 02, 2021 2:11 pm
Location: Erpe-Mere, Aalst, BE
Name: Andy Dm

Re: [3.2][3.3][DEV] Hangman - Resurrected

Post by SpIdErPiGgY »

eunaumtenhoid wrote: Thu Dec 26, 2024 9:12 pm excellent extension, thank you!

Could you make this and sudoku and fot compatible with the points system?
It Already does...
Image
User avatar
eunaumtenhoid
Registered User
Posts: 1103
Joined: Wed Jun 03, 2009 12:46 am
Location: ????

Re: [3.2][3.3][DEV] Hangman - Resurrected

Post by eunaumtenhoid »

SpIdErPiGgY wrote: Thu Dec 26, 2024 10:33 pm
eunaumtenhoid wrote: Thu Dec 26, 2024 9:12 pm excellent extension, thank you!

Could you make this and sudoku and fot compatible with the points system?
It Already does...
Are the 3 extensions compatible with the points system? Ultimate and Advanced?
My translations of the extensions for Brazilian Portuguese
https://github.com/phpBBTraducoes

Return to “Extensions in Development”