RevStudio deletes images, and other glitches

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
ds_tx
Posts: 17
Joined: Sat Jul 21, 2007 6:56 pm

RevStudio deletes images, and other glitches

Post by ds_tx » Wed Aug 15, 2007 8:38 pm

How do I solve problems with image deletion?
I thought this problem was specific to Windows ap built on MacOSX using G5 PPC, but now notice that I have same problem on MacOSUniversal ap as Win ap. Images are stored in an Image folder within Data folder within Project folder. Stack is stored within Project folder. Background image .jpg and overlaying smaller image .png are deleted on first card, and a .jpg image overlaying background image on another card.
Also, Copperplate 42 pt text is not formatted and appears very small in upper right of button area, while Arial 18 pt in another buttons is unaffected. This only occurs in Win ap, not Mac. Could text problem be due to Copperplate font not existing on Winddows machine on which ap is being deployed? If so, then please include such instructions/warning in software documentation.
I have changed name of stack in stack inspector, but when I build standalone ap it continues to put ap in a folder with the old stack name not the new one. How do I fix that?
ds_tx

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Wed Aug 15, 2007 8:55 pm

Dear ds_tx,

Are you saying that your images are not displayed at all? This looks like a problem connected to the file path. If you have set the filename of images, rather than importing the actual picture file, yo should make sure that the file path is correct when you transfer the stack to a different computer. When you move a stack from Windows to Mac, the Mac won't find a file that is supposed to be at C:\folder\file.xyz. Try using relative file paths or write a script that updates the filename properties of the image objects.

If Copperplate is not installed on a computer, you can't use it in your stack. Simple as that. Use a different font or install the font. if you make software for distribution, is it not wise to use fonts that are not generally available. If you have a license for distributing a font or if you made the font yourself, you can include it with the stack and use the RevFont external to temporarily install and use the font in your stack.

To change the name of your standalones, you have to change the name in the Standalone Builder Settings.

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

ds_tx
Posts: 17
Joined: Sat Jul 21, 2007 6:56 pm

RevStudio deletes images, and other glitches

Post by ds_tx » Wed Aug 15, 2007 9:20 pm

Mark,

The problem occurs on my Mac PPC where the image files are located as well as on the WindowsXP PC where they are not.
The problem is occurring when RevStudio builds the standalone ap.
I have checked the file path in my stack by clicking on the folder icon next to the Source field in Basic Properties of the Inspector window, and made sure that the image file is selected from the image folder in my data folder within my project folder.
This is the same process whereby I have confirmed other images I'm using. The images display fine as part of the .rev stack on my Mac, but for some reason, 3 images are randomly omitted when project is built as a standalone ap.

Darrell
ds_tx

ds_tx
Posts: 17
Joined: Sat Jul 21, 2007 6:56 pm

RevStudio deletes images, and other glitches

Post by ds_tx » Wed Aug 15, 2007 10:08 pm

Mark,

Looks like I was mistaken. The images that fail to display when standalone ap is built are those that show a path in the Source field such as: ./data/images/refinery.jpg Where only the image Name is listed in Basic Properties of Inspector window with nothing designated in the Source field, the images display fine in the standalone ap.
I have tried deleting the path in the Source field, but this typically causes an error message or deletes the image from the card completely.
Do I need to reimport File/Import As Control/Image File and resize, lock image, etc. in order to correct this problem?
Why does specifying the file path cause image to be omitted/deleted when building standalone ap?

Darrell
ds_tx

Garrett
Posts: 386
Joined: Sat Apr 08, 2006 8:15 am
Contact:

Post by Garrett » Wed Aug 15, 2007 10:15 pm

If you are importing them, there is no need for specifying any file paths. If you are not importing them, then yes, file paths can be an issue since Mac and Windows use different file path naming conventions.

It sounds like you may be adding an image control then trying to set the image to it by adding the path to the properties. It might be easier to skip that and just directly import the images via the file menu.

~Garrett

Post Reply