Problems with MacOS

Previous topic - Next topic

t-spy

Can anyone upload one working app for Mac (just a MOUSEWAIT) to compare with mine?. Just for testing.

doimus

Here it is. Works on my Mac.

(Sorry for the 4MB attach.)

[attachment deleted by admin]

ampos

That's driving me crazy too...

I have /mygame in GLBasic. Inside there is Contents, that is the mac dir.

I copied the /content dir to the Mac. Now I have in the mac desktop a dir called /content, with the following files:

/contents
.../framework
...info.plist
.../Macos
......MacOSX
.../resources

I place my media.sbx file inside /MacOS

I double click in the MacOSX file and it returns the error "media.sbx" file not found.

SO I open terminal and type chmod +x macosx

Now I type "./macosx" and my game runs.

But I double click in the MacOSX icon, the game fails again with the "no media.sbx file found" error.

What should I do to make the game mouse-clickable?
check my web and/or my blog :D
http://diniplay.blogspot.com (devblog)
http://www.ampostata.org
http://ampostata.blogspot.com
I own PC-Win, MacBook 13", iPhone 3G/3GS/4G and iPAC-WinCE

MrTAToad

Have you tried using something like "./MacOS/media.sbx" ?

ampos

Quote from: MrTAToad on 2011-Feb-12
Have you tried using something like "./MacOS/media.sbx" ?

I have tried all the directories inside /content folder and no luck.

If the media.sbx file is in the same directory as macosx exe file, running it from terminal works, but not double clicking in the macosx icon.
check my web and/or my blog :D
http://diniplay.blogspot.com (devblog)
http://www.ampostata.org
http://ampostata.blogspot.com
I own PC-Win, MacBook 13", iPhone 3G/3GS/4G and iPAC-WinCE

MrTAToad

Write a small program that outputs the current directory to the screen when double-clicking on the icon.  It will be interesting to see what it thinks the directory is...

The other thing to try would be SETCURRENTDIR

ampos

Nobody has ever created a game for MacOS?
check my web and/or my blog :D
http://diniplay.blogspot.com (devblog)
http://www.ampostata.org
http://ampostata.blogspot.com
I own PC-Win, MacBook 13", iPhone 3G/3GS/4G and iPAC-WinCE

MrTAToad

#22
Oh yes : http://www.un-map.com/finishedprograms.html

Unfortunately I can no longer do anything Mac wise...  Moru or Hiru would be the ones to help - but I dont think they are around at the moment.

However, I put all my media in Media directory in the base of the .app directory, and access files using Media/xxxx

ampos

At last!!!!!

PART 1
- Open Terminal window
- navigate to the folder where Game is saved ("ls" to get a dir of files/folders, and "cd" to change directory/folder)
- type "cd /Contents/MacOS"
- type "chmod +x MacOSX"
- close terminal
PART 2
- In Finder, create a folder called "GAME"
- Place the file "media.sbx" or /media folder inside this folder
- Place the folder "content" inside this folder
- Rename "GAME" folder to "GAME.app"
- Click in the "GAME.app" folder to run the game

PART 1 is not always necesary.
check my web and/or my blog :D
http://diniplay.blogspot.com (devblog)
http://www.ampostata.org
http://ampostata.blogspot.com
I own PC-Win, MacBook 13", iPhone 3G/3GS/4G and iPAC-WinCE

Kitty Hello

Usually, you have an .app directory in GLBasic, and that's what you need for the Mac. There might be problems with having to chmod +x the file.
If anyone can see what file attributes are changed after the chmod+x on an ntfs drive, I might change that internally.

ampos

Yeah, but this folder.app is so full of things :D

I will check about the file attributes later.
check my web and/or my blog :D
http://diniplay.blogspot.com (devblog)
http://www.ampostata.org
http://ampostata.blogspot.com
I own PC-Win, MacBook 13", iPhone 3G/3GS/4G and iPAC-WinCE

erico

Gernot also said in another post that ziping the file before transferring to MAC keep the flags intact.
It works great for me.