inclusions problem

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

Post Reply
Samuele
Posts: 282
Joined: Mon Oct 11, 2021 7:05 pm

inclusions problem

Post by Samuele » Sun Jan 23, 2022 10:59 pm

Hi, i have a problem with the 'inclusions' pane in the standalone settings, it's like there is a gray rectangular covering the options
Immagine 2022-01-23 225629.png
any ideas on how to fix it? Thanks!
Samuele.

prometheus
Posts: 40
Joined: Sun Dec 13, 2015 6:05 pm

Re: inclusions problem

Post by prometheus » Sun Jan 23, 2022 11:04 pm

Have you installed a widget or library extension recently?
Maybe there is a widget generating an error and breaking the list
Does extension manager shows all widgets correctly?
It would be helpful if you specify which LC version are you running

Samuele
Posts: 282
Joined: Mon Oct 11, 2021 7:05 pm

Re: inclusions problem

Post by Samuele » Mon Jan 24, 2022 10:09 am

yes, the extension manager is showing allright,
Immagine 2022-01-24 100817.png
i'm running livecode community 9.6.3
Samuele.

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10097
Joined: Fri Feb 19, 2010 10:17 am

Re: inclusions problem

Post by richmond62 » Mon Jan 24, 2022 12:57 pm

Make sure you ONLY have the extensions you need for your stack.

Then try things.

Samuele
Posts: 282
Joined: Mon Oct 11, 2021 7:05 pm

Re: inclusions problem

Post by Samuele » Mon Jan 24, 2022 1:11 pm

richmond62 wrote:
Mon Jan 24, 2022 12:57 pm
Make sure you ONLY have the extensions you need for your stack.

Then try things.
but as you can see here
Samuele wrote:
Sun Jan 23, 2022 10:59 pm
Immagine 2022-01-23 225629.png
i can't choose, that's my problem...
Samuele.

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10097
Joined: Fri Feb 19, 2010 10:17 am

Re: inclusions problem

Post by richmond62 » Mon Jan 24, 2022 1:12 pm

Unselect everything: make a standalone and see what it looks like.

Certainly you do not need a LineGraph for your game. 8)

Samuele
Posts: 282
Joined: Mon Oct 11, 2021 7:05 pm

Re: inclusions problem

Post by Samuele » Mon Jan 24, 2022 1:14 pm

how can i unselect everything?
Samuele.

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10097
Joined: Fri Feb 19, 2010 10:17 am

Re: inclusions problem

Post by richmond62 » Mon Jan 24, 2022 1:26 pm

This will make sure that the only inclusions are the ones your stack needs:
-
Screen Shot 2022-01-24 at 2.23.52 PM.png

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7390
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: inclusions problem

Post by jacque » Mon Jan 24, 2022 7:09 pm

The automatic inclusions scan isn't always reliable.

Did you choose "Select inclusions" in the General pane?
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Samuele
Posts: 282
Joined: Mon Oct 11, 2021 7:05 pm

Re: inclusions problem

Post by Samuele » Mon Jan 24, 2022 7:20 pm

jacque wrote:
Mon Jan 24, 2022 7:09 pm
The automatic inclusions scan isn't always reliable.

Did you choose "Select inclusions" in the General pane?
yes i did, because i'm using a splash stack and that way it won't include the inclusions i need for the 'working' stack
Samuele.

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10097
Joined: Fri Feb 19, 2010 10:17 am

Re: inclusions problem

Post by richmond62 » Mon Jan 24, 2022 9:17 pm

There is another way to make a Splash stack that is actually a substack . . .
-
SShot 2022-01-24 at 22.28.32.png
Attachments
KINKY BOOTS.livecode.zip
Here's the stack.
(122.19 KiB) Downloaded 129 times

Samuele
Posts: 282
Joined: Mon Oct 11, 2021 7:05 pm

Re: inclusions problem

Post by Samuele » Wed Feb 02, 2022 12:26 pm

richmond62 wrote:
Mon Jan 24, 2022 9:17 pm
There is another way to make a Splash stack that is actually a substack . . .
-
SShot 2022-01-24 at 22.28.32.png
i tried like this and it didn't work
Main.zip
(882 Bytes) Downloaded 121 times
i made the Mainstack a splash stack and the substack the "main" but none of them is shown (you can use the project browser to open them)
so i still have this inclusions problem...
Samuele.

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10097
Joined: Fri Feb 19, 2010 10:17 am

Re: inclusions problem

Post by richmond62 » Wed Feb 02, 2022 12:38 pm

I would make a Splash Screen that is NOT another stack; but an image that covers your main stack.
Attachments
Splasher.livecode.zip
Here's the stack.
(130.34 KiB) Downloaded 122 times

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7390
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: inclusions problem

Post by jacque » Wed Feb 02, 2022 6:47 pm

I would make a Splash Screen that is NOT another stack; but an image that covers your main stack.
He doesn't want a splash screen, he wants a loader app that will open the working stack so that it can be saved to disk. This method is often called a "splash stack" because it's common to include a splash image while the loader app opens the working stack.

Samuele, you need to add inclusions manually. If you use the automatic inclusions, LC will scan the scripts of the splash stack, which doesn't have much code, and it won't find anything. There's no way to tell the standalone builder to scan a stack that isn't the one used for the app. So you need to do the Inclusions yourself.
There is another way to make a Splash stack that is actually a substack . . .
Samuele, this won't work, you can't save a substack while it's attached to the app. It's easier to just include the working stack as a separate file. Either way you'll need to copy the working stack to the documents folder.

If your inclusions aren't working, it means they aren't seen by the working stack. Make sure they are all included in the standalone stack, the working stack doesn't need them. Then when your app opens, a preOpenStack handler or an openStack handler needs to start using the splash stack.

Code: Select all

start using stack "myAppStack" 
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Klaus
Posts: 14193
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: inclusions problem

Post by Klaus » Wed Feb 02, 2022 7:02 pm

Hi friends,

please take a look at Samueles first posting with the screenshot! 8-)
I think that is the problem, that he cannot select any inclusion manually because they are just not shown.

Samuele, try this:
1. Delete the LC preferences
Enter this in the mesage box: put the filename of stack "revpreferences"
Then note the path to that file.
2. Quit LC and delete that file in #1.
3. Try again and see if you see more inclusions.

If that does not help, then delete the preferences and install LC again.


Best

Klaus

Post Reply