Unofficial AGS Runtime 3.2.1 for Mac OS X - Alpha 1

Started by edmundito, Mon 23/05/2011 01:55:00

Previous topic - Next topic

edmundito

Okay first of all:

This is an unofficial, incomplete, and potentially unstable version of the AGS runtime. This is intended for assesing what's broken and what needs to change for the Mac OS X version. Please don't distribute your games with this.

Thanks for your attention. I've managed to take Steve McCrea's old mac code, combined with the build process that bero created for the one of the AGS linux builds.

The AGS Runtime is the application that runs AGS games. It is not the editor. This is the very second Mac version of the runtime ever, but this one is compatible with games created in 3.2.1. Games actually run suprisingly well with it, and there are a few kinks that need to be worked out before there is an official mac version around.

Known Issues :(
- Not very user friendly method to run a game
- No graphical game setup application exists. To modify game settings, you can
open the acsetup.cfg file in a text editor and change values manually
- No CD Audio Support
- No Video Support
- No Midi Support
- No Plug-in Support
- Right clicking may only work on USB mouses. For trackpads and Bluetooth mice, use Ctrl+Click instead
- Certain keyboard characters are messed up. For example, backspace and space don't work and throw strange characters!
- Switching away from the app and back may cause mouse sync issues.
- System cursor is always visible
- Supports Mac OS X 10.6. It's unknown how what other versions it supports at this time.
- Unknown on whether it's Universal application
- CPU Usage is kind of high (may just be AGS in general)
- It's 32-bit. 64-bit support is not possible at this time
- Allegro uses old graphics libraries. You may see this message: "Warning once: This
application, or a library it uses, is using NSQuickDrawView, which has been deprecated. Apps should cease use of QuickDraw and move to Quartz."

How You can Help :)
There are a few questions that need to be answered:
- This version was built against OS X 10.6. Does it work with 10.5? Does it work with 10.4? Does it work with 10.3?
- I'm not sure if this is a "Universal" application. It works with Intel macs, but can it run on PowerPC macs as well?
- What else aside from what was mentioned in the known issues broken?
- Does right click work with a USB mouse? (Right now it does not work with trackpads or Bluetooth mice. You need to do Ctrl+Click instead).

If you're interested in testing this, you can download it at:
http://www.losmunditos.com/downloads/ags/ags-runtime_321-osx-alpha1.zip

Where's the source code?!
It's coming up soon. I'm syncing up my changes with the linux ags folks so we can have a consistent build process and all that stuff. Once I'm able to fully submit all my changes, I will come up with a guide on how to get and build this for Mac. :)

abstauber

Sweeet!
Great that this is being developed again, thanks a lot!

After a quick try
Code: ags

dyld: Library not loaded: liballeg.4.4.dylib
  Referenced from: /Users/dirk/Desktop/ags-runtime_321-osx-alpha1/./ags
  Reason: image not found
Trace/BPT trap



Kweepa

Thanks for taking this on!
Now I don't have to feel so guilty for abandoning it. :=

If you don't know whether it's a universal app, that means it isn't. I did a bunch of endian-swapping at a low level, wrapped in a #define flag, so if it works on an Intel mac, that flag isn't set.
I did have video support, but it was a little bit flaky if I remember correctly.
To get rid of the system cursor I had to make some changes to Allegro.
I had plugin support working. I don't see why it wouldn't still work, unless you specifically disabled it for some reason. Obviously the plugins need to be recompiled on Mac. I had one or two of mine working.
CPU usage is still high? Augh! That was a pain. I remember trying to fix this with Sleep()s. I thought it might have been because when running script I had to look up every variable access in a map. But I guess not, since you don't do that on Intel.

Good luck!
Still waiting for Purity of the Surf II

edmundito

@abstauber: thanks! I see where I messed up. I'll look into it, but it looks like people may have troubles for now unless they build and install allegro on their computer. :( I'll take care of it tonight.

@Kweepa: Ah so that's how you solved the system cursor problem. If you got any insight on how to do it feel free to send me a PM with some info! I did disable the plug-in code because everything around it changed over time so it just needs to be migrated to the update plugin load system, and I wanted to get this built asap. The plug-in code upgrade is next on my list. This is really a bare bones first pass build of your version basically, so there's quite a bit to look into. My plan is that once I get thing working again and it's available for download then I hope we can attract more people to contribute to it.

