Background image not saving in stand alone

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

magice
Posts: 457
Joined: Wed Mar 18, 2009 12:57 am

Re: Background image not saving in stand alone

Post by magice » Sat Jan 26, 2013 6:44 pm

sturgis wrote:Looks like there may be a bug in 5.5.3. When opening your stack in 5.5.3 I can't see the background, can't export (export seems entirely broken)

When opening it in 5.5.1 everything works fine.

Also seems that something else has gone wrong with error reporting in 5.5.3, it reports a missing comma quite often but the error message doesn't usually apply.

Build with 5.5.1 for now, hopefully there will be a maint update to fix this. Or maybe there already is, will check and see if there is a newer build that I haven't heard about.
I was afraid the answer would lie somewhere in the age of the IDE version. I am using the library's computer (I do volunteer work for them and they let me play with their runrev) I have been after the admin there to update for years now, but since it seems that I am the only one that uses it, it is not high on her list of priorities. Basically I am working on runrev version 3.0.
Last edited by magice on Sat Jan 26, 2013 6:55 pm, edited 1 time in total.

sturgis
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1685
Joined: Sat Feb 28, 2009 11:49 pm

Re: Background image not saving in stand alone

Post by sturgis » Sat Jan 26, 2013 6:47 pm

Exported the image from 5.5.1, re-imported using 5.5.3 and it seems to be working now. (assuming the pic with the dragon is the background you're speaking of.)

After re-import, I set the background pattern of the stack, saved, here is the updated copy of your stack. https://dl.dropbox.com/u/11957935/Comba ... r.livecode

Seems like there was just something wrong with the image itself and 5.5.3 couldn't handle it. The export and then re-import seems to have fixed it.

EDIT:
Hmm, interesting. Even so though, it does look like something got messed up in the image data itself and the export/import may have fixed it. I may not have saved it in legacy format though so if you can't open the file I sent back, yell and I'll do so. I guess its also possible that if you're using different versions of lc to work on the file and one is legacy and the other is not, that might be part of the issue. Different stack file versions. (though it worked with 5.5.1 so maybe not)

magice
Posts: 457
Joined: Wed Mar 18, 2009 12:57 am

Re: Background image not saving in stand alone

Post by magice » Sat Jan 26, 2013 7:00 pm

Unable to open it, this copy of runrev is just too old.

sturgis
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1685
Joined: Sat Feb 28, 2009 11:49 pm

Re: Background image not saving in stand alone

Post by sturgis » Sat Jan 26, 2013 7:03 pm

Sec, I'll save it in legacy format.

Try this one.
https://dl.dropbox.com/u/11957935/Combat%20Tracker.rev

magice
Posts: 457
Joined: Wed Mar 18, 2009 12:57 am

Re: Background image not saving in stand alone

Post by magice » Sat Jan 26, 2013 7:14 pm

sturgis wrote:Sec, I'll save it in legacy format.

Try this one.
https://dl.dropbox.com/u/11957935/Combat%20Tracker.rev
Same thing, it will not save the background in the standalone. I am beginning to see that the problem is in this old IDE version. I will try again to suck up to the systems admin and buy her a pizza. Maybe I can convince her to finally update.

sturgis
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1685
Joined: Sat Feb 28, 2009 11:49 pm

Re: Background image not saving in stand alone

Post by sturgis » Sat Jan 26, 2013 7:21 pm

Maybe try wiping out the preferences file and relicense? (make sure they have the ability to relicense it before doing so of course) Does seem like it should work ok even on 3.0 so i'm out of ideas.

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

Re: Background image not saving in stand alone

Post by jacque » Sat Jan 26, 2013 8:25 pm

sturgis wrote: Also seems that something else has gone wrong with error reporting in 5.5.3, it reports a missing comma quite often but the error message doesn't usually apply.
That happens when the error doesn't match any particular one in the list, so the engine reports either the first line of the error list or a random one.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Background image not saving in stand alone

Post by Simon » Sat Jan 26, 2013 8:36 pm

OK, so I took a look at it and there is something very wrong with that image.
Turning its visibility on/off does nothing.
I exported the background and saved it as a new file then imported the new image and it is working for me in the standalone (LC 4.6).
http://www.philmrev.on-rev.com/dragon.png
Delete your current background then import this new one. Hope that works for you.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

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

Re: Background image not saving in stand alone

Post by jacque » Sat Jan 26, 2013 8:36 pm

What format is the original image? A different one might work. I.e., if it's a png, try a jpg or a bmp. That might work.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

magice
Posts: 457
Joined: Wed Mar 18, 2009 12:57 am

Re: Background image not saving in stand alone

Post by magice » Sat Jan 26, 2013 9:47 pm

jacque wrote:What format is the original image? A different one might work. I.e., if it's a png, try a jpg or a bmp. That might work.
I have tried 7 different images of all three formats.

magice
Posts: 457
Joined: Wed Mar 18, 2009 12:57 am

Re: Background image not saving in stand alone

Post by magice » Sat Jan 26, 2013 9:59 pm

Simon wrote:OK, so I took a look at it and there is something very wrong with that image.
Turning its visibility on/off does nothing.
I exported the background and saved it as a new file then imported the new image and it is working for me in the standalone (LC 4.6).
http://www.philmrev.on-rev.com/dragon.png
Delete your current background then import this new one. Hope that works for you.

Simon
Tried it. same thing. It has to be something that the older IDE is doing to the image. I copied the stack with your png into that same
dropbox folder if you want to compare it now that it has gone through the older IDE. BTW the backgroundPattern of each card is set to the image, so turning the actual image visibility off will look no different. the card background will show through and is identical.

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

Re: Background image not saving in stand alone

Post by Mark » Sun Jan 27, 2013 2:31 am

Hi,

I'd say the original image file is corrupt or in a format that can't be read by LiveCode 5.5.x. Opening the image in GIMP, converting it to RGB and back to indexed before saving it as a GIF again should solve it. Somehow, it loses a few kilobytes in the process. Import it as a control, don't use it as a background pattern.

Kind regards,

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

sturgis
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1685
Joined: Sat Feb 28, 2009 11:49 pm

Re: Background image not saving in stand alone

Post by sturgis » Mon Jan 28, 2013 4:32 pm

Hey magice,
I may have an option for you and the library, if you're interested contact me at this address: Ym9ubm1pa2VAZ21haWwuY29t (use base64decode to revert it to an email address)

magice
Posts: 457
Joined: Wed Mar 18, 2009 12:57 am

Re: Background image not saving in stand alone

Post by magice » Mon Jan 28, 2013 5:46 pm

sturgis wrote:Hey magice,
I may have an option for you and the library, if you're interested contact me at this address: Ym9ubm1pa2VAZ21haWwuY29t (use base64decode to revert it to an email address)
Will do.

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Background image not saving in stand alone

Post by Simon » Tue Jan 29, 2013 12:56 am

Hey what great fun!
I wonder what we can get away with?

VGhlcmUgd2FzIGEgeW91bmcgbWFuIG5hbWVkIE1pbGxlcgpXYXMga25vd24gdG8gaGF2ZSBx
dWl0ZSB0aGUgcGlsbGFyCk9uIHRoaXN0bGUgc3RyZWV0IGhlJ2QgbWVldAp0byBidWlsZCBz
b21ldGhpbmcgc3dlZXQKQW4gYXBwIHRoYXQgbWFrZXMgYXBwcyBtb3JlIGtpbGxlcg==
:D
Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Post Reply