Page 1 of 1

Export project to send somebody else (with resources included)

Posted: Wed Jan 27, 2021 2:33 pm
by vizualDevelop
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.

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

Posted: Wed Jan 27, 2021 2:40 pm
by richmond62
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.

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

Posted: Wed Jan 27, 2021 2:51 pm
by richmond62
Perhaps I should point out that it is possible (even recommended) to import all resources into
a LiveCode stack.

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

Posted: Wed Jan 27, 2021 3:13 pm
by vizualDevelop
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.

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

Posted: Wed Jan 27, 2021 3:27 pm
by richmond62
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).

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

Posted: Wed Jan 27, 2021 3:34 pm
by richmond62
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.

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

Posted: Wed Jan 27, 2021 5:07 pm
by vizualDevelop
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.

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

Posted: Wed Jan 27, 2021 5:19 pm
by FourthWorld
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.

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

Posted: Wed Jan 27, 2021 5:44 pm
by vizualDevelop
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.

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

Posted: Wed Jan 27, 2021 9:01 pm
by FourthWorld
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.