English Amiga Board


Go Back   English Amiga Board > Support > support.OtherUAE

 
 
Thread Tools
Old 02 January 2012, 00:17   #1
kire_online
Registered User
 
kire_online's Avatar
 
Join Date: Oct 2011
Location: Sydney
Posts: 119
E-UAE on Mac - App Bundle with embedded ADF

I've been trying to create an App Bundle for Mac that will launch a game automatically without messing around with configs or Hi-Toro to switch ADF files - basically allow a typical mac user to launch Amiga games easily.

I've gotten as far as creating a copy of the E-UAE.app to Arkanoid.app then copying a default.uaerc kick.rom and arkanoid.adf into the MacOS folder of the bundle. When I launch uae from the command prompt the game launches, I can see in the terminal window that uae finds default.uaerc and knows what to do from there. However when I launch Arkanoid.app by double clicking, it just fires up E-UAE with the default behaviour , ie, bring up dialog box prompting for a config file.

I don't know what I'm missing, is there something in the info.plist I need to add to override this and tell Arkanoid.app to launch uae with default.uaerc contained in the bundle ?
kire_online is offline  
Old 02 January 2012, 10:24   #2
Pyromania
Moderator
 
Pyromania's Avatar
 
Join Date: Jan 2002
Location: Chicago, IL
Posts: 3,386
Good luck, that would be awesome if you could get this to work. Where can I find the latest build of E-UAE for Mac OS X Intel?
Pyromania is offline  
Old 02 January 2012, 11:25   #3
kire_online
Registered User
 
kire_online's Avatar
 
Join Date: Oct 2011
Location: Sydney
Posts: 119
I just grabbed it from here;

http://web.mac.com/nexusle/E-UAE/E-UAE.html

The Universal build works fine for me on OS X 10.7.

You can also grab it off the Amiga Forever DVD.
kire_online is offline  
Old 02 January 2012, 13:17   #4
dreamkatcha
I've got a new byline
 
dreamkatcha's Avatar
 
Join Date: Mar 2002
Location: Manchester, UK
Posts: 1,219
I haven't got the answer to your question, but just wanted to add that I think it's a great idea too, and would love to try it out if you get it working.

The worst thing about Amiga emulation on the Mac is all the tweaking you have to do to get games to run and look like the originals did (and some of them you can never get right e.g. off-centre screens etc). If you could sidestep all that, Amiga games would be fun to play again.
dreamkatcha is offline  
Old 02 January 2012, 13:37   #5
kire_online
Registered User
 
kire_online's Avatar
 
Join Date: Oct 2011
Location: Sydney
Posts: 119
Ultimately, it would be cool to have an Mac OS X App that can bundle up a game for you by allowing you to select the rom, adf(s), screen resolution, chipset, icon, etc, then it spits out an app bundle that runs stand-alone.

But I'll persevere in just getting a hand crafted app bundle going just to start with.

I read somewhere that PS3 wireless controllers work natively on Mac OS X 10.7, haven't tried this yet but that would also be cool with Amiga games via E-UAE. Maybe one day I'll get a couple of the el-cheapo PS3 Sixaxis wireless controllers to rip out the insides and transplant into the Battlestation II.

Last edited by kire_online; 02 January 2012 at 13:42.
kire_online is offline  
Old 03 January 2012, 02:16   #6
rue
Registered User
 
Join Date: Dec 2011
Location: UK
Posts: 15
What's being discussed here sounds pretty close to the kind of experience that boxer presents for MS-DOS titles. It really works well and I'd be very happy to see a similar kind of approach for Amiga emulation under OS X.

If you're curious have a look at http://www.boxerapp.com
rue is offline  
Old 03 January 2012, 02:40   #7
xaind
Registered User
 
Join Date: Apr 2006
Location: Sydney / Australia
Posts: 113
E-UAE is coded to detect a launch from the Finder (as opposed to the command line) and behave in one of two ways:

1. If the launch was trigger by the user double-clicking a uaerc file, load that configuration file

otherwise

2. Open a dialog to request a uaerc file.

I actually wrote that code. The only way to get it to behave the way you want would be to create a modified build. I could certainly do that for you, if you like.
xaind is offline  
Old 03 January 2012, 17:28   #8
Dic_Ray
Registered User
 
Join Date: Jul 2004
Location: Germany
Posts: 105
Oh, yes I would like this option too. Btw what is with PUAE? I guess it's more actual, isn't it? 2. Btw ... wish us all a great 2012 till everything changes, perhaps!?
Dic_Ray is offline  
Old 03 January 2012, 23:09   #9
kire_online
Registered User
 
kire_online's Avatar
 
Join Date: Oct 2011
Location: Sydney
Posts: 119
I've successfully built a bundle using an app named platypus and a simple launcher bash script. It works well, I just launch uae with -f option to specify config file in the Resources folder of the bundle. I think the only dependancy is SDL which needs to be installed first, otherwise the bundle is self-contained. I'm not going to do much more on this for a few days now, my macbook air touchpad is playing up, seems to be stuck on click every now and then and becomes unusable. I had XCode installed and thought it would be a good way to learn it by writing a simple app to bundle games up, exactly like Boxer, I tried this and it's awesome, even handles DOS audio drivers, etc. I'll try and post a link to the Arkanoid.app bundle I've created so you guys can try it out and provide feedback.
An alternate build would be cool, it would do away with the need for a launcher, may I suggest it looks for a kick.rom, default.uaerc in the Resources folder of the bundle.

Last edited by kire_online; 03 January 2012 at 23:40.
kire_online is offline  
Old 04 January 2012, 13:28   #10
nexusle
Banned
 
Join Date: Jul 2010
Location: Earth
Age: 46
Posts: 500
Put the "Frameworks" Folder in the E-UAE package in your package under "Contents". Then it should work.

Can you post your bundle?

Quote:
Originally Posted by xaind View Post
I could certainly do that for you, if you like.
Yes please!!! :-)

Last edited by prowler; 04 January 2012 at 22:10. Reason: Back-to-back posts merged.
nexusle is offline  
Old 14 January 2012, 04:54   #11
kire_online
Registered User
 
kire_online's Avatar
 
Join Date: Oct 2011
Location: Sydney
Posts: 119
Macbook air is fixed now and I'm back in action, here is the Arkanoid game I bundled up, it works even on a clean mac with nothing installed;

<Link Removed; contains Kickstart ROM image - prowler>

If you want to tweak the config, just do a show package contents, and edit the Contents/Resources/default.uaerc file. I've set it to full screen with 640x480 and scanlines which looks good on the macbook air 13".

I'd like to see an app like boxer than can bundle up Amiga games like this for easy launching on the mac, it would be awesome.

NOTE:
To quit Arkanoid, just type fn-F11-Q

Last edited by prowler; 25 August 2012 at 00:15. Reason: Removed link.
kire_online is offline  
Old 14 January 2012, 15:13   #12
dreamkatcha
I've got a new byline
 
dreamkatcha's Avatar
 
Join Date: Mar 2002
Location: Manchester, UK
Posts: 1,219
Thanks for all your hard work on this. It seems to run fine despite struggling with plenty of obsolete/unknown config entries. The screen is nicely centred and looks great with scanlines turned on.

Here's the output from my terminal window...

E-UAE 0.8.29-WIP4
Build date: Mar 29 2007 18:51:34
SDLGFX: Initialized.
SDLGFX: Using SDL version 1.2.11.
SDLGFX: Display is 32 bits deep.
SDLGFX: Found screenmode: 1280x1024.
SDLGFX: Found screenmode: 1440x900.
SDLGFX: Found screenmode: 1280x960.
SDLGFX: Found screenmode: 1344x840.
SDLGFX: Found screenmode: 1360x768.
SDLGFX: Found screenmode: 1280x800.
SDLGFX: Found screenmode: 1152x870.
SDLGFX: Found screenmode: 1024x768.
SDLGFX: Found screenmode: 1024x640.
SDLGFX: Found screenmode: 832x624.
SDLGFX: Found screenmode: 800x600.
SDLGFX: Found screenmode: 848x480.
SDLGFX: Found screenmode: 800x500.
SDLGFX: Found screenmode: 640x480.
Found 1 joystick(s)
Found quartz raw keyboard mapping
Using raw keymap
Opening cfgfile '/Users/Rob/default.uaerc'...failed
Opening cfgfile 'default.uaerc'...okay.
unknown config entry: 'config_image=/Users/kire/Pictures/Computers/amiga_500_03.png'
unknown config entry: 'sound_max_buff=8272'
unknown config entry: 'win32.rom_path=.\'
unknown config entry: 'win32.floppy_path=.\'
unknown config entry: 'win32.hardfile_path=.\'
unknown config entry: 'win32.middle_mouse=false'
unknown config entry: 'win32.logfile=false'
unknown config entry: 'win32.map_drives=false'
unknown config entry: 'win32.serial_port=none'
unknown config entry: 'win32.parallel_port=none'
unknown config entry: 'win32.active_priority=0'
unknown config entry: 'win32.inactive_priority=0'
unknown config entry: 'win32.inactive_nosound=false'
unknown config entry: 'win32.inactive_pause=false'
unknown config entry: 'win32.iconified_priority=-1'
unknown config entry: 'win32.iconified_nosound=false'
unknown config entry: 'win32.iconified_pause=false'
unknown config entry: 'win32.ctrl_f11_is_quit=false'
unknown config entry: 'win32.midiout_device=0'
unknown config entry: 'win32.midiin_device=0'
unknown config entry: 'win32.no_overlay=false'
unknown config entry: 'win32.aspi=false'
unknown config entry: 'win32.soundcard=0'
unknown config entry: 'win32.cpu_idle=0'
unknown config entry: 'floppy0sound=1'
unknown config entry: 'floppy1sound=1'
unknown config entry: 'floppy2sound=1'
unknown config entry: 'floppy3sound=1'
unknown config entry: 'floppy_volume=75'
unknown config entry: 'sound_filter=off'
obsolete config entry 'comp_midopt'
obsolete config entry 'comp_lowopt'
obsolete config entry 'avoid_cmov'
obsolete config entry 'avoid_dga'
obsolete config entry 'avoid_vid'
unknown config entry: 'gfx_display=0'
unknown config entry: 'gfx_filter=no'
unknown config entry: 'gfx_filter_vert_zoom=0'
unknown config entry: 'gfx_filter_horiz_zoom=0'
unknown config entry: 'gfx_filter_vert_offset=0'
unknown config entry: 'gfx_filter_horiz_offset=0'
unknown config entry: 'gfx_filter_scanlines=0'
unknown config entry: 'gfx_filter_scanlinelevel=0'
unknown config entry: 'gfx_filter_scanlineratio=17'
Opening cfgfile '../Resources/default.uaerc'...okay.
unknown config entry: 'win32.rom_path=.\'
unknown config entry: 'win32.floppy_path=.\'
unknown config entry: 'win32.hardfile_path=.\'
unknown config entry: 'win32.middle_mouse=false'
unknown config entry: 'win32.logfile=false'
unknown config entry: 'win32.map_drives=false'
unknown config entry: 'win32.serial_port=none'
unknown config entry: 'win32.parallel_port=none'
unknown config entry: 'win32.active_priority=0'
unknown config entry: 'win32.inactive_priority=0'
unknown config entry: 'win32.inactive_nosound=false'
unknown config entry: 'win32.inactive_pause=false'
unknown config entry: 'win32.iconified_priority=-1'
unknown config entry: 'win32.iconified_nosound=false'
unknown config entry: 'win32.iconified_pause=false'
unknown config entry: 'win32.ctrl_f11_is_quit=false'
unknown config entry: 'win32.midiout_device=0'
unknown config entry: 'win32.midiin_device=0'
unknown config entry: 'win32.no_overlay=false'
unknown config entry: 'win32.aspi=false'
unknown config entry: 'win32.soundcard=0'
unknown config entry: 'win32.cpu_idle=0'
obsolete config entry 'comp_midopt'
obsolete config entry 'comp_lowopt'
obsolete config entry 'avoid_cmov'
obsolete config entry 'avoid_dga'
obsolete config entry 'avoid_vid'
Testing the RDTSC instruction ... done.
Calibrating TSC frequency...TSC frequency: 1834.190490 MHz
Found quartz raw keyboard mapping
Using raw keymap
SDLGFX: Added P96 mode: 640x480x32
SDLGFX: Added P96 mode: 640x480x8
SDLGFX: Added P96 mode: 800x600x32
SDLGFX: Added P96 mode: 800x600x8
SDLGFX: Added P96 mode: 1024x768x32
SDLGFX: Added P96 mode: 1024x768x8
SDLGFX: Added P96 mode: 1280x1024x32
SDLGFX: Added P96 mode: 1280x1024x8
SDLGFX: Added P96 mode: 1440x900x32
SDLGFX: Added P96 mode: 1440x900x8
SDLGFX: Added P96 mode: 1280x960x32
SDLGFX: Added P96 mode: 1280x960x8
SDLGFX: Added P96 mode: 1344x840x32
SDLGFX: Added P96 mode: 1344x840x8
SDLGFX: Added P96 mode: 1360x768x32
SDLGFX: Added P96 mode: 1360x768x8
SDLGFX: Added P96 mode: 1280x800x32
SDLGFX: Added P96 mode: 1280x800x8
SDLGFX: Added P96 mode: 1152x870x32
SDLGFX: Added P96 mode: 1152x870x8
SDLGFX: Added P96 mode: 1024x640x32
SDLGFX: Added P96 mode: 1024x640x8
SDLGFX: Added P96 mode: 832x624x32
SDLGFX: Added P96 mode: 832x624x8
SDLGFX: Added P96 mode: 848x480x32
SDLGFX: Added P96 mode: 848x480x8
SDLGFX: Added P96 mode: 800x500x32
SDLGFX: Added P96 mode: 800x500x8
Building CPU table for configuration: 68000
1866 CPU functions
Building CPU function table, 44736 opcodes (0 0 0).
Max CPUID level=6 Processor is GenuineIntel [PentiumPro]
JIT: Building compiler function table.
JIT: Supposedly 42108 compileable opcodes.
SDLGFX: Using single-buffered output.
SDL sound driver found and configured for 16 bits at 44100 Hz, buffer is 46 ms (8288 bytes).
reset at 0
PAL mode, 50Hz (h=227 v=312)
chipmem cleared
framewait overflow
Illegal instruction: 4e7b at 00fc0564 -> 00fc0582
SERIAL: period=372, baud=9600, hsyncs=16 PC=fc2234
Fastcard: mapped @$200000: 2MB fast memory
Card 1 (ZorroII) done.
PAL mode, 57Hz (h=227 v=273)
PAL mode, 50Hz (h=227 v=312)
Byte put to custom register DFF036 PC=0003026E
Byte put to custom register DFF036 PC=0003026E
Byte put to custom register DFF036 PC=0003026E
Byte put to custom register DFF036 PC=0003026E
Byte put to custom register DFF036 PC=0003026E
Byte put to custom register DFF036 PC=0003026E
Byte put to custom register DFF036 PC=0003026E
Byte put to custom register DFF036 PC=0003026E
Byte put to custom register DFF036 PC=0003026E
Byte put to custom register DFF036 PC=0003026E
DMACON: 7d0 INTENA: 4028 INTREQ: 264 VPOS: 0 HPOS: 0
COP1LC: 0006010a, COP2LC: 00000676 COPPTR: 0006010c
DIWSTRT: 3c81 DIWSTOP: 04c3 DDFSTRT: 0038 DDFSTOP: 00d0
BPLCON 0: 4200 1: 0000 2: 0000 3: 0c00 4: 0011
Average frame time: 19.757985 ms [frames: 10363 time: 204752]
SDLGFX: Initialized.
SDLGFX: Using SDL version 1.2.11.
SDLGFX: Display is 32 bits deep.
SDLGFX: Found screenmode: 1280x1024.
SDLGFX: Found screenmode: 1440x900.
SDLGFX: Found screenmode: 1280x960.
SDLGFX: Found screenmode: 1344x840.
SDLGFX: Found screenmode: 1360x768.
SDLGFX: Found screenmode: 1280x800.
SDLGFX: Found screenmode: 1152x870.
SDLGFX: Found screenmode: 1024x768.
SDLGFX: Found screenmode: 1024x640.
SDLGFX: Found screenmode: 832x624.
SDLGFX: Found screenmode: 800x600.
SDLGFX: Found screenmode: 848x480.
SDLGFX: Found screenmode: 800x500.
SDLGFX: Found screenmode: 640x480.
Found 1 joystick(s)
Found quartz raw keyboard mapping
Using raw keymap
Found quartz raw keyboard mapping
Using raw keymap
dreamkatcha is offline  
Old 15 January 2012, 12:37   #13
kire_online
Registered User
 
kire_online's Avatar
 
Join Date: Oct 2011
Location: Sydney
Posts: 119
I'll upload an "Amiga Games" pack that I've been putting together for the Mac, it's awesome. Still have a few issues, like key assignment for Pinball Fantasies etc, maybe someone can figure it out, can't launch the ball, and only both command keys work, but only left shift works, not the right It defaults to keyboard as joystick2, maybe I'll try using a PS3 wireless controller when I get one.

If someone else is more confident than I am with XCode, maybe we can take the source of Boxer https://github.com/alunbestor/Boxer and try and make an Amiga game packager using the same concept. What do you guys think ?
kire_online is offline  
Old 16 January 2012, 00:28   #14
roberthazelby
Amiga user since 1990
 
Join Date: Sep 2005
Location: Bristol, England
Age: 48
Posts: 365
Fantastic. I've tried to get decent Amiga emulation up and running on my Mac for years, but have never managed to get it running anywhere as smooth and as good looking as the settings in your app bundle have achieved.

Really impressive, and dead easy to set up for a different ADF.

The only thing I'm having issues with now is trying to make the correct edits to get my Xbox 360 Street Fighter IV pad working with it. It works brilliant with MAMEOSX, so it'd be nice to have it working with UAE.

Fantastic work!
roberthazelby is offline  
Old 16 January 2012, 13:35   #15
nexusle
Banned
 
Join Date: Jul 2010
Location: Earth
Age: 46
Posts: 500
You can provide just a template. Rename the rom file to "kick.rom" and the floppy file to "disk.adf" in config file. Than you can use your tamplate with any amiga game with only put the adf and rom image in it.
nexusle is offline  
Old 16 January 2012, 13:38   #16
nexusle
Banned
 
Join Date: Jul 2010
Location: Earth
Age: 46
Posts: 500
Quote:
Originally Posted by roberthazelby View Post
The only thing I'm having issues with now is trying to make the correct edits to get my Xbox 360 Street Fighter IV pad working with it
Change the joyport1 option from "kbd2" to "joy0" in the "default.uaerc". Than the first USB joystick/-pad is used
nexusle is offline  
Old 16 January 2012, 14:42   #17
roberthazelby
Amiga user since 1990
 
Join Date: Sep 2005
Location: Bristol, England
Age: 48
Posts: 365
Quote:
Originally Posted by nexusle View Post
Change the joyport1 option from "kbd2" to "joy0" in the "default.uaerc". Than the first USB joystick/-pad is used
Ah! I changed mine from kbd2 to joy1. Will give joy0 a go. I assumed the 0 in joy0 meant 'off/disabled'.

Thanks!
roberthazelby is offline  
Old 16 January 2012, 20:15   #18
Pyromania
Moderator
 
Pyromania's Avatar
 
Join Date: Jan 2002
Location: Chicago, IL
Posts: 3,386
Quote:
Originally Posted by kire_online View Post
Macbook air is fixed now and I'm back in action, here is the Arkanoid game I bundled up, it works even on a clean mac with nothing installed;

<Link Removed; contains Kickstart ROM image - prowler>

If you want to tweak the config, just do a show package contents, and edit the Contents/Resources/default.uaerc file. I've set it to full screen with 640x480 and scanlines which looks good on the macbook air 13".

I'd like to see an app like boxer than can bundle up Amiga games like this for easy launching on the mac, it would be awesome.

