AMGC2 Loader 1.0 by Miguel A. Gavidia (juvinious)

ABOUT

This is a loader for AMGC2 plugins. 
(http://members.allegro.cc/miran/amgc2.html)
Basically it will load the games without the
GUI interface that AMGC2 provides.
In theory it should be binary compatible with
plugins (*.so/*.dll) compiled for amgc2.
It doesn't provide all caveats of AMGC2, if you
miss the GUI and saving High Scores than this
isn't for you.
Mainly developed as a tool to aid in producing
other plugins, it eases the need to go into the
GUI each time to test the plugin and of course
to play the games. :)
(unless of course the game depends on MASkinG
or anything related to AMGC2's gui,
which can cause abnormalities with the game or 
it just won't work)
Read the important notes at the bottom in case of
problems.


BUILD and INSTALL

You will need to have the amgc2 source to build this.
On *nix systems it will automatically get what it needs.
To do so:
run ./cbuild.c

On windows you will need to download the amgc2 src and 
either provide it with the directory with the --dir switch
or extract the archive into the res directory.
For more information:
run buildme.bat

pass help to the above commands to get a list 
of options.

If you want to build plugins you will need to
have AMGC2 to do so. You can get AMGC2 and the
plugins from here:
http://members.allegro.cc/miran/amgc2.html

USAGE

run amgc2load which will spit this out:

Usage: amgc2load plugin.so [OPT]

OPTIONS:
--help, -h                          Display this help
--info, -i                          Displays the plugin info
--configure, -c                     Configure the plugin
--keys, -k                          Key reassignment
--fullscreen, -f                    Play game at fullscreen

If no configuration file is found and the plugin has
configuration options it will prompt you to set them up.
Key assignment is currently disabled.
If you wish to reassign a game with new keys you'll need to
edit the plugin's config (plugin.cfg) file and add a 
section like this:
[keys]
key1 = 82
key2 = 83
key3 = 84
key4 = 85
key5 = 118
key6 = 75
key7 = 120
key8 = 116
You will need to change the number according to the 
appropriate scancode.


NOTES

Not all games are guaranteed to work, so far I've gotten 
the ones listed on Miran's page to work except chess, blocks
and centipede.
Of course the plugin needs to be up to date according to 
the latest IGame.h interface and compiled against it.

Also another problem is that most of the plugins where
written with the requirement of residing in a specific
directory like:
/amgc2dir/games/pluginname

So if the plugin doesn't work being in the same directory as
it, you might need to create a games directory and a 
directory for that plugins filename.
Hopefully I can find a work around for that.
