[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!
Get Involved
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
Nighthawk88
Registered User
Posts: 30
Joined: Sat Feb 18, 2023 12:13 pm

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

Post by Nighthawk88 »

French Here is my XML file

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<hangdb>
  <category name="Pays">
    <word>France</word>
    <word>Italie</word>
    <word>Allemagne</word>
    <word>Canada</word>
    <word>Chine</word>
    <word>Brésil</word>
    <word>Maroc</word>
    <word>Russie</word>
    <word>Portugal</word>
    <word>Australie</word>
    <word>Japon</word>
    <word>États-Unis</word>
    <word>Mexique</word>
    <word>Argentine</word>
    <word>Inde</word>
  </category>
  <category name="Animaux">
    <word>Chien</word>
    <word>Chat</word>
    <word>Lion</word>
    <word>Ours</word>
    <word>Dauphin</word>
    <word>Serpent</word>
    <word>Girafe</word>
    <word>Rhinocéros</word>
    <word>Éléphant</word>
    <word>Crocodile</word>
    <word>Panthère</word>
    <word>Singe</word>
    <word>Tigre</word>
    <word>Kangourou</word>
    <word>Orque</word>
    <word>Renard</word>
    <word>Hibou</word>
    <word>Souris</word>
    <word>Mouche</word>
    <word>Chauve-souris</word>
  </category>
  <category name="Fruits">
    <word>Pomme</word>
    <word>Banane</word>
    <word>Fraise</word>
    <word>Mangue</word>
    <word>Kiwi</word>
    <word>Citron</word>
    <word>Pamplemousse</word>
    <word>Ananas</word>
    <word>Pêche</word>
    <word>Cerise</word>
    <word>Abricot</word>
    <word>Poire</word>
    <word>Raisin</word>
    <word>Orange</word>
    <word>Framboise</word>
    <word>Avocat</word>
    <word>Myrtille</word>
    <word>Rhubarbe</word>
    <word>Mûre</word>
    <word>Cassis</word>
  </category>
  <category name="Couleurs">
    <word>Bleu</word>
    <word>Rouge</word>
    <word>Jaune</word>
    <word>Vert</word>
    <word>Orange</word>
    <word>Violet</word>
    <word>Marron</word>
    <word>Gris</word>
    <word>Noir</word>
    <word>Blanc</word>
    <word>Beige</word>
    <word>Or</word>
    <word>Argent</word>
    <word>Bronze</word>
    <word>Indigo</word>
    <word>Turquoise</word>
    <word>Magenta</word>
    <word>Saumon</word>
    <word>Bordeaux</word>
    <word>Olive</word>
  </category>
</hangdb>
User avatar
Mike-on-Tour
Registered User
Posts: 537
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 »

Since I am away for the weekend and can't remember exactly what the two versions of XML files accepted by the extension have to look like I am unable right now to comment on your XML file.
Watz fo lunch?
If you like my extensions or my support please consider a donation: Image
User avatar
Nighthawk88
Registered User
Posts: 30
Joined: Sat Feb 18, 2023 12:13 pm

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

Post by Nighthawk88 »

Mike-on-Tour wrote: Sat Apr 29, 2023 10:59 am Since I am away for the weekend and can't remember exactly what the two versions of XML files accepted by the extension have to look like I am unable right now to comment on your XML file.
OK
User avatar
Scanialady
Registered User
Posts: 425
Joined: Thu Jan 17, 2013 7:09 pm
Location: Germany
Name: Annette

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

Post by Scanialady »

Working xml files look like this for me:

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<hangdb>
	<hangman>
		<title>Hangman</title>
		<word>INTUITION</word>
		<tries>2</tries>
		<days>0</days>
		<help></help>
	</hangman>
	<hangman>
		<title>Hangman</title>
		<word>EINSCHAETZEN</word>
		<tries>2</tries>
		<days>0</days>
		<help></help>
	</hangman>
	<hangman>
		<title>Hangman</title>
		<word>UEBERFALL</word>
		<tries>2</tries>
		<days>0</days>
		<help></help>
	</hangman>
	<hangman>
		<title>Hangman</title>
		<word>TAT</word>
		<tries>2</tries>
		<days>0</days>
		<help></help>
	</hangman>
	<hangman>
		<title>Hangman</title>
		<word>BLUTFLECK</word>
		<tries>2</tries>
		<days>0</days>
		<help></help>
	</hangman>
	<hangman>
		<title>Hangman</title>
		<word>SCHAEDEL</word>
		<tries>2</tries>
		<days>0</days>
		<help></help>
	</hangman>
	<hangman>
		<title>Hangman</title>
		<word>CODEX</word>
		<tries>2</tries>
		<days>0</days>
		<help></help>
	</hangman>
</hangdb>	
My 2 cents: Whether an extension is in the CDB says nothing about its quality. It is more important to read the support topics for it. Better to avoid authors who do not answer support questions themselves, who do not update their stuff, and who do not fix bugs for years.
User avatar
Nighthawk88
Registered User
Posts: 30
Joined: Sat Feb 18, 2023 12:13 pm

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

Post by Nighthawk88 »

Hello thank you, I will test, I am French
User avatar
Mike-on-Tour
Registered User
Posts: 537
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 »

A second possibility would be:

Code: Select all

<?xml version="1.0" ?> 
<wordList>
    <Difficulty dif="1" lang="english">
		<category cat="Food">
	   		<word>Fish</word>
	   		<word>Lemon</word>
	   		<word>Meat</word>
	   		<word>Bread</word>
	   		<word>Rice</word>
	   		<word>Corn</word>
	   		<word>Beef</word>
	   		<word>Cheese</word>
	   		<word>Pie</word>
	   		<word>Chips</word>
		</category >
    </Difficulty >
</wordList>
Please keep in mind that even while it is not considered the <Difficulty> tag must be in the file.

A third possibility would be the format Hangman uses for exporting files:

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<hangdb>
	<hangman>
		<word>Suchbegriff</word>
		<help>Kategorie</help>
	</hangman>
</hangdb>
Watz fo lunch?
If you like my extensions or my support please consider a donation: Image
User avatar
Nighthawk88
Registered User
Posts: 30
Joined: Sat Feb 18, 2023 12:13 pm

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

Post by Nighthawk88 »

Mike-on-Tour wrote: Wed May 03, 2023 6:10 am A second possibility would be:

Code: Select all

<?xml version="1.0" ?> 
<wordList>
    <Difficulty dif="1" lang="english">
		<category cat="Food">
	   		<word>Fish</word>
	   		<word>Lemon</word>
	   		<word>Meat</word>
	   		<word>Bread</word>
	   		<word>Rice</word>
	   		<word>Corn</word>
	   		<word>Beef</word>
	   		<word>Cheese</word>
	   		<word>Pie</word>
	   		<word>Chips</word>
		</category >
    </Difficulty >
</wordList>
Please keep in mind that even while it is not considered the <Difficulty> tag must be in the file.

A third possibility would be the format Hangman uses for exporting files:

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<hangdb>
	<hangman>
		<word>Suchbegriff</word>
		<help>Kategorie</help>
	</hangman>
</hangdb>
hello nickel friend
User avatar
Mike-on-Tour
Registered User
Posts: 537
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.7.0 is now available.
This version contains the following new features or changes:
  • It is now checked for minimum and maximum versions of phpBB and PHP during activation.
  • The radio buttons on the ACP settings page are now sliders with the "activated" state on the left and the "deactivated" state on the right side (according to the "Yes" and "No" radio buttons) with a variable `SLIDERS` which can display the old radio buttons if set to 'false' in the adm/style/acp_hangman_settings.html file
  • Active Hangman players are now displayed in the "Who is online" section of the index page; this can be activated in the ACP
  • Solving the riddle without failures can now be rewarded with additional points. This can be activated and the number of points chosen in the ACP. Players will be informed about this after winning.

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: 537
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.8.0 is now available.
This version contains the following new features or changes:
  • If a player rises in the ranking due to the points gained with a game or entering a new term a module window with a hint to this effect will be displayed.
    This feature is disabled by default but can be enabled in the ACP.
  • If a player looses his rank due to another player he will receive a notification through phpBB's notification system, as usual the type of notification can be selected and activated in the UCP.
    This feature is disabled by default but can be enabled in the ACP.
  • Beside the ranking tab a new tab called "Hall of Fame" can be activated. This tab displays the best players within the current month and year as well as for the last months and years.
    This tab is disabled by default but can be enabled in the ACP. After enabling it the admin can choose the number of lines to be displayed in each table (between 1 and 10), this setting is valid for all four tables.
    Enabling just affects displaying the tab, all necessary data displayed in the tables will be stored immediatly in a new database table. This gives the admin the chance to build up the data over a certain timeframe.
  • Several improvements of code and display (breadcrumbs und footer).

This new version can be downloaded through the link in the starting post.

The screenshots are updated as well so you can preview the current features. :D
Watz fo lunch?
If you like my extensions or my support please consider a donation: Image
User avatar
Mike-on-Tour
Registered User
Posts: 537
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.8.1 is now available.
This version contains the following new features or changes:
  • The title of the Hangman online players list is a link to the highscore
  • Fixed a problem with displaying users in the Hangman players online list if these users have activated the "Remember me" feature
  • Fixed the missing deletion of deleted users from the HANGMAN_FAME_TABLE

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
Miri4ever
Registered User
Posts: 614
Joined: Sat Mar 07, 2015 11:18 am

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

Post by Miri4ever »

A Question I long wanted to ask about this one.

Is it possible to replace this hangman with real images of own choice.
Highscore points are nice, but could be the points system be added for people to pay and gain virtual cash for their play?
Homepage: Terra Oceanica

Extension Developments:
PHPBB Games Solitaire, MChat Poker, MChat Black Jack, MChat Cards, MChat Trivia
PHPBB Special Effects, Mousepointers, X-Mas Themes and Designs for PBWoW Style.
Supported work: (**New Updated** UCP Sidebar), Tables, Hide, PBWow3 Style
User avatar
Scanialady
Registered User
Posts: 425
Joined: Thu Jan 17, 2013 7:09 pm
Location: Germany
Name: Annette

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

Post by Scanialady »

In theory, this is a good idea. But which points system should that be? There are several in the phpbb world.
And apart from one, which is not freely available: as far as I know, none are being developed/maintained anymore.
My 2 cents: Whether an extension is in the CDB says nothing about its quality. It is more important to read the support topics for it. Better to avoid authors who do not answer support questions themselves, who do not update their stuff, and who do not fix bugs for years.
User avatar
Mike-on-Tour
Registered User
Posts: 537
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 »

As to your first question whether you can replace the Hangman images with images of your own choice:
Yes, you can IF they are SVG images and you name them according to the images in the /ext/mot/hangman/styles/all/theme/images directory otherwise the extension will not be able to load them.

Your second question has already been answered by Scanialady, and even if there were an existing and working points system I would not change the extension for its usage unless you are willing to pay for it.
Watz fo lunch?
If you like my extensions or my support please consider a donation: Image
User avatar
Sniper_E
Registered User
Posts: 1196
Joined: Wed May 09, 2007 12:18 am
Location: Shreveport, Louisiana
Name: Ed Humphrey

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

Post by Sniper_E »

"Yes, you can IF they are SVG images and you name them according to the images."

Could we modify the hangman_game.js and then switch to our own .gif, .png or .jpg images?

Code: Select all

// Variables to enable the display of hangman images
motHangman.imageExt = '.gif" width="75" height="125">';
motHangman.imageNumber = 10 - motHangman.jsNumberOfLives;
Image . -.. / .... ..- -- .--. .... .-. . -.--
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!

:!: Sniper_E Styles | phpbbmodders :!:
User avatar
Mike-on-Tour
Registered User
Posts: 537
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 do not see any reason why this should not work, the names still must match the original pattern.
Watz fo lunch?
If you like my extensions or my support please consider a donation: Image

Return to “Extensions in Development”