[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!
Scam Warning
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)
Shogun111
Registered User
Posts: 12
Joined: Wed Dec 06, 2023 2:36 am

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

Post by Shogun111 »

Apologies if this has been covered but is there a way to prevent user from being able to add their own terms to the game?

Being able to limit it to one term per day would be great too, if I can throw that out there.

I really appreciate the work to put this together, it's a fun thing!
User avatar
Mike-on-Tour
Registered User
Posts: 505
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 »

There is a permission covering the creation of terms, just set it to "No".

It is on the "Misc" tab.
Watz fo lunch?
If you like my extensions or my support please consider a donation: Image
User avatar
Mike-on-Tour
Registered User
Posts: 505
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 »

Hangman Game 0.9.0 is now available.
This version contains the following new features or changes:
  • The required minimum version of phpBB has been raised to 3.2.11
  • The modal window has now a shadow to let it look more three-dimensional (many thanks to IMC for the css code which was meant for something else but fits well)
  • The username of the term's creator is now displayed on the game tab beneath the category
  • The table showing the user's own terms on the summary tab now has an additional column with a delete button so users can delete their terms e.g. if it contains a typo (the points for creating it will be deducted)
  • The letter buttons on the game tab have been increased in size to improve operation on mobile devices
  • the increased button size let to the need to calculate the number of rows depending on the screen width, this is now done on the client and no longer on the server
  • The button on the ACP settings page now leads to a confirmation box to prevent the highscore from being reset inadvertently
  • The toggle switches on the ACP settings tab are now compatible with the extension lukewcs/togglectrl
  • The ACP settings page got a new functionality to delete the hall of fame data of previous years; in order to retain the hall of fame data two new tables contain the premium highscores of previous months and years
  • The input buttons on the ACP settings page are increased in size to let them look more spacious

This new version can be downloaded through the link in the starting post.
Watz fo lunch?
If you like my extensions or my support please consider a donation: Image
User avatar
Mike-on-Tour
Registered User
Posts: 505
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 am very sorry that I have to admit a small bug within the new migration file of version 0.9.0 which prevented the script from transforming the data of the best players of the previous months into the new database table.

For all of you who downloaded this version between yesterday and 16. Dec. 2023, 11:20am there is a script available on my board which enables you to set this data now.
Please be aware that you have to be logged into your board as an admin with founder status. After the successful completion of this script you should delete it from your server.
Watz fo lunch?
If you like my extensions or my support please consider a donation: Image
User avatar
stone23
Registered User
Posts: 177
Joined: Sat Nov 02, 2019 4:44 pm
Location: France

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

Post by stone23 »

Hello,
Did you include the fix in the latest archive?
encreuse.net
Forum version : 3.3.11
php version : 8.2.10

Excuse my English, I'm French...
User avatar
Mike-on-Tour
Registered User
Posts: 505
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 »

Yes, the currently available archive includes the fix.
Watz fo lunch?
If you like my extensions or my support please consider a donation: Image
User avatar
paulie
Registered User
Posts: 118
Joined: Thu Mar 30, 2017 3:41 pm
Location: Hull, East Yorkshire.

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

Post by paulie »

Just wanted to say keep up the good work. I've shown this to a good few people on my Forum and they thought it was great!

I look forward to it's completion.

Well done!
'Life in the Air Age isn't all the brochures say ...'
User avatar
Mike-on-Tour
Registered User
Posts: 505
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 »

Thanks :D
Watz fo lunch?
If you like my extensions or my support please consider a donation: Image
User avatar
paulie
Registered User
Posts: 118
Joined: Thu Mar 30, 2017 3:41 pm
Location: Hull, East Yorkshire.

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

Post by paulie »

OK, a bug has surfaced.

When starting a new game, letters from the new term are sometimes already showing in the term area before any letters have actually been selected. It's usually the letter 'o' and the letter 't' showing up.

Also when losing a game, it is set as -5 points for the loss but it actually shows -2 points in the pop up window for the loss.

I hope these are easy fixes because as I mentioned before, I really like the game.
'Life in the Air Age isn't all the brochures say ...'
User avatar
Mike-on-Tour
Registered User
Posts: 505
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 »

That's strange, never heard of these two problems. What software did you use for uploading Hangman to your server? And did that software use the binary mode? The last one is essential for preventing code errors caused by e.g. the Character Mode.
Or did you upload the zip file and unzipped it on the server? This has occasionally led to code errors, too.
Watz fo lunch?
If you like my extensions or my support please consider a donation: Image
User avatar
paulie
Registered User
Posts: 118
Joined: Thu Mar 30, 2017 3:41 pm
Location: Hull, East Yorkshire.

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

Post by paulie »

It was all working perfect up until I added a few more terms. After that the problems started.

I use the latest version of WinSCP as my FTP Program, used it for years without issue for uploading everything!

Screenshot after pressing 'Start Game':

hangman.jpg
You do not have the required permissions to view the files attached to this post.
'Life in the Air Age isn't all the brochures say ...'
User avatar
paulie
Registered User
Posts: 118
Joined: Thu Mar 30, 2017 3:41 pm
Location: Hull, East Yorkshire.

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

Post by paulie »

UPDATE: I have worked it out! In the ACP I allowed the Quotation Marks (") and submitted. I then Edited the .xml file and manually added some Terms and I included the " marks in some of those Terms. However, when adding a Term through the Game itself, it shows the quotation marks as being invalid even though I had selected them and saved it in the ACP.

I simply removed the invalid " from the .xml file, re-uploaded it and that solved the problem of letters appearing before the game starts.

However, there is now the issue of not allowing the quotation marks to be added to a Term despite being selected in the ACP.

Hope that helps!
'Life in the Air Age isn't all the brochures say ...'
User avatar
Mike-on-Tour
Registered User
Posts: 505
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 »

Quotation marks do have a meaning within PHP so if you want to use them you schould escape them with a backslash but I'm not sure that will work and I didn't try it.
Watz fo lunch?
If you like my extensions or my support please consider a donation: Image
User avatar
paulie
Registered User
Posts: 118
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: Mon Feb 12, 2024 9:19 am Quotation marks do have a meaning within PHP so if you want to use them you schould escape them with a backslash but I'm not sure that will work and I didn't try it.
Thank you, no problem, it'll be easier to just not use them! :lol:
'Life in the Air Age isn't all the brochures say ...'
User avatar
paulie
Registered User
Posts: 118
Joined: Thu Mar 30, 2017 3:41 pm
Location: Hull, East Yorkshire.

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

Post by paulie »

Mike, any updates on the progress of 'Hangman'? Is it almost finished or is there more work to do?

It still works fine for me!
'Life in the Air Age isn't all the brochures say ...'

Return to “Extensions in Development”