edmundito

@abstauber: Update, I uploaded a new version that includes the allegro library. Let me know if that works!

abstauber

#5
I really feel like a noob, but still can't get it to run, I'm on Intel 10.6 btw.

Code: ags

dirks-computer:ags-runtime_321-osx-alpha1 dirk$ ls -la
total 221680
drwxr-xr-x  11 dirk  staff        374 25 Mai 17:45 .
drwx------  18 dirk  staff        612 25 Mai 17:45 ..
-rwxr-xr-x   1 dirk  staff        294 22 Mai 18:20 acsetup.cfg
-rwxr-xr-x   1 dirk  staff    2038780 22 Mai 18:43 ags
-rware-are--   1 dirk  staff        315 22 Mai 20:36 changes.txt
-rwxr-xr-x   1 dirk  staff  110460416 22 Mai 19:31 jumpnrun_ascii.exe
-rwxr-xr-x   1 dirk  staff        366 17 Apr  2010 level1.txt
-rwxr-xr-x   1 dirk  staff     924452 12 Mai 01:08 liballeg.4.4.1.dylib
-rware-are--    1 dirk  staff       2502 22 Mai 20:35 readme.txt
drwxr-xr-x  11 dirk  staff        374 31 Mär 19:51 tilemaps
-rwxr-xr-x   1 dirk  staff      53279 22 Mai 19:31 winsetup.exe
dirks-computer:ags-runtime_321-osx-alpha1 dirk$ ./ags jumpnrun_ascii.exe 
dyld: Library not loaded: liballeg.4.4.dylib
  Referenced from: /Users/dirk/Desktop/ags-runtime_321-osx-alpha1/./ags
  Reason: image not found
Trace/BPT trap
dirks-computer:ags-runtime_321-osx-alpha1 dirk$ 



edit: SMF drives me crazy, the filemask of course is not -rw-are--are--  but feel free to write  "read-write,read, read" on this board :o

javierbds

Sorry for the late reply but I´m interested in an OS X port too.

Check the exact version of the library: what you should do is create a link with the "official" name used by ags to the last version you have, like : /usr/local/lib/libfuse.dylib -> libfuse.2.dylib.

With that said I find I miss a lot of the dyn libs used! (will look for them and retry)
... /usr/local/lib/libogg.0.dylib ...

jbds$ otool -L ags
ags:
   /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa (compatibility version 1.0.0, current version 15.0.0)
   liballeg.4.4.dylib (compatibility version 4.4.0, current version 4.4.1)
   /usr/local/lib/libogg.0.dylib (compatibility version 8.0.0, current version 8.1.0)
   /usr/local/lib/libvorbis.0.dylib (compatibility version 5.0.0, current version 5.5.0)
   /usr/local/lib/libtheora.0.dylib (compatibility version 4.0.0, current version 4.10.0)
   /usr/local/lib/libvorbisfile.3.dylib (compatibility version 7.0.0, current version 7.4.0)
   /usr/X11/lib/libfreetype.6.dylib (compatibility version 13.0.0, current version 13.0.0)
   /usr/local/lib/libmpg123.0.dylib (compatibility version 30.0.0, current version 30.5.0)
   /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.9.0)
   /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.2.10)
   /usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version 227.0.0)
   /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices (compatibility version 1.0.0, current version 44.0.0)
   /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 550.42.0)
   /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices (compatibility version 1.0.0, current version 38.0.0)
   /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation (compatibility version 300.0.0, current version 751.53.0)
   /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit (compatibility version 45.0.0, current version 1038.35.0)



edmundito

Thanks! I'm trying to get back into this and push the fixes I made back to the world. I will run a few tests over here and provide a new downloadable pretty soon. Looks like for now a lot of the libraries will have to be included with the download until I'm able to provide a better runtime.

Radiant

Is this backwards compatible? E.g. if I have an AGS 2.7 game, would it run under this runtime?

SMF spam blocked by CleanTalk