How Do I Run Dosbox Via Ginge?


mmielke

Member
Joined
Nov 11, 2010
Messages
197
I'm trying to run DosBox through Ginge on my Caanoo, but receive what seems to be a command prompt. I know there is a GP2X wiki, but that didn't help.

The message is this:


${DIRGAME}



Using Wiz version .70.4 (or something similar), that message appears for a second and rests to the GP2X menu.
If I use the GP2X version of DosBox, the message stays on the screen and will not allow me to exit.

My files:

CrimeFighter.gpe
#! /bin/sh
DIRROOT=/mnt/sd/dosbox
DIRGAME=${DIRROOT}/CrimeFighter
${DIRROOT}/dosbox -conf ${DIRGAME}/dosbox.conf
exec /usr/gp2x/gp2xmenu


dosbox.conf

sdl]
# fulldouble -- Use double buffering.
# output -- Can only be Surface for the gp2x.
# sensitivity -- Mouse sensitivity.
# mapperfile -- File used to load/save the key/event mappings from.

fulldouble=false
output=surface
sensitivity=100
mapperfile=mapper.txt

fontcolor_front=3
fontcolor_back=0
fontcolor_frontsel=1
fontcolor_backsel=5

[dosbox]
# machine -- The type of machine tries to emulate:hercules,cga,tandy,pcjr,vga.
# memsize -- Amount of memory dosbox has in megabytes.

machine=vga
memsize=4

[render]
# frameskip -- How many frames DOSBox skips before drawing one.
# aspect -- Do aspect correction, if your output method doesn't support scaling this can slow things down!.
# scaler -- Scaler used to enlarge/enhance low resolution modes.
# Supported are none,normal2x,normal3x,advmame2x,advmame3x,hq2x,hq3x,
# 2xsai,super2xsai,supereagle,advinterp2x,advinterp3x,
# tv2x,tv3x,rgb2x,rgb3x,scan2x,scan3x.
# If forced is appended (like scaler=hq2x forced), the scaler will be used
# even if the result might not be desired.

frameskip=0
aspect=false
scaler=none

[cpu]
# core -- CPU Core used in emulation: simple,normal,full.
# Try simple first as this is the fastest, then normal and last full
# cycles -- Amount of instructions dosbox tries to emulate each millisecond.
# Too low and the game will crash randomly / not start up
# Too high and expect slowness
# Just right and you will get a nice speed boost
# 600-1200 ish seems to be about the sweet spot for the things I've tested. (older games)
# cycleup -- Amount of cycles to increase/decrease with keycombo.
# cycledown Setting it lower than 100 will be a percentage.

core=dynamic
cycles=1000

[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=22050
blocksize=512
prebuffer=10

[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.
# All OPL modes are 'Adlib', except for CMS.
# 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=22050
tandy=auto
tandyrate=22050
disney=true

[joystick]
# joysticktype -- needs to be none, or else expect no input.

joysticktype=none

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

xms=true
ems=true
umb=true

[autoexec]
# lines of code to boot the dos program go here
mount C “/mnt/sd/dosbox/CrimeFighter”
C:
CRIME.exe




mapper.txt

key_up "key 256"
key_left "key 257"
key_left "key 258"
key_left "key 259"
key_down "key 260"
key_right "key 261"
key_right "key 262"
key_right "key 263"
key_F1 "key 264"
key_1 "key 265"
key_esc "key 266"
key_enter "key 267"
key_lalt "key 268"
key_n "key 269"
key_lctrl "key 270"
key_space "key 271"
key_y "key 270"
key_s "key 273"
key_r "key 274"
hand_cycleup "key 267 mod1"
hand_cycledown "key 266 mod1"
hand_decfskip "key 273 mod1"
hand_incfskip "key 272 mod1"
hand_g2debug "key 265 mod1"
hand_g2virtkey "key 264 mod1"
hand_saveconfig "key 270 mod1"
mod_1 "key 256"
key_1 "key 49"
key_2 "key 50"
key_3 "key 51"
key_4 "key 52"
key_5 "key 53"
key_6 "key 54"
key_7 "key 55"
key_8 "key 56"
key_9 "key 57"
key_0 "key 48"
key_a "key 97"
key_b "key 98"
key_c "key 99"
key_d "key 100"
key_e "key 101"
key_f "key 102"
key_g "key 103"
key_h "key 104"
key_i "key 105"
key_j "key 106"
key_k "key 107"
key_l "key 108"
key_m "key 109"
key_n "key 110"
key_o "key 111"
key_p "key 112"
key_q "key 113"
key_r "key 114"
key_s "key 115"
key_t "key 116"
key_u "key 117"
key_v "key 118"
key_w "key 119"
key_x "key 120"
key_y "key 121"
key_z "key 122"
key_f1 "key 282"
key_f2 "key 283"
key_f3 "key 284"
key_f4 "key 285"
key_f5 "key 286"
key_f6 "key 287"
key_f7 "key 288"
key_f8 "key 289"
key_f9 "key 290"
key_f10 "key 291"
key_f11 "key 292"
key_f12 "key 293"
key_space "key 32"
key_grave "key 96"
key_minus "key 45"
key_equals "key 61"
key_lbracket "key 91"
key_rbracket "key 93"
key_semicolon "key 59"
key_quote "key 39"
key_comma "key 44"
key_period "key 46"
key_slash "key 47"
key_backslash "key 92"
key_lessthan "key 60"
key_lshift "key 304"
key_bspace "key 8"
key_enter "key 13"
key_esc "key 27"
key_lalt "key 308"
key_lctrl "key 306"
key_ralt "key 307"
key_rctrl "key 305"
key_insert "key 277"
key_home "key 278"
key_delete "key 127"
key_end "key 279"
key_pagedown "key 281"
key_pageup "key 280"
key_tab "key 9"
key_pause "key 19"


I realize that the Caanoo has a different keyset, but that shouldn't stop it from running. After configuring the three required files, I managed to find a sample zip file with everything preconfigured, but that did not work either.

I'm trying to run CrimeFighter, Oregon Trail and Wasteland (mostly CrimeFighter).

http://www.hotud.org...education/22661 (Oregon Trail Deluxe)
http://www.hotud.org...-strategy/19937 (Crime Fighter)
http://www.hotud.org...le/39-rpg/22114 (Wasteland)
 
Top