DosBox:Duke Nukem

From wiki.gp2x.org

Contents

Installation

Status

The game is set to overclock 266mhz, frameskip 2, and runs pretty good.

Controls

Controls are as follows:

Start
Enter
Select  
ESC
R  
Quit
A  
ALT
B  
Save, toggle sound
Y  
Yes
X  
CTRL
Vol+  
Restore game
Vol-  
Pick a save spot
Stick In  
Pause

Files

dosbox.conf (Episode 1)

[sdl]
mapperfile=./mapper.txt

fulldouble=false
fullfixed=false
fullresolution=0x0

output=surface

[dosbox]
machine=vga
captures=capture
memsize=4

[render]
frameskip=2
aspect=true
scaler=none

[cpu]
core=dynamic
cycles=500
cycleup=10
cycledown=10

[mixer]
# nosound -- Enable silent mode, sound is still emulated though.
# rate -- Mixer sample rate, setting any devices higher than this will
#         probably lower their sound quality.
# blocksize -- Mixer block size, larger blocks might help sound stuttering
#              but sound will also be more lagged.
# prebuffer -- How many milliseconds of data to keep on top of the blocksize.

nosound=false
rate=11025
blocksize=64
prebuffer=1000

[midi]
# mpu401      -- Type of MPU-401 to emulate: none, uart or intelligent.
# device      -- Device that will receive the MIDI data from MPU-401.
#                This can be default,alsa,oss,win32,coreaudio,none.
# config      -- Special configuration options for the device. In Windows put
#                the id of the device you want to use. See README for details.

mpu401=none
device=default
config=

[sblaster]
# sbtype -- Type of sblaster to emulate:none,sb1,sb2,sbpro1,sbpro2,sb16.
# sbbase,irq,dma,hdma -- The IO/IRQ/DMA/High DMA address of the soundblaster.
# mixer -- Allow the soundblaster mixer to modify the dosbox mixer.
# oplmode -- Type of OPL emulation: auto,cms,opl2,dualopl2,opl3.
#            On auto the mode is determined by sblaster type.
# oplrate -- Sample rate of OPL music emulation.

sbtype=none
sbbase=220
irq=7
dma=1
hdma=5
mixer=true
oplmode=auto
oplrate=11025

[gus]
# gus -- Enable the Gravis Ultrasound emulation.
# gusbase,irq1,irq2,dma1,dma2 -- The IO/IRQ/DMA addresses of the 
#            Gravis Ultrasound. (Same IRQ's and DMA's are OK.)
# gusrate -- Sample rate of Ultrasound emulation.
# ultradir -- Path to Ultrasound directory.  In this directory
#             there should be a MIDI directory that contains
#             the patch files for GUS playback.  Patch sets used
#             with Timidity should work fine.

gus=false
gusrate=11025
gusbase=240
irq1=5
irq2=5
dma1=3
dma2=3
ultradir=C:ULTRASND

[speaker]
# pcspeaker -- Enable PC-Speaker emulation.
# pcrate -- Sample rate of the PC-Speaker sound generation.
# tandy -- Enable Tandy Sound System emulation (off,on,auto).
#          For auto Tandysound emulation is present only if machine is set to tandy.
# tandyrate -- Sample rate of the Tandy 3-Voice generation.
# disney -- Enable Disney Sound Source emulation.

pcspeaker=true
pcrate=11025
tandy=auto
tandyrate=11025
disney=true

[bios]
# joysticktype -- Type of joystick to emulate: none, 2axis, 4axis,
#                 fcs (Thrustmaster) ,ch (CH Flightstick).
#                 none disables joystick emulation.
#                 2axis is the default and supports two joysticks.

joysticktype=2axis

[serial]
# serial1-4 -- set type of device connected to com port.
#              Can be disabled, dummy, modem, directserial.
#              Additional parameters must be in the same line in the form of
#              parameter:value. Parameters for all types are irq, startbps, bytesize,
#              stopbits, parity (all optional).
#              for directserial: realport (required).
#              for modem: listenport (optional).

serial1=dummy
serial2=disabled
serial3=disabled
serial4=disabled

[dos]
# xms -- Enable XMS support.
# ems -- Enable EMS support.
# umb -- Enable UMB support (false,true,max).

xms=false
ems=false
umb=false

[autoexec]
mount C "/mnt/sd/dosbox/duke"
c:
cls
DN1.EXE
exit

mapper.txt

# standard keys

key_up "key 97" 
key_left "key 99" 
key_down "key 101" 
key_right "key 103" 

#here we add the dirty digital stick recognition

key_up "key 98" 
key_left "key 98" 

key_up "key 104" 
key_right "key 104"

key_down "key 100" 
key_left "key 100" 

key_down "key 102" 
key_right "key 102" 

# game specific keys

key_y "key 111"
key_ralt "key 109"
key_s "key 110"
key_rctrl "key 112"
key_enter "key 105"
key_esc "key 106"
key_f1 "key 107"
key_q "key 108"
key_1 "key 114"
key_r "key 113"
key_p "key 115"

duke.gpe

#! /bin/sh
/mnt/sd/cpu_speed.gpe 1 -20 266
DIRROOT=/mnt/sd/dosbox
DIRGAME=${DIRROOT}/duke
cd ${DIRGAME}
${DIRROOT}/dosbox -conf ${DIRGAME}/dosbox.conf
cd /usr/gp2x
exec /usr/gp2x/gp2xmenu
Personal tools