Reply
Thread Tools
terrencegf's Avatar
Posts: 221 | Thanked: 182 times | Joined on Jul 2007 @ Central Illinois
#71
Originally Posted by briand View Post
If you crack open a completed .puz file in a hex editor, you can see the layout with the user's answers and the "key" answers, laid out as the grid is laid out. If the .puz isn't scrambled (or "locked"), then it's a plain english text read. If it's scrambled, then the second ('answer') grid will be scrambled. In the actual AcrossLite application, entering the 4-digit (1-9, no 0's!) code will de-scramble the "answer key" copy in memory, and allow direct comparisons (check word, check grid, etc). After applying the 4-digit key to the puzzle, subsequent saves to disk will save an 'unlocked' version.

Anyway, several years ago, during a time I should have (no doubt) been working on something else, I fiddled around and found where (and how) the 4-digit key is stored in the .puz file, and (subsequently) how to use that key number to translate the 'scrambled' grid in the .puz file into an 'unscrambled' grid. Again, I'll snoop around and see if I can find that code snippet, and apply it to the project.
Hey briand,

Now that I have had some time to look at the xword code, I'm a bit more interested in this "unscramble" feature. I can see in the .puz file the bits that get altered when the puzzle is scrambled, but I don't know anything more. Have you had a chance to search for (and hopefully find) your code for unscrambling the grid?

Last edited by terrencegf; 2008-05-22 at 20:48.
 
briand's Avatar
Posts: 566 | Thanked: 145 times | Joined on Feb 2008 @ Tallahassee, FL
#72
to be honest, i hadn't looked, yet... I will, though... or we can work together to figure it out anew. send me a PM in a couple days, if I haven't sent you one before that.
__________________
N800 / OS2008
Now running Canola-free (by invitation) since 2215 UTC 21 May 2008.
 
Posts: 26 | Thanked: 4 times | Joined on May 2008
#73
THANK YOU! Just when I thought my N800 couldn't get any better, along comes this delightful little gem!! Good puzzle sources from the Boston Globe at:

http://www.fleetingimage.com/wij/xyzzy/08-bg.html

and the mother lode of links at:

http://www.fleetingimage.com/wij/xyzzy/nyt-links.html
 

The Following User Says Thank You to bfleury For This Useful Post:
Addison's Avatar
Posts: 3,811 | Thanked: 1,151 times | Joined on Oct 2007 @ East Lansing, MI
#74
Thank you bfleury for those excellent links!
 
Posts: 1 | Thanked: 0 times | Joined on Jun 2008
#75
Briand,

> to be honest, i hadn't looked, yet... I will, though... or we can work together to
> figure it out anew. send me a PM in a couple days, if I haven't sent you one
> before that.

Any luck on finding that code for unscrambling .puz files?

Gene
 
briand's Avatar
Posts: 566 | Thanked: 145 times | Joined on Feb 2008 @ Tallahassee, FL
#76
nah... I did search for it, but it's not on (or not any place obvious on) any of the OS disks in the various computers I've had operational since 1995... so, it was probably on my work computer at the time (and I haven't worked there for several years). I'll have to see about re-inventing that wheel when time allows...
__________________
N800 / OS2008
Now running Canola-free (by invitation) since 2215 UTC 21 May 2008.
 
Reply


 
Forum Jump


All times are GMT. The time now is 20:36.