Version 1.002
This is my HOWTO FAQ about running the DOSBox emulator on both your computer and your PSP! This will allow you to perform any software installs and configurations by using your PC and then you can play the games on your PSP using the HDM Menu to launch the game of your choice. This is a long process so please be patient. If you have suggestions for revision, please post a reply to this thread.
This HOWTO was a major work to put together, so please respect that and do NOT copy it and repost it elsewhere. If you want to share this info, PLEASE, just share a link to this thread.
Step 1 - Install and configure DOSBox for the PC
Start by downloading the PortableApps platform, and the DOSBox application.
PortableApps
I downloaded the Platform Only version. This version ONLY has the menu system..
DOSBox Portable
This is the PortableApps version that will run on your PC. Connect your PSP (via USB) to your PC and install both the PortableApps and DOSBOX onto your PSP memory card. Now explore to your PSP memory card and create a folder at the root level and name it "mount". Create two subfolders inside the mount folder, name them "cdrive" and "cdroms". Go into the cdrive folder and create two more new folders and name them "INSTALL" and "BATCH". You should now have the following directory structure on your PSP:
Code: Select all
mount
mount\cdrive
mount\cdrive\BATCH
mount\cdrive\INSTALL
mount\cdroms
Code: Select all
[autoexec]
# Lines in this section will be run at startup.
mount c ..\..\..\..\mount\cdrive
c:
AUTOEXEC.BAT
Code: Select all
Echo Off
Path Z:\;C:\HDM;C:\BATCH
Step 2 - Install and Configure DOSBox for the PSP
Download the PSP DOSBox application.
PSP DOSBox
Download it and copy the dosbox folder (after unzipping) to your PSP\GAME folder on your PSP.
Now browse to the folder I:\PSP\GAME\pspDOSbox and edit the dosbox.conf file. Copy and past the following text to the bottom of the file:
Code: Select all
[autoexec]
# Lines in this section will be run at startup.
mount c ms0:/mount/cdrive
SYSOPT clock 333
c:
AUTOPSP.BAT
Code: Select all
Echo Off
Path Z:\;C:\HDM;C:\BATCH
Step 3 - Install and configure the DOS HDM Menu
Download a DOS menu program (for a frontend).
hdm504.zip (from simtel.net)
This is a link to dos menu programs on simtel.net. I use hdm504.zip. Install the menu program in your DOSBox session.
Save the file in the I:\mount\cdrive\INSTALL folder and unzip it into a folder using the filename. Now you are ready to install the menu, so use your PortableApps Menu to launch DOSBox. Now in the Dos window issue the following commands:
Code: Select all
c:
cd c:\INSTALL\hdm504
install
Code: Select all
Echo Off
Path Z:\;C:\HDM;C:\BATCH
CD C:\HDM
copy /Y HDM.PC HDM.BAT
HDM
Code: Select all
Echo Off
Path Z:\;C:\HDM;C:\BATCH
CD C:\HDM
copy /Y HDM.PSP HDM.BAT
HDM
Code: Select all
Echo Off
rem *** DO NOT CHANGE THIS BATCH FILE ***
HDM4DOS %1 %2 %3 %4 %5 %6 %7 %8 %9
if ErrorLevel 9 %X% -R
if ErrorLevel 7 X -R
echo Error running HDM for DOS!
Code: Select all
Echo Off
INPUTMAP up up
INPUTMAP down down
INPUTMAP left left
INPUTMAP right right
INPUTMAP cross enter
INPUTMAP circle pgdown
INPUTMAP triangle pgup
INPUTMAP square enter
INPUTMAP ltrigger esc
INPUTMAP rtrigger a
INPUTMAP start f1
INPUTMAP select t
INPUTMAP EXEC HDM4DOS %1 %2 %3 %4 %5 %6 %7 %8 %9
if ErrorLevel 9 %X% -R
if ErrorLevel 7 X -R
echo Error running HDM for DOS!
Code: Select all
Echo Off
C:
CD C:\GAMES\Path_to_Game
INPUTMAP up up
IF NOT ERRORLEVEL 1 GOTO PSP
:PC
GameNAME
GOTO END
:PSP
INPUTMAP up up
INPUTMAP down down
INPUTMAP left left
INPUTMAP right right
INPUTMAP cross lctrl
INPUTMAP circle lalt
INPUTMAP triangle space
INPUTMAP square enter
INPUTMAP ltrigger f5
INPUTMAP rtrigger y
INPUTMAP start esc
INPUTMAP select t
PAUSE
INPUTMAP EXEC GameNAME
:END
REM THE FOLLOWING COMMANDS ARE TO RETURN TO THE HDM MENU PROGRAM
CD C:\HDM
X
Step 4 - Installing and Configuring a DOS Game
For an example we will download Commander Keen. There are many abandonware sites, just search for "abandonware" or "DOS Games". Use the link below to get the download for Commander Keen and save it to the INSTALL folder we used earlier.
]Commander Keen 1 (from thehouseofgames.net)
Now extract the files into a folder (rename the folder to KEEN1). When you name folders in DOS it is best to keep the names 8 characters or less and only use alphanumeric names (so don't use a space in the name). Some games will have a setup or install program that will need to be run to install the files correctly, this one is just a bunch of files in a zip file, that you can extract to a folder of your choice.
Browse your memory card to the I:\mount\cdrive folder and create a GAMES folder. Now create a ComKeen folder (so that later you can put all of the other Commander Keen games in this folder) under the GAMES folder. Move the KEEN1 folder into the ComKeen folder so that the path to it will be I:\mount\cdrive\GAMES\ComKeen\Keen1. Inside that folder you should have the KEEN1.EXE file along with all the other files needed for the game.
Next, browse to the BATCH folder and make a copy of the _BlankNEW.BAT file and rename the copy to CK1.BAT. Now edit the CK1.BAT file and change it to match the following text:
Code: Select all
Echo Off
C:
CD C:\GAMES\ComKeen\Keen1
INPUTMAP up up
IF NOT ERRORLEVEL 1 GOTO PSP
:PC
KEEN1
GOTO END
:PSP
INPUTMAP up up
INPUTMAP down down
INPUTMAP left left
INPUTMAP right right
INPUTMAP cross lctrl
INPUTMAP circle lalt
INPUTMAP triangle space
INPUTMAP square enter
INPUTMAP ltrigger f5
INPUTMAP rtrigger y
INPUTMAP start esc
INPUTMAP select t
PAUSE
INPUTMAP EXEC KEEN1
:END
REM THE FOLLOWING COMMANDS ARE TO RETURN TO THE HDM MENU PROGRAM
CD C:\HDM
X
Code: Select all
CD C:\GAMES\Path_to_Game
GameNAME
INPUTMAP EXEC GameNAME
Code: Select all
{EXIT}~{KEY C K 1 ENTR}
You have now finished Step 4!
Step 5 - Understanding DOSBox
For the PSP version of DOSBox, it is necessary to remap the keys and controls to specific buttons and controls on the PSP. If you look back at the batch file we made for Commander Keen you will see a list of INPUTMAP commands. Now it is important to understand what they do so you can customize the controls for other games. Here is the syntax and a list of values that I have gathered for referrence:
Code: Select all
SYNTAX: INPUTMAP [PSP INPUT VALUE] [PC INPUT VALUE]
PSP INPUT VALUE PC INPUT VALUE
dpad up up up arrow up
dpad down down down arrow down
dpad left left left arrow left
dpad right right right arrow right
analog control analog joystick joystick
square square left-ctrl lctrl
cross ross left-alt lalt
triangle triangle enter enter
square square space space
left trigger ltrigger F5 f5
right trigger rtrigger escape esc
select select Page Up pgup
start start Page Down pgdown
mouse mouse
left mouse button button1
right mouse button button2
The last INPUTMAP command in the batch file is INPUTMAP EXEC KEEN1, this is the command used to start the game with the input mapping we just specified.
Now let's look at the dosbox.conf file. Remember the mount command? It was different for the two versions of DOSBox. Here is the PSP version:
Code: Select all
mount c ms0:/mount/cdrive
It is critical to keep it lowercase for the PSP. This mount command makes the DOSBox see the cdrive folder as the root for the C: drive on the DOSBox virtual PC. The ms0: is the identifier that the PSP uses to refer to your memory card. Also pay close attention to the direction that the slash / marks are slanted. Now look at the PC version of the mount command:
Code: Select all
mount c ..\..\..\..\mount\cdrive
Now let's look at the batch file I used for Kyrandia 1. I used an .ISO file of the CD so that I can have the speech work in the game. Here is the batch file (I named it KYRA1.BAT):
Code: Select all
Echo Off
C:
CD C:\WESTWOOD\KYRACD
INPUTMAP up up
IF NOT ERRORLEVEL 1 GOTO PSP
:PC
imgmount d ..\..\..\..\mount\cdroms\KYRA1.iso -t iso
MAIN
GOTO END
:PSP
imgmount d ms0:/mount/cdroms/KYRA1.iso -t iso
INPUTMAP up up
INPUTMAP down down
INPUTMAP left left
INPUTMAP right right
INPUTMAP cross button1
INPUTMAP circle lalt
INPUTMAP triangle space
INPUTMAP square enter
INPUTMAP rtrigger button2
INPUTMAP analog mouse
INPUTMAP start esc
INPUTMAP select t
INPUTMAP EXEC MAIN
:END
REM THE FOLLOWING COMMANDS ARE TO RETURN TO THE HDM MENU PROGRAM
CD C:\HDM
X
End of HOWTO
Please, reply with any comments and/or questions and I will get back to you. If I feel that more explanation is needed, I will update this post. Hope this helps...