Standalone wont run in Windows
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Standalone wont run in Windows
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
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
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
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
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.
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.
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
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