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

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Mariasole
Posts: 235
Joined: Tue May 07, 2013 9:38 pm

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

Post by Mariasole » Sat Aug 18, 2018 2:35 pm

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
(='.'=)
"I'm back" - The Cyberdyne Systems Model 101 Series 800 Terminator

Klaus
Posts: 13820
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

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

Post by Klaus » Sat Aug 18, 2018 2:41 pm

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

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9647
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

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

Post by dunbarx » Sat Aug 18, 2018 3:55 pm

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

Mariasole
Posts: 235
Joined: Tue May 07, 2013 9:38 pm

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

Post by Mariasole » Mon Aug 20, 2018 9:31 am

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!

(='.'=)
"I'm back" - The Cyberdyne Systems Model 101 Series 800 Terminator

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9647
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

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

Post by dunbarx » Mon Aug 20, 2018 2:16 pm

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

MaxV
Posts: 1579
Joined: Tue May 28, 2013 2:20 pm
Location: Italy
Contact:

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

Post by MaxV » Mon Aug 20, 2018 3:46 pm

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)
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w

SparkOut
Posts: 2852
Joined: Sun Sep 23, 2007 4:58 pm

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

Post by SparkOut » 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

Mariasole
Posts: 235
Joined: Tue May 07, 2013 9:38 pm

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

Post by Mariasole » Tue Aug 21, 2018 9:29 am

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!

(='.'=)
"I'm back" - The Cyberdyne Systems Model 101 Series 800 Terminator

bogs
Posts: 5435
Joined: Sat Feb 25, 2017 10:45 pm

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

Post by bogs » Tue Aug 21, 2018 2:06 pm

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.
Image

Lagi Pittas
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 365
Joined: Mon Jun 10, 2013 1:32 pm

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

Post by Lagi Pittas » Wed Aug 22, 2018 11:36 am

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
Last edited by Lagi Pittas on Wed Aug 22, 2018 1:42 pm, edited 1 time in total.

Klaus
Posts: 13820
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

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

Post by Klaus » Wed Aug 22, 2018 12:20 pm

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.

bogs
Posts: 5435
Joined: Sat Feb 25, 2017 10:45 pm

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

Post by bogs » Wed Aug 22, 2018 2:00 pm

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:
Image

Klaus
Posts: 13820
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

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

Post by Klaus » Wed Aug 22, 2018 2:02 pm

Yo, I wished I had these odds at the lottery!
Maybe buying a lottery ticket will help? :D

bogs
Posts: 5435
Joined: Sat Feb 25, 2017 10:45 pm

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

Post by bogs » Wed Aug 22, 2018 2:16 pm

If you get one, I get 1/3rd of any profits :!: :!:
Image

Klaus
Posts: 13820
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

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

Post by Klaus » Wed Aug 22, 2018 2:35 pm

No! 8)


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

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”