Standalone wont run in Windows

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
Russell
Posts: 7
Joined: Sun Aug 19, 2007 2:23 pm

Standalone wont run in Windows

Post by Russell » Mon Sep 10, 2007 8:53 pm

I have designed a fairly complex game originally in HyperCard and now fully functional and enriched in Studio. The Mac OSX standalone works superbly. The Windows standalone opens in Windows but that is as far as it goes. The stack was built around a single card with many buttons linked to lengthy handlers and sub-handlers.

I had expected Revolution to interpret all that it is in Mac and make it work in Windows. Is this too naive? Are there some basic routines that I should check or avoid before savind as a Windows Standalone.

All comments appreciated

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

Post by Klaus » Mon Sep 10, 2007 9:32 pm

Hi Russel,

very quick guess:

Do you have some platform specific characters in your scripts like:
not equal -> ≠
smaller/greater than -> ≤ ≥
etc?

These will not work on windows!
If yes, simply replace them with "<>", "<=" etc...


Regards

Klaus

Russell
Posts: 7
Joined: Sun Aug 19, 2007 2:23 pm

Post by Russell » Mon Sep 10, 2007 9:42 pm

Hi Klaus

Thanks for replying so soon.

My scripts are riddled with those characters and I had no idea they might cause problems in Windows. I will set about changing them and let you know.

Thanks

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

Post by Klaus » Mon Sep 10, 2007 9:43 pm

Hi Russel,

looks like that was a good guess :-)


Best from germany

Klaus

Russell
Posts: 7
Joined: Sun Aug 19, 2007 2:23 pm

Post by Russell » Tue Sep 11, 2007 5:29 pm

I'm afraid it still wont run perhaps we go any further, can you firm whether 'comment' marks ie '--' are also a problem in Windows. the reason I point it out is that I have retained a lot of script in the handlers that used to make it work across a Network in Hypercard and thought it would be useful later.

Also, part of the Start-up script loads over 500 lines of dictionary terms from a field into a global container... any problems re field size? Just a thought.

Regards

Russell

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

Post by Klaus » Tue Sep 11, 2007 5:47 pm

Hi Russel,

-- shouldn't be a problem, this is also the comment sign in Rev and is crossplatform

Regarding field size: This can be up to 4 GB :-)


Best

Klaus

Russell
Posts: 7
Joined: Sun Aug 19, 2007 2:23 pm

Post by Russell » Tue Sep 11, 2007 8:01 pm

Thanks Klaus. Here is my next thought... The game opens by 'Open File' instructions and 'Reads' for so many lines which are then inserted in fields. On closeStack it writes back to these files with '&return' instructions. I noticed in the Windows standalone version that these files were not created on opening as it does on the Mac. All other scripts seem to be compatible.

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

Post by Garrett » Tue Sep 11, 2007 8:16 pm

What version of Windows? By chance are you using Vista?

Russell
Posts: 7
Joined: Sun Aug 19, 2007 2:23 pm

Post by Russell » Tue Sep 11, 2007 8:22 pm

Nope... XP

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

Post by Klaus » Tue Sep 11, 2007 8:41 pm

Where are you saving these files on Windows?
Sounds like a permission problem.

Russell
Posts: 7
Joined: Sun Aug 19, 2007 2:23 pm

Post by Russell » Tue Sep 11, 2007 9:03 pm

As someone not familiar with Windows, I have all of the Standalone files created by Rev including the externals folder (empty) and the exe in one folder. I double click exe, the Game interface opens (although not a patch on how it looks in Mac) and I still have to work on its resolution size, and thats it really. A couple of buttons with minor show and hide scripts seem to work. I have just gone back through the scripts and taken out a character that was used in HC to make scripts more readable. I cant seem to find the keyboard equivalent now but I note that Rev uses \. I will give that a go and see what happens.

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

Post by Klaus » Tue Sep 11, 2007 9:24 pm

Hi Russel,

so your app folder is probably located in the "Application" folder on the win machine?

If the current user (the one who doubleclicks your app) does not have "Admin" privileges, then he cannot write to this folder.

You could check this by checking "the result" immediately after you (try) to write your file(s):

...
put whatsoever into url("file:filename.txt")
## or whatever syntax you use for writing files
answer the result
...

If the writing was successfull "the result" is empty, otherwise it will contain a clue to what went wrong.

And yes, the backslash "\" is the crossplatform equivalent to the Macs "¬" (Alt-Shift-1)


Best

Klaus

Russell
Posts: 7
Joined: Sun Aug 19, 2007 2:23 pm

Post by Russell » Wed Sep 12, 2007 3:28 pm

Hi Klaus

It works!

I went through the entire script, even those parts that were inactive and removed all non-windows characters including atl-shift-1 and it transfers beautifully. It also creates the files used for reloading fields.

Thanks for all your help!

Regards

Russell

Post Reply