Page 1 of 5

nseslo ---> lesson (='.'=)

Posted: Sat Aug 18, 2018 2:35 pm
by Mariasole
Hello boys and girls!
Peace and love to you, and to the whole LiveCode community!
In these days of vacation, I thought well to study our wonderful language.
The lesson "Using Arrays in a Word Finder App" intrigued me. 8)
http://lessons.livecode.com/m/4071/l/18 ... finder-app
"This application was originally developed by one of the Development Team to 'assist' him in his Scrabble playing, it's handy but perhaps not strictly within the rules of the game."


WOW! :mrgreen:

There was also a downloadable example, a very important resource for us eternal neophytes!
I immediately downloaded "Word_Finder.livecode" but unfortunately it does not work! :shock: :shock: :shock:

The error that gives me is this:

Code: Select all

Type	decompress: string is not compressed data
Object	card id 1002
Line	put decompress(the uAllWords of this stack) into tWords
Hint	preOpenCard
I tried with 7.1.4, 8.1.1, 8.1.9, 9.0, but the error is the same.

Do you have any idea to restart it? Or do you have an uncorrupted version?

Thanks for everything!
May God bless and protect the whole community of LiveCode!

Mariasole
(='.'=)

Re: nseslo ---> lesson (='.'=)

Posted: Sat Aug 18, 2018 2:41 pm
by Klaus
Hi Maria,

I just downloaded that stack and it opened without any problem.
Maybe your stack or that namley custom property are corrupt, please load and try again.


Best

Klaus

Re: nseslo ---> lesson (='.'=)

Posted: Sat Aug 18, 2018 3:55 pm
by dunbarx
I play a lot of Scrabble and made a tileTrackerScoreKeeper gadget in LC. Works fine, though I have not yet implemented a game timer.

If anyone else plays, let me know...

Craig newman

Re: nseslo ---> lesson (='.'=)

Posted: Mon Aug 20, 2018 9:31 am
by Mariasole
Hi Klaus, Hi Craig! :D

I redid several times the test to re-download the stack, but I got the same error.

So I thought I'd get it to my cousin, Maria Angelica, and she got the same mistake as well.
We both have Win 7, with two completely different OS configurations (Maria Angelica is a musician! She plays the cello! The real cello, not the sinth cello!).
As soon as the stack opens it gives me (gives us!) this error:

(on 7.1.4 versions of LC)
Type decompress: string is not compressed data
Object card id 1002
Line put decompress(the uAllWords of this stack) into tWords
Hint preOpenCard

(on versions of LC from 8 onwards):
card "card id 1002": execution error at line 806 (Handler: can't find handler) near "revSEObjectDeleted", char 1
or ( LC from 9)
card card id 1002 execution error at line 6 (decompress string is not compressed data), char 18
How can I solve the problem?

Craig if I can understand you, too, have you done something similar? Where is it? Can we study this gadget?

I'm trying to understand how the arrays work ... but with some practical examples that I'm interested in, that's why I'm interested in this stack of Scrabble and resolution of anagrams!

Grazie ragazzi, siete molto buoni e gentili!

(='.'=)

Re: nseslo ---> lesson (='.'=)

Posted: Mon Aug 20, 2018 2:16 pm
by dunbarx
Mariasole.

My gadget does not use arrays, and it does not anagram. Arrays would be a perfect fit for such a task, though, using what are known as "alphagrams".

I only mentioned it because the word "Scrabble' popped up. It is just a convenient way to keep score and track tiles, instead of using a pencil.

Craig

Re: nseslo ---> lesson (='.'=)

Posted: Mon Aug 20, 2018 3:46 pm
by MaxV
Hi Mariasole,
did you look at this? http://www.maxvessi.net/livecode/public/scarabeo.b1

(is B1 compressed because the Italian vocabulary with all variants is huge)

Re: nseslo ---> lesson (='.'=)

Posted: Mon Aug 20, 2018 7:15 pm
by SparkOut
FWIW, I also get a failure when trying to decompress the uAllWords of the stack in Maria's lesson (claiming it is not compressed data, the same as one of her errors).
This is on Windows 10 with LC 9.0.1 rc1

Re: nseslo ---> lesson (='.'=)

Posted: Tue Aug 21, 2018 9:29 am
by Mariasole
Thanks Craig!
I had misunderstood :lol: , but I will use it when I play Scrabble! Where can I find your gadget?

Thanks Max,
I downloaded and used your solution! :D Very interesting! Only that I am still far behind and I can not use a sql database. But I will use your stack to learn! Grazie, sei un tesoro!

Thanks SparkOut!
I'm happy :wink: that you too have the same error!
There is no way to get a working copy, maybe from the mac? Or could it be a LC bug on Win?

Thank you all!

(='.'=)

Re: nseslo ---> lesson (='.'=)

Posted: Tue Aug 21, 2018 2:06 pm
by bogs
SparkOut wrote:
Mon Aug 20, 2018 7:15 pm
FWIW, I also get a failure when trying to decompress the uAllWords of the stack in Maria's lesson (claiming it is not compressed data, the same as one of her errors).
This is on Windows 10 with LC 9.0.1 rc1
Same here, 'nix. For what it is worth, taking 'decompress' out of that line allows the program to run, but I wasn't able to get it to do what would be expected in the 3 minutes I fooled with it. It will run in Lc 7.x -> up.

Code: Select all

on preOpenCard
  -- Fetch the compressed list of words and decompress it
   local tWords
   # card "card id 1002": execution error at line 6 (decompress: string is not compressed data), char 18
  // put decompress(the uAllWords of this stack) into tWords 
   # removed 'decompress' from previous line...
   put (the uAllWords of this stack) into tWords
Hitting search did not seem to return the results the page shows, despite having used exactly the same patterns or even different ones, or even having all the letters of a word typed in. I might be doing it wrong :P
Selection_003.png
Selection_004.png
*Edit - my bad, uAllWords looks like binary in a custom property, so effectively although what I mentioned above allows it to run without errors, it also runs it without being able to understand words :oops: will look into it a bit further later if I get some time freed up.

Re: nseslo ---> lesson (='.'=)

Posted: Wed Aug 22, 2018 11:36 am
by Lagi Pittas
Hi All,

Would very much like to understand how this worked for Klaus and not for the others.

The uAllwords is there - I saved and ran it both on windows 10 and 7 (in LC9 RC1 and LC 6.7.11 after saving in legacy) still the same problem.


The download link has a cloud symbol which I downloaded from and a shortlink which doesn't work.

If Klaus could post it here as a zip then we can assume the cloud link is corrupting the file - and Klaus was lucky.

**edit Klaus not close sorry about that Klaus

Regards Lagi

Re: nseslo ---> lesson (='.'=)

Posted: Wed Aug 22, 2018 12:20 pm
by Klaus
1. I read this post
2. I downloaded the stack from the LC website
3. Opened the stack immediately in LC 9 GM and it opened without error.

I just repeated step 1 to 3 a moment ago and still no error!

I am on a Mac 10.13.6, if that matters.

Re: nseslo ---> lesson (='.'=)

Posted: Wed Aug 22, 2018 2:00 pm
by bogs
Lagi Pittas wrote:
Wed Aug 22, 2018 11:36 am
Would very much like to understand how this worked for Klaus and not for the others.
Klaus wrote:
Wed Aug 22, 2018 12:20 pm
just repeated step 1 to 3 a moment ago and still no error!
I am on a Mac 10.13.6, if that matters.
It could be Klaus has been eating the 'Lucky Charms" again :lol:

Re: nseslo ---> lesson (='.'=)

Posted: Wed Aug 22, 2018 2:02 pm
by Klaus
Yo, I wished I had these odds at the lottery!
Maybe buying a lottery ticket will help? :D

Re: nseslo ---> lesson (='.'=)

Posted: Wed Aug 22, 2018 2:16 pm
by bogs
If you get one, I get 1/3rd of any profits :!: :!:

Re: nseslo ---> lesson (='.'=)

Posted: Wed Aug 22, 2018 2:35 pm
by Klaus
No! 8)


Your message contains 6 characters.
You need to enter at least 10 characters.