xubuntu: How to install arnold-nurgle CPC emulator

Open baby

xubuntu: How to install arnold-nurgle CPC emulator

Postby intodis » 18 Feb 2009, 05:38

Shows how to compile and run an arnold CPC (Amstrad) emulator, used for playing old Amstrad game ROMs.

This thread's other posts:
Post 2 - discusses modifying the source code and keyboard layout hacks.
Post 3 - has game specific help, e.g. disk name, run command and controls/key maps.

Tested on version:
xubuntu 8.10 Intrepid Ibex with arnold-nurgle 2009-01-26

Instructions:

First you need to get your hands on the arnold-nurgle source code. Google search for arnold-nurgle should point the way to berlis.de website links like below. The below seemed to be where the active development of arnold-nurgle was when I wrote this.
http://developer.berlios.de/projects/arnold/ then go to the Latest File Releases section and download ... on the following page is a link to download a file choose the link that is next to the Arch. (architecture) = Any and Type = source .bz2. Then select one of the locations to download form ... and save to /home/<you> (note if your browser auto downloads to a location it will likely be the desktop) and <you> in my case = hpy so will in your case = whatever your user name is.

You will may have to create an exception in your browser for invalid certification reasons to reach the site.

Open a terminal at /home/<me> and uncompress the tar.bz2 (note you may want to rename any previous version of the arnold folder before uncompressing if you have one, e.g. mv arnold arnoldold).
Uncompress the source,
Code: Select all
tar -xvjf arnold-nurgle*.tar.bz2


Should create an /home/<me>/arnold folder, we need to change the permissions on this folder to remove some compilation errors,
Code: Select all
sudo chmod -R 777 /home/<me>/arnold


Now we need to ensure our system has the compile/build tools needed to build the source,
Code: Select all
sudo apt-get install build-essential


Also need to install some dev packages to compile arnold (GTK 2.0 and SDL 1.2, not sure both are required but can't hurt).
GTK 2.0 should be installed already with xubuntu so just need to add the dev package,
Code: Select all
sudo apt-get install libgtk2.0-dev

SDL 1.2 needs to be installed.
Code: Select all
sudo apt-get install libsdl1.2debian libsdl1.2debian-all libsdl1.2-dev

Pulse should be installed already with xubuntu so just need to add the dev package,
Code: Select all
sudo apt-get install libpulse-dev


At this point you may want to have a quick look at the next post which discusses keyboard layouts and patching the source before compiling.


After applying any patches to the code you want (if you are so geeky inclined) change to the source folder, configure the build process and make the application file.
Code: Select all
cd /home/<me>/arnold/src
./configure
make

Read the output of each command to ensure that all build dependences are meet and no errors occurred. The last line of output from the make action should be,
Code: Select all
mv arnold ..


Now download rom files, save the .dsk files in the /home/<me>/arnold/roms folder and start playing,

Check out http://intodis.com/info/viewtopic.php?f=12&t=167&p=214#p214 to create a launcher ...

Using the arnold CPC emulator

Run the emulator from a terminal,
Code: Select all
cd /home/<me>/arnold
./arnold


You should get a blue screened emulator window and an arnold configuration window, in the configuration window you can load a disk using the Drive A button and selecting a .dsk file.

Now in the emulator window, there should be a cursor after the Ready line. With the disk loaded you should be able to get the catalog of files from the disk,
Code: Select all
cat

For example if we used the KARLSTRE.dsk (Karl's Treasure Hunt) and ran the cat command we would see something like this,
Amstrad001.png
Amstrad - cat on KARLSTRE.dsk
Amstrad001.png (3.04 KiB) Viewed 1188 times


Now to load the KARL.BIN file (note in the emulator " is likely to be mapped as SHIFT+2 e.g. as in UK keyboard layout rather than US layout),
Code: Select all
run"karl

and the game starts,
Amstrad002.png
Amstrad - Karl's Treasure Hunt game
Amstrad002.png (2.96 KiB) Viewed 1188 times


To find the ROM dsk files google CPC ROM, should get places like
http://www.rom-world.com/dl.php?name=CPC ...
intodis
Site Admin
 
Posts: 204
Joined: 30 Mar 2006, 20:57

Re: xubuntu: How to install arnold-nurgle CPC emulator

Postby intodis » 18 Feb 2009, 06:50

Making changes to the arnold source...

It is possible to make changes to the source, you might do this cause like me you are using an EEEPC which has a non-standard keyboard layout and so to re-map some of the keys you would locate the keyboard mapping file and modify as required.

Once you have made your modifications all you just save the file back to it's original location under /arnold/src folder and then 'make' the application again as described in the first post.

The original Amstrad CPC 6128 keybroad layout,
cpckeyboard.gif
Amstrad - CPC 6128 Keybroad layout
cpckeyboard.gif (18.48 KiB) Viewed 1188 times


Default key maps to my EEEPC 701 4G
Code: Select all
`      0060
F1      011a   Reset
F2      011b   Fullscreen
F3      011c   Grab/Ungrab
F4      011d   Quit
F5      011e
F6      011f
F7      0120
F8      0121
F9      0122
F10      0123   EEEPC Keys toggle
F11      0124
F12      0125
Break      0013
Ins      X      
Del      left-arrow   
Tab      right-arrow   
Caps Lock   caps-lock   *
Shift      shift      *
Ctrl      ctrl      *
=      up-arrow
Shift+2      "
Shift+6      &      
Shift+7      `
Shift+8      (      
Shift+9      )
Shift+0      _
Shift+-      =
[      @
]      [
\      005c
Shift+[      |
Shift+]      {
Shift+\      005c
;      :
'      0027
:      *
"      0027
,      ,
.      .
/      002f
<      <
>      >
?      002f
Windows      space
Left-Alt   space
Right-Alt   0133
Menu      013f
NumLk+/      010c
NumLk+*      010b
NumLk+-      010d
NumLk++      010e
Home      up-arrow
End      down-arrow
PgUp      Z
PgDn      right-arrow


Wrong key maps to my EEEPC 701 4G
Code: Select all
@ = "
^ = &
& = <bak `>
* = (
( = )
) = _
_ = =
+ = <pound symbol>
= = <uparrow>
| = `
' = 0x0027
" = 0x0027


Patch Files for keyboard re-mapping
/home/hpy/arnold/src/unix/keyboard_sdl.c holds a bunch of keyboard re-maps
intodis
Site Admin
 
Posts: 204
Joined: 30 Mar 2006, 20:57

Re: xubuntu: How to install arnold-nurgle CPC emulator

Postby intodis » 18 Feb 2009, 07:14

Game Specific Help

Starting the emulator:
Code: Select all
cd arnold
./arnold

Note the -drivea roms/<diskname>.dsk was available in earlier arnold emulators, but not sure if it still works ...

Emulator Function Keys
F1 CPC Emulator Reset/Reboot
F2 Toggle Fullscreen Mode
F3 Grab/Ungrab (Release Mouse)
F4 Quit and close the emulator

Commands:
Code: Select all
Ready
cat

List catalog of file on loaded disk A

Code: Select all
Ready
run"<GameName>

Replace <GameName> with bin file name found using cat command, note [Shift+2] = ".

Game Notes:

aladdcav

Break Thru
DISK: roms/breakthru.dsk
RUN: run"breakth
CONTROLS:
Start <SPACE>
Fire <SPACE>
Jump >
Up <UpArrow>
Down <DownArrow>
Left <LeftArrow>
Right <RightArrow>

charlcho

Donkey Kong
DISK: roms/donkkong.dsk
RUN: run"kong
CONTROLS:
Start 1 (or 2 for 2 players)
Jump <SPACE>
Left [
Right ]
Climb Up Q???
Climb Down A???

erbert
froggit

Fruity Frank
DISK: roms/fruity.dsk
RUN: run"fruity
CONTROLS:./arnold -drivea roms/fruity/fruity.dsk
run"fruity
Controls
Start <SPACE>
Throw ]
Up :
Down .
Left Z
Right X

galaxia
gamedrag

Grand Prix Circuit
DISK: roms/gprixcir.dsk
RUN: run"gprixcir
CONTROLS:
Forward/Faster <UP ARROW> or l
Break/Slower <Down ARROW> or k
Left <UP ARROW> or a
Right <UP ARROW> or z

guardia2

IKARI Warriors
DISK: roms/ikariwar.dsk
RUN: run"ikari
CONTROLS:
Start <SPACE>
Jump <SHIFT>

ikplus

Karls Treasure
DISK: roms/karlstre.dsk
RUN: run"karl
CONTROLS:
Start <SPACE>
Jump <SHIFT>
Left Z
Right X

killgori
lemmings
lightfor
metalarm
pacmania
pacmantt
protennt

Sorcery
DISK: roms/sorcery.dsk
RUN: run"sorcery
Sorcery+
DISK: roms/sorcerp.dsk
RUN: run"disc
CONTROLS:
(F10 to get joystick active ...)
Up <Home>
Left <Del>
Right <PageDown>
Pause <SPACE>
s

Subterranean Striker
DISK: roms/sub.dsk
RUN: run"sub
CONTROLS:
(F10 to get joystick active ...)
Fire ???
Up s
Down x
Move :
Turn around <SPACE>

taskforc
tubaruba

Way of the Exploding Fist
DISK: roms/wayexplo.dsk
RUN: run"fist
CONTROLS:
Start <Ins>
Left <Del>
Other Keys unknown
intodis
Site Admin
 
Posts: 204
Joined: 30 Mar 2006, 20:57


Return to Ubuntu/Linux

Who is online

Users browsing this forum: No registered users and 2 guests

cron