Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: MacBook and JEDI-SDL v1.0

  1. #1

    MacBook and JEDI-SDL v1.0

    Hi all,
    One of the guys on the JEDI-SDL mailing list ( Simon Rushton ) has lent me a brand new MacBook for a month to try to make sure that JEDI-SDL v1.0 and MacOS X work together with as little hassle as possible.

    I have to give this baby back before I fly out to Australia on December the 9th so the plan is to get JEDI-SDL working and also test out a few games with it once it's all set-up. For a small fee I may be convinced to compile other people's games as well ;P.

    This post is being made from the MacBook in question, via the Safari browser.
    <br /><br />There are a lot of people who are dead while they are still alive. I want to be alive until the day I die.<br />-= Paulo Coelho =-

  2. #2

    MacBook and JEDI-SDL v1.0

    Woo hoo, got my first MacOS X JEDI-SDL app up and running using XCode.

    If anyone can tell me how to grab a screen shot on MacOS X, I would post it here.
    <br /><br />There are a lot of people who are dead while they are still alive. I want to be alive until the day I die.<br />-= Paulo Coelho =-

  3. #3

    MacBook and JEDI-SDL v1.0



    Here is a work in progress screen shot. I think the next thing to do is to create some XCode template projects as is really is simple to get your project working under MacOS X once you know where all the bits go.
    <br /><br />There are a lot of people who are dead while they are still alive. I want to be alive until the day I die.<br />-= Paulo Coelho =-

  4. #4

    MacBook and JEDI-SDL v1.0

    So I guess you figured out how to use Grab... sorry, I did not get to you in time!

    Looks like you have done a mighty fine job though so well done!

    I keep looking at the screen shot trying to remove the game window and look behind it at your XCode setup! :lol:

  5. #5
    Co-Founder / PGD Elder WILL's Avatar
    Join Date
    Apr 2003
    Location
    Canada
    Posts
    6,107
    Blog Entries
    25

    MacBook and JEDI-SDL v1.0

    Hey, you did it Dom! Nice work.

    Any major changes to the JEDI-SDL libraries that you can predict after this?
    Jason McMillen
    Pascal Game Development
    Co-Founder





  6. #6

    MacBook and JEDI-SDL v1.0

    Maybe you can tell me some more things about MacOS X...

    I can run the application without any problems from the command line, but how do I
    1. Assign an Icon to my application
    2. Allow it to run via double click from within Finder? Currently if I double click the executable from within Finder it tells me the application ended unexpectedly. While from the command line it's fine.
    <br /><br />There are a lot of people who are dead while they are still alive. I want to be alive until the day I die.<br />-= Paulo Coelho =-

  7. #7

    MacBook and JEDI-SDL v1.0

    Quote Originally Posted by WILL
    Hey, you did it Dom! Nice work.

    Any major changes to the JEDI-SDL libraries that you can predict after this?
    No major changes to JEDI-SDL. Currently it compiles with 2 warnings, but these can be IFDEFed I think. The major hassle was trying to get the SDLMain issue sort. But that turned out to be super simple Add SDL.h and SDLMain.m to the project file and everything compiles and runs. Easy once you know how .

    Once we have some XCode project templates it will be super easy for any new developers to start using JEDI-SDL on MacOS X.
    <br /><br />There are a lot of people who are dead while they are still alive. I want to be alive until the day I die.<br />-= Paulo Coelho =-

  8. #8

    MacBook and JEDI-SDL v1.0

    OK... so here is what you have to do...

    1- Create a directory and call it YourGameName.app
    2- It will change appearance st away
    3- Right click on it and select Show Package Contents
    4- In the open directory create a directory called Contents
    5- Open Contents up and create two directories in there: MacOS and Resources
    6- Stick the Game executable under MacOS
    7- All the images and music used in the game should go under Resources
    8- In Contents add a text file called PkgInfo with the word APPL in it
    9- In Contents add a text file called Info.plist this file should contain
    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http&#58;//www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
    	<key>CFBundleDevelopmentRegion</key>
    	<string>English</string>
    	<key>CFBundleExecutable</key>
    	<string>Execuable Name as in MacOS</string>
    	<key>CFBundleGetInfoString</key>
    	<string>Copyrights © Your Company - 2006.</string>
    	<key>CFBundleIconFile</key>
    	<string>your application icon.icns</string>
    	<key>CFBundleIdentifier</key>
    	<string>com.yourcompany.yourgamename</string>
    	<key>CFBundleInfoDictionaryVersion</key>
    	<string>6.0</string>
    	<key>CFBundleName</key>
    	<string>Yourgamename as used in yourgamename.app</string>
    	<key>CFBundlePackageType</key>
    	<string>APPL</string>
    	<key>CFBundleShortVersionString</key>
    	<string>0.1</string>
    	<key>CFBundleSignature</key>
    	<string>pick a signiture</string>
    	<key>CFBundleVersion</key>
    	<string>Your game name Mac OS X Intel v0.1</string>
    	<key>LSHasLocalizedDisplayName</key>
    	<false>
    	<key>NSPrincipalClass</key>
    	<string>SDLApplication</string>
    </dict>
    </plist>
    10- you need to create yourgame.icns and place it in the Resources directory.
    11- and finally right click on the yourgame.app and select get info, do the same for your created yourgame.icns, copy the image from the icns file in the top left hand corner of the dialog and paste it onto the image on the dialog from yourgame.app.

    If this does not make any sense, I think I need to talk you through it over an im session.

  9. #9

    MacBook and JEDI-SDL v1.0

    for some reason the xml, document type and plist are loosing all of their attributes in a the post... not sure what to do! :evil:

  10. #10
    Co-Founder / PGD Elder WILL's Avatar
    Join Date
    Apr 2003
    Location
    Canada
    Posts
    6,107
    Blog Entries
    25

    MacBook and JEDI-SDL v1.0

    Hmm... try disabling HTML in your post... if you leave the BBCode then it should still display as a Code block, but without the HTML parser getting in the way.
    Jason McMillen
    Pascal Game Development
    Co-Founder





Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •