Amiga.org

Amiga computer related discussion => General chat about Amiga topics => Topic started by: hbarcellos on May 26, 2012, 11:54:39 PM

Title: Amiga Binary integration under Windows
Post by: hbarcellos on May 26, 2012, 11:54:39 PM
I was seeing this video here: http://www.youtube.com/watch?v=2oNeXAVURIs

Which shows Amiga GAMES running with a single click inside OSX.
Looks like it's E-UAE with an automatic startup script to run the game. Anyway, it's really cool.

Is it possible to do something like that with WinUAE inside windows? I know it probably is, but how can I do it? Which should be the best (faster) way to do it?

And what about applications? Would it be possible to double click on "Directory Opus" and load a hardfile/disk that automatically mounts windows drives?
Title: Re: Amiga Binary integration under Windows
Post by: haywirepc on May 27, 2012, 12:30:00 AM
This can be done in windows or linux by just using adf files and a seperate winuae config for each game....

Steven
Title: Re: Amiga Binary integration under Windows
Post by: hbarcellos on May 27, 2012, 08:10:31 PM
well, just for information:
winuae ""
Works fine with Logical. Now I need to find a nice PNG file to use as an icon and later I'll try Directory Opus on a window...
Title: Re: Amiga Binary integration under Windows
Post by: XDelusion on May 27, 2012, 08:20:52 PM
This idea makes me want to vomit! :)

Then we would have Amiga programs that constantly say,"Program not responding"
Title: Re: Amiga Binary integration under Windows
Post by: Iggy on May 27, 2012, 08:50:58 PM
Quote from: XDelusion;694417
This idea makes me want to vomit! :)

Then we would have Amiga programs that constantly say,"Program not responding"

The idea amuses me.

Running AmigaOS programs on a PC almost as easily as native software.

Neat.
Title: Re: Amiga Binary integration under Windows
Post by: XDelusion on May 27, 2012, 08:53:36 PM
I will give windows that...

It is dam easy to assign rom and disk images to emulators when you compare things to how it is done under an Amiga or Linux based machine.

No scripting needed.
Title: Re: Amiga Binary integration under Windows
Post by: cgutjahr on May 27, 2012, 10:10:39 PM
Quote from: XDelusion;694425
It is dam easy to assign rom and disk images to emulators when you compare things to how it is done under an Amiga or Linux based machine.
Are you comparing the current Windows version to 20 year old AmigaOS releases? You don't need scripting to assign programs to certain filetypes on any AmigaOS version released in this milennium ;)

And on my Linux boxes, I just right-click a file and select "Properties..." to change (amongst other things) the default program(s) attached to this filetype.
Title: Re: Amiga Binary integration under Windows
Post by: XDelusion on May 27, 2012, 10:35:17 PM
Odd, because I had to use scripts in MorphOS to assign GBA files to their emulator...

I'd look to have a guide on a script free work around for that!
Title: Re: Amiga Binary integration under Windows
Post by: hbarcellos on May 27, 2012, 11:15:27 PM
Well, I can say it's really cool to double click on an icon and a few seconds later, play Logical.

For apps, it would be perfect if we could pass arguments from windows to Amiga OS. Then, with a single Hardfile, it would be possible to launch several different apps from different Windows Icons.
Title: Re: Amiga Binary integration under Windows
Post by: kolla on May 27, 2012, 11:17:37 PM
Quote from: XDelusion;694432
Odd, because I had to use scripts in MorphOS to assign GBA files to their emulator.


Really :crazy:
Title: Re: Amiga Binary integration under Windows
Post by: Foul on May 28, 2012, 12:24:02 AM
Same thing on Linux :

whdrunner
http://www.frostworx.de/?p=432

:)
Title: Re: Amiga Binary integration under Windows
Post by: AmigaBlitter on May 28, 2012, 09:35:04 AM
I release some .reg files that integrates adf files with Windows, to run those files directly. Moreover, i've added the possibility to right click on the adf games and choose a configuration (ex. run full screen, run in window, run with Aga.....) Look in the Amigaworld for the thread. I don't remember the name. As soon as i find the reg files, i will post here too.

Ciao

http://amigaworld.net/modules/newbb/viewtopic.php?topic_id=30718&forum=8#537576
Title: Re: Amiga Binary integration under Windows
Post by: hbarcellos on May 28, 2012, 01:46:55 PM
Quote from: AmigaBlitter;694454
I release some .reg files that integrates adf files with Windows, to run those files directly. Moreover, i've added the possibility to right click on the adf games and choose a configuration (ex. run full screen, run in window, run with Aga.....) Look in the Amigaworld for the thread. I don't remember the name. As soon as i find the reg files, i will post here too.

Ciao

http://amigaworld.net/modules/newbb/viewtopic.php?topic_id=30718&forum=8#537576


Ciao Blitter,
That's really something. *PS* Links there are broken, so, I'm waiting for the reg files here.
Question: Double clicking a file loads a certain configuration just changing the floppy, or, I can set different configurations for different adf files (instead of choosing each time with a right click)?

Rgds,
Title: Re: Amiga Binary integration under Windows
Post by: Trev on May 28, 2012, 04:57:16 PM
If one had the drive, one could write a Windows subsystem to execute Amiga binaries directly similar to the way Petunia works in OS4. It's a lot of effort for very little payoff, however, when WinUAE works so well on its own.
Title: Re: Amiga Binary integration under Windows
Post by: amyren on May 28, 2012, 05:57:07 PM
Quote from: hbarcellos;694371

Is it possible to do something like that with WinUAE inside windows? I know it probably is, but how can I do it? Which should be the best (faster) way to do it?


Doesnt AmigaForever have some sort of solution for this?
I read that they had developed their own archive system for amiga games, so that all game files and configuration would reside in a single file for easy access and launching.

Anyway, there is also another place where they have something you might find interestion. Its a pre-made setup with winuae and lots of games. All games will get their own icon on the startmenu, and they launch directly from there.
There is a main install file hwa.exe that contains the winuae setup part, and after you have that installed you download the wanted games from the same website.

But be warned, everything is included, so this is not legal unless you own the games and the rom files yourself.

You will find it by google search for "HOBRing" or "hwa games"
Title: Re: Amiga Binary integration under Windows
Post by: AmigaBlitter on May 29, 2012, 12:51:35 PM
Quote from: hbarcellos;694464
Ciao Blitter,
That's really something. *PS* Links there are broken, so, I'm waiting for the reg files here.
Question: Double clicking a file loads a certain configuration just changing the floppy, or, I can set different configurations for different adf files (instead of choosing each time with a right click)?

Rgds,


Last configuration should remain. However, you can change config during disk swap. It's just winaue.
Title: Re: Amiga Binary integration under Windows
Post by: AmigaBlitter on May 29, 2012, 12:58:33 PM
Tutorial:

Step 1
Install WinUAE :) if you don’t haven’t done yet :)
Create your favorite WinUAE configuration choosing the System (i.e. Amiga 500, Amiga 1200 and so on…), the hardware, video and audio settings of choice.
Save your configuration in your WinUAE configurations folder.

Step 2
Open Notepad.exe
Paste the folling line of text into the notepad:

Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\adf_auto_file]
@=""
[HKEY_CLASSES_ROOT\adf_auto_file\shell]
[HKEY_CLASSES_ROOT\adf_auto_file\shell\open]
[HKEY_CLASSES_ROOT\adf_auto_file\shell\open\command]
@="\"C:\\Programmi\\WinUAE\\WinUAE.exe\" -f \"C:\\Programmi\\WinUAE\\Configurations\\A500.uae\" -0 \"%1\" -s use_gui=no"

Note: the “c” is your system folder. The “C:\\Programmi\\WinUAE\\WinUAE.exe\” and the "C:\\Programmi\\WinUAE\\Configurations\\A500.uae\” are the path relative to your WinUAE installation and the default WinUAE config file. Edit the path if necessary.

Save the file as “adf_auto_file.reg” (without quotation mark) to your Desktop or to whatever folder you want.

Create a new empty txt file with notepad and paste the following lines of text:

Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.adf]
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.adf\OpenWithList]
"a"="\"C:\\Programmi\\WinUAE\\WinUAE.exe\" -f \"C:\\Programmi\\WinUAE\\Configurations\\A500.uae\" -0 \"%1\" -s use_gui=no"
"MRUList"="ba"
"b"="winuae.exe"
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.adf\OpenWithProgids]
"adf_auto_file"=hex(0):

Note: the “c” is your system folder. The “C:\\Programmi\\WinUAE\\WinUAE.exe\” and the "C:\\Programmi\\WinUAE\\Configurations\\A500.uae\” are the path relative to your WinUAE installation and your default WinUAE config. Edit the path if necessary.  
Save the file as “DotAdf.reg” (without quotation mark) to your Desktop or to whatever folder you want.

Create a third text file with notepad and paste into it the following line of text:
 
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\SystemFileAssociations\.adf]
[HKEY_CLASSES_ROOT\SystemFileAssociations\.adf\Shell]
[HKEY_CLASSES_ROOT\SystemFileAssociations\.adf\Shell\Edit]
[HKEY_CLASSES_ROOT\SystemFileAssociations\.adf\Shell\Edit\Command]
@="\"%SystemRoot%\\system32\\NOTEPAD.EXE\" \"%1\""
[HKEY_CLASSES_ROOT\SystemFileAssociations\.adf\Shell\Edit.WinUAEA1200FS]
@="WinUAE A1200 Full Screen"
[HKEY_CLASSES_ROOT\SystemFileAssociations\.adf\Shell\Edit.WinUAEA1200FS\Command]
@="\"C:\\Programmi\\WinUAE\\WinUAE.exe\" -f \"C:\\Programmi\\WinUAE\\Configurations\\A1200FS.uae\" -0 \"%1\" -s use_gui=no"
[HKEY_CLASSES_ROOT\SystemFileAssociations\.adf\Shell\Edit.WinUAEA500]
@="WinUAE A500"
[HKEY_CLASSES_ROOT\SystemFileAssociations\.adf\Shell\Edit.WinUAEA500\Command]
@="\"C:\\Programmi\\WinUAE\\WinUAE.exe\" -f \"C:\\Programmi\\WinUAE\\Configurations\\A500.uae\" -0 \"%1\" -s use_gui=no"
[HKEY_CLASSES_ROOT\SystemFileAssociations\.adf\Shell\Edit.WinUAEA500FS]
@="WinUAE A500 Full Screen"
[HKEY_CLASSES_ROOT\SystemFileAssociations\.adf\Shell\Edit.WinUAEA500FS\Command]
@="\"C:\\Programmi\\WinUAE\\WinUAE.exe\" -f \"C:\\Programmi\\WinUAE\\Configurations\\A500FS.uae\" -0 \"%1\" -s use_gui=no"
[HKEY_CLASSES_ROOT\SystemFileAssociations\.adf\Shell\Open]
[HKEY_CLASSES_ROOT\SystemFileAssociations\.adf\Shell\Open\Command]
@="\"%SystemRoot%\\system32\\NOTEPAD.EXE\" \"%1\""

Note: the “c” is your system folder. The “C:\\Programmi\\WinUAE\\WinUAE.exe\”. The other path are related to every eventual configurations you made via WinUAE (i have 3 configurations in this example: Amiga 1200 Full Screen, Amiga 500 and Amiga 500 Full Screen.

You can create your own configurations and edit the path of this third reg file.
Save the file as “SystemFileAssociations_adf.reg” (without quotation mark) to your Desktop or to whatever folder you want.

Step 3
Use an administrator account and run the previously created .reg file (double click on it) to insert those entries into the Windows Registry. If the system request the to continue, give the appropriate permission to operate, by replying “continue”.

Step 4: PlayTime :)
Double Click on any amiga ADF to run it. Right Click on the ADF to run it with the appropriate configuration you have previously created.

Note: if you have Windows 7 64 bit, path and configurations may change due to different registry path (x86 or x64).

I will try to find the reg files and post the reg files here directly.