Example WAD selector using, of course,
selector. Data between => <=. Will work to start default games and pwads and dehacks. (unix editor only). Made a new background, too. I'll have to put in the archive if people need it.
Zdoom_selector.gpe (can't use menu wrapper since 2xzdoom exits to gmenu2x)
===>
#!/bin/sh
./selector ./Zdoom_config
cd /usr/gp2x/
exec /usr/gp2x/gp2xmenu
<===
Zdoom_config
===>
#Selector configuration file
#Version 1.3
#Zdoom template - bman 08/04/08
#Language code (EN,TR,ES)
langCode=EN
#Full path to skin files
#fondo.png (320x240)
skinPath=./
#Interface elements disposition
#layoutCode=0 copyright + command on top, help on bottom
#layoutCode=1 no copyright, command on bottom
layoutCode=0
#selectRectangle=0 no selection rectangle
#selectRectangle=1 green rectangle selection
#selectRectangle=2 no selection rectangle, uses <-- identifier
#selectRectangle=3 green selection rectangle, uses <-- identifier
selectRectangle=2
# scrollWrap=0 no scroll wrap
# scrollWrap=1 scroll wrap
# scrollWrap=2 no scroll wrap, left/right pages
# scrollWrap=3 scroll active, left/right pages
scrollWrap=2
#doubleColumn=0 single column
#doubleColumn=1 double column
doubleColumn=1
#command line
# run direct games (DoomII,Plutonia,Hexen,Heretic,etc.)
cmdLine=./Zdoom Run_Doom_II only doom2
cmdLine=./Zdoom Run_Doom_II_Plutonia only plutonia
cmdLine=./Zdoom Run_Doom_II_Evilution only tnt
cmdLine=./Zdoom Run_Strife only strife
cmdLine=./Zdoom Run_Heretic only heretic
cmdLine=./Zdoom Run_Hexen only hexen
cmdLine=./Zdoom Run_Doom only doom
cmdLine=./Zdoom Run_selected_file_as_IWAD use IWAD
# Run add-on games
cmdLine=./Zdoom Run_pwad_for_Doom_II with doom2
cmdLine=./Zdoom Run_pwad_for_Heretic with heretic
cmdLine=./Zdoom Run_pwad_for_Hexen with hexen
cmdLine=./Zdoom Run_pwad_for_Doom with doom
#path to base directory for file explorer
# sub directories help identify games
baseDir=./wad
#File filters
fileFilter=wad
fileFilter=deh
<===
Zdoom (shellscript to put it all together)
===>
# zdoom selector script
# 08/04/08 bman
# 08/05/08 bman - syntax fixes
# Extract the selected path/file and extension (only supports .wad,.deh,.warp)
ext=`echo $4|cut -f3 -d.`
fil=`echo $4|cut -f2 -d.`
case $2 in
'use' )
# Are we substituting a default IWAD?
iwad="$4"
;;
'with' )
# Are we running a default IWAD?
iwad="$3.wad"
# Are we using a Dehack?
if [ "$ext" = "deh" ] ; then
pwad="-file .$fil.wad -deh $4"
else
pwad="-file $4"
fi
# Are we warping anywhere?
if [ -f .$fil.warp ] ; then
lvl="-warp `cat .$fil.warp`"
fi
;;
'only' )
# Are we running default games?
iwad="$3.wad"
if [ "$3" = "strife" ] ; then
pwad="-file voices.wad"
fi
;;
* )
# Anything else doesn't work
exit 1
;;
esac
# Run the parms
exec ./2xZdoom220 -width 320 -height 240 -heapsize 8 -iwad $iwad $pwad $lvl
<===
Tested with all main games and a few pwads. Enjoy.
Thanks so much mate! any chance u ca put that on the archive ready to use? wouldnt know how u do it. thanks again