Clut Error 101

Working on making the switch to SuperCard? Many here have done it... ask your questions here.

Clut Error 101

Postby rickbopp » Wed Apr 13, 2011 6:22 am

In attempting to link between two converted Hypercard stacks that were linked in HC. I am getting this error:
Error Number 101
The "clut" property can only be changed on a color monitor with 256 colors

The surface script of the button is simple ... as follows:
on mouseUp
go to card id 189684 of stack "D STACK"
end mouseUp

Can any help with this? I am considering porting many years of work over from Hypercard. I have been attempting this with Runtime Revolution but Supercard seems to convert the stacks better.
rickbopp
 
Posts: 4
Joined: Wed Apr 13, 2011 5:43 am

Re: Clut Error 101

Postby Scott » Wed Apr 13, 2011 7:01 am

Put a 'trace' on a new line after your 'on mouseup' and step through the scripts to see what line is generating that error. I wouldn't think a converted HyperCard stack would have anything to do with CLUTs so it is likely that SuperCard's error reporting is confused.

Post the line that is generating the error... it is probably a simply edit.
User avatar
Scott
Site Admin
 
Posts: 1217
Joined: Sat Jul 05, 2008 1:37 pm
Location: Northern Sierra Nevada

Re: Clut Error 101

Postby rickbopp » Fri Apr 15, 2011 7:40 am

Thanks Scott, being brand new to SC and still evaluating it... How do you 'put a trace'?
I've tried it several ways without any results.

The entire script for this button is

on mouseUp
go to card id 287240 of stack "BIBLE SUBJECT L-Z Stack"
end mouseUp

The buttons going from card to card within the stack operate fluently.
The clut property error 101 occurs on any button that attempts to link to another stack.
rickbopp
 
Posts: 4
Joined: Wed Apr 13, 2011 5:43 am

Re: Clut Error 101

Postby Scott » Fri Apr 15, 2011 8:56 am

To invoke the tracer you would just insert the trace command:

Code: Select all
on mouseUp
trace
go to card id 287240 of stack "BIBLE SUBJECT L-Z Stack"
end mouseUp


I still can't explain why you are getting that error, but there are a couple of other things to look into:

1.) You are not supplying a full path to "BIBLE SUBJECT L-Z Stack" so make sure it is in the same folder as the stack calling it.

2.) You are not specifying the SuperCard ".sc45" file extension with "BIBLE SUBJECT L-Z Stack". Normally the converter adds this to newly converted files so check to see if the file has an extension. If so, you will need to remove it or include it in the name (recommend the latter in OS X - and checking the "Show all filename extensions" option in the advanced tab of the Finder's Preferences to avoid confusion going forward).
User avatar
Scott
Site Admin
 
Posts: 1217
Joined: Sat Jul 05, 2008 1:37 pm
Location: Northern Sierra Nevada

Re: Clut Error 101

Postby rickbopp » Wed Apr 27, 2011 8:45 am

Thanks Adding the full extension into the script [.st45] fixed it!
rickbopp
 
Posts: 4
Joined: Wed Apr 13, 2011 5:43 am

Re: Clut Error 101

Postby rickbopp » Thu Apr 28, 2011 5:13 am

Is there a way to automate fixing the scripts of the stacks so I wouldn't have to paste the extension ".st45" on the end of every stack reference in every linking button script?
rickbopp
 
Posts: 4
Joined: Wed Apr 13, 2011 5:43 am

Re: Clut Error 101

Postby Scott » Thu Apr 28, 2011 5:30 am

You could use the replace() function in a repeat loop...

But it would be much simpler to remove the extension from the file's name.
User avatar
Scott
Site Admin
 
Posts: 1217
Joined: Sat Jul 05, 2008 1:37 pm
Location: Northern Sierra Nevada

Re: Clut Error 101

Postby Lisa » Thu Apr 28, 2011 11:15 am

I would use the Project Search utility, in the Utilities Menu. Click on the Options... button first and uncheck Content and Object Names, so you're only searching Scripts. Also set the Project at the top. Then it works pretty much like any other Find and Replace dialog.
iMac 24" 3.06 GHz Intel Core 2 Duo, 4 GB RAM, Mac OS X 10.6.8, SC 4.7.3
User avatar
Lisa
 
Posts: 303
Joined: Sun Jul 06, 2008 12:33 pm
Location: San Diego, CA


Return to Upgrading From HyperCard

Who is online

Users browsing this forum: No registered users and 1 guest

cron