NOTE:
To quit Arkanoid, just type fn-F11-Q
This worked great on my Macbook Air i7 with 256GB SSD. Can you make a bundle with Shadow of the Beast please?

Last edited by prowler; 25 August 2012 at 00:16. Reason: Removed link in quote.
Pyromania is offline  
Old 16 January 2012, 21:50   #19
roberthazelby
Amiga user since 1990
 
Join Date: Sep 2005
Location: Bristol, England
Age: 48
Posts: 365
Quote:
Originally Posted by nexusle View Post
Change the joyport1 option from "kbd2" to "joy0" in the "default.uaerc". Than the first USB joystick/-pad is used
Well, that gets me something. Up on the joypad is the button one, but after various tinkering with the UAE config up always remains button one, and I can't get any of the other directions or buttons to do anything.

The control part of my config looks like this:

joyport0=mouse
joyport1=joy0
input.config=0
input.1.joystick.0.disabled=0
input.1.joystick.0.axis.0=JOY1_HORIZ.0
input.1.joystick.0.axis.1=JOY1_VERT.0
input.1.joystick.0.button.58=JOY1_FIRE_BUTTON.0
input.1.joystick.0.button.1=JOY1_2ND_BUTTON.0
input.1.joystick.0.button.2=JOY1_3RD_BUTTON.0
input.2.keyboard.0.button.58=JOY1_UP
input.2.keyboard.0.button.11=JOY1_DOWN
input.2.keyboard.0.button.3=JOY1_LEFT
input.2.keyboard.0.button.4=JOY1_RIGHT
input.2.keyboard.0.button.17=JOY1_FIRE_BUTTON
input.2.keyboard.0.button.126=JOY2_UP
input.2.keyboard.0.button.125=JOY2_DOWN
input.2.keyboard.0.button.123=JOY2_LEFT
input.2.keyboard.0.button.124=JOY2_RIGHT
input.2.keyboard.0.button.62=JOY2_FIRE_BUTTON
input.3.keyboard.0.button.17=JOY1_UP
input.3.keyboard.0.button.11=JOY1_DOWN
input.3.keyboard.0.button.3=JOY1_LEFT
input.3.keyboard.0.button.4=JOY1_RIGHT
input.3.keyboard.0.button.58=JOY1_FIRE_BUTTON
input.3.keyboard.0.button.126=JOY2_UP
input.3.keyboard.0.button.125=JOY2_DOWN
input.3.keyboard.0.button.123=JOY2_LEFT
input.3.keyboard.0.button.124=JOY2_RIGHT
input.3.keyboard.0.button.62=JOY2_FIRE_BUTTON
input.4.keyboard.0.button.17=JOY1_UP
input.4.keyboard.0.button.11=JOY1_DOWN
input.4.keyboard.0.button.3=JOY1_LEFT
input.4.keyboard.0.button.4=JOY1_RIGHT
input.4.keyboard.0.button.58=JOY1_FIRE_BUTTON
input.4.keyboard.0.button.126=JOY2_UP
input.4.keyboard.0.button.125=JOY2_DOWN
input.4.keyboard.0.button.123=JOY2_LEFT
input.4.keyboard.0.button.124=JOY2_RIGHT
input.4.keyboard.0.button.62=JOY2_FIRE_BUTTON
roberthazelby is offline  
Old 17 January 2012, 10:43   #20
nexusle
Banned
 
Join Date: Jul 2010
Location: Earth
Age: 46
Posts: 500
you can delete the "input" entrys. I mean, they have no effect...
nexusle is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiling P-UAE on Mac OS X MagerValp support.OtherUAE 253 26 December 2013 23:26
Self-contained FS-UAE game app bundles for Mac OS X [Solved] Bladeforce support.FS-UAE 17 04 October 2012 20:15
E-UAE for Mac VerizonLover support.OtherUAE 1 20 August 2012 07:18
FS-UAE For Mac webneta support.FS-UAE 10 12 May 2012 16:10
Best app to write .adf files into real floppies? c0dehunter support.Hardware 21 17 June 2011 15:48

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 01:17.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.09773 seconds with 13 queries