RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login

    Commander Genius Launch Menu

    Scheduled Pinned Locked Moved General Discussion and Gaming
    keencyperghostcommander keen
    1 Posts 1 Posters 693 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • cyperghostC
      cyperghost
      last edited by cyperghost

      Hi guys,

      just a small 5minute coding. It's a copy of the OpenBOR launch menu created by me. Now used to load some Episodes in Commander Keen (or Commander Genius)
      Rule is that every episode resides in it's own directory in ports/cgeniusdirectory

      So my ten episodes of this great game looks like this ;)

      keen1 - Marooned on Mars (special) (1990)
      keen2 - The Earth Explodes (1991)
      keen35 - Keen Dreams - The lost episode (1991)
      keen3 - Keen Must Die (1991)
      keen4 - Secret of the Oracle (1992)
      keen5 - The Armageddon Machine (1992) (v1.4)
      keen6 - Aliens Ate My Baby Sitter! (1992) (v1.4)
      keen7 - The keys of Krodacia (Universe is toast EP1)
      keen8 - Dead in the Desert (Universe is toast EP2)
      keen9 - Battle of the Brains (Universe is toast EP3)
      
      #!/bin/bash
      # Commander Genius Launcher - 2D Selector
      # cyperghost for RetroPie
      
      readonly JOY2KEY_SCRIPT="$HOME/RetroPie-Setup/scriptmodules/helpers.sh"
      readonly cgDIR="$HOME/RetroPie/roms/ports/cgenius"
      
      [[ -e $JOY2KEY_SCRIPT ]] || exit
      sleep 0.5; sudo pkill -f joy2key
      source "$JOY2KEY_SCRIPT"
      scriptdir="$HOME/RetroPie-Setup"
      
      pushd "$cgDIR" >&2
      readarray -t darray < <(find -maxdepth 1 -mindepth 1 -type d)
      
      if [[ ${#darray[@]} -gt 0 ]]; then
          joy2keyStart; sleep 0.2
          cmd=(dialog --backtitle " COMMANDER KEEN Episode Launcher -cyperghost " --title " Selection of KEEN episodes " --no-items --stdout --menu "Please select an entry from list to launch:" 16 75 16)
          choices=$("${cmd[@]}" "${darray[@]##*/}")
          joy2keyStop; sleep 0.2
          [[ $choices ]] || exit
          choices="games/$choices" # Important to set path to "games" next to cgenius binary
      fi
      popd >&2
      
      "/opt/retropie/supplementary/runcommand/runcommand.sh" 0 _PORT_ "cgenius" "$choices"
      

      You need to modify the emulators.cfg with
      nano /opt/retropie/configs/ports/cgenius/emulators.cfg

      cgenius = "pushd /opt/retropie/ports/cgenius; ./CGeniusExe dir=%ROM%; popd"
      default = "cgenius"
      

      Enjoy!

      1 Reply Last reply Reply Quote 0
      • First post
        Last post

      Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

      Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.