DonationCoder.com Forum

DonationCoder.com Software => Older DC Contests and Challenges => N.A.N.Y. 2012 => Topic started by: kyrathaba on June 23, 2011, 07:24 PM

Title: NANY 2012 Release: Kyrathaba's Hangman
Post by: kyrathaba on June 23, 2011, 07:24 PM
NANY 2012 (https://www.donationcoder.com/forum/index.php?board=304.0) Entry Information

[ You are not allowed to view attachments ]Important News-Flash!My program, Kyrathaba's Hangman, allows you to register a user-name.  If you do, the High Score on your particular installation of the application will always be sent to the online database (http://kyrathaba.zxq.net/appsWithOnlineDB/KyrHangman/show_hang_info.php).

For the Highest Scoring DC member, as found here (http://kyrathaba.zxq.net/appsWithOnlineDB/KyrHangman/show_hang_info.php), I will donate up to 25 (https://www.donationcoder.com/forum/index.php?topic=27130.msg253054#msg253054) hours of programming for FREE on a small to mid-size project of your choice!!  I reserve the right to determine what is within my skills, however.  The top-three high-scoring DC members will receive an additional prize from the site.

I reserve the right to throw out a score that has obviously been obtained through some hack: being intimately conversant with the program's level of difficulty, I have a keen idea what's humanly possible.

On the last day of each month between now and the culmination of the NANY 2012 event, I will donate $5 DonationCredits (https://www.donationcoder.com/Donate/Credits.php) to the highest scorer showing on the scoreboard (http://kyrathaba.zxq.net/appsWithOnlineDB/KyrHangman/show_hang_info.php), provided that the scorer is a DC member.  Visitors who may be reading this: join now!  The first disbursement will be on July 31st, the final one December 31st.  That's an opportunity for someone to win up to $30, not to mention bragging rights!
Application Name Kyrathaba's Hangman
Version 1.0.4.5 (released 8/21/11)
Short Description competitive Hangman with prizes for highest scorers (see blog entry (http://kyrathaba.dcmembers.com/flatpress/index.php/2011/08/10/kyrathabas-hangman/))
Supported OSes Windows XP forward
Setup File A link to the Setup program  (http://kyrathaba.dcmembers.com/ccount/click.php?id=3) {will check for absence of .NET Framework 4.0 and download if needed} (1.41 Mb)
PAD file URLhttp://kyrathaba.dcmembers.com/my_programs/KyrHangmanSetups/hangman_PAD.xml
System Requirements
  • .NET Framework 4.0 (http://msdn.microsoft.com/en-us/netframework/aa569263) installed
Author Infocoded by kyrathaba | Profile page (https://www.donationcoder.com/forum/index.php?action=profile;u=56621) | Kyrathaba DC page (http://kyrathaba.dcmembers.com/index.htm) | author of Kyrathaba's Source Code Line Counter (https://www.donationcoder.com/forum/index.php?topic=27206.0). My past NANY entries include: Crocus Contacts (https://www.donationcoder.com/forum/index.php?topic=6635.msg46536#msg46536), Blackjack (https://www.donationcoder.com/forum/index.php?topic=24926), and NANY Excuse Manager (https://www.donationcoder.com/forum/index.php?topic=25014).
DescriptionThis was a project I did for the Boss Assignment of C# Programming School (https://www.donationcoder.com/forum/index.php?topic=26586.0), Phase I.  I liked it so much that I continued to develop it, eventually bringing in cranioscopical (https://www.donationcoder.com/forum/index.php?action=profile;u=32578) for some expert testing.  I owe him a debt for the many bugs he made me aware of; and to mouser I say "thank you" for encouraging me not to give up in learning enough PHP to build the online scripts and database to implement my desired features-set.

Destined to replace time wasted by people watching "Wheel Of Fortune"! -- PC Magazine.

What!  This program is FREE!??  A crime, that's what it is!  Someone slap the developer around until he starts showing some sense and charging for this gem of genius! -- Gamasutra

Features+ choose between an Individual Word or a Phrase, and try to solve before you are hanged!
+ optional audio cues
+ option to register a user-name with online database, so that you can submit your High Score and compete against all other players!
+ option to use mouse or keyboard for input
+ Highest Scorer, as recorded on the online database will receive free coding of a small-to-medium sized project of his/her choice!
+ ToolTips and context-sensitive help for each control in the application's interface

I would appreciate suggestions for future features of the program.

Please consider donating (http://kyrathaba.dcmembers.com/donate.htm).
Screenshotsscreenshot collage (http://kyrathaba.dcmembers.com/my_programs/program_screenshots/sshotCollage.png)
Online Helphttp://kyrathaba.dcmembers.com/my_programs/KyrHangmanSetups/HangmanHelp.pdf (http://kyrathaba.dcmembers.com/my_programs/KyrHangmanSetups/HangmanHelp.pdf)
InstallationSimply use the installer created by Inno Setup
Using the applicationThe GUI is fairly intuitive.  However, there is a textual help file under the "Help" menu, and a more in-depth PDF help file (with screenshots) available via the F1 key.
UninstallingUse the uninstall Program Files menu-item.
Known IssuesWhat?  You mean like bugs?  None (but please make me aware of any that you may find...)

Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: mouser on June 23, 2011, 07:35 PM
50 hours is too much.. you'll lose your mind.  i suggest 5.
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: kyrathaba on June 23, 2011, 07:45 PM
Nah, it's gonna be a labor of love.  I could never produce anything I'm proud enough of to actually release in just 5 hours...

And its up to 50 25 hours.  If I can do it in 5, great  :)

In considering your advice, mouser, I've lowered the hours-of-coding on offer.
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: mouser on June 24, 2011, 12:42 AM
Perhaps we should call early releases differently than the final releases.. like "NANY 2012 Pledge and Early Beta"?
Because "official" NANY releases shouldn't happen until the end of the year.
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: hamradio on June 24, 2011, 01:08 AM
Start program and double click your animated hangman I recieved...

Click to see exception text.
************** Exception Text **************
System.ComponentModel.Win32Exception (0x80004005): No application is associated with the specified file for this operation
   at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo)
   at System.Diagnostics.Process.Start()
   at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
   at KyrHangman.Form1.clsHangmanAnimation1_DoubleClick(Object sender, EventArgs e)
   at System.Windows.Forms.Control.OnDoubleClick(EventArgs e)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


:)
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: kyrathaba on June 24, 2011, 07:21 AM
hamradio,

Thank you for downloading and trying it out, and for the bug report!

Here is what should happen (I've modified the code in the double-click method for the animated hangman.  Try uninstalling, then re-installing after re-downloading the updated setup file):

[ You are not allowed to view attachments ]

Let me know if that solves it for you.  If not, I'll take out that code, as there are plenty of other ways the program provides to launch an email to the developer.  

Expected result: clicking the animated hangman should do nothing.  Double-clicking it should launch your default email program and insert my email address and a subject line.

Again, thanks!
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: kyrathaba on June 24, 2011, 07:24 AM
Perhaps we should call early releases differently than the final releases.. like "NANY 2012 Pledge and Early Beta"?
Because "official" NANY releases shouldn't happen until the end of the year

Agreed.  Updating this in the Ground Rules (https://www.donationcoder.com/forum/index.php?topic=27126.0) thread.
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: kyrathaba on June 24, 2011, 08:55 AM
Registered user-names aren't locally affected by updating to a newer version of the hangman program, because they are stored elsewhere than the app's Program Files subfolder.

Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: kyrathaba on June 24, 2011, 12:09 PM
Curses!  Hamradio has beaten my High Score!
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: Deozaan on June 24, 2011, 05:50 PM
Your webhost is reviewing your website, so registration and scoreboard, etc. are unavailable.
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: kyrathaba on June 24, 2011, 06:23 PM
It's done reviewing.  You should have access now.
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: Deozaan on June 24, 2011, 07:57 PM
I just now tried the scoreboard, the first-run help page, and the registration page, and they all still tell me your site is under review.
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: kyrathaba on June 24, 2011, 08:06 PM
Very odd.  I'm able to access them (using Firefox):

[ You are not allowed to view attachments ]

[ You are not allowed to view attachments ]

[ You are not allowed to view attachments ]
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: kyrathaba on June 24, 2011, 08:09 PM
Could it perhaps be a browser cache issue?  Dunno.  You're probably more knowledgeable about this than am I...
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: Deozaan on June 24, 2011, 08:12 PM
I think perhaps it's a DNS cache issue. I hadn't tried the first-run help page before when it was still under review, so it wouldn't have been cached in the browser. But perhaps the site-wide redirect got cached? I don't know for sure, but that sounds like DNS to me.
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: kyrathaba on June 24, 2011, 08:14 PM
I just tried it from my kids desktop, and they're blocked too.  And I haven't yet received the "We're done reviewing" email I was promised earlier this afternoon.  Hopefully, this'll be over in the next bit.  If it becomes a standing problem, I'll move the database elsewhere...
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: kyrathaba on June 24, 2011, 08:16 PM
Normally, the program checks at the end of each play-session and, if your accumulated score is the highest yet (on your local PC), it sends it to the database.

In view of the possibility of occasional interruptions in website service, perhaps I need to add a "submit high score" menu item to the game, so that users can do this manually at anytime.
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: kyrathaba on June 24, 2011, 09:58 PM
Got irritated with lame host, so switched.  By the way, the only reason I'm not using DC as host is I can't get my scripts to work correctly here (though they have worked fine on three other sites I tested).  Will eventually get this figured out.

Important: those who've downloaded and installed the program already, you should click "About" and then the "Update" button.  The program should tell you there's an update available (v1.0.2.9) and will offer to download it.  You should respond "Yes".  It'll download it, and exit the current app instance after opening the directory to which you downloaded it.

Install v1.0.2.9, which contains a couple minor tweaks, and switches to a new host for the database.  All existing registered users data has been successfully migrated (http://kyrathaba.zxq.net/appsWithOnlineDB/KyrHangman/show_hang_info.php).
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: kyrathaba on June 24, 2011, 10:00 PM
LOL!  About 30 seconds after my previous post, I get this from the other host:

Hello,

Administrator review of domain kyrathaba.netii.net is now complete. The website has been approved. Once again, we apologize for any inconvenience caused.
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: Deozaan on June 25, 2011, 01:02 AM
So what's the point of charging points for vowels? You have to guess them so it doesn't make sense to punish someone for getting a phrase that has more vowels than someone else.

Also, how come I have to toggle between keyboard and mouse in the settings? When I click on the button to guess a letter, instead of popping up a box telling me that I have keyboard guess method selected, why not just guess the letter?
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: kyrathaba on June 25, 2011, 09:13 AM
Charging for vowels is just one way in which the program gives a nod to the old Wheel Of Fortune game.  Another is the fact that it offers WOF bonus puzzles (i.e., "Same Name", "Before & After", etc.)  At the beginning of the first game, you have no points and so must guess at least one correct consonant before being able to afford a vowel.  As games continue, vowels become more expensive.  The idea is that clever players will use letter-frequency knowledge and context to guess the most likely consonants first (s, t, r), thereby saving themselves point expenditures.  As your post suggests, you could take a different stance.

A more practical reason not to change it is that people who are already playing the game with the existing charges-for-vowels setup would be handicapped in comparison to later users who used a version that doesn't charge for vowels.  It would skew scoring, as recorded on the online database.  But your point is well-taken, sir.

Also, how come I have to toggle between keyboard and mouse in the settings? When I click on the button to guess a letter, instead of popping up a box telling me that I have keyboard guess method selected, why not just guess the letter?

An excellent observation, Deozaan!  Why introduce unnecessary work for the user?  I have implemented it in v1.0.3.0.  The program now automatically accepts either form of input.

Everyone should use "About"->"Update" to update to the newest version.  Thanks, Deozaan!!

[ You are not allowed to view attachments ]
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: Deozaan on June 25, 2011, 09:47 AM
Charging for vowels is just one way in which the program gives a nod to the old Wheel Of Fortune game.  Another is the fact that it offers WOF bonus puzzles (i.e., "Same Name", "Before & After", etc.)  At the beginning of the first game, you have no points and so must guess at least one correct consonant before being able to afford a vowel.  As games continue, vowels become more expensive.  The idea is that clever players will use letter-frequency knowledge and context to guess the most likely consonants first (s, t, r), thereby saving themselves point expenditures.  As your post suggests, you could take a different stance.

The problem I have with this is that you can't really save yourself any point expenditures because you must pay for the vowels one way or another to solve the puzzle. If the game were like Wheel of Fortune where you could "solve the puzzle" without paying for more vowels or the risk of losing your turn from an unlucky wheel spin, then that would be a different story. But since you must enter all letters to complete the phrase, it doesn't matter whether you do vowels first or last, they must be entered (and paid for) eventually.

So in practice all it really does is make the player guess a correct consonant or two at the very beginning of the first round and then the only purpose it serves is to progressively penalize players who are trying to compete on the leaderboards and just so happen to get phrases that have more vowels than other players.

In my opinion, charging for vowels only makes sense if you can win without using them.

Another couple of problems I have with the game that make it feel unfair:

The bonus puzzles or themes are not always clear. I've never really been that into Wheel of Fortune, so telling me the theme was "Before & After" wasn't very helpful. I was thinking it meant something like dirty and then clean, or fat and then skinny, or an apple (uneaten) and then a core (eaten). Fresh and then rotten. From the description of "Before & After" it isn't obvious that it was two separate "word associations" with a common word in the middle.

Since Hangman is generally a test in your ability to spell or your knowledge/understanding of words/language, it isn't fair to put quotes with author's names. Since people's names can be spelled all sorts of ways that don't follow the rules of the language, or could even be (or have roots in) a different language altogether, names seem to me an unfair difficulty.

But then again, maybe I'm just griping because normally I'm pretty good at hangman and this game is so unlike any version of hangman I've ever played before that I'm not very good at it.
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: kyrathaba on June 25, 2011, 09:51 AM
Does anyone know what exactly I'd need to change in my Inno Setup script so that the "File Version" info (as shown in the screenshot) is correct?

[ You are not allowed to view attachments ]
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: kyrathaba on June 25, 2011, 10:14 AM
Deozaan,

I find your argument regarding vowels to be logically persuasive.  And I have resolved my concern about score skewing with the realization that people can update to the newer version and play until they beat their previous score.

Therefore, I've updated to v1031 -- vowels now cost nothing :)

I'm loathe to change the Wheel Of Fortune themes, even though I am sympathetic to your arguments, because they're so entrenched in the format of the default puzzle file, and so much time and effort was spent coding around those themes.  But I agree that for people not familiar with WOF, it's more difficult.  Still, it is a variant of hangman, rather than sticking strictly to the historical game.  I appreciate your allowances in that direction.

Same update process as before.  Click "About", then "Update" button.  Download and install newer version.

[ You are not allowed to view attachments ]
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: steeladept on June 25, 2011, 10:41 AM
I'm loathe to change the Wheel Of Fortune themes, even though I am sympathetic to your arguments, because they're so entrenched in the format of the default puzzle file, and so much time and effort was spent coding around those themes.  But I agree that for people not familiar with WOF, it's more difficult.  Still, it is a variant of hangman, rather than sticking strictly to the historical game.  I appreciate your allowances in that direction.

I too found his comments useful and persuasive.  What I think is the correct way of dealing with this part of it though, would be to add a help that explained what is meant by those categories.  It doesn't take much to add (I don't think anyway) and it can leave everything else as is without detracting from it in any way. 
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: Deozaan on June 25, 2011, 11:07 AM
I'm loathe to change the Wheel Of Fortune themes, even though I am sympathetic to your arguments, because they're so entrenched in the format of the default puzzle file, and so much time and effort was spent coding around those themes.  But I agree that for people not familiar with WOF, it's more difficult.  Still, it is a variant of hangman, rather than sticking strictly to the historical game.  I appreciate your allowances in that direction.

I too found his comments useful and persuasive.  What I think is the correct way of dealing with this part of it though, would be to add a help that explained what is meant by those categories.  It doesn't take much to add (I don't think anyway) and it can leave everything else as is without detracting from it in any way. 

I think this is a good solution. Before the round starts, there's a popup that tells you what the theme of the round will be, along with other things to be aware of. Perhaps in this popup it could explain or have a button to press to find the explanation for the theme.

Another thing I just thought of: When I first ran the game and it popped up a message recommending that I read the help file, I decided not to because I didn't realize that this wasn't your standard Hangman game. I thought "Pshaw! I don't need a stinking help file for hangman!" Perhaps it would be useful to explain in that popup that this isn't your Grandpa's Hangman (no offense meant to anyone who's grandpa was hanged) and that it plays quite differently from traditional hangman, thus reading the help file is strongly recommended.

By the way, I also just want to say thank you for being so receptive to my feedback. :Thmbsup:
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: wraith808 on June 25, 2011, 11:37 AM
Does anyone know what exactly I'd need to change in my Inno Setup script so that the "File Version" info (as shown in the screenshot) is correct?
 (see attachment in previous post (https://www.donationcoder.com/forum/index.php?topic=27130.msg253203#msg253203))

Does it get it from your assembly information, perhaps?  Is the version number in your assembly correct?
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: kyrathaba on June 25, 2011, 01:55 PM
Good suggestion, steeladept.  And I need to update the help anyway, to remove the keyboard/mouse toggle option from the Help file.  Working on it...
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: steeladept on June 25, 2011, 02:03 PM
Glad I could help.
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: kyrathaba on June 25, 2011, 02:30 PM
I've included the updated help file in the version 1031 installer.  But for anyone who has already installed that version, I've attached it here as a zip.
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: kyrathaba on June 25, 2011, 02:33 PM
Does it get it from your assembly information, perhaps?  Is the version number in your assembly correct?

@wraith:

Here's screenshots from my assembly info within the IDE, then the version info I supply in the Inno Setup script:

[ You are not allowed to view attachments ]

[ You are not allowed to view attachments ]

Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: kyrathaba on June 25, 2011, 03:07 PM
I think this is a good solution. Before the round starts, there's a popup that tells you what the theme of the round will be, along with other things to be aware of. Perhaps in this popup it could explain or have a button to press to find the explanation for the theme.

Another thing I just thought of: When I first ran the game and it popped up a message recommending that I read the help file, I decided not to because I didn't realize that this wasn't your standard Hangman game. I thought "Pshaw! I don't need a stinking help file for hangman!" Perhaps it would be useful to explain in that popup that this isn't your Grandpa's Hangman (no offense meant to anyone who's grandpa was hanged) and that it plays quite differently from traditional hangman, thus reading the help file is strongly recommended.

By the way, I also just want to say thank you for being so receptive to my feedback. Thmbsup

You're quite welcome for my receptiveness.  In my experience, there's nothing more valuable than user-feedback to make my app more intuitive, more enjoyable, and -- most of all -- one that people will want to use!

As for your two ideas above, both are good, I think.  I'm not sure how to launch the help file with a pointer into a particular location within the help file.  But check out version 1032 and lemme know what you think.  If you want to see, again, the message box that pops up and says "It looks like this is the first time you've used the program...", you'll need to go into c:\users\[your username]\AppData\Roaming\Kyrathasoft\KyrHangman\ and delete file "previousRuns.dat".

Version 1.0.3.2 is available.

[ You are not allowed to view attachments ]

[ You are not allowed to view attachments ]
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: Deozaan on June 25, 2011, 03:36 PM
Not to nitpick (he says as he nitpicks) but I think it might be beneficial to adjust that first-run popup a little bit. It's somewhat embarrassing to admit, but I don't think I would finish reading it before I clicked "No." I would probably read the first two sentences, decide I don't need help with a simple game like Hangman, and click "No."

May I suggest something similar to the following adjustment:

This appears to be the first time you've run "Kyrathaba's Hangman." This isn't your grandpa's hangman, so it is recommended that you visit a webpage that will show you how to get started. Additionally you may press F1 at any time to read the PDF Help file.

I'm not trying to tell you what to say or how to say it, but I do think it is important to make it clear that the game is different at the beginning of the popup rather than at the very end. Most people don't read popups; they just skim along until they find out what yes and no do and then click the one they think suits their desires, sometimes (often?) without really comprehending what was being asked of them.
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: kyrathaba on June 25, 2011, 03:52 PM
I agree 100% and like your wording better, Deo.  You can now update to v1.0.3.3.

[ You are not allowed to view attachments ]
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: kyrathaba on June 26, 2011, 09:02 AM
Wow, yesterday was a busy day for "Kyrathaba's Hangman".  It incremented five complete revisions, thanks to the excellent feedback from Deozaan, steeladept, and Wraith808.  Thanks to all of you  :up:

I've updated my OP's download URL to reflect the most current version, even though you can just update from within the program itself.  And I've added the PAD file's URL.
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: Deozaan on June 26, 2011, 02:31 PM
I've got a question for you. Is the in-game update supposed to update itself?

What it does for me is just download a zip file containing the installer and then launch the zip file in Explorer (instead of my default zip/archive program).
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: kyrathaba on June 26, 2011, 04:16 PM
Is the in-game update supposed to update itself?

The in-game updater isn't really a separate component.  It's just a small method that checks a small file hosted on DC for available version number.  It then compares that available version # against the running app's version number.  If the online version # is greater, it let's the user know that an update is available for download.

What I do is update both this small "available version #" file and the same-version-number installer simultaneously, whenever I finish a new revision.

All the in-game updater does is let you know if there's an update available.  In the same Yes/No messagebox, it asks if you'd like to download it.  If you answer "Yes", it does so, then let's you know that it's opening to the downloaded file's location in Explorer, and exiting.  The assumption is you'll install.

I could fix it to where:

(a) yes, download it but don't exit: I'll install it later.
(b) yes, download it and launch the installer before exiting the current program instance.
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: kyrathaba on June 27, 2011, 11:56 AM
I've updated the relevant links in my OP to reflect the current online scoreboard URL.   Also, noted that we've gained our 9th competitor (welcome Jazper).


If anyone has any hangman puzzles they'd like to contribute, please PM me. I will acknowledge receipt. If I choose to use your suggestion, you'll receive recognition in the text accessed via the "Help" menu.  
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: kyrathaba on June 28, 2011, 05:18 PM
Nice email today from 'benubird' (a registered "Kyrathaba's Hangman" user).  He emailed me from the link within the app and states, "Cool app, and a nice site you have there at DC!".  I encouraged him to drop by the forum and visit us, and even consider joining!
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: mouser on June 28, 2011, 06:32 PM
neat  :up:
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: kyrathaba on June 29, 2011, 10:18 PM
Version 1.0.3.4 is out.  I've addressed a request made by a couple of people: now you have the option to compete only against yourself (the program will submit a score if it beats your own previous scores) or against everyone registered to your application instance (all user-names that've played the game on a particular computer).  The default is to compete against yourself:

[ You are not allowed to view attachments ]

The inline Help pdf addresses this option.

If you've already installed the program, you need only update it using "Help"->"Update".

This version also addresses a small cosmetic "bug" in previous versions (which others may not have noticed, but which caught my eye).  While the splash screen is showing, there is no longer a funky taskbar icon related to it.
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: kyrathaba on July 01, 2011, 09:12 AM
I've updated the PDF help to elaborate a bit more on the newest option.  It'll automatically be included in v1035.  For those currently using v1034, I've attached it.  It should be placed in the application's directory, wherever you installed it (by default, C:\Program Files(x86)\Kyrathasoft\KyrHangman).
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: kyrathaba on July 01, 2011, 10:42 AM
Application version 1035 has been released.  It fixes a bug introduced by the previous version, and now shows # of program runs in About box.  The number of program executions is not reset when you update to a later version, because this data is stored in AppData rather than the C:\Program Files\... application directory.  So, the number of program executions shown reflects the number of executions since the very first version of the program the user installed (note that the yellow highlighting shown in the second screen-shot is for the purpose of this post only, and doesn't appear in the actual running program):

[ You are not allowed to view attachments ]

[ You are not allowed to view attachments ]
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: Deozaan on July 01, 2011, 03:12 PM
That stickman is wearing a mighty fine top hat to his execution. I guess he knows how to go out in style :Thmbsup:
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: kyrathaba on July 01, 2011, 04:45 PM
That stickman is wearing a mighty fine top hat to his execution. I guess he knows how to go out in style Thmbsup

He is a rather dapper fellow, I admit :D
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: kyrathaba on July 01, 2011, 04:56 PM
I'm using HelpNDoc (http://www.helpndoc.com/) to generate my PDF help file.  Do you guys prefer PDF as the help file format, or would CHM be preferable?

Because CHM compresses the internal HTML, its file size is smaller than the corresponding PDF, but I wondered if CHM is natively supported by all versions of Windows, whereas I know that PDF support is nearly ubiquitous.  Can't remember the last time I found a system that didn't have some sort of PDF reader software installed.
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: Deozaan on July 02, 2011, 02:47 AM
I'm using HelpNDoc (http://www.helpndoc.com/) to generate my PDF help file.  Do you guys prefer PDF as the help file format, or would CHM be preferable?

Because CHM compresses the internal HTML, its file size is smaller than the corresponding PDF, but I wondered if CHM is natively supported by all versions of Windows, whereas I know that PDF support is nearly ubiquitous.  Can't remember the last time I found a system that didn't have some sort of PDF reader software installed.

I don't believe I've ever had a problem opening a CHM file, and I've never had to actively search out a plugin or software to open it. This is opposite to my experience with PDF. I personally don't like PDF, but that's just one person's opinion.
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: Ath on July 02, 2011, 05:25 AM
Do you guys prefer PDF as the help file format, or would CHM be preferable?
I was quite surprised you use pdf for help contents, as that's rather non-standard, AFAICS. The biggest pest being the non-availability of a pdf viewer on Windows by default. The chm format is supported at least from XP and up, and I hope nobody is using an older Windows version any longer :tellme:
The biggest advantage of chm is that you can jump to the correct information in the file to show really context sensitive information :up:, to do that with pdf would require a specific reader that does support that even from external applications, and I'm quite sure that isn't standardized in any way.
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: kyrathaba on July 02, 2011, 07:22 AM
Very well!  Version 1.0.3.6 is available, and changes PDF format to CHM for Help file.  Thanks for the feedback.
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: kyrathaba on July 02, 2011, 07:23 AM
This has the added benefit of reducing the setup file from 1.51 Mb to 1.16 Mb.
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: kyrathaba on July 03, 2011, 03:47 PM
Okay, version 1.0.3.7 (http://kyrathaba.dcmembers.com/my_programs/KyrHangmanSetups/KyrHangman1037Setup.zip) has been released, and is a fairly major update, in that it provides ToolTips for each of the application's controls, and context-sensitive help via the HelpProvider component and the Help button in the application's TitleBar (as always, you can update to the latest version using the "Update" button in the program's "About" dialog).

The new context-sensitive help's associated CHM document contains:


[ You are not allowed to view attachments ]
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: kyrathaba on July 03, 2011, 05:11 PM
Oops, had a teensy problem in v1037.  Version 1038 (http://kyrathaba.dcmembers.com/my_programs/KyrHangmanSetups/KyrHangman1038Setup.zip) fixes it.


[ You are not allowed to view attachments ]

Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: kyrathaba on July 03, 2011, 05:59 PM
I found a few broken links in the CHM help file.  Version 1.0.3.9 (http://kyrathaba.dcmembers.com/my_programs/KyrHangmanSetups/KyrHangman1039Setup.zip) fixes this.
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: kyrathaba on July 05, 2011, 12:13 PM
Okay DC members, there is now less than a month until the first high-score prize is awarded, on July 31st. Thus far, 28 people have registered (http://kyrathaba.zxq.net/appsWithOnlineDB/KyrHangman/show_hang_info.php) to compete. Currently, only one of those twenty-eight is a DC member -- Hamradio. It just so happens that Hamradio is also the highest scorer, to date (congrats Ham!)

I encourage everyone to participate. Good, fun, friendly competition :D
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: thancock20 on July 05, 2011, 04:08 PM
Just writing in here to let you know I've registered.  (I don't post much here, so you may not have recognized the username).

And for feedback: This game is fun.  I wasn't expecting Hangman to get so fast paced.
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: hamradio on July 05, 2011, 04:28 PM
Thanks and if I might also add that my high score was while vowels still cost points as well. :P
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: kyrathaba on July 05, 2011, 04:30 PM
Thanks for the great comment!  The time limit does spice things up, doesn't it?  The initial time limit should never fall below 45 seconds though. Lemme know if you have any feature requests or problems.
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: kyrathaba on July 05, 2011, 05:29 PM
hamradio wrote:
Thanks and if I might also add that my high score was while vowels still cost points as well. tongue

Indeed it was!  As such, it would probably convert to 70,000 or more.  

Looks like thancock20 (https://www.donationcoder.com/forum/index.php?action=profile;u=183392) may give you a run for your money, though  :o
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: kyrathaba on July 05, 2011, 05:51 PM
Busy day today on the scoreboard (http://kyrathaba.zxq.net/appsWithOnlineDB/KyrHangman/show_hang_info.php).  Looks like we gained a handful of new players in the past few hours...
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: kyrathaba on July 06, 2011, 02:49 PM
We've passed the 30-mark in number or hangman competitors, and hancock20 has surpassed hamradio's score by a comfortable margin! (http://kyrathaba.zxq.net/appsWithOnlineDB/KyrHangman/show_hang_info.php)  Ball's in your court, ham...
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: hamradio on July 06, 2011, 04:07 PM
I am trying every so often. :)
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: kyrathaba on July 06, 2011, 04:14 PM
Heh, got email from my buddy, BenuBird. He's gonna try for a score of 100K tonight...
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: thancock20 on July 06, 2011, 04:32 PM
Heck, I'm having trouble beating my own high score.

This game sure is addictive.
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: hamradio on July 06, 2011, 06:13 PM
Whew I just barely beat it so far. :)
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: kyrathaba on July 06, 2011, 08:24 PM
Oh-ho!  BenuBird is drawing nigh, gentlemen!  But it's still a close thing between hamradio and thancock20!

[ You are not allowed to view attachments ] (http://kyrathaba.zxq.net/appsWithOnlineDB/KyrHangman/show_hang_info.php)
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: kyrathaba on July 07, 2011, 12:15 PM
And hamradio once again leads the pack!
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: kyrathaba on July 07, 2011, 12:22 PM
email from BenuBird (dunno why he doesn't just join the site and post *hint, hint, Benu):

"...Those guys must be cheating!  I barely managed to break 100-thousand! ;)
"


Possible, but unlikely, and would require considerable skill to break my encoding/obfuscation. I broke 135K when testing.
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: hamradio on July 07, 2011, 04:34 PM
I am having a hard time at beating that latest score of mine at the moment. Came close a lot of times tho...
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: kyrathaba on July 08, 2011, 07:24 AM
We're getting a lot of visitors who're checking out the app.  I've done some free press-releases about the 2012 NANY event, and the Hangman contest.  We're up to 39 registered competitors (http://kyrathaba.zxq.net/appsWithOnlineDB/KyrHangman/show_hang_info.php).  I've made the app available for download various places and, from what I can tell by visiting those locations, total downloads is up to several hundred.  Of course, beyond the actual download you get fewer people who actually install; and beyond the installation, fewer still who actually register and compete.  Still, to be this early in the NANY event, I'm happy.
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: kyrathaba on July 08, 2011, 11:44 AM
Welcome to new competitors goosechaser, grandpadeath  and Hangman!  If you're reading this, I encourage you to join the site.
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: hamradio on July 08, 2011, 01:08 PM
LOL I came 20 points short of having my current high score before my hangman got :hanged:.
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: kyrathaba on July 08, 2011, 02:08 PM
LOL!  Hang in there, hamradio!  You can do it!

Interesting: there are over 78,000 points separating our three highest scorers from the other 39 (http://kyrathaba.zxq.net/appsWithOnlineDB/KyrHangman/show_hang_info.php) competitors...
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: thancock20 on July 10, 2011, 02:14 AM
Looks like I found an error:

[ You are not allowed to view attachments ]

I'm guessing the little box was supposed to be an apostrophe, but when I typed an apostrophe during the game it didn't do anything. (Take it as a correct guess, or as a wrong one).

It cost me the game, which was annoying since I was getting close to the top scores for the first time in a while.
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: kyrathaba on July 10, 2011, 07:42 AM
Thank you, thancock20.  I'll get right on it!
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: kyrathaba on July 10, 2011, 08:13 AM
Version 1.0.4.0 (http://kyrathaba.dcmembers.com/my_programs/KyrHangmanSetups/KyrHangman1040Setup.zip) is released.  Use "About"->"Update" to download the update installer.

Apostrophes are supposed to be among the punctuation marks that are automatically shown in plain-text when a new puzzle is presented (i.e., you  shouldn't have to guess them).

I've made a small change which should fix this problem.  Formerly, the punctuation characters that were not masked at the beginning of a game were:

public const string Punctuation = "&., !?'(){}[];:\"-/$";

As you can see, I'd inserted an apostrophe using my keyboard apostrophe.  However, when I went to the actual text file and looked up the phrase that lost you the game, I found, and copy-pasted into my source code, a slightly different-looking apostrophe symbol:

public const string Punctuation = "&., !?'’(){}[];:\"-/$";

If you look just to the right of the question mark in the code fragment above, you'll see that the question mark symbol is now followed by two (slightly different from each other) apostrophes.

Again, thank you thancock20 for bringing this to my attention.  I've updated the program to give you credit as a beta-tester:


[ You are not allowed to view attachments ]

[ You are not allowed to view attachments ]

My sincere apology that this bug lost you an important game.
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: worstje on July 10, 2011, 11:04 AM
I haven't played, but that sounds like the wrong solution to me. How is someone going to type the altered apostrophe? (That 'directed' apostrophe has its roots in Word, and its automatic quote function.) Keyboards don't have that character, so unless you use some fancy default Windows logic that can convert it to a normal apostrophe, (or some code of your own,) you haven't fixed the actual problem of not being able to guess the proper character yet.

Since you seem to aim for the english market, I'd recommend a plain latin-1 encoding to store your guess texts. You probably use UTF-8 right now, or some other Unicode variety. Even those have a few characters you may not be able to type, but there's far less chance on this sort of mishaps that way; Unicode has tons of look-a-like characters.
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: thancock20 on July 10, 2011, 12:07 PM
Ooh, an update while I slept.  Awesome.  :Thmbsup:

worstje, I think you missed this part:

Apostrophes are supposed to be among the punctuation marks that are automatically shown in plain-text when a new puzzle is presented (i.e., you  shouldn't have to guess them).
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: worstje on July 10, 2011, 12:57 PM
Yup, I did indeed miss that. :) However, now that I know that, I am of the opinion Kyrathaba's going about it the wrong way: rather than listing the characters that should be displayed automatically, I would list the characters that are guessable. That way, accented characters, hyphens, middle dots, double-arrow-quote-thingies, etc - they'd all be displayed. The characters one would like to guess are usually as simple as a-z and proably 0-9.
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: thancock20 on July 10, 2011, 01:36 PM
Oh wow! I just had one heck of a lucky game. Several of the puzzles I could actually remember from earlier games, because I've been playing so much.
It probably doesn't hurt that I grew up watching "Wheel of Fortune" every night either.
Or that I can type around 75 WPM. (Some of those puzzles got finished with very little time left on the clock).

The puzzle that finally did me in was the occupation "Doctor".

Anyway, I can't actually imagine doing better any time soon. Though, I won't give up trying.
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: kyrathaba on July 10, 2011, 02:39 PM
The characters one would like to guess are usually as simple as a-z and proably 0-9

And those are the only ones players have to guess in "Kyrathaba's Hangman", unless there's a bug left in the code somewhere.

Oh wow! I just had one heck of a lucky game.

Congratulations!  I just had a look at the scoreboard, only to see that your new high-score, and by far the highest on the board, is 453110.  Wow!  That will give hamradio some competition, though I daresay ham is up to the challenge :)
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: kyrathaba on July 11, 2011, 11:21 AM
Tonight I will save the phrases in Latin vs UTF8, and will do an update.
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: kyrathaba on July 11, 2011, 01:44 PM
Welcome to djwillie, our 46th competitor to join the NANY 2012 Hangman Highscore Contest.

Only a small fraction of the competitors appear to be DonationCoder members. Remember, only members can win prize money.
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: steeladept on July 12, 2011, 01:42 AM
Finally downloaded and started to play my first game and got an error right off the bat...

Don't know if it will help, but this is the error details (error screenshot attached at bottom):

Details
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.ArgumentOutOfRangeException: Index and length must refer to a location within the string.
Parameter name: length
   at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy)
   at Kyrathasoft.Hangman.hangman.setRegularThemedPuzzle()
   at Kyrathasoft.Hangman.hangman.randomlySetSelectedPuzzle()
   at Kyrathasoft.Hangman.hangman.setSelectedPuzzleForIndividualWord()
   at Kyrathasoft.Hangman.hangman.selectIndividualWordOrPhraseAsPuzzle()
   at Kyrathasoft.Hangman.hangman.startNewGame()
   at KyrHangman.Form1.instantiateAndRunGame()
   at KyrHangman.Form1.gameStartAttempt()
   at KyrHangman.Form1.toolStripMenuPlay_Click(Object sender, EventArgs e)
   at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
   at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
   at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
   at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
   at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ToolStrip.WndProc(Message& m)
   at System.Windows.Forms.MenuStrip.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.235 (RTMGDR.030319-2300)
    CodeBase: file:///c:/WINDOWS/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
KyrHangman
    Assembly Version: 1.0.4.0
    Win32 Version: 1.0.4.0
    CodeBase: file:///C:/Program%20Files/Kyrathasoft/KyrHangman/KyrHangman.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.235 built by: RTMGDR
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 built by: RTMRel
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.232 built by: RTMGDR
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Xml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 built by: RTMRel
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
kyr
    Assembly Version: 1.0.2.3
    Win32 Version: 1.0.2.3
    CodeBase: file:///C:/Program%20Files/Kyrathasoft/KyrHangman/kyr.DLL
----------------------------------------
KyrHangmanLib
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files/Kyrathasoft/KyrHangman/KyrHangmanLib.DLL
----------------------------------------
Microsoft.VisualBasic
    Assembly Version: 10.0.0.0
    Win32 Version: 10.0.30319.1 built by: RTMRel
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System.Core
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 built by: RTMRel
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.




EDIT - I continued and after the second game ended the third game came up with the same error (perhaps it is the particular puzzle chosen?).  Anyway, I got the error and when I hit continue, it let me try continue with the game, but it didn't clear the old solution to present the new puzzle.  However, when I tried the answer for the old puzzle, it failed, so it at least loaded a new one, just isn't displaying it. Wrong - just noticed it is the old puzzle.  All the letters are already gone, but it is asking for the new ones.  Enter a blank and it is a bad guess just like a wrong letter.
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: steeladept on July 12, 2011, 02:08 AM
Another bug I am finding is not all letters show from puzzle to puzzle.  They are not selected, but they are not listed if you are a mouse user.  And if you type the letter in the box (or highlight the carrot and type it in) then the letter works and shows in the right places, but the letter shows twice in the guess box.  Not an issue in processing (it works right), just an observation.

Another observation - especially during timed games - keyboard input is MUCH Better! :P

Perhaps in a future revision you can consider tracking if input was via mouse or keyboard to differentiate high scores?  I am not a mouse person in general, but when checking stuff out like this I find that is where most things break (at least in my programs). 
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: kyrathaba on July 12, 2011, 07:19 AM
@steeladept:

Thanks for downloading and playing!  I'm sorry that it messed up for you, and thank you so much for the bug report!

the third game came up with the same error (perhaps it is the particular puzzle chosen?).


I am thinking that, because the game works without this error for many puzzles, it must be that some particularly long puzzles are causing this.  I've changed the maximum phrase length from 300 to 400, and I'm adding some error-catching to suspect methods:

public const int MaxPhraseLength = 400;

           } catch (Exception loadHangFileException) {
                MessageBox.Show("Error in method loadHangmanFile()", loadHangFileException.Message);
            }

           } catch (Exception instantAndRunEx) {
                MessageBox.Show("Error in method instantiateAndRunGame()", instantAndRunEx.Message);
            }


but the letter shows twice in the guess box

I've updated the guess-handling code to check and see if the correct or wrong guess is already shown (this should prevent duplicates; let me know if any continue to happen):

       private void addWrongGuess(string wrongGuess) {
            if (!WrongGuesses.Contains(wrongGuess)) {
                _wrongGuesses += wrongGuess;
            }
        }

        private void addUsedGuess(string usedGuess) {
            if (!UsedGuesses.Contains(usedGuess)) {
                _usedGuesses += usedGuess;
            }
        }


Another bug I am finding is not all letters show from puzzle to puzzle.  They are not selected, but they are not listed if you are a mouse user.

I think this is a control-repainting issue.  When this happens, try scrolling the vertical scrollbar the entire extent of the combobox and see if the letters don't seem to magically reappear.  I'm working on a fix for this.

Perhaps in a future revision you can consider tracking if input was via mouse or keyboard to differentiate high scores?


I've noted the suggestion for a possible future version, and thanks!

 
I am not a mouse person in general, but when checking stuff out like this I find that is where most things break (at least in my programs).

+1.


Summary: hopefully, the 100-character increase in maxPhraseLength will fix the most glaring error.  However, I've added error-handlers to a couple of highly suspect methods, which will pop up a much more info-rich messagebox and help me track down the bug, if it persists.  Hopefully, the extra checking I've added to the missed versus correct guesses will solve that annoying bug too.  Thanks again for taking the time to post, steeladept, and please let me know the results if you update to v1.0.4.1.  You can update to the new version from within the program: "About"->"Update".

[ You are not allowed to view attachments ]
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: steeladept on July 12, 2011, 09:11 PM
Eh, I'm not worried about it messing up my game - I am not a word game kind of person (as in I totally suck at most all of them) :-\  I am just looking where I always run into troubles with my own programs and found several for you to check out. :Thmbsup:
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: kyrathaba on July 12, 2011, 09:21 PM
Again, I really appreciate your feedback.  Makes all the difference!  :up:
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: kyrathaba on July 13, 2011, 02:27 PM
Everyone welcome podracer, our 51st Hangman contestant!  I've sent him/her an email, inviting them to visit our forum.
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: kyrathaba on July 14, 2011, 07:08 AM
Watch out, thancock20!

It looks like Aquanoid poses a real threat to your reign:

[ You are not allowed to view attachments ]
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: hamradio on July 14, 2011, 12:52 PM
Whew now to take a good break from it...
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: kyrathaba on July 14, 2011, 02:31 PM
Ooh! 

Hey thancock20, are you gonna let that stand!?  Check the online scoreboard...
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: kyrathaba on July 14, 2011, 08:07 PM
This is getting ugly, folks!  It's a dead-heat!

[ You are not allowed to view attachments ]
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: kyrathaba on July 17, 2011, 09:16 AM
There are just two weeks remaining until the first high-score prize is given out!  As of this posting, hamradio has the lead, trailed closely by thancock20, benubird, and Aquanoid!
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: thancock20 on July 21, 2011, 08:02 PM
It's the return of the dreaded little box (for the degree symbol this time):

[ You are not allowed to view attachments ]

It didn't actually cost me the game this time though, because I died trying to guess the correct numbers.  Those puzzles with numbers in them are a definite weakness of mine.
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: kyrathaba on July 21, 2011, 09:13 PM
Thank you for the bug-report.  The bug has been squashed: version 1.0.4.2 (http://kyrathaba.dcmembers.com/ccount/click.php?id=3) is the fix.  You may use "About"->"Update" from within the program to update to the fixed version.
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: kyrathaba on July 21, 2011, 11:25 PM
I don't expect any more bugs related to apostrophes or rare symbols (fingers crossed).
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: kyrathaba on July 26, 2011, 09:44 PM
There is less than one week until the first montly high-score prize is awarded!  Right now, hamradio is in the lead to receive it.
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: kyrathaba on July 29, 2011, 07:34 AM
Just two days remaining before the first $5 of DonationCredits is disbursed to the high-scorer.  That is, at the time of this post, hamradio!!
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: kyrathaba on July 30, 2011, 03:12 PM
I'll award the DonationCredits when this (http://kyrathaba.dcmembers.com/pledgeCountdown.htm) count falls below 129 days...
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: kyrathaba on July 31, 2011, 02:29 PM
Congratulations to hamradio for winning the July high-scorer (http://kyrathaba.zxq.net/appsWithOnlineDB/KyrHangman/show_hang_info.php) spot.  Your DonationCredits have been delivered :D
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: hamradio on August 01, 2011, 03:09 PM
Thanks! :) Now back to programming...Good luck to whoever wins this month as I probably wont have time to play this for awhile...
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: thancock20 on August 01, 2011, 05:22 PM
Congrats Hamradio.  :Thmbsup:

Hopefully I can pass you at some point. It's not like I haven't been trying.

Also:

[ You are not allowed to view attachments ]

 :( Am I really the only one running into these things?
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: kyrathaba on August 01, 2011, 06:04 PM
You're the only one reporting them, and for that I owe you (see your new DonationCredits total).  I found the problem.  Note the odd quotation mark to the left of the word hairy in the screen shot below:

[ You are not allowed to view attachments ]

Searched and made sure I've eliminated all such funky quotation characters.  If you'll let me know what your score was just before this bug nixxed your game, I'll manually set it on the online database.

"About" -> "Update" to install fixes-it version.


MUCH thanks for your perseverance, thancock20!

Incidentally, what OS are you running?
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: thancock20 on August 01, 2011, 06:57 PM
Cool, thanks for the quick fix (as always) and the credits.

From the screenshot, it looks like my score was: 318035

Also, my OS is Windows XP SP3.

Not sure if this makes any difference, but my "language for non-unicode programs" is set to Japanese.

edit: Apparently, I play better while listening to Japanese Heavy Metal.  8)  Wish I had known that a couple days ago.
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: kyrathaba on August 01, 2011, 07:58 PM
Not sure if this makes any difference, but my "language for non-unicode programs" is set to Japanese.

I'm not sure either, but I think my fix will take care of it either way.  We'll see.

Again, thanks for your efforts, and congrats on taking the lead high-score in August (you've not reverse-engineered the exe have you [kidding]?):

[ You are not allowed to view attachments ]
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: thancock20 on August 03, 2011, 07:06 PM
I wish I had the talent to reverse engineer exe files. Right now my coding experience is pretty much limited to editing other people's AutoHotKey scripts for my own personal - and often rather specific - needs.

So, during my last game I had all three of the puzzles I had previously reported errors on show up; only to be done in finally by the number "8":

[ You are not allowed to view attachments ]

Numbers cause to me lose quite often, but that's not a bug, it's a feature.  ;D

Plus it's educational. You know, in case I ever need to know how many calories are in an Avocado.
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: kyrathaba on August 03, 2011, 07:13 PM
So, during my last game I had all three of the puzzles I had previously reported errors on show up

You mean these three that previously errored presented in a correct fashion, without crashing your game? (please say "yes").

I'll take a look at the number bug.
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: kyrathaba on August 03, 2011, 07:14 PM
Actually, if I understand correctly, there wasn't a bug associated with the number.  You just didn't guess it (or guess it in sufficient time), right?
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: kyrathaba on August 03, 2011, 07:16 PM
That's really some score:

[ You are not allowed to view attachments ]
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: thancock20 on August 03, 2011, 07:28 PM
Yes, the three puzzles were presented in a correct fashion.   :Thmbsup:

And yes, the numbers aren't a bug; they're just a lot harder to guess than the letters are. (Though I usually remember them after I've seen them a few times.)

Actually the trivia puzzles with numbers in them, and the really short occupation puzzles (like "chemist"), are the ones that usually trip me up - more often than not.

Just think, if I had known how much Warner Communications had paid for the copyright to "Happy Birthday", I may have broken a million points.
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: kyrathaba on August 03, 2011, 07:45 PM
Just think, if I had known how much Warner Communications had paid for the copyright to "Happy Birthday", I may have broken a million points.

Even as it stands, I doubt anyone will surpass your current score, to win the August high-scorer award.  But we'll see...

As an aside, there are relatively few puzzles involving numbers.  Less than 1%.  One of the advantages of playing a lot, as you have, is that you become familiar with puzzles seen previously, allowing you to solve faster.  You'll remember the one that stumped you, the next time you come across it :D
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: kyrathaba on August 04, 2011, 08:28 AM
Welcome capitalh and davejc64 to the competition.  If you have any questions that the program's Help file doesn't clear up for you, feel free to drop us a message here (I trust you're reading the DC boards, surely :) )
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: kyrathaba on August 09, 2011, 06:52 AM
Welcome salmuina to the competition!
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: steeladept on August 10, 2011, 09:20 PM
Here's a really odd one (okay, not odd, just not one you think of when beta-testing), but I can't get past the password.  Either I fatfingered it when I set it up, or I just don't remember what it was.  Still, I noticed that there is no way to reset it or retrieve it.
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: kyrathaba on August 11, 2011, 06:36 AM
Still, I noticed that there is no way to reset it or retrieve it.

PM me your Hangman username and desired password and I'll reset it for you.
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: kyrathaba on August 11, 2011, 07:44 AM
Version 1.0.4.4 is available (http://kyrathaba.dcmembers.com/ccount/click.php?id=3) and this is a required update if you wish to compete via the online high-score database (http://kyrathaba.zxq.net/appsWithOnlineDB/KyrHangman/show_hang_info.php).

This update patches a potential exploit discovered by thancock20 (https://www.donationcoder.com/forum/index.php?action=profile;u=183392) (many thanks thancock20 !!)

The easiest way to update is to run the existing installed version, and use "About"->"Update".

Please note the following from the Help text file:

v 1.0.4.4 (released 8-11-2011)

   fixes an exploit found by thancock: this update is required if
   you want to compete using the online high-score database. Although
   older versions will still submit highscores, the database will
   not retain them long-term because there is a PHP sweeper function
   that will periodically cull the database of scores submitted
   with older versions which have not had the exploit patched.

Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: hamradio on August 11, 2011, 12:15 PM
And what about the current scores already there? Is my 2nd place one going to get removed since it was an older version potentially taking me out of -> "The top-three high-scoring DC members will receive an additional prize from the site." as you posted on the first post?
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: kyrathaba on August 11, 2011, 02:05 PM
And what about the current scores already there? Is my 2nd place one going to get removed since it was an older version potentially taking me out of -> "The top-three high-scoring DC members will receive an additional prize from the site." as you posted on the first post?

Sorry, I should have been clearer.  No, your existing high-scores won't get culled.  But any scores you may submit that exceed your existing high-score will be checked by the PHP script to ensure that they were submitted by a patched version of the program.  If they weren't, eventually the sweeper will get them.
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: hamradio on August 11, 2011, 03:31 PM
Thanks for clearing it up more for everyone. :Thmbsup:
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: kyrathaba on August 11, 2011, 03:34 PM
You bet!  Thank you for making me aware of the need for clarification  :up:
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: thancock20 on August 17, 2011, 09:37 PM
One of the advantages of playing a lot, as you have, is that you become familiar with puzzles seen previously, allowing you to solve faster.  You'll remember the one that stumped you, the next time you come across it :D

And just when I was beginning to think that I had every puzzle memorized I get done in by a mayor:

[ You are not allowed to view attachments ]

And on that note, I think I'm going to not play for a while. It took me somewhere around an hour and a half to get that score, and I don't think I'm going to have that kind of time again for a while.
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: kyrathaba on August 18, 2011, 05:59 AM
Somehow, I don't think you have anything to worry about, unless hamradio or some new contender suddenly upsets your lead :)
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: kyrathaba on August 21, 2011, 01:34 PM
I've released (http://kyrathaba.dcmembers.com/ccount/click.php?id=3) version 1.0.4.5, which adds the following two features:

Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: kyrathaba on August 21, 2011, 02:04 PM
And whadyaknow?  I found a bug and have released (http://kyrathaba.dcmembers.com/ccount/click.php?id=3) the fix as version 1.0.4.6.  You can view the text help file using the Help menu if you want to see the release notes.  In case you don't want to have to look it up, though, here's a screenshot:

[ You are not allowed to view attachments ]
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: kyrathaba on August 27, 2011, 08:42 PM
Reminder: anyone wishing to win the August highscore (http://kyrathaba.zxq.net/appsWithOnlineDB/KyrHangman/show_hang_info.php) award, you've got some work to do... 4 days remaining before DonationCredits are awarded.
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: kyrathaba on August 27, 2011, 08:43 PM
Welcome to the contest, Richard!
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: kyrathaba on September 02, 2011, 12:16 PM
Congratulations to thancock20 for winning the August Kyrathaba's Hangman highscore challenge!!
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: kyrathaba on September 05, 2011, 09:14 PM
As mentioned here (https://www.donationcoder.com/forum/index.php?topic=27130.msg258055#msg258055), the reaper function has begun thinning out the contestants on the online database (http://kyrathaba.zxq.net/appsWithOnlineDB/KyrHangman/show_hang_info.php).
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: kyrathaba on September 29, 2011, 06:29 PM
If anyone has any aspirations of beating thancock20's leading score, you have another day to attempt it, before this month's prize is given out.
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: thancock20 on October 26, 2011, 12:59 PM
I had some free time today, so I was going to see if I could beat my high score on hangman, but apparently I forgot my password. I thought I remembered what it was, but neither what I thought it was, nor any variation of it that I could think of would work.

Is there any sort of "forgot password?" function that will email my password to my registered email address?
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: kyrathaba on October 26, 2011, 08:46 PM
thancock20,

I sent you a Personal Message with instructions on how to fix this.
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: thancock20 on October 26, 2011, 10:56 PM
Thanks a lot for the help. I followed the instructions in the PM and can play again.  :D

That doesn't mean I"ll actually be beating that score any time soon, though.
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: kyrathaba on October 27, 2011, 06:05 PM
That doesn't mean I"ll actually be beating that score any time soon, though.

I doubt you'll need to :)  I think you're reign is secure, at this point...
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: kyrathaba on November 01, 2011, 07:22 AM
Congratulations to thancock20 for remaining the reigning champion for October, with a highscore of 1501445.  Well done!  Your DonationCredits prize has been awarded!  Everyone join me in congratulations thancock20!!  :Thmbsup:
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: Deozaan on November 01, 2011, 06:43 PM
Good job, thancock20. :Thmbsup:
Title: Re: NANY 2012 Pledge & Early Beta: Kyrathaba's Hangman
Post by: kyrathaba on December 01, 2011, 06:15 PM
Well, thancock20 won November's high score, and has received this month's $5 worth of DonationCredits.  Congrats on your long reign, thancock20! 
Title: Re: NANY 2012 Release: Kyrathaba's Hangman
Post by: kyrathaba on December 31, 2011, 04:15 PM
Everyone, thancock20 has won the monthly high-score several months in a row (big congrats, thancock), and the competition has come to an end. Altogether, the contest allowed people to have fun and enjoy a twist on the classic Hangman game, with a chance to win donation credits. I wound up doling out a total of $30.00 worth of DC Credits, and immensely enjoyed doing so! Thanks to all who participated!
Title: Re: NANY 2012 Release: Kyrathaba's Hangman
Post by: hamradio on January 03, 2012, 06:13 PM
Congrats thancock20...  :up:

...The top-three high-scoring DC members will receive an additional prize from the site.

I wonder what the prize will be... ;)
Title: Re: NANY 2012 Release: Kyrathaba's Hangman
Post by: kyrathaba on January 03, 2012, 06:21 PM
I have it from certain unnamed sources that the top-three scorers will each get a historically authentic Wild West hangman's noose...  :P
Title: Re: NANY 2012 Release: Kyrathaba's Hangman
Post by: kyrathaba on January 15, 2012, 12:07 PM
Further development-related discussion and release-announcements will be conducted on this (https://www.donationcoder.com/forum/index.php?topic=29648.0) thread.