Export project to send somebody else (with resources included)

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
vizualDevelop
Posts: 22
Joined: Wed Jan 20, 2021 12:36 am

Export project to send somebody else (with resources included)

Post by vizualDevelop » Wed Jan 27, 2021 2:33 pm

I come from a background similar to LiveCode (drag and drop) where I could "Export" the entire project to a special "Package" file that can be opened in another PC. Once opened I could continue working normally because the resources (images, videos, etc) where included in the package. Except for plugins, anything could be included.

is it possible to do that in LiveCode Indy 9.6.1?

David R.

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

Re: Export project to send somebody else (with resources included)

Post by richmond62 » Wed Jan 27, 2021 2:40 pm

Just zip the stack, make sure any constituent stacks and substacks are not password protected (possible
in commercial variants of LiveCode) and send it off.

Recipients can unzip your files and open them in LiveCode Community or any commercial versions they have licences for.
Last edited by richmond62 on Thu Jan 28, 2021 9:22 am, edited 1 time in total.

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

Re: Export project to send somebody else (with resources included)

Post by richmond62 » Wed Jan 27, 2021 2:51 pm

Perhaps I should point out that it is possible (even recommended) to import all resources into
a LiveCode stack.

vizualDevelop
Posts: 22
Joined: Wed Jan 20, 2021 12:36 am

Re: Export project to send somebody else (with resources included)

Post by vizualDevelop » Wed Jan 27, 2021 3:13 pm

richmond62 wrote:
Wed Jan 27, 2021 2:51 pm
Perhaps I should point out that it is possible (even recommended) to import all resources into
a LiveCode stack.
hi Richmond
this is how I imported an image to the project: File>Import As Control>Image File

is that the correct way of importing in order to be included in the zipped stack?

David R.

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

Re: Export project to send somebody else (with resources included)

Post by richmond62 » Wed Jan 27, 2021 3:27 pm

Once you have imported an image in that way it stays inwith your LiveCode stack (unless you delete it) regardless of how
you port it to another computer (i.e. as a raw LiveCode files or compressed in some way).

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

Re: Export project to send somebody else (with resources included)

Post by richmond62 » Wed Jan 27, 2021 3:34 pm

It might not be a bad idea to have a look here:

https://livecode.com/docs/9-5-0/introduction/welcome/

and here

https://lessons.livecode.com/
I come from a background similar to LiveCode (drag and drop)
To characterise LiveCode as "drag and drop" is to do it a major disservice.

vizualDevelop
Posts: 22
Joined: Wed Jan 20, 2021 12:36 am

Re: Export project to send somebody else (with resources included)

Post by vizualDevelop » Wed Jan 27, 2021 5:07 pm

richmond62 wrote:
Wed Jan 27, 2021 3:34 pm
It might not be a bad idea to have a look here:

https://livecode.com/docs/9-5-0/introduction/welcome/

and here

https://lessons.livecode.com/
I come from a background similar to LiveCode (drag and drop)
To characterise LiveCode as "drag and drop" is to do it a major disservice.
Thanks, I am actually following the videotutorials in the "ABC Lessons" but had not found a topic on exporting.

The ability to build user interface components (buttons, inputs) by dragging them from a toolbar is what I describe "drag and drop" and I don´t think there is anything wrong with that approach. There are other ways to design UI without dragging(by code). I mentioned that just to compare the feature of packaging (exporting) with a similar software I use on my everyday work.

David R.

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10043
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Export project to send somebody else (with resources included)

Post by FourthWorld » Wed Jan 27, 2021 5:19 pm

LC makes it easier than most to not merely package a project for transport, but also keep it that way when you're working. Code, UI, media, and data can be stored directly in a stack file.

An exception to this is video. While LC does provide a means of importing video clips, it's very limited. LC files are loaded into memory when opened, so have a large number of embedded videos, or looking videos, isn't practical. For those cases, the suggestion of above of transporting a Zip file will work well. In fact, LC has a Zip library included, so you can automate any aspect of that if you like.

May I ask what tool you've been using that packages things up with satisfying tidiness? I'm working on a packager and find it useful to learn how other packagers solve interesting problems.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

vizualDevelop
Posts: 22
Joined: Wed Jan 20, 2021 12:36 am

Re: Export project to send somebody else (with resources included)

Post by vizualDevelop » Wed Jan 27, 2021 5:44 pm

FourthWorld wrote:
Wed Jan 27, 2021 5:19 pm
May I ask what tool you've been using that packages things up with satisfying tidiness? I'm working on a packager and find it useful to learn how other packagers solve interesting problems.
I started programming just a couple of years ago, and my first language was Lua. And I didn´t choose that language, it just came by default with AutoPlay Media Studio software which allows to develop applications very quickly without coding but you can create more robust applications by writing code. To share projects you export them as "packages" which includes all of the assets (video, images and whatever resources your app uses except for plugins). Sadly AutoPlay Media Studio has no been updated in recent years so I am looking for a modern alternative which I hope LiveCode can be just that.
The applications I develop tend to be highly visual that require shapes and lots of interaction with mouse and images and pdf generated visualization.

David R.

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10043
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Export project to send somebody else (with resources included)

Post by FourthWorld » Wed Jan 27, 2021 9:01 pm

vizualDevelop wrote:
Wed Jan 27, 2021 5:44 pm
I started programming just a couple of years ago, and my first language was Lua. And I didn´t choose that language, it just came by default with AutoPlay Media Studio software which allows to develop applications very quickly without coding but you can create more robust applications by writing code. To share projects you export them as "packages" which includes all of the assets (video, images and whatever resources your app uses except for plugins). Sadly AutoPlay Media Studio has no been updated in recent years so I am looking for a modern alternative which I hope LiveCode can be just that.
The applications I develop tend to be highly visual that require shapes and lots of interaction with mouse and images and pdf generated visualization.
I haven't spent much time with Lua, but I've liked what I've seen. Obviously there are a great many differences between Lua and LiveCode, but I think you'll appreciate how LC embraces Lua's priority of readability in code.

As for your app goals, you may find LC a perfect fit. PDF generation is pretty nice in LC, with not only good rendering but also features for adding links and outlines. And as you've seen, having graphical tools deeply integrated into the core make a great many UI tasks a breeze.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Post Reply